From 3ae95783d4a46af80fd1c1457f81b5175415d5ab Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 25 Sep 2024 20:16:27 +0200 Subject: [PATCH 1/9] Add tablet-tags/`--init_tags` stats (#16695) Signed-off-by: Tim Vaillancourt --- .../tabletmanager/rpc_replication_test.go | 6 +- .../vttablet/tabletmanager/shard_sync_test.go | 2 +- go/vt/vttablet/tabletmanager/tm_init.go | 7 +++ go/vt/vttablet/tabletmanager/tm_init_test.go | 55 +++++++++++++------ go/vt/vttablet/tabletmanager/tm_state_test.go | 24 ++++---- 5 files changed, 62 insertions(+), 32 deletions(-) diff --git a/go/vt/vttablet/tabletmanager/rpc_replication_test.go b/go/vt/vttablet/tabletmanager/rpc_replication_test.go index 0aac8c971ec..ff3c4f4195e 100644 --- a/go/vt/vttablet/tabletmanager/rpc_replication_test.go +++ b/go/vt/vttablet/tabletmanager/rpc_replication_test.go @@ -34,7 +34,7 @@ func TestPromoteReplicaReplicationManagerSuccess(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") statsTabletTypeCount.ResetAll() - tm := newTestTM(t, ts, 100, keyspace, shard) + tm := newTestTM(t, ts, 100, keyspace, shard, nil) defer tm.Stop() // Stop the replication manager and set the interval to 100 milliseconds @@ -63,7 +63,7 @@ func TestPromoteReplicaReplicationManagerFailure(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") statsTabletTypeCount.ResetAll() - tm := newTestTM(t, ts, 100, keyspace, shard) + tm := newTestTM(t, ts, 100, keyspace, shard, nil) defer tm.Stop() require.True(t, tm.replManager.ticks.Running()) @@ -85,7 +85,7 @@ func TestDisableReplicationManager(t *testing.T) { disableReplicationManager = prevDisableReplicationManager }() - tm := newTestTM(t, ts, 100, keyspace, shard) + tm := newTestTM(t, ts, 100, keyspace, shard, nil) defer tm.Stop() require.False(t, tm.replManager.ticks.Running()) diff --git a/go/vt/vttablet/tabletmanager/shard_sync_test.go b/go/vt/vttablet/tabletmanager/shard_sync_test.go index 83a7cede2e1..963e34102c5 100644 --- a/go/vt/vttablet/tabletmanager/shard_sync_test.go +++ b/go/vt/vttablet/tabletmanager/shard_sync_test.go @@ -47,7 +47,7 @@ func TestShardSync(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") statsTabletTypeCount.ResetAll() - tm := newTestTM(t, ts, 100, keyspace, shard) + tm := newTestTM(t, ts, 100, keyspace, shard, nil) defer tm.Stop() // update the primary info in the shard record and set it to nil diff --git a/go/vt/vttablet/tabletmanager/tm_init.go b/go/vt/vttablet/tabletmanager/tm_init.go index 16c4c2e4c1f..b35a0c180d4 100644 --- a/go/vt/vttablet/tabletmanager/tm_init.go +++ b/go/vt/vttablet/tabletmanager/tm_init.go @@ -117,6 +117,9 @@ var ( // statsIsInSrvKeyspace is set to 1 (true), 0 (false) whether the tablet is in the serving keyspace statsIsInSrvKeyspace *stats.Gauge + // statsTabletTags is set to 1 (true) if a tablet tag exists. + statsTabletTags *stats.GaugesWithMultiLabels + statsKeyspace = stats.NewString("TabletKeyspace") statsShard = stats.NewString("TabletShard") statsKeyRangeStart = stats.NewString("TabletKeyRangeStart") @@ -136,6 +139,7 @@ func init() { statsTabletTypeCount = stats.NewCountersWithSingleLabel("TabletTypeCount", "Number of times the tablet changed to the labeled type", "type") statsBackupIsRunning = stats.NewGaugesWithMultiLabels("BackupIsRunning", "Whether a backup is running", []string{"mode"}) statsIsInSrvKeyspace = stats.NewGauge("IsInSrvKeyspace", "Whether the vttablet is in the serving keyspace (1 = true / 0 = false)") + statsTabletTags = stats.NewGaugesWithMultiLabels("TabletTags", "Tablet tags key/values", []string{"key", "value"}) } // TabletManager is the main class for the tablet manager. @@ -809,6 +813,9 @@ func (tm *TabletManager) exportStats() { statsKeyRangeEnd.Set(hex.EncodeToString(tablet.KeyRange.End)) } statsAlias.Set(topoproto.TabletAliasString(tablet.Alias)) + for k, v := range tablet.Tags { + statsTabletTags.Set([]string{k, v}, 1) + } } // withRetry will exponentially back off and retry a function upon diff --git a/go/vt/vttablet/tabletmanager/tm_init_test.go b/go/vt/vttablet/tabletmanager/tm_init_test.go index 56ebbbd32e1..0c89a848626 100644 --- a/go/vt/vttablet/tabletmanager/tm_init_test.go +++ b/go/vt/vttablet/tabletmanager/tm_init_test.go @@ -177,7 +177,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { statsTabletTypeCount.ResetAll() cell := "cell1" ts := memorytopo.NewServer(cell) - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() assert.Equal(t, "replica", statsTabletType.Get()) @@ -197,7 +197,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { // keyspace-shard already created. _, err = ts.GetOrCreateShard(ctx, "ks1", "0") require.NoError(t, err) - tm = newTestTM(t, ts, 2, "ks1", "0") + tm = newTestTM(t, ts, 2, "ks1", "0", nil) defer tm.Stop() _, err = ts.GetShard(ctx, "ks1", "0") require.NoError(t, err) @@ -211,7 +211,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { require.NoError(t, err) err = topotools.RebuildKeyspace(ctx, logutil.NewConsoleLogger(), ts, "ks2", []string{cell}, false) require.NoError(t, err) - tm = newTestTM(t, ts, 3, "ks2", "0") + tm = newTestTM(t, ts, 3, "ks2", "0", nil) defer tm.Stop() _, err = ts.GetShard(ctx, "ks2", "0") require.NoError(t, err) @@ -228,7 +228,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { require.NoError(t, err) err = ts.RebuildSrvVSchema(ctx, []string{cell}) require.NoError(t, err) - tm = newTestTM(t, ts, 4, "ks3", "0") + tm = newTestTM(t, ts, 4, "ks3", "0", nil) defer tm.Stop() _, err = ts.GetShard(ctx, "ks3", "0") require.NoError(t, err) @@ -239,7 +239,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { assert.Equal(t, wantVSchema, srvVSchema.Keyspaces["ks3"]) // Multi-shard - tm1 := newTestTM(t, ts, 5, "ks4", "-80") + tm1 := newTestTM(t, ts, 5, "ks4", "-80", nil) defer tm1.Stop() // Wait a bit and make sure that srvKeyspace is still not created. @@ -247,7 +247,7 @@ func TestStartCreateKeyspaceShard(t *testing.T) { _, err = ts.GetSrvKeyspace(context.Background(), cell, "ks4") require.True(t, topo.IsErrType(err, topo.NoNode), err) - tm2 := newTestTM(t, ts, 6, "ks4", "80-") + tm2 := newTestTM(t, ts, 6, "ks4", "80-", nil) defer tm2.Stop() // Now that we've started the tablet for the other shard, srvKeyspace will succeed. ensureSrvKeyspace(t, ts, cell, "ks4") @@ -267,7 +267,7 @@ func TestCheckPrimaryShip(t *testing.T) { // 1. Initialize the tablet as REPLICA. // This will create the respective topology records. - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) tablet := tm.Tablet() ensureSrvKeyspace(t, ts, cell, "ks") ti, err := ts.GetTablet(ctx, alias) @@ -400,7 +400,7 @@ func TestStartCheckMysql(t *testing.T) { ctx := context.Background() cell := "cell1" ts := memorytopo.NewServer(cell) - tablet := newTestTablet(t, 1, "ks", "0") + tablet := newTestTablet(t, 1, "ks", "0", nil) cp := mysql.ConnParams{ Host: "foo", Port: 1, @@ -429,7 +429,7 @@ func TestStartFindMysqlPort(t *testing.T) { ctx := context.Background() cell := "cell1" ts := memorytopo.NewServer(cell) - tablet := newTestTablet(t, 1, "ks", "0") + tablet := newTestTablet(t, 1, "ks", "0", nil) fmd := newTestMysqlDaemon(t, -1) tm := &TabletManager{ BatchCtx: context.Background(), @@ -463,7 +463,7 @@ func TestStartFixesReplicationData(t *testing.T) { ctx := context.Background() cell := "cell1" ts := memorytopo.NewServer(cell, "cell2") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() tabletAlias := tm.tabletAlias @@ -495,14 +495,14 @@ func TestStartFixesReplicationData(t *testing.T) { func TestStartDoesNotUpdateReplicationDataForTabletInWrongShard(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1", "cell2") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) tm.Stop() tabletAliases, err := ts.FindAllTabletAliasesInShard(ctx, "ks", "0") require.NoError(t, err) assert.Equal(t, uint32(1), tabletAliases[0].Uid) - tablet := newTestTablet(t, 1, "ks", "-d0") + tablet := newTestTablet(t, 1, "ks", "-d0", nil) require.NoError(t, err) err = tm.Start(tablet, 0) assert.Contains(t, err.Error(), "existing tablet keyspace and shard ks/0 differ") @@ -526,7 +526,7 @@ func TestCheckTabletTypeResets(t *testing.T) { // 1. Initialize the tablet as REPLICA. // This will create the respective topology records. - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) tablet := tm.Tablet() ensureSrvKeyspace(t, ts, cell, "ks") ti, err := ts.GetTablet(ctx, alias) @@ -638,6 +638,24 @@ func TestGetBuildTags(t *testing.T) { } } +func TestStartExportStats(t *testing.T) { + ts := memorytopo.NewServer("cell1") + _ = newTestTM(t, ts, 1, "ks", "0", map[string]string{ + "test": t.Name(), + }) + + assert.Equal(t, "ks", statsKeyspace.Get()) + assert.Equal(t, "0", statsShard.Get()) + assert.Equal(t, "replica", statsTabletType.Get()) + assert.Equal(t, map[string]int64{ + "replica": 1, + }, statsTabletTypeCount.Counts()) + assert.Equal(t, "cell1-0000000001", statsAlias.Get()) + assert.Equal(t, map[string]int64{ + "test." + t.Name(): 1, + }, statsTabletTags.Counts()) +} + func newTestMysqlDaemon(t *testing.T, port int32) *fakemysqldaemon.FakeMysqlDaemon { t.Helper() @@ -665,10 +683,14 @@ func newTestMysqlDaemon(t *testing.T, port int32) *fakemysqldaemon.FakeMysqlDaem return mysqld } -func newTestTM(t *testing.T, ts *topo.Server, uid int, keyspace, shard string) *TabletManager { +func newTestTM(t *testing.T, ts *topo.Server, uid int, keyspace, shard string, tags map[string]string) *TabletManager { + // reset stats + statsTabletTags.ResetAll() + statsTabletTypeCount.ResetAll() + t.Helper() ctx := context.Background() - tablet := newTestTablet(t, uid, keyspace, shard) + tablet := newTestTablet(t, uid, keyspace, shard, tags) tm := &TabletManager{ BatchCtx: ctx, TopoServer: ts, @@ -704,7 +726,7 @@ func newTestTM(t *testing.T, ts *topo.Server, uid int, keyspace, shard string) * } } -func newTestTablet(t *testing.T, uid int, keyspace, shard string) *topodatapb.Tablet { +func newTestTablet(t *testing.T, uid int, keyspace, shard string, tags map[string]string) *topodatapb.Tablet { shard, keyRange, err := topo.ValidateShardName(shard) require.NoError(t, err) return &topodatapb.Tablet{ @@ -721,6 +743,7 @@ func newTestTablet(t *testing.T, uid int, keyspace, shard string) *topodatapb.Ta Shard: shard, KeyRange: keyRange, Type: topodatapb.TabletType_REPLICA, + Tags: tags, } } diff --git a/go/vt/vttablet/tabletmanager/tm_state_test.go b/go/vt/vttablet/tabletmanager/tm_state_test.go index 48e2123554f..9e309312b39 100644 --- a/go/vt/vttablet/tabletmanager/tm_state_test.go +++ b/go/vt/vttablet/tabletmanager/tm_state_test.go @@ -43,7 +43,7 @@ import ( func TestStateOpenClose(t *testing.T) { ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) // Re-Open should be a no-op tm.tmState.mu.Lock() @@ -65,7 +65,7 @@ func TestStateOpenClose(t *testing.T) { func TestStateRefreshFromTopo(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() err := tm.RefreshState(ctx) @@ -75,7 +75,7 @@ func TestStateRefreshFromTopo(t *testing.T) { func TestStateResharding(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() tm.tmState.mu.Lock() @@ -102,7 +102,7 @@ func TestStateResharding(t *testing.T) { func TestStateDenyList(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() fmd := tm.MysqlDaemon.(*fakemysqldaemon.FakeMysqlDaemon) @@ -133,7 +133,7 @@ func TestStateDenyList(t *testing.T) { func TestStateTabletControls(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() ks := &topodatapb.SrvKeyspace{ @@ -161,7 +161,7 @@ func TestStateTabletControls(t *testing.T) { func TestStateIsShardServingisInSrvKeyspace(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() tm.tmState.mu.Lock() @@ -332,7 +332,7 @@ func TestStateIsShardServingisInSrvKeyspace(t *testing.T) { func TestStateNonServing(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 1, "ks", "0") + tm := newTestTM(t, ts, 1, "ks", "0", nil) defer tm.Stop() tm.tmState.mu.Lock() @@ -349,7 +349,7 @@ func TestStateChangeTabletType(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") statsTabletTypeCount.ResetAll() - tm := newTestTM(t, ts, 2, "ks", "0") + tm := newTestTM(t, ts, 2, "ks", "0", nil) defer tm.Stop() assert.Equal(t, 1, len(statsTabletTypeCount.Counts())) @@ -391,7 +391,7 @@ func TestStateChangeTabletTypeWithFailure(t *testing.T) { ts := memorytopo.NewServer("cell1") statsTabletTypeCount.ResetAll() // create TM with replica and put a hook to return error during SetServingType - tm := newTestTM(t, ts, 2, "ks", "0") + tm := newTestTM(t, ts, 2, "ks", "0", nil) qsc := tm.QueryServiceControl.(*tabletservermock.Controller) qsc.SetServingTypeError = vterrors.Errorf(vtrpcpb.Code_RESOURCE_EXHAUSTED, "mocking resource exhaustion error ") defer tm.Stop() @@ -474,7 +474,7 @@ func TestChangeTypeErrorWhileWritingToTopo(t *testing.T) { fakeConn := factory.AddCell("cell1") ts := faketopo.NewFakeTopoServer(factory) statsTabletTypeCount.ResetAll() - tm := newTestTM(t, ts, 2, "ks", "0") + tm := newTestTM(t, ts, 2, "ks", "0", nil) defer tm.Stop() // ChangeTabletType calls topotools.ChangeType which in-turn issues @@ -521,7 +521,7 @@ func TestPublishStateNew(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 42, "ks", "0") + tm := newTestTM(t, ts, 42, "ks", "0", nil) ttablet, err := tm.TopoServer.GetTablet(ctx, tm.tabletAlias) require.NoError(t, err) utils.MustMatch(t, tm.Tablet(), ttablet.Tablet) @@ -567,7 +567,7 @@ func TestPublishStateNew(t *testing.T) { func TestPublishDeleted(t *testing.T) { ctx := context.Background() ts := memorytopo.NewServer("cell1") - tm := newTestTM(t, ts, 2, "ks", "0") + tm := newTestTM(t, ts, 2, "ks", "0", nil) defer tm.Stop() alias := &topodatapb.TabletAlias{ From 55a5e35fd27e17dccf36e9931171690c72fdbdac Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Sun, 29 Sep 2024 23:02:57 +0200 Subject: [PATCH 2/9] Add `ChangeTabletTags`/`ChangeTags` RPCs Signed-off-by: Tim Vaillancourt --- go/cmd/vtctldclient/cli/tablets.go | 23 +- go/cmd/vtctldclient/cli/tablets_test.go | 32 + go/cmd/vtctldclient/command/tablets.go | 48 + go/flags/endtoend/vtctldclient.txt | 1 + .../tabletmanagerdata/tabletmanagerdata.pb.go | 257 +- .../tabletmanagerdata_vtproto.pb.go | 533 + .../tabletmanagerservice.pb.go | 876 +- .../tabletmanagerservice_grpc.pb.go | 38 + go/vt/proto/vtctldata/vtctldata.pb.go | 4158 +- go/vt/proto/vtctldata/vtctldata_vtproto.pb.go | 737 + go/vt/proto/vtctlservice/vtctlservice.pb.go | 1489 +- .../vtctlservice/vtctlservice_grpc.pb.go | 38 + go/vt/topotools/tablet.go | 32 + go/vt/vtcombo/tablet_map.go | 8 + go/vt/vtctl/grpcvtctldclient/client_gen.go | 9 + go/vt/vtctl/grpcvtctldserver/server.go | 33 + go/vt/vtctl/grpcvtctldserver/server_test.go | 201 + .../testutil/test_tmclient.go | 31 + go/vt/vtctl/localvtctldclient/client_gen.go | 5 + go/vt/vttablet/faketmclient/fake_client.go | 5 + go/vt/vttablet/grpctmclient/client.go | 17 + go/vt/vttablet/grpctmserver/server.go | 9 + go/vt/vttablet/tabletmanager/rpc_actions.go | 26 +- go/vt/vttablet/tabletmanager/rpc_agent.go | 2 + go/vt/vttablet/tabletmanager/tm_init.go | 11 +- go/vt/vttablet/tabletmanager/tm_state.go | 10 + go/vt/vttablet/tmclient/rpc_client_api.go | 3 + go/vt/vttablet/tmrpctest/test_tm_rpc.go | 24 + proto/tabletmanagerdata.proto | 9 + proto/tabletmanagerservice.proto | 3 + proto/vtctldata.proto | 11 + proto/vtctlservice.proto | 2 + web/vtadmin/src/proto/vtadmin.d.ts | 39842 +++++++++++++++ web/vtadmin/src/proto/vtadmin.js | 41107 +++++++++------- 34 files changed, 69080 insertions(+), 20550 deletions(-) create mode 100644 go/cmd/vtctldclient/cli/tablets_test.go diff --git a/go/cmd/vtctldclient/cli/tablets.go b/go/cmd/vtctldclient/cli/tablets.go index a2962c42b45..efd729a16ce 100644 --- a/go/cmd/vtctldclient/cli/tablets.go +++ b/go/cmd/vtctldclient/cli/tablets.go @@ -17,9 +17,11 @@ limitations under the License. package cli import ( - "vitess.io/vitess/go/vt/topo/topoproto" + "fmt" + "strings" topodatapb "vitess.io/vitess/go/vt/proto/topodata" + "vitess.io/vitess/go/vt/topo/topoproto" ) // TabletAliasesFromPosArgs takes a list of positional (non-flag) arguments and @@ -38,3 +40,22 @@ func TabletAliasesFromPosArgs(args []string) ([]*topodatapb.TabletAlias, error) return aliases, nil } + +// TabletTagsFromPosArgs takes a list of positional (non-flag) arguements and +// converts them to a map of tablet tags. +func TabletTagsFromPosArgs(args []string) (map[string]string, error) { + if len(args) == 0 { + return nil, fmt.Errorf("no tablet tags specified") + } + + tags := make(map[string]string, len(args)) + for _, kvPair := range args { + if !strings.Contains(kvPair, "=") { + return nil, fmt.Errorf("invalid tablet tag %q specified. tablet tags must be specified in key=value format", kvPair) + } + fields := strings.SplitN(kvPair, "=", 2) + tags[fields[0]] = fields[1] + } + + return tags, nil +} diff --git a/go/cmd/vtctldclient/cli/tablets_test.go b/go/cmd/vtctldclient/cli/tablets_test.go new file mode 100644 index 00000000000..504cc0dc9f1 --- /dev/null +++ b/go/cmd/vtctldclient/cli/tablets_test.go @@ -0,0 +1,32 @@ +package cli + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestTabletTagsFromPosArgs(t *testing.T) { + t.Parallel() + + { + tags, err := TabletTagsFromPosArgs([]string{"fail"}) + assert.Error(t, err) + assert.Nil(t, tags) + } + { + tags, err := TabletTagsFromPosArgs([]string{"hello=world"}) + assert.NoError(t, err) + assert.Equal(t, map[string]string{ + "hello": "world", + }, tags) + } + { + tags, err := TabletTagsFromPosArgs([]string{"hello=world", "test=123"}) + assert.NoError(t, err) + assert.Equal(t, map[string]string{ + "hello": "world", + "test": "123", + }, tags) + } +} diff --git a/go/cmd/vtctldclient/command/tablets.go b/go/cmd/vtctldclient/command/tablets.go index e17d911ba0d..11af21e451e 100644 --- a/go/cmd/vtctldclient/command/tablets.go +++ b/go/cmd/vtctldclient/command/tablets.go @@ -34,6 +34,17 @@ import ( ) var ( + // ChangeTabletTags makes a ChangeTabletTags gRPC call to a vtctld. + ChangeTabletTags = &cobra.Command{ + Use: "ChangeTabletTags [ ... ]", + Short: "Changes the tablet tags for the specified tablet, if possible.", + Long: `Changes the tablet tags for the specified tablet, if possible. + +Tags must be specified as key=value pairs.`, + DisableFlagsInUseLine: true, + Args: cobra.MinimumNArgs(2), + RunE: commandChangeTabletTags, + } // ChangeTabletType makes a ChangeTabletType gRPC call to a vtctld. ChangeTabletType = &cobra.Command{ Use: "ChangeTabletType [--dry-run] ", @@ -208,6 +219,40 @@ Note that, in the SleepTablet implementation, the value should be positively-sig } ) +var changeTabletTagsOptions = struct { + Replace bool +}{} + +func commandChangeTabletTags(cmd *cobra.Command, args []string) error { + allArgs := cmd.Flags().Args() + + alias, err := topoproto.ParseTabletAlias(allArgs[0]) + if err != nil { + return err + } + + tags, err := cli.TabletTagsFromPosArgs(allArgs[1:]) + if err != nil { + return err + } + + cli.FinishedParsing(cmd) + + resp, err := client.ChangeTabletTags(commandCtx, &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: alias, + Tags: tags, + Replace: changeTabletTagsOptions.Replace, + }) + if err != nil { + return err + } + + fmt.Printf("- %v\n", cli.MarshalMapAWK(resp.BeforeTags)) + fmt.Printf("+ %v\n", cli.MarshalMapAWK(resp.AfterTags)) + + return nil +} + var changeTabletTypeOptions = struct { DryRun bool }{} @@ -621,6 +666,9 @@ func commandStopReplication(cmd *cobra.Command, args []string) error { } func init() { + ChangeTabletTags.Flags().BoolVarP(&changeTabletTagsOptions.Replace, "replace", "r", false, "Replace all tablet tags with the tags provided. By default tags are merged/updated.") + Root.AddCommand(ChangeTabletTags) + ChangeTabletType.Flags().BoolVarP(&changeTabletTypeOptions.DryRun, "dry-run", "d", false, "Shows the proposed change without actually executing it.") Root.AddCommand(ChangeTabletType) diff --git a/go/flags/endtoend/vtctldclient.txt b/go/flags/endtoend/vtctldclient.txt index 54f2dd8de3f..626284893dd 100644 --- a/go/flags/endtoend/vtctldclient.txt +++ b/go/flags/endtoend/vtctldclient.txt @@ -13,6 +13,7 @@ Available Commands: ApplyVSchema Applies the VTGate routing schema to the provided keyspace. Shows the result after application. Backup Uses the BackupStorage service on the given tablet to create and store a new backup. BackupShard Finds the most up-to-date REPLICA, RDONLY, or SPARE tablet in the given shard and uses the BackupStorage service on that tablet to create and store a new backup. + ChangeTabletTags Changes the tablet tags for the specified tablet, if possible. ChangeTabletType Changes the db type for the specified tablet, if possible. CreateKeyspace Creates the specified keyspace in the topology. CreateShard Creates the specified shard in the topology. diff --git a/go/vt/proto/tabletmanagerdata/tabletmanagerdata.pb.go b/go/vt/proto/tabletmanagerdata/tabletmanagerdata.pb.go index f32eeee32c7..af667d51b16 100644 --- a/go/vt/proto/tabletmanagerdata/tabletmanagerdata.pb.go +++ b/go/vt/proto/tabletmanagerdata/tabletmanagerdata.pb.go @@ -5230,6 +5230,108 @@ func (x *VDiffOptions) GetReportOptions() *VDiffReportOptions { return nil } +type ChangeTagsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tags map[string]string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Replace bool `protobuf:"varint,2,opt,name=replace,proto3" json:"replace,omitempty"` +} + +func (x *ChangeTagsRequest) Reset() { + *x = ChangeTagsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_tabletmanagerdata_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTagsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTagsRequest) ProtoMessage() {} + +func (x *ChangeTagsRequest) ProtoReflect() protoreflect.Message { + mi := &file_tabletmanagerdata_proto_msgTypes[104] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeTagsRequest.ProtoReflect.Descriptor instead. +func (*ChangeTagsRequest) Descriptor() ([]byte, []int) { + return file_tabletmanagerdata_proto_rawDescGZIP(), []int{104} +} + +func (x *ChangeTagsRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ChangeTagsRequest) GetReplace() bool { + if x != nil { + return x.Replace + } + return false +} + +type ChangeTagsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tags map[string]string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ChangeTagsResponse) Reset() { + *x = ChangeTagsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_tabletmanagerdata_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTagsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTagsResponse) ProtoMessage() {} + +func (x *ChangeTagsResponse) ProtoReflect() protoreflect.Message { + mi := &file_tabletmanagerdata_proto_msgTypes[105] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeTagsResponse.ProtoReflect.Descriptor instead. +func (*ChangeTagsResponse) Descriptor() ([]byte, []int) { + return file_tabletmanagerdata_proto_rawDescGZIP(), []int{105} +} + +func (x *ChangeTagsResponse) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + var File_tabletmanagerdata_proto protoreflect.FileDescriptor var file_tabletmanagerdata_proto_rawDesc = []byte{ @@ -5767,10 +5869,31 @@ var file_tabletmanagerdata_proto_rawDesc = []byte{ 0x32, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, - 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xaa, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, + 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, + 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x30, 0x5a, 0x2e, 0x76, 0x69, 0x74, 0x65, + 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, + 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -5785,7 +5908,7 @@ func file_tabletmanagerdata_proto_rawDescGZIP() []byte { return file_tabletmanagerdata_proto_rawDescData } -var file_tabletmanagerdata_proto_msgTypes = make([]protoimpl.MessageInfo, 107) +var file_tabletmanagerdata_proto_msgTypes = make([]protoimpl.MessageInfo, 111) var file_tabletmanagerdata_proto_goTypes = []interface{}{ (*TableDefinition)(nil), // 0: tabletmanagerdata.TableDefinition (*SchemaDefinition)(nil), // 1: tabletmanagerdata.SchemaDefinition @@ -5891,70 +6014,76 @@ var file_tabletmanagerdata_proto_goTypes = []interface{}{ (*VDiffReportOptions)(nil), // 101: tabletmanagerdata.VDiffReportOptions (*VDiffCoreOptions)(nil), // 102: tabletmanagerdata.VDiffCoreOptions (*VDiffOptions)(nil), // 103: tabletmanagerdata.VDiffOptions - nil, // 104: tabletmanagerdata.UserPermission.PrivilegesEntry - nil, // 105: tabletmanagerdata.DbPermission.PrivilegesEntry - nil, // 106: tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry - (*query.Field)(nil), // 107: query.Field - (topodata.TabletType)(0), // 108: topodata.TabletType - (*vtrpc.CallerID)(nil), // 109: vtrpc.CallerID - (*query.QueryResult)(nil), // 110: query.QueryResult - (*replicationdata.Status)(nil), // 111: replicationdata.Status - (*replicationdata.PrimaryStatus)(nil), // 112: replicationdata.PrimaryStatus - (*topodata.TabletAlias)(nil), // 113: topodata.TabletAlias - (*replicationdata.FullStatus)(nil), // 114: replicationdata.FullStatus - (replicationdata.StopReplicationMode)(0), // 115: replicationdata.StopReplicationMode - (*replicationdata.StopReplicationStatus)(nil), // 116: replicationdata.StopReplicationStatus - (*logutil.Event)(nil), // 117: logutil.Event - (*vttime.Time)(nil), // 118: vttime.Time + (*ChangeTagsRequest)(nil), // 104: tabletmanagerdata.ChangeTagsRequest + (*ChangeTagsResponse)(nil), // 105: tabletmanagerdata.ChangeTagsResponse + nil, // 106: tabletmanagerdata.UserPermission.PrivilegesEntry + nil, // 107: tabletmanagerdata.DbPermission.PrivilegesEntry + nil, // 108: tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry + nil, // 109: tabletmanagerdata.ChangeTagsRequest.TagsEntry + nil, // 110: tabletmanagerdata.ChangeTagsResponse.TagsEntry + (*query.Field)(nil), // 111: query.Field + (topodata.TabletType)(0), // 112: topodata.TabletType + (*vtrpc.CallerID)(nil), // 113: vtrpc.CallerID + (*query.QueryResult)(nil), // 114: query.QueryResult + (*replicationdata.Status)(nil), // 115: replicationdata.Status + (*replicationdata.PrimaryStatus)(nil), // 116: replicationdata.PrimaryStatus + (*topodata.TabletAlias)(nil), // 117: topodata.TabletAlias + (*replicationdata.FullStatus)(nil), // 118: replicationdata.FullStatus + (replicationdata.StopReplicationMode)(0), // 119: replicationdata.StopReplicationMode + (*replicationdata.StopReplicationStatus)(nil), // 120: replicationdata.StopReplicationStatus + (*logutil.Event)(nil), // 121: logutil.Event + (*vttime.Time)(nil), // 122: vttime.Time } var file_tabletmanagerdata_proto_depIdxs = []int32{ - 107, // 0: tabletmanagerdata.TableDefinition.fields:type_name -> query.Field + 111, // 0: tabletmanagerdata.TableDefinition.fields:type_name -> query.Field 0, // 1: tabletmanagerdata.SchemaDefinition.table_definitions:type_name -> tabletmanagerdata.TableDefinition 1, // 2: tabletmanagerdata.SchemaChangeResult.before_schema:type_name -> tabletmanagerdata.SchemaDefinition 1, // 3: tabletmanagerdata.SchemaChangeResult.after_schema:type_name -> tabletmanagerdata.SchemaDefinition - 104, // 4: tabletmanagerdata.UserPermission.privileges:type_name -> tabletmanagerdata.UserPermission.PrivilegesEntry - 105, // 5: tabletmanagerdata.DbPermission.privileges:type_name -> tabletmanagerdata.DbPermission.PrivilegesEntry + 106, // 4: tabletmanagerdata.UserPermission.privileges:type_name -> tabletmanagerdata.UserPermission.PrivilegesEntry + 107, // 5: tabletmanagerdata.DbPermission.privileges:type_name -> tabletmanagerdata.DbPermission.PrivilegesEntry 3, // 6: tabletmanagerdata.Permissions.user_permissions:type_name -> tabletmanagerdata.UserPermission 4, // 7: tabletmanagerdata.Permissions.db_permissions:type_name -> tabletmanagerdata.DbPermission - 106, // 8: tabletmanagerdata.ExecuteHookRequest.extra_env:type_name -> tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry + 108, // 8: tabletmanagerdata.ExecuteHookRequest.extra_env:type_name -> tabletmanagerdata.ExecuteHookRequest.ExtraEnvEntry 1, // 9: tabletmanagerdata.GetSchemaResponse.schema_definition:type_name -> tabletmanagerdata.SchemaDefinition 5, // 10: tabletmanagerdata.GetPermissionsResponse.permissions:type_name -> tabletmanagerdata.Permissions - 108, // 11: tabletmanagerdata.ChangeTypeRequest.tablet_type:type_name -> topodata.TabletType + 112, // 11: tabletmanagerdata.ChangeTypeRequest.tablet_type:type_name -> topodata.TabletType 2, // 12: tabletmanagerdata.PreflightSchemaResponse.change_results:type_name -> tabletmanagerdata.SchemaChangeResult 1, // 13: tabletmanagerdata.ApplySchemaRequest.before_schema:type_name -> tabletmanagerdata.SchemaDefinition 1, // 14: tabletmanagerdata.ApplySchemaRequest.after_schema:type_name -> tabletmanagerdata.SchemaDefinition 1, // 15: tabletmanagerdata.ApplySchemaResponse.before_schema:type_name -> tabletmanagerdata.SchemaDefinition 1, // 16: tabletmanagerdata.ApplySchemaResponse.after_schema:type_name -> tabletmanagerdata.SchemaDefinition - 109, // 17: tabletmanagerdata.ExecuteQueryRequest.caller_id:type_name -> vtrpc.CallerID - 110, // 18: tabletmanagerdata.ExecuteQueryResponse.result:type_name -> query.QueryResult - 110, // 19: tabletmanagerdata.ExecuteFetchAsDbaResponse.result:type_name -> query.QueryResult - 110, // 20: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.result:type_name -> query.QueryResult - 110, // 21: tabletmanagerdata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult - 111, // 22: tabletmanagerdata.ReplicationStatusResponse.status:type_name -> replicationdata.Status - 112, // 23: tabletmanagerdata.PrimaryStatusResponse.status:type_name -> replicationdata.PrimaryStatus - 110, // 24: tabletmanagerdata.VReplicationExecResponse.result:type_name -> query.QueryResult - 113, // 25: tabletmanagerdata.PopulateReparentJournalRequest.primary_alias:type_name -> topodata.TabletAlias - 113, // 26: tabletmanagerdata.InitReplicaRequest.parent:type_name -> topodata.TabletAlias - 112, // 27: tabletmanagerdata.DemotePrimaryResponse.primary_status:type_name -> replicationdata.PrimaryStatus - 114, // 28: tabletmanagerdata.FullStatusResponse.status:type_name -> replicationdata.FullStatus - 113, // 29: tabletmanagerdata.SetReplicationSourceRequest.parent:type_name -> topodata.TabletAlias - 113, // 30: tabletmanagerdata.ReplicaWasRestartedRequest.parent:type_name -> topodata.TabletAlias - 115, // 31: tabletmanagerdata.StopReplicationAndGetStatusRequest.stop_replication_mode:type_name -> replicationdata.StopReplicationMode - 116, // 32: tabletmanagerdata.StopReplicationAndGetStatusResponse.status:type_name -> replicationdata.StopReplicationStatus - 117, // 33: tabletmanagerdata.BackupResponse.event:type_name -> logutil.Event - 118, // 34: tabletmanagerdata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time - 117, // 35: tabletmanagerdata.RestoreFromBackupResponse.event:type_name -> logutil.Event - 110, // 36: tabletmanagerdata.VExecResponse.result:type_name -> query.QueryResult + 113, // 17: tabletmanagerdata.ExecuteQueryRequest.caller_id:type_name -> vtrpc.CallerID + 114, // 18: tabletmanagerdata.ExecuteQueryResponse.result:type_name -> query.QueryResult + 114, // 19: tabletmanagerdata.ExecuteFetchAsDbaResponse.result:type_name -> query.QueryResult + 114, // 20: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse.result:type_name -> query.QueryResult + 114, // 21: tabletmanagerdata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult + 115, // 22: tabletmanagerdata.ReplicationStatusResponse.status:type_name -> replicationdata.Status + 116, // 23: tabletmanagerdata.PrimaryStatusResponse.status:type_name -> replicationdata.PrimaryStatus + 114, // 24: tabletmanagerdata.VReplicationExecResponse.result:type_name -> query.QueryResult + 117, // 25: tabletmanagerdata.PopulateReparentJournalRequest.primary_alias:type_name -> topodata.TabletAlias + 117, // 26: tabletmanagerdata.InitReplicaRequest.parent:type_name -> topodata.TabletAlias + 116, // 27: tabletmanagerdata.DemotePrimaryResponse.primary_status:type_name -> replicationdata.PrimaryStatus + 118, // 28: tabletmanagerdata.FullStatusResponse.status:type_name -> replicationdata.FullStatus + 117, // 29: tabletmanagerdata.SetReplicationSourceRequest.parent:type_name -> topodata.TabletAlias + 117, // 30: tabletmanagerdata.ReplicaWasRestartedRequest.parent:type_name -> topodata.TabletAlias + 119, // 31: tabletmanagerdata.StopReplicationAndGetStatusRequest.stop_replication_mode:type_name -> replicationdata.StopReplicationMode + 120, // 32: tabletmanagerdata.StopReplicationAndGetStatusResponse.status:type_name -> replicationdata.StopReplicationStatus + 121, // 33: tabletmanagerdata.BackupResponse.event:type_name -> logutil.Event + 122, // 34: tabletmanagerdata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time + 121, // 35: tabletmanagerdata.RestoreFromBackupResponse.event:type_name -> logutil.Event + 114, // 36: tabletmanagerdata.VExecResponse.result:type_name -> query.QueryResult 103, // 37: tabletmanagerdata.VDiffRequest.options:type_name -> tabletmanagerdata.VDiffOptions - 110, // 38: tabletmanagerdata.VDiffResponse.output:type_name -> query.QueryResult + 114, // 38: tabletmanagerdata.VDiffResponse.output:type_name -> query.QueryResult 100, // 39: tabletmanagerdata.VDiffOptions.picker_options:type_name -> tabletmanagerdata.VDiffPickerOptions 102, // 40: tabletmanagerdata.VDiffOptions.core_options:type_name -> tabletmanagerdata.VDiffCoreOptions 101, // 41: tabletmanagerdata.VDiffOptions.report_options:type_name -> tabletmanagerdata.VDiffReportOptions - 42, // [42:42] is the sub-list for method output_type - 42, // [42:42] is the sub-list for method input_type - 42, // [42:42] is the sub-list for extension type_name - 42, // [42:42] is the sub-list for extension extendee - 0, // [0:42] is the sub-list for field type_name + 109, // 42: tabletmanagerdata.ChangeTagsRequest.tags:type_name -> tabletmanagerdata.ChangeTagsRequest.TagsEntry + 110, // 43: tabletmanagerdata.ChangeTagsResponse.tags:type_name -> tabletmanagerdata.ChangeTagsResponse.TagsEntry + 44, // [44:44] is the sub-list for method output_type + 44, // [44:44] is the sub-list for method input_type + 44, // [44:44] is the sub-list for extension type_name + 44, // [44:44] is the sub-list for extension extendee + 0, // [0:44] is the sub-list for field type_name } func init() { file_tabletmanagerdata_proto_init() } @@ -7211,6 +7340,30 @@ func file_tabletmanagerdata_proto_init() { return nil } } + file_tabletmanagerdata_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeTagsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_tabletmanagerdata_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeTagsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -7218,7 +7371,7 @@ func file_tabletmanagerdata_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tabletmanagerdata_proto_rawDesc, NumEnums: 0, - NumMessages: 107, + NumMessages: 111, NumExtensions: 0, NumServices: 0, }, diff --git a/go/vt/proto/tabletmanagerdata/tabletmanagerdata_vtproto.pb.go b/go/vt/proto/tabletmanagerdata/tabletmanagerdata_vtproto.pb.go index 839d519ebc9..7ab6533f6bd 100644 --- a/go/vt/proto/tabletmanagerdata/tabletmanagerdata_vtproto.pb.go +++ b/go/vt/proto/tabletmanagerdata/tabletmanagerdata_vtproto.pb.go @@ -4635,6 +4635,120 @@ func (m *VDiffOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ChangeTagsRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ChangeTagsRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ChangeTagsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Replace { + i-- + if m.Replace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Tags) > 0 { + for k := range m.Tags { + v := m.Tags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ChangeTagsResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ChangeTagsResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ChangeTagsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Tags) > 0 { + for k := range m.Tags { + v := m.Tags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarint(dAtA []byte, offset int, v uint64) int { offset -= sov(v) base := offset @@ -6455,6 +6569,49 @@ func (m *VDiffOptions) SizeVT() (n int) { return n } +func (m *ChangeTagsRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.Replace { + n += 2 + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *ChangeTagsResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + func sov(x uint64) (n int) { return (bits.Len64(x|1) + 6) / 7 } @@ -16201,6 +16358,382 @@ func (m *VDiffOptions) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *ChangeTagsRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ChangeTagsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ChangeTagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tags == nil { + m.Tags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Replace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ChangeTagsResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ChangeTagsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ChangeTagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tags == nil { + m.Tags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skip(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/go/vt/proto/tabletmanagerservice/tabletmanagerservice.pb.go b/go/vt/proto/tabletmanagerservice/tabletmanagerservice.pb.go index 70af0d0ca16..2d32aedce2d 100644 --- a/go/vt/proto/tabletmanagerservice/tabletmanagerservice.pb.go +++ b/go/vt/proto/tabletmanagerservice/tabletmanagerservice.pb.go @@ -45,7 +45,7 @@ var file_tabletmanagerservice_proto_rawDesc = []byte{ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x17, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x94, 0x27, 0x0a, 0x0d, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xf1, 0x27, 0x0a, 0x0d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, @@ -87,282 +87,288 @@ var file_tabletmanagerservice_proto_rawDesc = []byte{ 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x52, 0x65, 0x66, - 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x0e, - 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x28, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x75, 0x6e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x67, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x66, - 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x2e, 0x74, 0x61, + 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x0e, 0x52, 0x75, 0x6e, + 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x50, 0x72, 0x65, 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x6c, - 0x69, 0x67, 0x68, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x6f, 0x63, + 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, + 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, + 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x66, 0x6c, 0x69, 0x67, + 0x68, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, + 0x66, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x6c, 0x69, 0x67, 0x68, + 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, + 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, + 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x26, + 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x73, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x6e, - 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x62, 0x61, 0x12, 0x2b, 0x2e, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, - 0x62, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, + 0x00, 0x12, 0x61, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x62, 0x61, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x62, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x6c, 0x6c, 0x50, 0x72, - 0x69, 0x76, 0x73, 0x12, 0x30, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, - 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x69, 0x76, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x62, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x69, 0x76, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x12, - 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, - 0x41, 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, + 0x12, 0x30, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x41, 0x73, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x69, 0x76, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, + 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x6c, 0x6c, 0x50, 0x72, 0x69, 0x76, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, - 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, - 0x0a, 0x0d, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x50, - 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x50, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x6a, 0x0a, 0x0f, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, - 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0f, - 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0d, 0x50, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x2e, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x6a, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x50, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, + 0x0f, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6a, 0x0a, 0x0f, 0x53, 0x74, 0x6f, + 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x12, + 0x30, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x61, 0x62, + 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x53, 0x74, 0x6f, 0x70, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, - 0x75, 0x6d, 0x12, 0x30, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x74, - 0x69, 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x34, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x74, 0x69, - 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x41, + 0x66, 0x74, 0x65, 0x72, 0x12, 0x34, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x41, 0x66, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, + 0x6e, 0x74, 0x69, 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x12, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x12, 0x30, 0x2e, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x69, + 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, + 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, + 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x05, 0x56, 0x44, 0x69, 0x66, 0x66, 0x12, 0x1f, 0x2e, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, + 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5e, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x50, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x82, 0x01, 0x0a, 0x17, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x12, 0x2a, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7f, 0x0a, 0x16, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x12, - 0x30, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, 0x72, 0x50, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x05, 0x56, 0x44, 0x69, 0x66, 0x66, 0x12, - 0x1f, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x20, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x44, 0x69, 0x66, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x6d, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, - 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, - 0x69, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, 0x0a, 0x17, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x12, - 0x31, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x2e, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, - 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0d, 0x44, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, - 0x0a, 0x11, 0x55, 0x6e, 0x64, 0x6f, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x6e, 0x64, 0x6f, 0x44, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x12, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0d, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6d, 0x6f, 0x74, + 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x11, 0x55, + 0x6e, 0x64, 0x6f, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, + 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x6e, 0x64, 0x6f, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x73, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x50, 0x72, - 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x57, 0x61, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x57, 0x61, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x34, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, - 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0a, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x79, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x13, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x65, 0x64, 0x12, 0x2d, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, - 0x73, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, - 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x8e, 0x01, 0x0a, 0x1b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x35, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, - 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x12, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, - 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x29, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, - 0x06, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, - 0x12, 0x72, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x30, 0x01, 0x12, 0x4c, 0x0a, 0x05, 0x56, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1f, 0x2e, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x61, 0x2e, 0x55, 0x6e, 0x64, 0x6f, 0x44, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x72, 0x69, 0x6d, + 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x73, 0x0a, + 0x12, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x6f, + 0x74, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, + 0x61, 0x73, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, + 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x34, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5b, 0x0a, 0x0a, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x56, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, - 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x79, 0x0a, + 0x14, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, + 0x2d, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x52, 0x65, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, + 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x57, 0x61, 0x73, 0x52, 0x65, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x8e, 0x01, 0x0a, 0x1b, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x35, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6e, 0x64, 0x47, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x67, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x12, 0x28, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x06, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x72, 0x0a, + 0x11, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x12, 0x2b, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, + 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x4c, 0x0a, 0x05, 0x56, 0x45, 0x78, 0x65, 0x63, 0x12, 0x1f, 0x2e, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, + 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, + 0x33, 0x5a, 0x31, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, + 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_tabletmanagerservice_proto_goTypes = []interface{}{ @@ -373,93 +379,95 @@ var file_tabletmanagerservice_proto_goTypes = []interface{}{ (*tabletmanagerdata.GetPermissionsRequest)(nil), // 4: tabletmanagerdata.GetPermissionsRequest (*tabletmanagerdata.SetReadOnlyRequest)(nil), // 5: tabletmanagerdata.SetReadOnlyRequest (*tabletmanagerdata.SetReadWriteRequest)(nil), // 6: tabletmanagerdata.SetReadWriteRequest - (*tabletmanagerdata.ChangeTypeRequest)(nil), // 7: tabletmanagerdata.ChangeTypeRequest - (*tabletmanagerdata.RefreshStateRequest)(nil), // 8: tabletmanagerdata.RefreshStateRequest - (*tabletmanagerdata.RunHealthCheckRequest)(nil), // 9: tabletmanagerdata.RunHealthCheckRequest - (*tabletmanagerdata.ReloadSchemaRequest)(nil), // 10: tabletmanagerdata.ReloadSchemaRequest - (*tabletmanagerdata.PreflightSchemaRequest)(nil), // 11: tabletmanagerdata.PreflightSchemaRequest - (*tabletmanagerdata.ApplySchemaRequest)(nil), // 12: tabletmanagerdata.ApplySchemaRequest - (*tabletmanagerdata.LockTablesRequest)(nil), // 13: tabletmanagerdata.LockTablesRequest - (*tabletmanagerdata.UnlockTablesRequest)(nil), // 14: tabletmanagerdata.UnlockTablesRequest - (*tabletmanagerdata.ExecuteQueryRequest)(nil), // 15: tabletmanagerdata.ExecuteQueryRequest - (*tabletmanagerdata.ExecuteFetchAsDbaRequest)(nil), // 16: tabletmanagerdata.ExecuteFetchAsDbaRequest - (*tabletmanagerdata.ExecuteFetchAsAllPrivsRequest)(nil), // 17: tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - (*tabletmanagerdata.ExecuteFetchAsAppRequest)(nil), // 18: tabletmanagerdata.ExecuteFetchAsAppRequest - (*tabletmanagerdata.ReplicationStatusRequest)(nil), // 19: tabletmanagerdata.ReplicationStatusRequest - (*tabletmanagerdata.PrimaryStatusRequest)(nil), // 20: tabletmanagerdata.PrimaryStatusRequest - (*tabletmanagerdata.PrimaryPositionRequest)(nil), // 21: tabletmanagerdata.PrimaryPositionRequest - (*tabletmanagerdata.WaitForPositionRequest)(nil), // 22: tabletmanagerdata.WaitForPositionRequest - (*tabletmanagerdata.StopReplicationRequest)(nil), // 23: tabletmanagerdata.StopReplicationRequest - (*tabletmanagerdata.StopReplicationMinimumRequest)(nil), // 24: tabletmanagerdata.StopReplicationMinimumRequest - (*tabletmanagerdata.StartReplicationRequest)(nil), // 25: tabletmanagerdata.StartReplicationRequest - (*tabletmanagerdata.StartReplicationUntilAfterRequest)(nil), // 26: tabletmanagerdata.StartReplicationUntilAfterRequest - (*tabletmanagerdata.GetReplicasRequest)(nil), // 27: tabletmanagerdata.GetReplicasRequest - (*tabletmanagerdata.VReplicationExecRequest)(nil), // 28: tabletmanagerdata.VReplicationExecRequest - (*tabletmanagerdata.VReplicationWaitForPosRequest)(nil), // 29: tabletmanagerdata.VReplicationWaitForPosRequest - (*tabletmanagerdata.VDiffRequest)(nil), // 30: tabletmanagerdata.VDiffRequest - (*tabletmanagerdata.ResetReplicationRequest)(nil), // 31: tabletmanagerdata.ResetReplicationRequest - (*tabletmanagerdata.InitPrimaryRequest)(nil), // 32: tabletmanagerdata.InitPrimaryRequest - (*tabletmanagerdata.PopulateReparentJournalRequest)(nil), // 33: tabletmanagerdata.PopulateReparentJournalRequest - (*tabletmanagerdata.InitReplicaRequest)(nil), // 34: tabletmanagerdata.InitReplicaRequest - (*tabletmanagerdata.DemotePrimaryRequest)(nil), // 35: tabletmanagerdata.DemotePrimaryRequest - (*tabletmanagerdata.UndoDemotePrimaryRequest)(nil), // 36: tabletmanagerdata.UndoDemotePrimaryRequest - (*tabletmanagerdata.ReplicaWasPromotedRequest)(nil), // 37: tabletmanagerdata.ReplicaWasPromotedRequest - (*tabletmanagerdata.ResetReplicationParametersRequest)(nil), // 38: tabletmanagerdata.ResetReplicationParametersRequest - (*tabletmanagerdata.FullStatusRequest)(nil), // 39: tabletmanagerdata.FullStatusRequest - (*tabletmanagerdata.SetReplicationSourceRequest)(nil), // 40: tabletmanagerdata.SetReplicationSourceRequest - (*tabletmanagerdata.ReplicaWasRestartedRequest)(nil), // 41: tabletmanagerdata.ReplicaWasRestartedRequest - (*tabletmanagerdata.StopReplicationAndGetStatusRequest)(nil), // 42: tabletmanagerdata.StopReplicationAndGetStatusRequest - (*tabletmanagerdata.PromoteReplicaRequest)(nil), // 43: tabletmanagerdata.PromoteReplicaRequest - (*tabletmanagerdata.BackupRequest)(nil), // 44: tabletmanagerdata.BackupRequest - (*tabletmanagerdata.RestoreFromBackupRequest)(nil), // 45: tabletmanagerdata.RestoreFromBackupRequest - (*tabletmanagerdata.VExecRequest)(nil), // 46: tabletmanagerdata.VExecRequest - (*tabletmanagerdata.PingResponse)(nil), // 47: tabletmanagerdata.PingResponse - (*tabletmanagerdata.SleepResponse)(nil), // 48: tabletmanagerdata.SleepResponse - (*tabletmanagerdata.ExecuteHookResponse)(nil), // 49: tabletmanagerdata.ExecuteHookResponse - (*tabletmanagerdata.GetSchemaResponse)(nil), // 50: tabletmanagerdata.GetSchemaResponse - (*tabletmanagerdata.GetPermissionsResponse)(nil), // 51: tabletmanagerdata.GetPermissionsResponse - (*tabletmanagerdata.SetReadOnlyResponse)(nil), // 52: tabletmanagerdata.SetReadOnlyResponse - (*tabletmanagerdata.SetReadWriteResponse)(nil), // 53: tabletmanagerdata.SetReadWriteResponse - (*tabletmanagerdata.ChangeTypeResponse)(nil), // 54: tabletmanagerdata.ChangeTypeResponse - (*tabletmanagerdata.RefreshStateResponse)(nil), // 55: tabletmanagerdata.RefreshStateResponse - (*tabletmanagerdata.RunHealthCheckResponse)(nil), // 56: tabletmanagerdata.RunHealthCheckResponse - (*tabletmanagerdata.ReloadSchemaResponse)(nil), // 57: tabletmanagerdata.ReloadSchemaResponse - (*tabletmanagerdata.PreflightSchemaResponse)(nil), // 58: tabletmanagerdata.PreflightSchemaResponse - (*tabletmanagerdata.ApplySchemaResponse)(nil), // 59: tabletmanagerdata.ApplySchemaResponse - (*tabletmanagerdata.LockTablesResponse)(nil), // 60: tabletmanagerdata.LockTablesResponse - (*tabletmanagerdata.UnlockTablesResponse)(nil), // 61: tabletmanagerdata.UnlockTablesResponse - (*tabletmanagerdata.ExecuteQueryResponse)(nil), // 62: tabletmanagerdata.ExecuteQueryResponse - (*tabletmanagerdata.ExecuteFetchAsDbaResponse)(nil), // 63: tabletmanagerdata.ExecuteFetchAsDbaResponse - (*tabletmanagerdata.ExecuteFetchAsAllPrivsResponse)(nil), // 64: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse - (*tabletmanagerdata.ExecuteFetchAsAppResponse)(nil), // 65: tabletmanagerdata.ExecuteFetchAsAppResponse - (*tabletmanagerdata.ReplicationStatusResponse)(nil), // 66: tabletmanagerdata.ReplicationStatusResponse - (*tabletmanagerdata.PrimaryStatusResponse)(nil), // 67: tabletmanagerdata.PrimaryStatusResponse - (*tabletmanagerdata.PrimaryPositionResponse)(nil), // 68: tabletmanagerdata.PrimaryPositionResponse - (*tabletmanagerdata.WaitForPositionResponse)(nil), // 69: tabletmanagerdata.WaitForPositionResponse - (*tabletmanagerdata.StopReplicationResponse)(nil), // 70: tabletmanagerdata.StopReplicationResponse - (*tabletmanagerdata.StopReplicationMinimumResponse)(nil), // 71: tabletmanagerdata.StopReplicationMinimumResponse - (*tabletmanagerdata.StartReplicationResponse)(nil), // 72: tabletmanagerdata.StartReplicationResponse - (*tabletmanagerdata.StartReplicationUntilAfterResponse)(nil), // 73: tabletmanagerdata.StartReplicationUntilAfterResponse - (*tabletmanagerdata.GetReplicasResponse)(nil), // 74: tabletmanagerdata.GetReplicasResponse - (*tabletmanagerdata.VReplicationExecResponse)(nil), // 75: tabletmanagerdata.VReplicationExecResponse - (*tabletmanagerdata.VReplicationWaitForPosResponse)(nil), // 76: tabletmanagerdata.VReplicationWaitForPosResponse - (*tabletmanagerdata.VDiffResponse)(nil), // 77: tabletmanagerdata.VDiffResponse - (*tabletmanagerdata.ResetReplicationResponse)(nil), // 78: tabletmanagerdata.ResetReplicationResponse - (*tabletmanagerdata.InitPrimaryResponse)(nil), // 79: tabletmanagerdata.InitPrimaryResponse - (*tabletmanagerdata.PopulateReparentJournalResponse)(nil), // 80: tabletmanagerdata.PopulateReparentJournalResponse - (*tabletmanagerdata.InitReplicaResponse)(nil), // 81: tabletmanagerdata.InitReplicaResponse - (*tabletmanagerdata.DemotePrimaryResponse)(nil), // 82: tabletmanagerdata.DemotePrimaryResponse - (*tabletmanagerdata.UndoDemotePrimaryResponse)(nil), // 83: tabletmanagerdata.UndoDemotePrimaryResponse - (*tabletmanagerdata.ReplicaWasPromotedResponse)(nil), // 84: tabletmanagerdata.ReplicaWasPromotedResponse - (*tabletmanagerdata.ResetReplicationParametersResponse)(nil), // 85: tabletmanagerdata.ResetReplicationParametersResponse - (*tabletmanagerdata.FullStatusResponse)(nil), // 86: tabletmanagerdata.FullStatusResponse - (*tabletmanagerdata.SetReplicationSourceResponse)(nil), // 87: tabletmanagerdata.SetReplicationSourceResponse - (*tabletmanagerdata.ReplicaWasRestartedResponse)(nil), // 88: tabletmanagerdata.ReplicaWasRestartedResponse - (*tabletmanagerdata.StopReplicationAndGetStatusResponse)(nil), // 89: tabletmanagerdata.StopReplicationAndGetStatusResponse - (*tabletmanagerdata.PromoteReplicaResponse)(nil), // 90: tabletmanagerdata.PromoteReplicaResponse - (*tabletmanagerdata.BackupResponse)(nil), // 91: tabletmanagerdata.BackupResponse - (*tabletmanagerdata.RestoreFromBackupResponse)(nil), // 92: tabletmanagerdata.RestoreFromBackupResponse - (*tabletmanagerdata.VExecResponse)(nil), // 93: tabletmanagerdata.VExecResponse + (*tabletmanagerdata.ChangeTagsRequest)(nil), // 7: tabletmanagerdata.ChangeTagsRequest + (*tabletmanagerdata.ChangeTypeRequest)(nil), // 8: tabletmanagerdata.ChangeTypeRequest + (*tabletmanagerdata.RefreshStateRequest)(nil), // 9: tabletmanagerdata.RefreshStateRequest + (*tabletmanagerdata.RunHealthCheckRequest)(nil), // 10: tabletmanagerdata.RunHealthCheckRequest + (*tabletmanagerdata.ReloadSchemaRequest)(nil), // 11: tabletmanagerdata.ReloadSchemaRequest + (*tabletmanagerdata.PreflightSchemaRequest)(nil), // 12: tabletmanagerdata.PreflightSchemaRequest + (*tabletmanagerdata.ApplySchemaRequest)(nil), // 13: tabletmanagerdata.ApplySchemaRequest + (*tabletmanagerdata.LockTablesRequest)(nil), // 14: tabletmanagerdata.LockTablesRequest + (*tabletmanagerdata.UnlockTablesRequest)(nil), // 15: tabletmanagerdata.UnlockTablesRequest + (*tabletmanagerdata.ExecuteQueryRequest)(nil), // 16: tabletmanagerdata.ExecuteQueryRequest + (*tabletmanagerdata.ExecuteFetchAsDbaRequest)(nil), // 17: tabletmanagerdata.ExecuteFetchAsDbaRequest + (*tabletmanagerdata.ExecuteFetchAsAllPrivsRequest)(nil), // 18: tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + (*tabletmanagerdata.ExecuteFetchAsAppRequest)(nil), // 19: tabletmanagerdata.ExecuteFetchAsAppRequest + (*tabletmanagerdata.ReplicationStatusRequest)(nil), // 20: tabletmanagerdata.ReplicationStatusRequest + (*tabletmanagerdata.PrimaryStatusRequest)(nil), // 21: tabletmanagerdata.PrimaryStatusRequest + (*tabletmanagerdata.PrimaryPositionRequest)(nil), // 22: tabletmanagerdata.PrimaryPositionRequest + (*tabletmanagerdata.WaitForPositionRequest)(nil), // 23: tabletmanagerdata.WaitForPositionRequest + (*tabletmanagerdata.StopReplicationRequest)(nil), // 24: tabletmanagerdata.StopReplicationRequest + (*tabletmanagerdata.StopReplicationMinimumRequest)(nil), // 25: tabletmanagerdata.StopReplicationMinimumRequest + (*tabletmanagerdata.StartReplicationRequest)(nil), // 26: tabletmanagerdata.StartReplicationRequest + (*tabletmanagerdata.StartReplicationUntilAfterRequest)(nil), // 27: tabletmanagerdata.StartReplicationUntilAfterRequest + (*tabletmanagerdata.GetReplicasRequest)(nil), // 28: tabletmanagerdata.GetReplicasRequest + (*tabletmanagerdata.VReplicationExecRequest)(nil), // 29: tabletmanagerdata.VReplicationExecRequest + (*tabletmanagerdata.VReplicationWaitForPosRequest)(nil), // 30: tabletmanagerdata.VReplicationWaitForPosRequest + (*tabletmanagerdata.VDiffRequest)(nil), // 31: tabletmanagerdata.VDiffRequest + (*tabletmanagerdata.ResetReplicationRequest)(nil), // 32: tabletmanagerdata.ResetReplicationRequest + (*tabletmanagerdata.InitPrimaryRequest)(nil), // 33: tabletmanagerdata.InitPrimaryRequest + (*tabletmanagerdata.PopulateReparentJournalRequest)(nil), // 34: tabletmanagerdata.PopulateReparentJournalRequest + (*tabletmanagerdata.InitReplicaRequest)(nil), // 35: tabletmanagerdata.InitReplicaRequest + (*tabletmanagerdata.DemotePrimaryRequest)(nil), // 36: tabletmanagerdata.DemotePrimaryRequest + (*tabletmanagerdata.UndoDemotePrimaryRequest)(nil), // 37: tabletmanagerdata.UndoDemotePrimaryRequest + (*tabletmanagerdata.ReplicaWasPromotedRequest)(nil), // 38: tabletmanagerdata.ReplicaWasPromotedRequest + (*tabletmanagerdata.ResetReplicationParametersRequest)(nil), // 39: tabletmanagerdata.ResetReplicationParametersRequest + (*tabletmanagerdata.FullStatusRequest)(nil), // 40: tabletmanagerdata.FullStatusRequest + (*tabletmanagerdata.SetReplicationSourceRequest)(nil), // 41: tabletmanagerdata.SetReplicationSourceRequest + (*tabletmanagerdata.ReplicaWasRestartedRequest)(nil), // 42: tabletmanagerdata.ReplicaWasRestartedRequest + (*tabletmanagerdata.StopReplicationAndGetStatusRequest)(nil), // 43: tabletmanagerdata.StopReplicationAndGetStatusRequest + (*tabletmanagerdata.PromoteReplicaRequest)(nil), // 44: tabletmanagerdata.PromoteReplicaRequest + (*tabletmanagerdata.BackupRequest)(nil), // 45: tabletmanagerdata.BackupRequest + (*tabletmanagerdata.RestoreFromBackupRequest)(nil), // 46: tabletmanagerdata.RestoreFromBackupRequest + (*tabletmanagerdata.VExecRequest)(nil), // 47: tabletmanagerdata.VExecRequest + (*tabletmanagerdata.PingResponse)(nil), // 48: tabletmanagerdata.PingResponse + (*tabletmanagerdata.SleepResponse)(nil), // 49: tabletmanagerdata.SleepResponse + (*tabletmanagerdata.ExecuteHookResponse)(nil), // 50: tabletmanagerdata.ExecuteHookResponse + (*tabletmanagerdata.GetSchemaResponse)(nil), // 51: tabletmanagerdata.GetSchemaResponse + (*tabletmanagerdata.GetPermissionsResponse)(nil), // 52: tabletmanagerdata.GetPermissionsResponse + (*tabletmanagerdata.SetReadOnlyResponse)(nil), // 53: tabletmanagerdata.SetReadOnlyResponse + (*tabletmanagerdata.SetReadWriteResponse)(nil), // 54: tabletmanagerdata.SetReadWriteResponse + (*tabletmanagerdata.ChangeTagsResponse)(nil), // 55: tabletmanagerdata.ChangeTagsResponse + (*tabletmanagerdata.ChangeTypeResponse)(nil), // 56: tabletmanagerdata.ChangeTypeResponse + (*tabletmanagerdata.RefreshStateResponse)(nil), // 57: tabletmanagerdata.RefreshStateResponse + (*tabletmanagerdata.RunHealthCheckResponse)(nil), // 58: tabletmanagerdata.RunHealthCheckResponse + (*tabletmanagerdata.ReloadSchemaResponse)(nil), // 59: tabletmanagerdata.ReloadSchemaResponse + (*tabletmanagerdata.PreflightSchemaResponse)(nil), // 60: tabletmanagerdata.PreflightSchemaResponse + (*tabletmanagerdata.ApplySchemaResponse)(nil), // 61: tabletmanagerdata.ApplySchemaResponse + (*tabletmanagerdata.LockTablesResponse)(nil), // 62: tabletmanagerdata.LockTablesResponse + (*tabletmanagerdata.UnlockTablesResponse)(nil), // 63: tabletmanagerdata.UnlockTablesResponse + (*tabletmanagerdata.ExecuteQueryResponse)(nil), // 64: tabletmanagerdata.ExecuteQueryResponse + (*tabletmanagerdata.ExecuteFetchAsDbaResponse)(nil), // 65: tabletmanagerdata.ExecuteFetchAsDbaResponse + (*tabletmanagerdata.ExecuteFetchAsAllPrivsResponse)(nil), // 66: tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + (*tabletmanagerdata.ExecuteFetchAsAppResponse)(nil), // 67: tabletmanagerdata.ExecuteFetchAsAppResponse + (*tabletmanagerdata.ReplicationStatusResponse)(nil), // 68: tabletmanagerdata.ReplicationStatusResponse + (*tabletmanagerdata.PrimaryStatusResponse)(nil), // 69: tabletmanagerdata.PrimaryStatusResponse + (*tabletmanagerdata.PrimaryPositionResponse)(nil), // 70: tabletmanagerdata.PrimaryPositionResponse + (*tabletmanagerdata.WaitForPositionResponse)(nil), // 71: tabletmanagerdata.WaitForPositionResponse + (*tabletmanagerdata.StopReplicationResponse)(nil), // 72: tabletmanagerdata.StopReplicationResponse + (*tabletmanagerdata.StopReplicationMinimumResponse)(nil), // 73: tabletmanagerdata.StopReplicationMinimumResponse + (*tabletmanagerdata.StartReplicationResponse)(nil), // 74: tabletmanagerdata.StartReplicationResponse + (*tabletmanagerdata.StartReplicationUntilAfterResponse)(nil), // 75: tabletmanagerdata.StartReplicationUntilAfterResponse + (*tabletmanagerdata.GetReplicasResponse)(nil), // 76: tabletmanagerdata.GetReplicasResponse + (*tabletmanagerdata.VReplicationExecResponse)(nil), // 77: tabletmanagerdata.VReplicationExecResponse + (*tabletmanagerdata.VReplicationWaitForPosResponse)(nil), // 78: tabletmanagerdata.VReplicationWaitForPosResponse + (*tabletmanagerdata.VDiffResponse)(nil), // 79: tabletmanagerdata.VDiffResponse + (*tabletmanagerdata.ResetReplicationResponse)(nil), // 80: tabletmanagerdata.ResetReplicationResponse + (*tabletmanagerdata.InitPrimaryResponse)(nil), // 81: tabletmanagerdata.InitPrimaryResponse + (*tabletmanagerdata.PopulateReparentJournalResponse)(nil), // 82: tabletmanagerdata.PopulateReparentJournalResponse + (*tabletmanagerdata.InitReplicaResponse)(nil), // 83: tabletmanagerdata.InitReplicaResponse + (*tabletmanagerdata.DemotePrimaryResponse)(nil), // 84: tabletmanagerdata.DemotePrimaryResponse + (*tabletmanagerdata.UndoDemotePrimaryResponse)(nil), // 85: tabletmanagerdata.UndoDemotePrimaryResponse + (*tabletmanagerdata.ReplicaWasPromotedResponse)(nil), // 86: tabletmanagerdata.ReplicaWasPromotedResponse + (*tabletmanagerdata.ResetReplicationParametersResponse)(nil), // 87: tabletmanagerdata.ResetReplicationParametersResponse + (*tabletmanagerdata.FullStatusResponse)(nil), // 88: tabletmanagerdata.FullStatusResponse + (*tabletmanagerdata.SetReplicationSourceResponse)(nil), // 89: tabletmanagerdata.SetReplicationSourceResponse + (*tabletmanagerdata.ReplicaWasRestartedResponse)(nil), // 90: tabletmanagerdata.ReplicaWasRestartedResponse + (*tabletmanagerdata.StopReplicationAndGetStatusResponse)(nil), // 91: tabletmanagerdata.StopReplicationAndGetStatusResponse + (*tabletmanagerdata.PromoteReplicaResponse)(nil), // 92: tabletmanagerdata.PromoteReplicaResponse + (*tabletmanagerdata.BackupResponse)(nil), // 93: tabletmanagerdata.BackupResponse + (*tabletmanagerdata.RestoreFromBackupResponse)(nil), // 94: tabletmanagerdata.RestoreFromBackupResponse + (*tabletmanagerdata.VExecResponse)(nil), // 95: tabletmanagerdata.VExecResponse } var file_tabletmanagerservice_proto_depIdxs = []int32{ 0, // 0: tabletmanagerservice.TabletManager.Ping:input_type -> tabletmanagerdata.PingRequest @@ -469,95 +477,97 @@ var file_tabletmanagerservice_proto_depIdxs = []int32{ 4, // 4: tabletmanagerservice.TabletManager.GetPermissions:input_type -> tabletmanagerdata.GetPermissionsRequest 5, // 5: tabletmanagerservice.TabletManager.SetReadOnly:input_type -> tabletmanagerdata.SetReadOnlyRequest 6, // 6: tabletmanagerservice.TabletManager.SetReadWrite:input_type -> tabletmanagerdata.SetReadWriteRequest - 7, // 7: tabletmanagerservice.TabletManager.ChangeType:input_type -> tabletmanagerdata.ChangeTypeRequest - 8, // 8: tabletmanagerservice.TabletManager.RefreshState:input_type -> tabletmanagerdata.RefreshStateRequest - 9, // 9: tabletmanagerservice.TabletManager.RunHealthCheck:input_type -> tabletmanagerdata.RunHealthCheckRequest - 10, // 10: tabletmanagerservice.TabletManager.ReloadSchema:input_type -> tabletmanagerdata.ReloadSchemaRequest - 11, // 11: tabletmanagerservice.TabletManager.PreflightSchema:input_type -> tabletmanagerdata.PreflightSchemaRequest - 12, // 12: tabletmanagerservice.TabletManager.ApplySchema:input_type -> tabletmanagerdata.ApplySchemaRequest - 13, // 13: tabletmanagerservice.TabletManager.LockTables:input_type -> tabletmanagerdata.LockTablesRequest - 14, // 14: tabletmanagerservice.TabletManager.UnlockTables:input_type -> tabletmanagerdata.UnlockTablesRequest - 15, // 15: tabletmanagerservice.TabletManager.ExecuteQuery:input_type -> tabletmanagerdata.ExecuteQueryRequest - 16, // 16: tabletmanagerservice.TabletManager.ExecuteFetchAsDba:input_type -> tabletmanagerdata.ExecuteFetchAsDbaRequest - 17, // 17: tabletmanagerservice.TabletManager.ExecuteFetchAsAllPrivs:input_type -> tabletmanagerdata.ExecuteFetchAsAllPrivsRequest - 18, // 18: tabletmanagerservice.TabletManager.ExecuteFetchAsApp:input_type -> tabletmanagerdata.ExecuteFetchAsAppRequest - 19, // 19: tabletmanagerservice.TabletManager.ReplicationStatus:input_type -> tabletmanagerdata.ReplicationStatusRequest - 20, // 20: tabletmanagerservice.TabletManager.PrimaryStatus:input_type -> tabletmanagerdata.PrimaryStatusRequest - 21, // 21: tabletmanagerservice.TabletManager.PrimaryPosition:input_type -> tabletmanagerdata.PrimaryPositionRequest - 22, // 22: tabletmanagerservice.TabletManager.WaitForPosition:input_type -> tabletmanagerdata.WaitForPositionRequest - 23, // 23: tabletmanagerservice.TabletManager.StopReplication:input_type -> tabletmanagerdata.StopReplicationRequest - 24, // 24: tabletmanagerservice.TabletManager.StopReplicationMinimum:input_type -> tabletmanagerdata.StopReplicationMinimumRequest - 25, // 25: tabletmanagerservice.TabletManager.StartReplication:input_type -> tabletmanagerdata.StartReplicationRequest - 26, // 26: tabletmanagerservice.TabletManager.StartReplicationUntilAfter:input_type -> tabletmanagerdata.StartReplicationUntilAfterRequest - 27, // 27: tabletmanagerservice.TabletManager.GetReplicas:input_type -> tabletmanagerdata.GetReplicasRequest - 28, // 28: tabletmanagerservice.TabletManager.VReplicationExec:input_type -> tabletmanagerdata.VReplicationExecRequest - 29, // 29: tabletmanagerservice.TabletManager.VReplicationWaitForPos:input_type -> tabletmanagerdata.VReplicationWaitForPosRequest - 30, // 30: tabletmanagerservice.TabletManager.VDiff:input_type -> tabletmanagerdata.VDiffRequest - 31, // 31: tabletmanagerservice.TabletManager.ResetReplication:input_type -> tabletmanagerdata.ResetReplicationRequest - 32, // 32: tabletmanagerservice.TabletManager.InitPrimary:input_type -> tabletmanagerdata.InitPrimaryRequest - 33, // 33: tabletmanagerservice.TabletManager.PopulateReparentJournal:input_type -> tabletmanagerdata.PopulateReparentJournalRequest - 34, // 34: tabletmanagerservice.TabletManager.InitReplica:input_type -> tabletmanagerdata.InitReplicaRequest - 35, // 35: tabletmanagerservice.TabletManager.DemotePrimary:input_type -> tabletmanagerdata.DemotePrimaryRequest - 36, // 36: tabletmanagerservice.TabletManager.UndoDemotePrimary:input_type -> tabletmanagerdata.UndoDemotePrimaryRequest - 37, // 37: tabletmanagerservice.TabletManager.ReplicaWasPromoted:input_type -> tabletmanagerdata.ReplicaWasPromotedRequest - 38, // 38: tabletmanagerservice.TabletManager.ResetReplicationParameters:input_type -> tabletmanagerdata.ResetReplicationParametersRequest - 39, // 39: tabletmanagerservice.TabletManager.FullStatus:input_type -> tabletmanagerdata.FullStatusRequest - 40, // 40: tabletmanagerservice.TabletManager.SetReplicationSource:input_type -> tabletmanagerdata.SetReplicationSourceRequest - 41, // 41: tabletmanagerservice.TabletManager.ReplicaWasRestarted:input_type -> tabletmanagerdata.ReplicaWasRestartedRequest - 42, // 42: tabletmanagerservice.TabletManager.StopReplicationAndGetStatus:input_type -> tabletmanagerdata.StopReplicationAndGetStatusRequest - 43, // 43: tabletmanagerservice.TabletManager.PromoteReplica:input_type -> tabletmanagerdata.PromoteReplicaRequest - 44, // 44: tabletmanagerservice.TabletManager.Backup:input_type -> tabletmanagerdata.BackupRequest - 45, // 45: tabletmanagerservice.TabletManager.RestoreFromBackup:input_type -> tabletmanagerdata.RestoreFromBackupRequest - 46, // 46: tabletmanagerservice.TabletManager.VExec:input_type -> tabletmanagerdata.VExecRequest - 47, // 47: tabletmanagerservice.TabletManager.Ping:output_type -> tabletmanagerdata.PingResponse - 48, // 48: tabletmanagerservice.TabletManager.Sleep:output_type -> tabletmanagerdata.SleepResponse - 49, // 49: tabletmanagerservice.TabletManager.ExecuteHook:output_type -> tabletmanagerdata.ExecuteHookResponse - 50, // 50: tabletmanagerservice.TabletManager.GetSchema:output_type -> tabletmanagerdata.GetSchemaResponse - 51, // 51: tabletmanagerservice.TabletManager.GetPermissions:output_type -> tabletmanagerdata.GetPermissionsResponse - 52, // 52: tabletmanagerservice.TabletManager.SetReadOnly:output_type -> tabletmanagerdata.SetReadOnlyResponse - 53, // 53: tabletmanagerservice.TabletManager.SetReadWrite:output_type -> tabletmanagerdata.SetReadWriteResponse - 54, // 54: tabletmanagerservice.TabletManager.ChangeType:output_type -> tabletmanagerdata.ChangeTypeResponse - 55, // 55: tabletmanagerservice.TabletManager.RefreshState:output_type -> tabletmanagerdata.RefreshStateResponse - 56, // 56: tabletmanagerservice.TabletManager.RunHealthCheck:output_type -> tabletmanagerdata.RunHealthCheckResponse - 57, // 57: tabletmanagerservice.TabletManager.ReloadSchema:output_type -> tabletmanagerdata.ReloadSchemaResponse - 58, // 58: tabletmanagerservice.TabletManager.PreflightSchema:output_type -> tabletmanagerdata.PreflightSchemaResponse - 59, // 59: tabletmanagerservice.TabletManager.ApplySchema:output_type -> tabletmanagerdata.ApplySchemaResponse - 60, // 60: tabletmanagerservice.TabletManager.LockTables:output_type -> tabletmanagerdata.LockTablesResponse - 61, // 61: tabletmanagerservice.TabletManager.UnlockTables:output_type -> tabletmanagerdata.UnlockTablesResponse - 62, // 62: tabletmanagerservice.TabletManager.ExecuteQuery:output_type -> tabletmanagerdata.ExecuteQueryResponse - 63, // 63: tabletmanagerservice.TabletManager.ExecuteFetchAsDba:output_type -> tabletmanagerdata.ExecuteFetchAsDbaResponse - 64, // 64: tabletmanagerservice.TabletManager.ExecuteFetchAsAllPrivs:output_type -> tabletmanagerdata.ExecuteFetchAsAllPrivsResponse - 65, // 65: tabletmanagerservice.TabletManager.ExecuteFetchAsApp:output_type -> tabletmanagerdata.ExecuteFetchAsAppResponse - 66, // 66: tabletmanagerservice.TabletManager.ReplicationStatus:output_type -> tabletmanagerdata.ReplicationStatusResponse - 67, // 67: tabletmanagerservice.TabletManager.PrimaryStatus:output_type -> tabletmanagerdata.PrimaryStatusResponse - 68, // 68: tabletmanagerservice.TabletManager.PrimaryPosition:output_type -> tabletmanagerdata.PrimaryPositionResponse - 69, // 69: tabletmanagerservice.TabletManager.WaitForPosition:output_type -> tabletmanagerdata.WaitForPositionResponse - 70, // 70: tabletmanagerservice.TabletManager.StopReplication:output_type -> tabletmanagerdata.StopReplicationResponse - 71, // 71: tabletmanagerservice.TabletManager.StopReplicationMinimum:output_type -> tabletmanagerdata.StopReplicationMinimumResponse - 72, // 72: tabletmanagerservice.TabletManager.StartReplication:output_type -> tabletmanagerdata.StartReplicationResponse - 73, // 73: tabletmanagerservice.TabletManager.StartReplicationUntilAfter:output_type -> tabletmanagerdata.StartReplicationUntilAfterResponse - 74, // 74: tabletmanagerservice.TabletManager.GetReplicas:output_type -> tabletmanagerdata.GetReplicasResponse - 75, // 75: tabletmanagerservice.TabletManager.VReplicationExec:output_type -> tabletmanagerdata.VReplicationExecResponse - 76, // 76: tabletmanagerservice.TabletManager.VReplicationWaitForPos:output_type -> tabletmanagerdata.VReplicationWaitForPosResponse - 77, // 77: tabletmanagerservice.TabletManager.VDiff:output_type -> tabletmanagerdata.VDiffResponse - 78, // 78: tabletmanagerservice.TabletManager.ResetReplication:output_type -> tabletmanagerdata.ResetReplicationResponse - 79, // 79: tabletmanagerservice.TabletManager.InitPrimary:output_type -> tabletmanagerdata.InitPrimaryResponse - 80, // 80: tabletmanagerservice.TabletManager.PopulateReparentJournal:output_type -> tabletmanagerdata.PopulateReparentJournalResponse - 81, // 81: tabletmanagerservice.TabletManager.InitReplica:output_type -> tabletmanagerdata.InitReplicaResponse - 82, // 82: tabletmanagerservice.TabletManager.DemotePrimary:output_type -> tabletmanagerdata.DemotePrimaryResponse - 83, // 83: tabletmanagerservice.TabletManager.UndoDemotePrimary:output_type -> tabletmanagerdata.UndoDemotePrimaryResponse - 84, // 84: tabletmanagerservice.TabletManager.ReplicaWasPromoted:output_type -> tabletmanagerdata.ReplicaWasPromotedResponse - 85, // 85: tabletmanagerservice.TabletManager.ResetReplicationParameters:output_type -> tabletmanagerdata.ResetReplicationParametersResponse - 86, // 86: tabletmanagerservice.TabletManager.FullStatus:output_type -> tabletmanagerdata.FullStatusResponse - 87, // 87: tabletmanagerservice.TabletManager.SetReplicationSource:output_type -> tabletmanagerdata.SetReplicationSourceResponse - 88, // 88: tabletmanagerservice.TabletManager.ReplicaWasRestarted:output_type -> tabletmanagerdata.ReplicaWasRestartedResponse - 89, // 89: tabletmanagerservice.TabletManager.StopReplicationAndGetStatus:output_type -> tabletmanagerdata.StopReplicationAndGetStatusResponse - 90, // 90: tabletmanagerservice.TabletManager.PromoteReplica:output_type -> tabletmanagerdata.PromoteReplicaResponse - 91, // 91: tabletmanagerservice.TabletManager.Backup:output_type -> tabletmanagerdata.BackupResponse - 92, // 92: tabletmanagerservice.TabletManager.RestoreFromBackup:output_type -> tabletmanagerdata.RestoreFromBackupResponse - 93, // 93: tabletmanagerservice.TabletManager.VExec:output_type -> tabletmanagerdata.VExecResponse - 47, // [47:94] is the sub-list for method output_type - 0, // [0:47] is the sub-list for method input_type + 7, // 7: tabletmanagerservice.TabletManager.ChangeTags:input_type -> tabletmanagerdata.ChangeTagsRequest + 8, // 8: tabletmanagerservice.TabletManager.ChangeType:input_type -> tabletmanagerdata.ChangeTypeRequest + 9, // 9: tabletmanagerservice.TabletManager.RefreshState:input_type -> tabletmanagerdata.RefreshStateRequest + 10, // 10: tabletmanagerservice.TabletManager.RunHealthCheck:input_type -> tabletmanagerdata.RunHealthCheckRequest + 11, // 11: tabletmanagerservice.TabletManager.ReloadSchema:input_type -> tabletmanagerdata.ReloadSchemaRequest + 12, // 12: tabletmanagerservice.TabletManager.PreflightSchema:input_type -> tabletmanagerdata.PreflightSchemaRequest + 13, // 13: tabletmanagerservice.TabletManager.ApplySchema:input_type -> tabletmanagerdata.ApplySchemaRequest + 14, // 14: tabletmanagerservice.TabletManager.LockTables:input_type -> tabletmanagerdata.LockTablesRequest + 15, // 15: tabletmanagerservice.TabletManager.UnlockTables:input_type -> tabletmanagerdata.UnlockTablesRequest + 16, // 16: tabletmanagerservice.TabletManager.ExecuteQuery:input_type -> tabletmanagerdata.ExecuteQueryRequest + 17, // 17: tabletmanagerservice.TabletManager.ExecuteFetchAsDba:input_type -> tabletmanagerdata.ExecuteFetchAsDbaRequest + 18, // 18: tabletmanagerservice.TabletManager.ExecuteFetchAsAllPrivs:input_type -> tabletmanagerdata.ExecuteFetchAsAllPrivsRequest + 19, // 19: tabletmanagerservice.TabletManager.ExecuteFetchAsApp:input_type -> tabletmanagerdata.ExecuteFetchAsAppRequest + 20, // 20: tabletmanagerservice.TabletManager.ReplicationStatus:input_type -> tabletmanagerdata.ReplicationStatusRequest + 21, // 21: tabletmanagerservice.TabletManager.PrimaryStatus:input_type -> tabletmanagerdata.PrimaryStatusRequest + 22, // 22: tabletmanagerservice.TabletManager.PrimaryPosition:input_type -> tabletmanagerdata.PrimaryPositionRequest + 23, // 23: tabletmanagerservice.TabletManager.WaitForPosition:input_type -> tabletmanagerdata.WaitForPositionRequest + 24, // 24: tabletmanagerservice.TabletManager.StopReplication:input_type -> tabletmanagerdata.StopReplicationRequest + 25, // 25: tabletmanagerservice.TabletManager.StopReplicationMinimum:input_type -> tabletmanagerdata.StopReplicationMinimumRequest + 26, // 26: tabletmanagerservice.TabletManager.StartReplication:input_type -> tabletmanagerdata.StartReplicationRequest + 27, // 27: tabletmanagerservice.TabletManager.StartReplicationUntilAfter:input_type -> tabletmanagerdata.StartReplicationUntilAfterRequest + 28, // 28: tabletmanagerservice.TabletManager.GetReplicas:input_type -> tabletmanagerdata.GetReplicasRequest + 29, // 29: tabletmanagerservice.TabletManager.VReplicationExec:input_type -> tabletmanagerdata.VReplicationExecRequest + 30, // 30: tabletmanagerservice.TabletManager.VReplicationWaitForPos:input_type -> tabletmanagerdata.VReplicationWaitForPosRequest + 31, // 31: tabletmanagerservice.TabletManager.VDiff:input_type -> tabletmanagerdata.VDiffRequest + 32, // 32: tabletmanagerservice.TabletManager.ResetReplication:input_type -> tabletmanagerdata.ResetReplicationRequest + 33, // 33: tabletmanagerservice.TabletManager.InitPrimary:input_type -> tabletmanagerdata.InitPrimaryRequest + 34, // 34: tabletmanagerservice.TabletManager.PopulateReparentJournal:input_type -> tabletmanagerdata.PopulateReparentJournalRequest + 35, // 35: tabletmanagerservice.TabletManager.InitReplica:input_type -> tabletmanagerdata.InitReplicaRequest + 36, // 36: tabletmanagerservice.TabletManager.DemotePrimary:input_type -> tabletmanagerdata.DemotePrimaryRequest + 37, // 37: tabletmanagerservice.TabletManager.UndoDemotePrimary:input_type -> tabletmanagerdata.UndoDemotePrimaryRequest + 38, // 38: tabletmanagerservice.TabletManager.ReplicaWasPromoted:input_type -> tabletmanagerdata.ReplicaWasPromotedRequest + 39, // 39: tabletmanagerservice.TabletManager.ResetReplicationParameters:input_type -> tabletmanagerdata.ResetReplicationParametersRequest + 40, // 40: tabletmanagerservice.TabletManager.FullStatus:input_type -> tabletmanagerdata.FullStatusRequest + 41, // 41: tabletmanagerservice.TabletManager.SetReplicationSource:input_type -> tabletmanagerdata.SetReplicationSourceRequest + 42, // 42: tabletmanagerservice.TabletManager.ReplicaWasRestarted:input_type -> tabletmanagerdata.ReplicaWasRestartedRequest + 43, // 43: tabletmanagerservice.TabletManager.StopReplicationAndGetStatus:input_type -> tabletmanagerdata.StopReplicationAndGetStatusRequest + 44, // 44: tabletmanagerservice.TabletManager.PromoteReplica:input_type -> tabletmanagerdata.PromoteReplicaRequest + 45, // 45: tabletmanagerservice.TabletManager.Backup:input_type -> tabletmanagerdata.BackupRequest + 46, // 46: tabletmanagerservice.TabletManager.RestoreFromBackup:input_type -> tabletmanagerdata.RestoreFromBackupRequest + 47, // 47: tabletmanagerservice.TabletManager.VExec:input_type -> tabletmanagerdata.VExecRequest + 48, // 48: tabletmanagerservice.TabletManager.Ping:output_type -> tabletmanagerdata.PingResponse + 49, // 49: tabletmanagerservice.TabletManager.Sleep:output_type -> tabletmanagerdata.SleepResponse + 50, // 50: tabletmanagerservice.TabletManager.ExecuteHook:output_type -> tabletmanagerdata.ExecuteHookResponse + 51, // 51: tabletmanagerservice.TabletManager.GetSchema:output_type -> tabletmanagerdata.GetSchemaResponse + 52, // 52: tabletmanagerservice.TabletManager.GetPermissions:output_type -> tabletmanagerdata.GetPermissionsResponse + 53, // 53: tabletmanagerservice.TabletManager.SetReadOnly:output_type -> tabletmanagerdata.SetReadOnlyResponse + 54, // 54: tabletmanagerservice.TabletManager.SetReadWrite:output_type -> tabletmanagerdata.SetReadWriteResponse + 55, // 55: tabletmanagerservice.TabletManager.ChangeTags:output_type -> tabletmanagerdata.ChangeTagsResponse + 56, // 56: tabletmanagerservice.TabletManager.ChangeType:output_type -> tabletmanagerdata.ChangeTypeResponse + 57, // 57: tabletmanagerservice.TabletManager.RefreshState:output_type -> tabletmanagerdata.RefreshStateResponse + 58, // 58: tabletmanagerservice.TabletManager.RunHealthCheck:output_type -> tabletmanagerdata.RunHealthCheckResponse + 59, // 59: tabletmanagerservice.TabletManager.ReloadSchema:output_type -> tabletmanagerdata.ReloadSchemaResponse + 60, // 60: tabletmanagerservice.TabletManager.PreflightSchema:output_type -> tabletmanagerdata.PreflightSchemaResponse + 61, // 61: tabletmanagerservice.TabletManager.ApplySchema:output_type -> tabletmanagerdata.ApplySchemaResponse + 62, // 62: tabletmanagerservice.TabletManager.LockTables:output_type -> tabletmanagerdata.LockTablesResponse + 63, // 63: tabletmanagerservice.TabletManager.UnlockTables:output_type -> tabletmanagerdata.UnlockTablesResponse + 64, // 64: tabletmanagerservice.TabletManager.ExecuteQuery:output_type -> tabletmanagerdata.ExecuteQueryResponse + 65, // 65: tabletmanagerservice.TabletManager.ExecuteFetchAsDba:output_type -> tabletmanagerdata.ExecuteFetchAsDbaResponse + 66, // 66: tabletmanagerservice.TabletManager.ExecuteFetchAsAllPrivs:output_type -> tabletmanagerdata.ExecuteFetchAsAllPrivsResponse + 67, // 67: tabletmanagerservice.TabletManager.ExecuteFetchAsApp:output_type -> tabletmanagerdata.ExecuteFetchAsAppResponse + 68, // 68: tabletmanagerservice.TabletManager.ReplicationStatus:output_type -> tabletmanagerdata.ReplicationStatusResponse + 69, // 69: tabletmanagerservice.TabletManager.PrimaryStatus:output_type -> tabletmanagerdata.PrimaryStatusResponse + 70, // 70: tabletmanagerservice.TabletManager.PrimaryPosition:output_type -> tabletmanagerdata.PrimaryPositionResponse + 71, // 71: tabletmanagerservice.TabletManager.WaitForPosition:output_type -> tabletmanagerdata.WaitForPositionResponse + 72, // 72: tabletmanagerservice.TabletManager.StopReplication:output_type -> tabletmanagerdata.StopReplicationResponse + 73, // 73: tabletmanagerservice.TabletManager.StopReplicationMinimum:output_type -> tabletmanagerdata.StopReplicationMinimumResponse + 74, // 74: tabletmanagerservice.TabletManager.StartReplication:output_type -> tabletmanagerdata.StartReplicationResponse + 75, // 75: tabletmanagerservice.TabletManager.StartReplicationUntilAfter:output_type -> tabletmanagerdata.StartReplicationUntilAfterResponse + 76, // 76: tabletmanagerservice.TabletManager.GetReplicas:output_type -> tabletmanagerdata.GetReplicasResponse + 77, // 77: tabletmanagerservice.TabletManager.VReplicationExec:output_type -> tabletmanagerdata.VReplicationExecResponse + 78, // 78: tabletmanagerservice.TabletManager.VReplicationWaitForPos:output_type -> tabletmanagerdata.VReplicationWaitForPosResponse + 79, // 79: tabletmanagerservice.TabletManager.VDiff:output_type -> tabletmanagerdata.VDiffResponse + 80, // 80: tabletmanagerservice.TabletManager.ResetReplication:output_type -> tabletmanagerdata.ResetReplicationResponse + 81, // 81: tabletmanagerservice.TabletManager.InitPrimary:output_type -> tabletmanagerdata.InitPrimaryResponse + 82, // 82: tabletmanagerservice.TabletManager.PopulateReparentJournal:output_type -> tabletmanagerdata.PopulateReparentJournalResponse + 83, // 83: tabletmanagerservice.TabletManager.InitReplica:output_type -> tabletmanagerdata.InitReplicaResponse + 84, // 84: tabletmanagerservice.TabletManager.DemotePrimary:output_type -> tabletmanagerdata.DemotePrimaryResponse + 85, // 85: tabletmanagerservice.TabletManager.UndoDemotePrimary:output_type -> tabletmanagerdata.UndoDemotePrimaryResponse + 86, // 86: tabletmanagerservice.TabletManager.ReplicaWasPromoted:output_type -> tabletmanagerdata.ReplicaWasPromotedResponse + 87, // 87: tabletmanagerservice.TabletManager.ResetReplicationParameters:output_type -> tabletmanagerdata.ResetReplicationParametersResponse + 88, // 88: tabletmanagerservice.TabletManager.FullStatus:output_type -> tabletmanagerdata.FullStatusResponse + 89, // 89: tabletmanagerservice.TabletManager.SetReplicationSource:output_type -> tabletmanagerdata.SetReplicationSourceResponse + 90, // 90: tabletmanagerservice.TabletManager.ReplicaWasRestarted:output_type -> tabletmanagerdata.ReplicaWasRestartedResponse + 91, // 91: tabletmanagerservice.TabletManager.StopReplicationAndGetStatus:output_type -> tabletmanagerdata.StopReplicationAndGetStatusResponse + 92, // 92: tabletmanagerservice.TabletManager.PromoteReplica:output_type -> tabletmanagerdata.PromoteReplicaResponse + 93, // 93: tabletmanagerservice.TabletManager.Backup:output_type -> tabletmanagerdata.BackupResponse + 94, // 94: tabletmanagerservice.TabletManager.RestoreFromBackup:output_type -> tabletmanagerdata.RestoreFromBackupResponse + 95, // 95: tabletmanagerservice.TabletManager.VExec:output_type -> tabletmanagerdata.VExecResponse + 48, // [48:96] is the sub-list for method output_type + 0, // [0:48] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/go/vt/proto/tabletmanagerservice/tabletmanagerservice_grpc.pb.go b/go/vt/proto/tabletmanagerservice/tabletmanagerservice_grpc.pb.go index 10b11a9a5bc..6323137756b 100644 --- a/go/vt/proto/tabletmanagerservice/tabletmanagerservice_grpc.pb.go +++ b/go/vt/proto/tabletmanagerservice/tabletmanagerservice_grpc.pb.go @@ -35,6 +35,8 @@ type TabletManagerClient interface { GetPermissions(ctx context.Context, in *tabletmanagerdata.GetPermissionsRequest, opts ...grpc.CallOption) (*tabletmanagerdata.GetPermissionsResponse, error) SetReadOnly(ctx context.Context, in *tabletmanagerdata.SetReadOnlyRequest, opts ...grpc.CallOption) (*tabletmanagerdata.SetReadOnlyResponse, error) SetReadWrite(ctx context.Context, in *tabletmanagerdata.SetReadWriteRequest, opts ...grpc.CallOption) (*tabletmanagerdata.SetReadWriteResponse, error) + // ChangeTags asks the remote tablet to change its tags + ChangeTags(ctx context.Context, in *tabletmanagerdata.ChangeTagsRequest, opts ...grpc.CallOption) (*tabletmanagerdata.ChangeTagsResponse, error) // ChangeType asks the remote tablet to change its type ChangeType(ctx context.Context, in *tabletmanagerdata.ChangeTypeRequest, opts ...grpc.CallOption) (*tabletmanagerdata.ChangeTypeResponse, error) RefreshState(ctx context.Context, in *tabletmanagerdata.RefreshStateRequest, opts ...grpc.CallOption) (*tabletmanagerdata.RefreshStateResponse, error) @@ -179,6 +181,15 @@ func (c *tabletManagerClient) SetReadWrite(ctx context.Context, in *tabletmanage return out, nil } +func (c *tabletManagerClient) ChangeTags(ctx context.Context, in *tabletmanagerdata.ChangeTagsRequest, opts ...grpc.CallOption) (*tabletmanagerdata.ChangeTagsResponse, error) { + out := new(tabletmanagerdata.ChangeTagsResponse) + err := c.cc.Invoke(ctx, "/tabletmanagerservice.TabletManager/ChangeTags", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *tabletManagerClient) ChangeType(ctx context.Context, in *tabletmanagerdata.ChangeTypeRequest, opts ...grpc.CallOption) (*tabletmanagerdata.ChangeTypeResponse, error) { out := new(tabletmanagerdata.ChangeTypeResponse) err := c.cc.Invoke(ctx, "/tabletmanagerservice.TabletManager/ChangeType", in, out, opts...) @@ -601,6 +612,8 @@ type TabletManagerServer interface { GetPermissions(context.Context, *tabletmanagerdata.GetPermissionsRequest) (*tabletmanagerdata.GetPermissionsResponse, error) SetReadOnly(context.Context, *tabletmanagerdata.SetReadOnlyRequest) (*tabletmanagerdata.SetReadOnlyResponse, error) SetReadWrite(context.Context, *tabletmanagerdata.SetReadWriteRequest) (*tabletmanagerdata.SetReadWriteResponse, error) + // ChangeTags asks the remote tablet to change its tags + ChangeTags(context.Context, *tabletmanagerdata.ChangeTagsRequest) (*tabletmanagerdata.ChangeTagsResponse, error) // ChangeType asks the remote tablet to change its type ChangeType(context.Context, *tabletmanagerdata.ChangeTypeRequest) (*tabletmanagerdata.ChangeTypeResponse, error) RefreshState(context.Context, *tabletmanagerdata.RefreshStateRequest) (*tabletmanagerdata.RefreshStateResponse, error) @@ -700,6 +713,9 @@ func (UnimplementedTabletManagerServer) SetReadOnly(context.Context, *tabletmana func (UnimplementedTabletManagerServer) SetReadWrite(context.Context, *tabletmanagerdata.SetReadWriteRequest) (*tabletmanagerdata.SetReadWriteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetReadWrite not implemented") } +func (UnimplementedTabletManagerServer) ChangeTags(context.Context, *tabletmanagerdata.ChangeTagsRequest) (*tabletmanagerdata.ChangeTagsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeTags not implemented") +} func (UnimplementedTabletManagerServer) ChangeType(context.Context, *tabletmanagerdata.ChangeTypeRequest) (*tabletmanagerdata.ChangeTypeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeType not implemented") } @@ -959,6 +975,24 @@ func _TabletManager_SetReadWrite_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _TabletManager_ChangeTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(tabletmanagerdata.ChangeTagsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TabletManagerServer).ChangeTags(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tabletmanagerservice.TabletManager/ChangeTags", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TabletManagerServer).ChangeTags(ctx, req.(*tabletmanagerdata.ChangeTagsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TabletManager_ChangeType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(tabletmanagerdata.ChangeTypeRequest) if err := dec(in); err != nil { @@ -1720,6 +1754,10 @@ var TabletManager_ServiceDesc = grpc.ServiceDesc{ MethodName: "SetReadWrite", Handler: _TabletManager_SetReadWrite_Handler, }, + { + MethodName: "ChangeTags", + Handler: _TabletManager_ChangeTags_Handler, + }, { MethodName: "ChangeType", Handler: _TabletManager_ChangeType_Handler, diff --git a/go/vt/proto/vtctldata/vtctldata.pb.go b/go/vt/proto/vtctldata/vtctldata.pb.go index bee3b7c9dad..d0b5b2953ae 100644 --- a/go/vt/proto/vtctldata/vtctldata.pb.go +++ b/go/vt/proto/vtctldata/vtctldata.pb.go @@ -1537,6 +1537,124 @@ func (x *BackupShardRequest) GetConcurrency() uint64 { return 0 } +type ChangeTabletTagsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TabletAlias *topodata.TabletAlias `protobuf:"bytes,1,opt,name=tablet_alias,json=tabletAlias,proto3" json:"tablet_alias,omitempty"` + Tags map[string]string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Replace bool `protobuf:"varint,3,opt,name=replace,proto3" json:"replace,omitempty"` +} + +func (x *ChangeTabletTagsRequest) Reset() { + *x = ChangeTabletTagsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_vtctldata_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTabletTagsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTabletTagsRequest) ProtoMessage() {} + +func (x *ChangeTabletTagsRequest) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeTabletTagsRequest.ProtoReflect.Descriptor instead. +func (*ChangeTabletTagsRequest) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{22} +} + +func (x *ChangeTabletTagsRequest) GetTabletAlias() *topodata.TabletAlias { + if x != nil { + return x.TabletAlias + } + return nil +} + +func (x *ChangeTabletTagsRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ChangeTabletTagsRequest) GetReplace() bool { + if x != nil { + return x.Replace + } + return false +} + +type ChangeTabletTagsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BeforeTags map[string]string `protobuf:"bytes,1,rep,name=before_tags,json=beforeTags,proto3" json:"before_tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AfterTags map[string]string `protobuf:"bytes,2,rep,name=after_tags,json=afterTags,proto3" json:"after_tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ChangeTabletTagsResponse) Reset() { + *x = ChangeTabletTagsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_vtctldata_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeTabletTagsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeTabletTagsResponse) ProtoMessage() {} + +func (x *ChangeTabletTagsResponse) ProtoReflect() protoreflect.Message { + mi := &file_vtctldata_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangeTabletTagsResponse.ProtoReflect.Descriptor instead. +func (*ChangeTabletTagsResponse) Descriptor() ([]byte, []int) { + return file_vtctldata_proto_rawDescGZIP(), []int{23} +} + +func (x *ChangeTabletTagsResponse) GetBeforeTags() map[string]string { + if x != nil { + return x.BeforeTags + } + return nil +} + +func (x *ChangeTabletTagsResponse) GetAfterTags() map[string]string { + if x != nil { + return x.AfterTags + } + return nil +} + type ChangeTabletTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1550,7 +1668,7 @@ type ChangeTabletTypeRequest struct { func (x *ChangeTabletTypeRequest) Reset() { *x = ChangeTabletTypeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[22] + mi := &file_vtctldata_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1563,7 +1681,7 @@ func (x *ChangeTabletTypeRequest) String() string { func (*ChangeTabletTypeRequest) ProtoMessage() {} func (x *ChangeTabletTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[22] + mi := &file_vtctldata_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1576,7 +1694,7 @@ func (x *ChangeTabletTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeTabletTypeRequest.ProtoReflect.Descriptor instead. func (*ChangeTabletTypeRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{22} + return file_vtctldata_proto_rawDescGZIP(), []int{24} } func (x *ChangeTabletTypeRequest) GetTabletAlias() *topodata.TabletAlias { @@ -1613,7 +1731,7 @@ type ChangeTabletTypeResponse struct { func (x *ChangeTabletTypeResponse) Reset() { *x = ChangeTabletTypeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[23] + mi := &file_vtctldata_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1626,7 +1744,7 @@ func (x *ChangeTabletTypeResponse) String() string { func (*ChangeTabletTypeResponse) ProtoMessage() {} func (x *ChangeTabletTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[23] + mi := &file_vtctldata_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1639,7 +1757,7 @@ func (x *ChangeTabletTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeTabletTypeResponse.ProtoReflect.Descriptor instead. func (*ChangeTabletTypeResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{23} + return file_vtctldata_proto_rawDescGZIP(), []int{25} } func (x *ChangeTabletTypeResponse) GetBeforeTablet() *topodata.Tablet { @@ -1693,7 +1811,7 @@ type CreateKeyspaceRequest struct { func (x *CreateKeyspaceRequest) Reset() { *x = CreateKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[24] + mi := &file_vtctldata_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1706,7 +1824,7 @@ func (x *CreateKeyspaceRequest) String() string { func (*CreateKeyspaceRequest) ProtoMessage() {} func (x *CreateKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[24] + mi := &file_vtctldata_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1719,7 +1837,7 @@ func (x *CreateKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateKeyspaceRequest.ProtoReflect.Descriptor instead. func (*CreateKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{24} + return file_vtctldata_proto_rawDescGZIP(), []int{26} } func (x *CreateKeyspaceRequest) GetName() string { @@ -1790,7 +1908,7 @@ type CreateKeyspaceResponse struct { func (x *CreateKeyspaceResponse) Reset() { *x = CreateKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[25] + mi := &file_vtctldata_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1803,7 +1921,7 @@ func (x *CreateKeyspaceResponse) String() string { func (*CreateKeyspaceResponse) ProtoMessage() {} func (x *CreateKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[25] + mi := &file_vtctldata_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1816,7 +1934,7 @@ func (x *CreateKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateKeyspaceResponse.ProtoReflect.Descriptor instead. func (*CreateKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{25} + return file_vtctldata_proto_rawDescGZIP(), []int{27} } func (x *CreateKeyspaceResponse) GetKeyspace() *Keyspace { @@ -1846,7 +1964,7 @@ type CreateShardRequest struct { func (x *CreateShardRequest) Reset() { *x = CreateShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[26] + mi := &file_vtctldata_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1859,7 +1977,7 @@ func (x *CreateShardRequest) String() string { func (*CreateShardRequest) ProtoMessage() {} func (x *CreateShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[26] + mi := &file_vtctldata_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1872,7 +1990,7 @@ func (x *CreateShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateShardRequest.ProtoReflect.Descriptor instead. func (*CreateShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{26} + return file_vtctldata_proto_rawDescGZIP(), []int{28} } func (x *CreateShardRequest) GetKeyspace() string { @@ -1921,7 +2039,7 @@ type CreateShardResponse struct { func (x *CreateShardResponse) Reset() { *x = CreateShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[27] + mi := &file_vtctldata_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1934,7 +2052,7 @@ func (x *CreateShardResponse) String() string { func (*CreateShardResponse) ProtoMessage() {} func (x *CreateShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[27] + mi := &file_vtctldata_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1947,7 +2065,7 @@ func (x *CreateShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateShardResponse.ProtoReflect.Descriptor instead. func (*CreateShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{27} + return file_vtctldata_proto_rawDescGZIP(), []int{29} } func (x *CreateShardResponse) GetKeyspace() *Keyspace { @@ -1983,7 +2101,7 @@ type DeleteCellInfoRequest struct { func (x *DeleteCellInfoRequest) Reset() { *x = DeleteCellInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[28] + mi := &file_vtctldata_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1996,7 +2114,7 @@ func (x *DeleteCellInfoRequest) String() string { func (*DeleteCellInfoRequest) ProtoMessage() {} func (x *DeleteCellInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[28] + mi := &file_vtctldata_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2009,7 +2127,7 @@ func (x *DeleteCellInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteCellInfoRequest.ProtoReflect.Descriptor instead. func (*DeleteCellInfoRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{28} + return file_vtctldata_proto_rawDescGZIP(), []int{30} } func (x *DeleteCellInfoRequest) GetName() string { @@ -2035,7 +2153,7 @@ type DeleteCellInfoResponse struct { func (x *DeleteCellInfoResponse) Reset() { *x = DeleteCellInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[29] + mi := &file_vtctldata_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2048,7 +2166,7 @@ func (x *DeleteCellInfoResponse) String() string { func (*DeleteCellInfoResponse) ProtoMessage() {} func (x *DeleteCellInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[29] + mi := &file_vtctldata_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2061,7 +2179,7 @@ func (x *DeleteCellInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteCellInfoResponse.ProtoReflect.Descriptor instead. func (*DeleteCellInfoResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{29} + return file_vtctldata_proto_rawDescGZIP(), []int{31} } type DeleteCellsAliasRequest struct { @@ -2075,7 +2193,7 @@ type DeleteCellsAliasRequest struct { func (x *DeleteCellsAliasRequest) Reset() { *x = DeleteCellsAliasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[30] + mi := &file_vtctldata_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2088,7 +2206,7 @@ func (x *DeleteCellsAliasRequest) String() string { func (*DeleteCellsAliasRequest) ProtoMessage() {} func (x *DeleteCellsAliasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[30] + mi := &file_vtctldata_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2101,7 +2219,7 @@ func (x *DeleteCellsAliasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteCellsAliasRequest.ProtoReflect.Descriptor instead. func (*DeleteCellsAliasRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{30} + return file_vtctldata_proto_rawDescGZIP(), []int{32} } func (x *DeleteCellsAliasRequest) GetName() string { @@ -2120,7 +2238,7 @@ type DeleteCellsAliasResponse struct { func (x *DeleteCellsAliasResponse) Reset() { *x = DeleteCellsAliasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[31] + mi := &file_vtctldata_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2133,7 +2251,7 @@ func (x *DeleteCellsAliasResponse) String() string { func (*DeleteCellsAliasResponse) ProtoMessage() {} func (x *DeleteCellsAliasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[31] + mi := &file_vtctldata_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2146,7 +2264,7 @@ func (x *DeleteCellsAliasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteCellsAliasResponse.ProtoReflect.Descriptor instead. func (*DeleteCellsAliasResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{31} + return file_vtctldata_proto_rawDescGZIP(), []int{33} } type DeleteKeyspaceRequest struct { @@ -2168,7 +2286,7 @@ type DeleteKeyspaceRequest struct { func (x *DeleteKeyspaceRequest) Reset() { *x = DeleteKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[32] + mi := &file_vtctldata_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2181,7 +2299,7 @@ func (x *DeleteKeyspaceRequest) String() string { func (*DeleteKeyspaceRequest) ProtoMessage() {} func (x *DeleteKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[32] + mi := &file_vtctldata_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2194,7 +2312,7 @@ func (x *DeleteKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteKeyspaceRequest.ProtoReflect.Descriptor instead. func (*DeleteKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{32} + return file_vtctldata_proto_rawDescGZIP(), []int{34} } func (x *DeleteKeyspaceRequest) GetKeyspace() string { @@ -2227,7 +2345,7 @@ type DeleteKeyspaceResponse struct { func (x *DeleteKeyspaceResponse) Reset() { *x = DeleteKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[33] + mi := &file_vtctldata_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2240,7 +2358,7 @@ func (x *DeleteKeyspaceResponse) String() string { func (*DeleteKeyspaceResponse) ProtoMessage() {} func (x *DeleteKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[33] + mi := &file_vtctldata_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2253,7 +2371,7 @@ func (x *DeleteKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteKeyspaceResponse.ProtoReflect.Descriptor instead. func (*DeleteKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{33} + return file_vtctldata_proto_rawDescGZIP(), []int{35} } type DeleteShardsRequest struct { @@ -2279,7 +2397,7 @@ type DeleteShardsRequest struct { func (x *DeleteShardsRequest) Reset() { *x = DeleteShardsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[34] + mi := &file_vtctldata_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2292,7 +2410,7 @@ func (x *DeleteShardsRequest) String() string { func (*DeleteShardsRequest) ProtoMessage() {} func (x *DeleteShardsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[34] + mi := &file_vtctldata_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2305,7 +2423,7 @@ func (x *DeleteShardsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteShardsRequest.ProtoReflect.Descriptor instead. func (*DeleteShardsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{34} + return file_vtctldata_proto_rawDescGZIP(), []int{36} } func (x *DeleteShardsRequest) GetShards() []*Shard { @@ -2345,7 +2463,7 @@ type DeleteShardsResponse struct { func (x *DeleteShardsResponse) Reset() { *x = DeleteShardsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[35] + mi := &file_vtctldata_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2358,7 +2476,7 @@ func (x *DeleteShardsResponse) String() string { func (*DeleteShardsResponse) ProtoMessage() {} func (x *DeleteShardsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[35] + mi := &file_vtctldata_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2371,7 +2489,7 @@ func (x *DeleteShardsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteShardsResponse.ProtoReflect.Descriptor instead. func (*DeleteShardsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{35} + return file_vtctldata_proto_rawDescGZIP(), []int{37} } type DeleteSrvVSchemaRequest struct { @@ -2385,7 +2503,7 @@ type DeleteSrvVSchemaRequest struct { func (x *DeleteSrvVSchemaRequest) Reset() { *x = DeleteSrvVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[36] + mi := &file_vtctldata_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2398,7 +2516,7 @@ func (x *DeleteSrvVSchemaRequest) String() string { func (*DeleteSrvVSchemaRequest) ProtoMessage() {} func (x *DeleteSrvVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[36] + mi := &file_vtctldata_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2411,7 +2529,7 @@ func (x *DeleteSrvVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSrvVSchemaRequest.ProtoReflect.Descriptor instead. func (*DeleteSrvVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{36} + return file_vtctldata_proto_rawDescGZIP(), []int{38} } func (x *DeleteSrvVSchemaRequest) GetCell() string { @@ -2430,7 +2548,7 @@ type DeleteSrvVSchemaResponse struct { func (x *DeleteSrvVSchemaResponse) Reset() { *x = DeleteSrvVSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[37] + mi := &file_vtctldata_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2443,7 +2561,7 @@ func (x *DeleteSrvVSchemaResponse) String() string { func (*DeleteSrvVSchemaResponse) ProtoMessage() {} func (x *DeleteSrvVSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[37] + mi := &file_vtctldata_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2456,7 +2574,7 @@ func (x *DeleteSrvVSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSrvVSchemaResponse.ProtoReflect.Descriptor instead. func (*DeleteSrvVSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{37} + return file_vtctldata_proto_rawDescGZIP(), []int{39} } type DeleteTabletsRequest struct { @@ -2474,7 +2592,7 @@ type DeleteTabletsRequest struct { func (x *DeleteTabletsRequest) Reset() { *x = DeleteTabletsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[38] + mi := &file_vtctldata_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2487,7 +2605,7 @@ func (x *DeleteTabletsRequest) String() string { func (*DeleteTabletsRequest) ProtoMessage() {} func (x *DeleteTabletsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[38] + mi := &file_vtctldata_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2500,7 +2618,7 @@ func (x *DeleteTabletsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTabletsRequest.ProtoReflect.Descriptor instead. func (*DeleteTabletsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{38} + return file_vtctldata_proto_rawDescGZIP(), []int{40} } func (x *DeleteTabletsRequest) GetTabletAliases() []*topodata.TabletAlias { @@ -2526,7 +2644,7 @@ type DeleteTabletsResponse struct { func (x *DeleteTabletsResponse) Reset() { *x = DeleteTabletsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[39] + mi := &file_vtctldata_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2539,7 +2657,7 @@ func (x *DeleteTabletsResponse) String() string { func (*DeleteTabletsResponse) ProtoMessage() {} func (x *DeleteTabletsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[39] + mi := &file_vtctldata_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2552,7 +2670,7 @@ func (x *DeleteTabletsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTabletsResponse.ProtoReflect.Descriptor instead. func (*DeleteTabletsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{39} + return file_vtctldata_proto_rawDescGZIP(), []int{41} } type EmergencyReparentShardRequest struct { @@ -2583,7 +2701,7 @@ type EmergencyReparentShardRequest struct { func (x *EmergencyReparentShardRequest) Reset() { *x = EmergencyReparentShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[40] + mi := &file_vtctldata_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2596,7 +2714,7 @@ func (x *EmergencyReparentShardRequest) String() string { func (*EmergencyReparentShardRequest) ProtoMessage() {} func (x *EmergencyReparentShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[40] + mi := &file_vtctldata_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2609,7 +2727,7 @@ func (x *EmergencyReparentShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EmergencyReparentShardRequest.ProtoReflect.Descriptor instead. func (*EmergencyReparentShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{40} + return file_vtctldata_proto_rawDescGZIP(), []int{42} } func (x *EmergencyReparentShardRequest) GetKeyspace() string { @@ -2674,7 +2792,7 @@ type EmergencyReparentShardResponse struct { func (x *EmergencyReparentShardResponse) Reset() { *x = EmergencyReparentShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[41] + mi := &file_vtctldata_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2687,7 +2805,7 @@ func (x *EmergencyReparentShardResponse) String() string { func (*EmergencyReparentShardResponse) ProtoMessage() {} func (x *EmergencyReparentShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[41] + mi := &file_vtctldata_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2700,7 +2818,7 @@ func (x *EmergencyReparentShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EmergencyReparentShardResponse.ProtoReflect.Descriptor instead. func (*EmergencyReparentShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{41} + return file_vtctldata_proto_rawDescGZIP(), []int{43} } func (x *EmergencyReparentShardResponse) GetKeyspace() string { @@ -2752,7 +2870,7 @@ type ExecuteFetchAsAppRequest struct { func (x *ExecuteFetchAsAppRequest) Reset() { *x = ExecuteFetchAsAppRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[42] + mi := &file_vtctldata_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2765,7 +2883,7 @@ func (x *ExecuteFetchAsAppRequest) String() string { func (*ExecuteFetchAsAppRequest) ProtoMessage() {} func (x *ExecuteFetchAsAppRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[42] + mi := &file_vtctldata_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2778,7 +2896,7 @@ func (x *ExecuteFetchAsAppRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteFetchAsAppRequest.ProtoReflect.Descriptor instead. func (*ExecuteFetchAsAppRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{42} + return file_vtctldata_proto_rawDescGZIP(), []int{44} } func (x *ExecuteFetchAsAppRequest) GetTabletAlias() *topodata.TabletAlias { @@ -2820,7 +2938,7 @@ type ExecuteFetchAsAppResponse struct { func (x *ExecuteFetchAsAppResponse) Reset() { *x = ExecuteFetchAsAppResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[43] + mi := &file_vtctldata_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2833,7 +2951,7 @@ func (x *ExecuteFetchAsAppResponse) String() string { func (*ExecuteFetchAsAppResponse) ProtoMessage() {} func (x *ExecuteFetchAsAppResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[43] + mi := &file_vtctldata_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2846,7 +2964,7 @@ func (x *ExecuteFetchAsAppResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteFetchAsAppResponse.ProtoReflect.Descriptor instead. func (*ExecuteFetchAsAppResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{43} + return file_vtctldata_proto_rawDescGZIP(), []int{45} } func (x *ExecuteFetchAsAppResponse) GetResult() *query.QueryResult { @@ -2881,7 +2999,7 @@ type ExecuteFetchAsDBARequest struct { func (x *ExecuteFetchAsDBARequest) Reset() { *x = ExecuteFetchAsDBARequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[44] + mi := &file_vtctldata_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2894,7 +3012,7 @@ func (x *ExecuteFetchAsDBARequest) String() string { func (*ExecuteFetchAsDBARequest) ProtoMessage() {} func (x *ExecuteFetchAsDBARequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[44] + mi := &file_vtctldata_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2907,7 +3025,7 @@ func (x *ExecuteFetchAsDBARequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteFetchAsDBARequest.ProtoReflect.Descriptor instead. func (*ExecuteFetchAsDBARequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{44} + return file_vtctldata_proto_rawDescGZIP(), []int{46} } func (x *ExecuteFetchAsDBARequest) GetTabletAlias() *topodata.TabletAlias { @@ -2956,7 +3074,7 @@ type ExecuteFetchAsDBAResponse struct { func (x *ExecuteFetchAsDBAResponse) Reset() { *x = ExecuteFetchAsDBAResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[45] + mi := &file_vtctldata_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2969,7 +3087,7 @@ func (x *ExecuteFetchAsDBAResponse) String() string { func (*ExecuteFetchAsDBAResponse) ProtoMessage() {} func (x *ExecuteFetchAsDBAResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[45] + mi := &file_vtctldata_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2982,7 +3100,7 @@ func (x *ExecuteFetchAsDBAResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteFetchAsDBAResponse.ProtoReflect.Descriptor instead. func (*ExecuteFetchAsDBAResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{45} + return file_vtctldata_proto_rawDescGZIP(), []int{47} } func (x *ExecuteFetchAsDBAResponse) GetResult() *query.QueryResult { @@ -3004,7 +3122,7 @@ type ExecuteHookRequest struct { func (x *ExecuteHookRequest) Reset() { *x = ExecuteHookRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[46] + mi := &file_vtctldata_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3017,7 +3135,7 @@ func (x *ExecuteHookRequest) String() string { func (*ExecuteHookRequest) ProtoMessage() {} func (x *ExecuteHookRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[46] + mi := &file_vtctldata_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3030,7 +3148,7 @@ func (x *ExecuteHookRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteHookRequest.ProtoReflect.Descriptor instead. func (*ExecuteHookRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{46} + return file_vtctldata_proto_rawDescGZIP(), []int{48} } func (x *ExecuteHookRequest) GetTabletAlias() *topodata.TabletAlias { @@ -3058,7 +3176,7 @@ type ExecuteHookResponse struct { func (x *ExecuteHookResponse) Reset() { *x = ExecuteHookResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[47] + mi := &file_vtctldata_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3071,7 +3189,7 @@ func (x *ExecuteHookResponse) String() string { func (*ExecuteHookResponse) ProtoMessage() {} func (x *ExecuteHookResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[47] + mi := &file_vtctldata_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3084,7 +3202,7 @@ func (x *ExecuteHookResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteHookResponse.ProtoReflect.Descriptor instead. func (*ExecuteHookResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{47} + return file_vtctldata_proto_rawDescGZIP(), []int{49} } func (x *ExecuteHookResponse) GetHookResult() *tabletmanagerdata.ExecuteHookResponse { @@ -3105,7 +3223,7 @@ type FindAllShardsInKeyspaceRequest struct { func (x *FindAllShardsInKeyspaceRequest) Reset() { *x = FindAllShardsInKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[48] + mi := &file_vtctldata_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3118,7 +3236,7 @@ func (x *FindAllShardsInKeyspaceRequest) String() string { func (*FindAllShardsInKeyspaceRequest) ProtoMessage() {} func (x *FindAllShardsInKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[48] + mi := &file_vtctldata_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3131,7 +3249,7 @@ func (x *FindAllShardsInKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllShardsInKeyspaceRequest.ProtoReflect.Descriptor instead. func (*FindAllShardsInKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{48} + return file_vtctldata_proto_rawDescGZIP(), []int{50} } func (x *FindAllShardsInKeyspaceRequest) GetKeyspace() string { @@ -3152,7 +3270,7 @@ type FindAllShardsInKeyspaceResponse struct { func (x *FindAllShardsInKeyspaceResponse) Reset() { *x = FindAllShardsInKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[49] + mi := &file_vtctldata_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3165,7 +3283,7 @@ func (x *FindAllShardsInKeyspaceResponse) String() string { func (*FindAllShardsInKeyspaceResponse) ProtoMessage() {} func (x *FindAllShardsInKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[49] + mi := &file_vtctldata_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3178,7 +3296,7 @@ func (x *FindAllShardsInKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllShardsInKeyspaceResponse.ProtoReflect.Descriptor instead. func (*FindAllShardsInKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{49} + return file_vtctldata_proto_rawDescGZIP(), []int{51} } func (x *FindAllShardsInKeyspaceResponse) GetShards() map[string]*Shard { @@ -3214,7 +3332,7 @@ type GetBackupsRequest struct { func (x *GetBackupsRequest) Reset() { *x = GetBackupsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[50] + mi := &file_vtctldata_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3227,7 +3345,7 @@ func (x *GetBackupsRequest) String() string { func (*GetBackupsRequest) ProtoMessage() {} func (x *GetBackupsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[50] + mi := &file_vtctldata_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3240,7 +3358,7 @@ func (x *GetBackupsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBackupsRequest.ProtoReflect.Descriptor instead. func (*GetBackupsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{50} + return file_vtctldata_proto_rawDescGZIP(), []int{52} } func (x *GetBackupsRequest) GetKeyspace() string { @@ -3289,7 +3407,7 @@ type GetBackupsResponse struct { func (x *GetBackupsResponse) Reset() { *x = GetBackupsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[51] + mi := &file_vtctldata_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3302,7 +3420,7 @@ func (x *GetBackupsResponse) String() string { func (*GetBackupsResponse) ProtoMessage() {} func (x *GetBackupsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[51] + mi := &file_vtctldata_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3315,7 +3433,7 @@ func (x *GetBackupsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBackupsResponse.ProtoReflect.Descriptor instead. func (*GetBackupsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{51} + return file_vtctldata_proto_rawDescGZIP(), []int{53} } func (x *GetBackupsResponse) GetBackups() []*mysqlctl.BackupInfo { @@ -3336,7 +3454,7 @@ type GetCellInfoRequest struct { func (x *GetCellInfoRequest) Reset() { *x = GetCellInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[52] + mi := &file_vtctldata_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3349,7 +3467,7 @@ func (x *GetCellInfoRequest) String() string { func (*GetCellInfoRequest) ProtoMessage() {} func (x *GetCellInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[52] + mi := &file_vtctldata_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3362,7 +3480,7 @@ func (x *GetCellInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellInfoRequest.ProtoReflect.Descriptor instead. func (*GetCellInfoRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{52} + return file_vtctldata_proto_rawDescGZIP(), []int{54} } func (x *GetCellInfoRequest) GetCell() string { @@ -3383,7 +3501,7 @@ type GetCellInfoResponse struct { func (x *GetCellInfoResponse) Reset() { *x = GetCellInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[53] + mi := &file_vtctldata_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3396,7 +3514,7 @@ func (x *GetCellInfoResponse) String() string { func (*GetCellInfoResponse) ProtoMessage() {} func (x *GetCellInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[53] + mi := &file_vtctldata_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3409,7 +3527,7 @@ func (x *GetCellInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellInfoResponse.ProtoReflect.Descriptor instead. func (*GetCellInfoResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{53} + return file_vtctldata_proto_rawDescGZIP(), []int{55} } func (x *GetCellInfoResponse) GetCellInfo() *topodata.CellInfo { @@ -3428,7 +3546,7 @@ type GetCellInfoNamesRequest struct { func (x *GetCellInfoNamesRequest) Reset() { *x = GetCellInfoNamesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[54] + mi := &file_vtctldata_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3441,7 +3559,7 @@ func (x *GetCellInfoNamesRequest) String() string { func (*GetCellInfoNamesRequest) ProtoMessage() {} func (x *GetCellInfoNamesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[54] + mi := &file_vtctldata_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3454,7 +3572,7 @@ func (x *GetCellInfoNamesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellInfoNamesRequest.ProtoReflect.Descriptor instead. func (*GetCellInfoNamesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{54} + return file_vtctldata_proto_rawDescGZIP(), []int{56} } type GetCellInfoNamesResponse struct { @@ -3468,7 +3586,7 @@ type GetCellInfoNamesResponse struct { func (x *GetCellInfoNamesResponse) Reset() { *x = GetCellInfoNamesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[55] + mi := &file_vtctldata_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3481,7 +3599,7 @@ func (x *GetCellInfoNamesResponse) String() string { func (*GetCellInfoNamesResponse) ProtoMessage() {} func (x *GetCellInfoNamesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[55] + mi := &file_vtctldata_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3494,7 +3612,7 @@ func (x *GetCellInfoNamesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellInfoNamesResponse.ProtoReflect.Descriptor instead. func (*GetCellInfoNamesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{55} + return file_vtctldata_proto_rawDescGZIP(), []int{57} } func (x *GetCellInfoNamesResponse) GetNames() []string { @@ -3513,7 +3631,7 @@ type GetCellsAliasesRequest struct { func (x *GetCellsAliasesRequest) Reset() { *x = GetCellsAliasesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[56] + mi := &file_vtctldata_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3526,7 +3644,7 @@ func (x *GetCellsAliasesRequest) String() string { func (*GetCellsAliasesRequest) ProtoMessage() {} func (x *GetCellsAliasesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[56] + mi := &file_vtctldata_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3539,7 +3657,7 @@ func (x *GetCellsAliasesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellsAliasesRequest.ProtoReflect.Descriptor instead. func (*GetCellsAliasesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{56} + return file_vtctldata_proto_rawDescGZIP(), []int{58} } type GetCellsAliasesResponse struct { @@ -3553,7 +3671,7 @@ type GetCellsAliasesResponse struct { func (x *GetCellsAliasesResponse) Reset() { *x = GetCellsAliasesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[57] + mi := &file_vtctldata_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3566,7 +3684,7 @@ func (x *GetCellsAliasesResponse) String() string { func (*GetCellsAliasesResponse) ProtoMessage() {} func (x *GetCellsAliasesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[57] + mi := &file_vtctldata_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3579,7 +3697,7 @@ func (x *GetCellsAliasesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetCellsAliasesResponse.ProtoReflect.Descriptor instead. func (*GetCellsAliasesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{57} + return file_vtctldata_proto_rawDescGZIP(), []int{59} } func (x *GetCellsAliasesResponse) GetAliases() map[string]*topodata.CellsAlias { @@ -3600,7 +3718,7 @@ type GetFullStatusRequest struct { func (x *GetFullStatusRequest) Reset() { *x = GetFullStatusRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[58] + mi := &file_vtctldata_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3613,7 +3731,7 @@ func (x *GetFullStatusRequest) String() string { func (*GetFullStatusRequest) ProtoMessage() {} func (x *GetFullStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[58] + mi := &file_vtctldata_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3626,7 +3744,7 @@ func (x *GetFullStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetFullStatusRequest.ProtoReflect.Descriptor instead. func (*GetFullStatusRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{58} + return file_vtctldata_proto_rawDescGZIP(), []int{60} } func (x *GetFullStatusRequest) GetTabletAlias() *topodata.TabletAlias { @@ -3647,7 +3765,7 @@ type GetFullStatusResponse struct { func (x *GetFullStatusResponse) Reset() { *x = GetFullStatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[59] + mi := &file_vtctldata_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3660,7 +3778,7 @@ func (x *GetFullStatusResponse) String() string { func (*GetFullStatusResponse) ProtoMessage() {} func (x *GetFullStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[59] + mi := &file_vtctldata_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3673,7 +3791,7 @@ func (x *GetFullStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetFullStatusResponse.ProtoReflect.Descriptor instead. func (*GetFullStatusResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{59} + return file_vtctldata_proto_rawDescGZIP(), []int{61} } func (x *GetFullStatusResponse) GetStatus() *replicationdata.FullStatus { @@ -3692,7 +3810,7 @@ type GetKeyspacesRequest struct { func (x *GetKeyspacesRequest) Reset() { *x = GetKeyspacesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[60] + mi := &file_vtctldata_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3705,7 +3823,7 @@ func (x *GetKeyspacesRequest) String() string { func (*GetKeyspacesRequest) ProtoMessage() {} func (x *GetKeyspacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[60] + mi := &file_vtctldata_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3718,7 +3836,7 @@ func (x *GetKeyspacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspacesRequest.ProtoReflect.Descriptor instead. func (*GetKeyspacesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{60} + return file_vtctldata_proto_rawDescGZIP(), []int{62} } type GetKeyspacesResponse struct { @@ -3732,7 +3850,7 @@ type GetKeyspacesResponse struct { func (x *GetKeyspacesResponse) Reset() { *x = GetKeyspacesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[61] + mi := &file_vtctldata_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3745,7 +3863,7 @@ func (x *GetKeyspacesResponse) String() string { func (*GetKeyspacesResponse) ProtoMessage() {} func (x *GetKeyspacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[61] + mi := &file_vtctldata_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3758,7 +3876,7 @@ func (x *GetKeyspacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspacesResponse.ProtoReflect.Descriptor instead. func (*GetKeyspacesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{61} + return file_vtctldata_proto_rawDescGZIP(), []int{63} } func (x *GetKeyspacesResponse) GetKeyspaces() []*Keyspace { @@ -3779,7 +3897,7 @@ type GetKeyspaceRequest struct { func (x *GetKeyspaceRequest) Reset() { *x = GetKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[62] + mi := &file_vtctldata_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3792,7 +3910,7 @@ func (x *GetKeyspaceRequest) String() string { func (*GetKeyspaceRequest) ProtoMessage() {} func (x *GetKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[62] + mi := &file_vtctldata_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3805,7 +3923,7 @@ func (x *GetKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspaceRequest.ProtoReflect.Descriptor instead. func (*GetKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{62} + return file_vtctldata_proto_rawDescGZIP(), []int{64} } func (x *GetKeyspaceRequest) GetKeyspace() string { @@ -3826,7 +3944,7 @@ type GetKeyspaceResponse struct { func (x *GetKeyspaceResponse) Reset() { *x = GetKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[63] + mi := &file_vtctldata_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3839,7 +3957,7 @@ func (x *GetKeyspaceResponse) String() string { func (*GetKeyspaceResponse) ProtoMessage() {} func (x *GetKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[63] + mi := &file_vtctldata_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3852,7 +3970,7 @@ func (x *GetKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetKeyspaceResponse.ProtoReflect.Descriptor instead. func (*GetKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{63} + return file_vtctldata_proto_rawDescGZIP(), []int{65} } func (x *GetKeyspaceResponse) GetKeyspace() *Keyspace { @@ -3873,7 +3991,7 @@ type GetPermissionsRequest struct { func (x *GetPermissionsRequest) Reset() { *x = GetPermissionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[64] + mi := &file_vtctldata_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3886,7 +4004,7 @@ func (x *GetPermissionsRequest) String() string { func (*GetPermissionsRequest) ProtoMessage() {} func (x *GetPermissionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[64] + mi := &file_vtctldata_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3899,7 +4017,7 @@ func (x *GetPermissionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead. func (*GetPermissionsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{64} + return file_vtctldata_proto_rawDescGZIP(), []int{66} } func (x *GetPermissionsRequest) GetTabletAlias() *topodata.TabletAlias { @@ -3920,7 +4038,7 @@ type GetPermissionsResponse struct { func (x *GetPermissionsResponse) Reset() { *x = GetPermissionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[65] + mi := &file_vtctldata_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3933,7 +4051,7 @@ func (x *GetPermissionsResponse) String() string { func (*GetPermissionsResponse) ProtoMessage() {} func (x *GetPermissionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[65] + mi := &file_vtctldata_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3946,7 +4064,7 @@ func (x *GetPermissionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead. func (*GetPermissionsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{65} + return file_vtctldata_proto_rawDescGZIP(), []int{67} } func (x *GetPermissionsResponse) GetPermissions() *tabletmanagerdata.Permissions { @@ -3965,7 +4083,7 @@ type GetRoutingRulesRequest struct { func (x *GetRoutingRulesRequest) Reset() { *x = GetRoutingRulesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[66] + mi := &file_vtctldata_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3978,7 +4096,7 @@ func (x *GetRoutingRulesRequest) String() string { func (*GetRoutingRulesRequest) ProtoMessage() {} func (x *GetRoutingRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[66] + mi := &file_vtctldata_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3991,7 +4109,7 @@ func (x *GetRoutingRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRoutingRulesRequest.ProtoReflect.Descriptor instead. func (*GetRoutingRulesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{66} + return file_vtctldata_proto_rawDescGZIP(), []int{68} } type GetRoutingRulesResponse struct { @@ -4005,7 +4123,7 @@ type GetRoutingRulesResponse struct { func (x *GetRoutingRulesResponse) Reset() { *x = GetRoutingRulesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[67] + mi := &file_vtctldata_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4018,7 +4136,7 @@ func (x *GetRoutingRulesResponse) String() string { func (*GetRoutingRulesResponse) ProtoMessage() {} func (x *GetRoutingRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[67] + mi := &file_vtctldata_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4031,7 +4149,7 @@ func (x *GetRoutingRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRoutingRulesResponse.ProtoReflect.Descriptor instead. func (*GetRoutingRulesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{67} + return file_vtctldata_proto_rawDescGZIP(), []int{69} } func (x *GetRoutingRulesResponse) GetRoutingRules() *vschema.RoutingRules { @@ -4070,7 +4188,7 @@ type GetSchemaRequest struct { func (x *GetSchemaRequest) Reset() { *x = GetSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[68] + mi := &file_vtctldata_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4083,7 +4201,7 @@ func (x *GetSchemaRequest) String() string { func (*GetSchemaRequest) ProtoMessage() {} func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[68] + mi := &file_vtctldata_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4096,7 +4214,7 @@ func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead. func (*GetSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{68} + return file_vtctldata_proto_rawDescGZIP(), []int{70} } func (x *GetSchemaRequest) GetTabletAlias() *topodata.TabletAlias { @@ -4159,7 +4277,7 @@ type GetSchemaResponse struct { func (x *GetSchemaResponse) Reset() { *x = GetSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[69] + mi := &file_vtctldata_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4172,7 +4290,7 @@ func (x *GetSchemaResponse) String() string { func (*GetSchemaResponse) ProtoMessage() {} func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[69] + mi := &file_vtctldata_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4185,7 +4303,7 @@ func (x *GetSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSchemaResponse.ProtoReflect.Descriptor instead. func (*GetSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{69} + return file_vtctldata_proto_rawDescGZIP(), []int{71} } func (x *GetSchemaResponse) GetSchema() *tabletmanagerdata.SchemaDefinition { @@ -4207,7 +4325,7 @@ type GetShardRequest struct { func (x *GetShardRequest) Reset() { *x = GetShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[70] + mi := &file_vtctldata_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4220,7 +4338,7 @@ func (x *GetShardRequest) String() string { func (*GetShardRequest) ProtoMessage() {} func (x *GetShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[70] + mi := &file_vtctldata_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4233,7 +4351,7 @@ func (x *GetShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetShardRequest.ProtoReflect.Descriptor instead. func (*GetShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{70} + return file_vtctldata_proto_rawDescGZIP(), []int{72} } func (x *GetShardRequest) GetKeyspace() string { @@ -4261,7 +4379,7 @@ type GetShardResponse struct { func (x *GetShardResponse) Reset() { *x = GetShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[71] + mi := &file_vtctldata_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4274,7 +4392,7 @@ func (x *GetShardResponse) String() string { func (*GetShardResponse) ProtoMessage() {} func (x *GetShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[71] + mi := &file_vtctldata_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4287,7 +4405,7 @@ func (x *GetShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetShardResponse.ProtoReflect.Descriptor instead. func (*GetShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{71} + return file_vtctldata_proto_rawDescGZIP(), []int{73} } func (x *GetShardResponse) GetShard() *Shard { @@ -4306,7 +4424,7 @@ type GetShardRoutingRulesRequest struct { func (x *GetShardRoutingRulesRequest) Reset() { *x = GetShardRoutingRulesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[72] + mi := &file_vtctldata_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4319,7 +4437,7 @@ func (x *GetShardRoutingRulesRequest) String() string { func (*GetShardRoutingRulesRequest) ProtoMessage() {} func (x *GetShardRoutingRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[72] + mi := &file_vtctldata_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4332,7 +4450,7 @@ func (x *GetShardRoutingRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetShardRoutingRulesRequest.ProtoReflect.Descriptor instead. func (*GetShardRoutingRulesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{72} + return file_vtctldata_proto_rawDescGZIP(), []int{74} } type GetShardRoutingRulesResponse struct { @@ -4346,7 +4464,7 @@ type GetShardRoutingRulesResponse struct { func (x *GetShardRoutingRulesResponse) Reset() { *x = GetShardRoutingRulesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[73] + mi := &file_vtctldata_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4359,7 +4477,7 @@ func (x *GetShardRoutingRulesResponse) String() string { func (*GetShardRoutingRulesResponse) ProtoMessage() {} func (x *GetShardRoutingRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[73] + mi := &file_vtctldata_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4372,7 +4490,7 @@ func (x *GetShardRoutingRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetShardRoutingRulesResponse.ProtoReflect.Descriptor instead. func (*GetShardRoutingRulesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{73} + return file_vtctldata_proto_rawDescGZIP(), []int{75} } func (x *GetShardRoutingRulesResponse) GetShardRoutingRules() *vschema.ShardRoutingRules { @@ -4393,7 +4511,7 @@ type GetSrvKeyspaceNamesRequest struct { func (x *GetSrvKeyspaceNamesRequest) Reset() { *x = GetSrvKeyspaceNamesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[74] + mi := &file_vtctldata_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4406,7 +4524,7 @@ func (x *GetSrvKeyspaceNamesRequest) String() string { func (*GetSrvKeyspaceNamesRequest) ProtoMessage() {} func (x *GetSrvKeyspaceNamesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[74] + mi := &file_vtctldata_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4419,7 +4537,7 @@ func (x *GetSrvKeyspaceNamesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvKeyspaceNamesRequest.ProtoReflect.Descriptor instead. func (*GetSrvKeyspaceNamesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{74} + return file_vtctldata_proto_rawDescGZIP(), []int{76} } func (x *GetSrvKeyspaceNamesRequest) GetCells() []string { @@ -4441,7 +4559,7 @@ type GetSrvKeyspaceNamesResponse struct { func (x *GetSrvKeyspaceNamesResponse) Reset() { *x = GetSrvKeyspaceNamesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[75] + mi := &file_vtctldata_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4454,7 +4572,7 @@ func (x *GetSrvKeyspaceNamesResponse) String() string { func (*GetSrvKeyspaceNamesResponse) ProtoMessage() {} func (x *GetSrvKeyspaceNamesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[75] + mi := &file_vtctldata_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4467,7 +4585,7 @@ func (x *GetSrvKeyspaceNamesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvKeyspaceNamesResponse.ProtoReflect.Descriptor instead. func (*GetSrvKeyspaceNamesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{75} + return file_vtctldata_proto_rawDescGZIP(), []int{77} } func (x *GetSrvKeyspaceNamesResponse) GetNames() map[string]*GetSrvKeyspaceNamesResponse_NameList { @@ -4491,7 +4609,7 @@ type GetSrvKeyspacesRequest struct { func (x *GetSrvKeyspacesRequest) Reset() { *x = GetSrvKeyspacesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[76] + mi := &file_vtctldata_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4504,7 +4622,7 @@ func (x *GetSrvKeyspacesRequest) String() string { func (*GetSrvKeyspacesRequest) ProtoMessage() {} func (x *GetSrvKeyspacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[76] + mi := &file_vtctldata_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4517,7 +4635,7 @@ func (x *GetSrvKeyspacesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvKeyspacesRequest.ProtoReflect.Descriptor instead. func (*GetSrvKeyspacesRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{76} + return file_vtctldata_proto_rawDescGZIP(), []int{78} } func (x *GetSrvKeyspacesRequest) GetKeyspace() string { @@ -4546,7 +4664,7 @@ type GetSrvKeyspacesResponse struct { func (x *GetSrvKeyspacesResponse) Reset() { *x = GetSrvKeyspacesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[77] + mi := &file_vtctldata_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4559,7 +4677,7 @@ func (x *GetSrvKeyspacesResponse) String() string { func (*GetSrvKeyspacesResponse) ProtoMessage() {} func (x *GetSrvKeyspacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[77] + mi := &file_vtctldata_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4572,7 +4690,7 @@ func (x *GetSrvKeyspacesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvKeyspacesResponse.ProtoReflect.Descriptor instead. func (*GetSrvKeyspacesResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{77} + return file_vtctldata_proto_rawDescGZIP(), []int{79} } func (x *GetSrvKeyspacesResponse) GetSrvKeyspaces() map[string]*topodata.SrvKeyspace { @@ -4593,7 +4711,7 @@ type GetSrvVSchemaRequest struct { func (x *GetSrvVSchemaRequest) Reset() { *x = GetSrvVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[78] + mi := &file_vtctldata_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4606,7 +4724,7 @@ func (x *GetSrvVSchemaRequest) String() string { func (*GetSrvVSchemaRequest) ProtoMessage() {} func (x *GetSrvVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[78] + mi := &file_vtctldata_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4619,7 +4737,7 @@ func (x *GetSrvVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemaRequest.ProtoReflect.Descriptor instead. func (*GetSrvVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{78} + return file_vtctldata_proto_rawDescGZIP(), []int{80} } func (x *GetSrvVSchemaRequest) GetCell() string { @@ -4640,7 +4758,7 @@ type GetSrvVSchemaResponse struct { func (x *GetSrvVSchemaResponse) Reset() { *x = GetSrvVSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[79] + mi := &file_vtctldata_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4653,7 +4771,7 @@ func (x *GetSrvVSchemaResponse) String() string { func (*GetSrvVSchemaResponse) ProtoMessage() {} func (x *GetSrvVSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[79] + mi := &file_vtctldata_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4666,7 +4784,7 @@ func (x *GetSrvVSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemaResponse.ProtoReflect.Descriptor instead. func (*GetSrvVSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{79} + return file_vtctldata_proto_rawDescGZIP(), []int{81} } func (x *GetSrvVSchemaResponse) GetSrvVSchema() *vschema.SrvVSchema { @@ -4687,7 +4805,7 @@ type GetSrvVSchemasRequest struct { func (x *GetSrvVSchemasRequest) Reset() { *x = GetSrvVSchemasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[80] + mi := &file_vtctldata_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4700,7 +4818,7 @@ func (x *GetSrvVSchemasRequest) String() string { func (*GetSrvVSchemasRequest) ProtoMessage() {} func (x *GetSrvVSchemasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[80] + mi := &file_vtctldata_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4713,7 +4831,7 @@ func (x *GetSrvVSchemasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemasRequest.ProtoReflect.Descriptor instead. func (*GetSrvVSchemasRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{80} + return file_vtctldata_proto_rawDescGZIP(), []int{82} } func (x *GetSrvVSchemasRequest) GetCells() []string { @@ -4735,7 +4853,7 @@ type GetSrvVSchemasResponse struct { func (x *GetSrvVSchemasResponse) Reset() { *x = GetSrvVSchemasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[81] + mi := &file_vtctldata_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4748,7 +4866,7 @@ func (x *GetSrvVSchemasResponse) String() string { func (*GetSrvVSchemasResponse) ProtoMessage() {} func (x *GetSrvVSchemasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[81] + mi := &file_vtctldata_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4761,7 +4879,7 @@ func (x *GetSrvVSchemasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSrvVSchemasResponse.ProtoReflect.Descriptor instead. func (*GetSrvVSchemasResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{81} + return file_vtctldata_proto_rawDescGZIP(), []int{83} } func (x *GetSrvVSchemasResponse) GetSrvVSchemas() map[string]*vschema.SrvVSchema { @@ -4782,7 +4900,7 @@ type GetTabletRequest struct { func (x *GetTabletRequest) Reset() { *x = GetTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[82] + mi := &file_vtctldata_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4795,7 +4913,7 @@ func (x *GetTabletRequest) String() string { func (*GetTabletRequest) ProtoMessage() {} func (x *GetTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[82] + mi := &file_vtctldata_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4808,7 +4926,7 @@ func (x *GetTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletRequest.ProtoReflect.Descriptor instead. func (*GetTabletRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{82} + return file_vtctldata_proto_rawDescGZIP(), []int{84} } func (x *GetTabletRequest) GetTabletAlias() *topodata.TabletAlias { @@ -4829,7 +4947,7 @@ type GetTabletResponse struct { func (x *GetTabletResponse) Reset() { *x = GetTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[83] + mi := &file_vtctldata_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4842,7 +4960,7 @@ func (x *GetTabletResponse) String() string { func (*GetTabletResponse) ProtoMessage() {} func (x *GetTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[83] + mi := &file_vtctldata_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4855,7 +4973,7 @@ func (x *GetTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletResponse.ProtoReflect.Descriptor instead. func (*GetTabletResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{83} + return file_vtctldata_proto_rawDescGZIP(), []int{85} } func (x *GetTabletResponse) GetTablet() *topodata.Tablet { @@ -4897,7 +5015,7 @@ type GetTabletsRequest struct { func (x *GetTabletsRequest) Reset() { *x = GetTabletsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[84] + mi := &file_vtctldata_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4910,7 +5028,7 @@ func (x *GetTabletsRequest) String() string { func (*GetTabletsRequest) ProtoMessage() {} func (x *GetTabletsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[84] + mi := &file_vtctldata_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4923,7 +5041,7 @@ func (x *GetTabletsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletsRequest.ProtoReflect.Descriptor instead. func (*GetTabletsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{84} + return file_vtctldata_proto_rawDescGZIP(), []int{86} } func (x *GetTabletsRequest) GetKeyspace() string { @@ -4979,7 +5097,7 @@ type GetTabletsResponse struct { func (x *GetTabletsResponse) Reset() { *x = GetTabletsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[85] + mi := &file_vtctldata_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4992,7 +5110,7 @@ func (x *GetTabletsResponse) String() string { func (*GetTabletsResponse) ProtoMessage() {} func (x *GetTabletsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[85] + mi := &file_vtctldata_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5005,7 +5123,7 @@ func (x *GetTabletsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTabletsResponse.ProtoReflect.Descriptor instead. func (*GetTabletsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{85} + return file_vtctldata_proto_rawDescGZIP(), []int{87} } func (x *GetTabletsResponse) GetTablets() []*topodata.Tablet { @@ -5026,7 +5144,7 @@ type GetTopologyPathRequest struct { func (x *GetTopologyPathRequest) Reset() { *x = GetTopologyPathRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[86] + mi := &file_vtctldata_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5039,7 +5157,7 @@ func (x *GetTopologyPathRequest) String() string { func (*GetTopologyPathRequest) ProtoMessage() {} func (x *GetTopologyPathRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[86] + mi := &file_vtctldata_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5052,7 +5170,7 @@ func (x *GetTopologyPathRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTopologyPathRequest.ProtoReflect.Descriptor instead. func (*GetTopologyPathRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{86} + return file_vtctldata_proto_rawDescGZIP(), []int{88} } func (x *GetTopologyPathRequest) GetPath() string { @@ -5073,7 +5191,7 @@ type GetTopologyPathResponse struct { func (x *GetTopologyPathResponse) Reset() { *x = GetTopologyPathResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[87] + mi := &file_vtctldata_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5086,7 +5204,7 @@ func (x *GetTopologyPathResponse) String() string { func (*GetTopologyPathResponse) ProtoMessage() {} func (x *GetTopologyPathResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[87] + mi := &file_vtctldata_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5099,7 +5217,7 @@ func (x *GetTopologyPathResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTopologyPathResponse.ProtoReflect.Descriptor instead. func (*GetTopologyPathResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{87} + return file_vtctldata_proto_rawDescGZIP(), []int{89} } func (x *GetTopologyPathResponse) GetCell() *TopologyCell { @@ -5125,7 +5243,7 @@ type TopologyCell struct { func (x *TopologyCell) Reset() { *x = TopologyCell{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[88] + mi := &file_vtctldata_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5138,7 +5256,7 @@ func (x *TopologyCell) String() string { func (*TopologyCell) ProtoMessage() {} func (x *TopologyCell) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[88] + mi := &file_vtctldata_proto_msgTypes[90] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5151,7 +5269,7 @@ func (x *TopologyCell) ProtoReflect() protoreflect.Message { // Deprecated: Use TopologyCell.ProtoReflect.Descriptor instead. func (*TopologyCell) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{88} + return file_vtctldata_proto_rawDescGZIP(), []int{90} } func (x *TopologyCell) GetName() string { @@ -5193,7 +5311,7 @@ type GetVSchemaRequest struct { func (x *GetVSchemaRequest) Reset() { *x = GetVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[89] + mi := &file_vtctldata_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5206,7 +5324,7 @@ func (x *GetVSchemaRequest) String() string { func (*GetVSchemaRequest) ProtoMessage() {} func (x *GetVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[89] + mi := &file_vtctldata_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5219,7 +5337,7 @@ func (x *GetVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVSchemaRequest.ProtoReflect.Descriptor instead. func (*GetVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{89} + return file_vtctldata_proto_rawDescGZIP(), []int{91} } func (x *GetVSchemaRequest) GetKeyspace() string { @@ -5240,7 +5358,7 @@ type GetVersionRequest struct { func (x *GetVersionRequest) Reset() { *x = GetVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[90] + mi := &file_vtctldata_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5253,7 +5371,7 @@ func (x *GetVersionRequest) String() string { func (*GetVersionRequest) ProtoMessage() {} func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[90] + mi := &file_vtctldata_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5266,7 +5384,7 @@ func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead. func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{90} + return file_vtctldata_proto_rawDescGZIP(), []int{92} } func (x *GetVersionRequest) GetTabletAlias() *topodata.TabletAlias { @@ -5287,7 +5405,7 @@ type GetVersionResponse struct { func (x *GetVersionResponse) Reset() { *x = GetVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[91] + mi := &file_vtctldata_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5300,7 +5418,7 @@ func (x *GetVersionResponse) String() string { func (*GetVersionResponse) ProtoMessage() {} func (x *GetVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[91] + mi := &file_vtctldata_proto_msgTypes[93] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5313,7 +5431,7 @@ func (x *GetVersionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead. func (*GetVersionResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{91} + return file_vtctldata_proto_rawDescGZIP(), []int{93} } func (x *GetVersionResponse) GetVersion() string { @@ -5334,7 +5452,7 @@ type GetVSchemaResponse struct { func (x *GetVSchemaResponse) Reset() { *x = GetVSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[92] + mi := &file_vtctldata_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5347,7 +5465,7 @@ func (x *GetVSchemaResponse) String() string { func (*GetVSchemaResponse) ProtoMessage() {} func (x *GetVSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[92] + mi := &file_vtctldata_proto_msgTypes[94] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5360,7 +5478,7 @@ func (x *GetVSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetVSchemaResponse.ProtoReflect.Descriptor instead. func (*GetVSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{92} + return file_vtctldata_proto_rawDescGZIP(), []int{94} } func (x *GetVSchemaResponse) GetVSchema() *vschema.Keyspace { @@ -5382,7 +5500,7 @@ type GetWorkflowsRequest struct { func (x *GetWorkflowsRequest) Reset() { *x = GetWorkflowsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[93] + mi := &file_vtctldata_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5395,7 +5513,7 @@ func (x *GetWorkflowsRequest) String() string { func (*GetWorkflowsRequest) ProtoMessage() {} func (x *GetWorkflowsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[93] + mi := &file_vtctldata_proto_msgTypes[95] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5408,7 +5526,7 @@ func (x *GetWorkflowsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkflowsRequest.ProtoReflect.Descriptor instead. func (*GetWorkflowsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{93} + return file_vtctldata_proto_rawDescGZIP(), []int{95} } func (x *GetWorkflowsRequest) GetKeyspace() string { @@ -5436,7 +5554,7 @@ type GetWorkflowsResponse struct { func (x *GetWorkflowsResponse) Reset() { *x = GetWorkflowsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[94] + mi := &file_vtctldata_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5449,7 +5567,7 @@ func (x *GetWorkflowsResponse) String() string { func (*GetWorkflowsResponse) ProtoMessage() {} func (x *GetWorkflowsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[94] + mi := &file_vtctldata_proto_msgTypes[96] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5462,7 +5580,7 @@ func (x *GetWorkflowsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkflowsResponse.ProtoReflect.Descriptor instead. func (*GetWorkflowsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{94} + return file_vtctldata_proto_rawDescGZIP(), []int{96} } func (x *GetWorkflowsResponse) GetWorkflows() []*Workflow { @@ -5487,7 +5605,7 @@ type InitShardPrimaryRequest struct { func (x *InitShardPrimaryRequest) Reset() { *x = InitShardPrimaryRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[95] + mi := &file_vtctldata_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5500,7 +5618,7 @@ func (x *InitShardPrimaryRequest) String() string { func (*InitShardPrimaryRequest) ProtoMessage() {} func (x *InitShardPrimaryRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[95] + mi := &file_vtctldata_proto_msgTypes[97] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5513,7 +5631,7 @@ func (x *InitShardPrimaryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InitShardPrimaryRequest.ProtoReflect.Descriptor instead. func (*InitShardPrimaryRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{95} + return file_vtctldata_proto_rawDescGZIP(), []int{97} } func (x *InitShardPrimaryRequest) GetKeyspace() string { @@ -5562,7 +5680,7 @@ type InitShardPrimaryResponse struct { func (x *InitShardPrimaryResponse) Reset() { *x = InitShardPrimaryResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[96] + mi := &file_vtctldata_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5575,7 +5693,7 @@ func (x *InitShardPrimaryResponse) String() string { func (*InitShardPrimaryResponse) ProtoMessage() {} func (x *InitShardPrimaryResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[96] + mi := &file_vtctldata_proto_msgTypes[98] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5588,7 +5706,7 @@ func (x *InitShardPrimaryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InitShardPrimaryResponse.ProtoReflect.Descriptor instead. func (*InitShardPrimaryResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{96} + return file_vtctldata_proto_rawDescGZIP(), []int{98} } func (x *InitShardPrimaryResponse) GetEvents() []*logutil.Event { @@ -5609,7 +5727,7 @@ type PingTabletRequest struct { func (x *PingTabletRequest) Reset() { *x = PingTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[97] + mi := &file_vtctldata_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5622,7 +5740,7 @@ func (x *PingTabletRequest) String() string { func (*PingTabletRequest) ProtoMessage() {} func (x *PingTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[97] + mi := &file_vtctldata_proto_msgTypes[99] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5635,7 +5753,7 @@ func (x *PingTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PingTabletRequest.ProtoReflect.Descriptor instead. func (*PingTabletRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{97} + return file_vtctldata_proto_rawDescGZIP(), []int{99} } func (x *PingTabletRequest) GetTabletAlias() *topodata.TabletAlias { @@ -5654,7 +5772,7 @@ type PingTabletResponse struct { func (x *PingTabletResponse) Reset() { *x = PingTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[98] + mi := &file_vtctldata_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5667,7 +5785,7 @@ func (x *PingTabletResponse) String() string { func (*PingTabletResponse) ProtoMessage() {} func (x *PingTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[98] + mi := &file_vtctldata_proto_msgTypes[100] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5680,7 +5798,7 @@ func (x *PingTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PingTabletResponse.ProtoReflect.Descriptor instead. func (*PingTabletResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{98} + return file_vtctldata_proto_rawDescGZIP(), []int{100} } type PlannedReparentShardRequest struct { @@ -5715,7 +5833,7 @@ type PlannedReparentShardRequest struct { func (x *PlannedReparentShardRequest) Reset() { *x = PlannedReparentShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[99] + mi := &file_vtctldata_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5728,7 +5846,7 @@ func (x *PlannedReparentShardRequest) String() string { func (*PlannedReparentShardRequest) ProtoMessage() {} func (x *PlannedReparentShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[99] + mi := &file_vtctldata_proto_msgTypes[101] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5741,7 +5859,7 @@ func (x *PlannedReparentShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PlannedReparentShardRequest.ProtoReflect.Descriptor instead. func (*PlannedReparentShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{99} + return file_vtctldata_proto_rawDescGZIP(), []int{101} } func (x *PlannedReparentShardRequest) GetKeyspace() string { @@ -5799,7 +5917,7 @@ type PlannedReparentShardResponse struct { func (x *PlannedReparentShardResponse) Reset() { *x = PlannedReparentShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[100] + mi := &file_vtctldata_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5812,7 +5930,7 @@ func (x *PlannedReparentShardResponse) String() string { func (*PlannedReparentShardResponse) ProtoMessage() {} func (x *PlannedReparentShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[100] + mi := &file_vtctldata_proto_msgTypes[102] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5825,7 +5943,7 @@ func (x *PlannedReparentShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PlannedReparentShardResponse.ProtoReflect.Descriptor instead. func (*PlannedReparentShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{100} + return file_vtctldata_proto_rawDescGZIP(), []int{102} } func (x *PlannedReparentShardResponse) GetKeyspace() string { @@ -5871,7 +5989,7 @@ type RebuildKeyspaceGraphRequest struct { func (x *RebuildKeyspaceGraphRequest) Reset() { *x = RebuildKeyspaceGraphRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[101] + mi := &file_vtctldata_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5884,7 +6002,7 @@ func (x *RebuildKeyspaceGraphRequest) String() string { func (*RebuildKeyspaceGraphRequest) ProtoMessage() {} func (x *RebuildKeyspaceGraphRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[101] + mi := &file_vtctldata_proto_msgTypes[103] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5897,7 +6015,7 @@ func (x *RebuildKeyspaceGraphRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RebuildKeyspaceGraphRequest.ProtoReflect.Descriptor instead. func (*RebuildKeyspaceGraphRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{101} + return file_vtctldata_proto_rawDescGZIP(), []int{103} } func (x *RebuildKeyspaceGraphRequest) GetKeyspace() string { @@ -5930,7 +6048,7 @@ type RebuildKeyspaceGraphResponse struct { func (x *RebuildKeyspaceGraphResponse) Reset() { *x = RebuildKeyspaceGraphResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[102] + mi := &file_vtctldata_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5943,7 +6061,7 @@ func (x *RebuildKeyspaceGraphResponse) String() string { func (*RebuildKeyspaceGraphResponse) ProtoMessage() {} func (x *RebuildKeyspaceGraphResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[102] + mi := &file_vtctldata_proto_msgTypes[104] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5956,7 +6074,7 @@ func (x *RebuildKeyspaceGraphResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RebuildKeyspaceGraphResponse.ProtoReflect.Descriptor instead. func (*RebuildKeyspaceGraphResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{102} + return file_vtctldata_proto_rawDescGZIP(), []int{104} } type RebuildVSchemaGraphRequest struct { @@ -5972,7 +6090,7 @@ type RebuildVSchemaGraphRequest struct { func (x *RebuildVSchemaGraphRequest) Reset() { *x = RebuildVSchemaGraphRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[103] + mi := &file_vtctldata_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5985,7 +6103,7 @@ func (x *RebuildVSchemaGraphRequest) String() string { func (*RebuildVSchemaGraphRequest) ProtoMessage() {} func (x *RebuildVSchemaGraphRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[103] + mi := &file_vtctldata_proto_msgTypes[105] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5998,7 +6116,7 @@ func (x *RebuildVSchemaGraphRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RebuildVSchemaGraphRequest.ProtoReflect.Descriptor instead. func (*RebuildVSchemaGraphRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{103} + return file_vtctldata_proto_rawDescGZIP(), []int{105} } func (x *RebuildVSchemaGraphRequest) GetCells() []string { @@ -6017,7 +6135,7 @@ type RebuildVSchemaGraphResponse struct { func (x *RebuildVSchemaGraphResponse) Reset() { *x = RebuildVSchemaGraphResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[104] + mi := &file_vtctldata_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6030,7 +6148,7 @@ func (x *RebuildVSchemaGraphResponse) String() string { func (*RebuildVSchemaGraphResponse) ProtoMessage() {} func (x *RebuildVSchemaGraphResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[104] + mi := &file_vtctldata_proto_msgTypes[106] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6043,7 +6161,7 @@ func (x *RebuildVSchemaGraphResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RebuildVSchemaGraphResponse.ProtoReflect.Descriptor instead. func (*RebuildVSchemaGraphResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{104} + return file_vtctldata_proto_rawDescGZIP(), []int{106} } type RefreshStateRequest struct { @@ -6057,7 +6175,7 @@ type RefreshStateRequest struct { func (x *RefreshStateRequest) Reset() { *x = RefreshStateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[105] + mi := &file_vtctldata_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6070,7 +6188,7 @@ func (x *RefreshStateRequest) String() string { func (*RefreshStateRequest) ProtoMessage() {} func (x *RefreshStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[105] + mi := &file_vtctldata_proto_msgTypes[107] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6083,7 +6201,7 @@ func (x *RefreshStateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateRequest.ProtoReflect.Descriptor instead. func (*RefreshStateRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{105} + return file_vtctldata_proto_rawDescGZIP(), []int{107} } func (x *RefreshStateRequest) GetTabletAlias() *topodata.TabletAlias { @@ -6102,7 +6220,7 @@ type RefreshStateResponse struct { func (x *RefreshStateResponse) Reset() { *x = RefreshStateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[106] + mi := &file_vtctldata_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6115,7 +6233,7 @@ func (x *RefreshStateResponse) String() string { func (*RefreshStateResponse) ProtoMessage() {} func (x *RefreshStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[106] + mi := &file_vtctldata_proto_msgTypes[108] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6128,7 +6246,7 @@ func (x *RefreshStateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateResponse.ProtoReflect.Descriptor instead. func (*RefreshStateResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{106} + return file_vtctldata_proto_rawDescGZIP(), []int{108} } type RefreshStateByShardRequest struct { @@ -6144,7 +6262,7 @@ type RefreshStateByShardRequest struct { func (x *RefreshStateByShardRequest) Reset() { *x = RefreshStateByShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[107] + mi := &file_vtctldata_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6157,7 +6275,7 @@ func (x *RefreshStateByShardRequest) String() string { func (*RefreshStateByShardRequest) ProtoMessage() {} func (x *RefreshStateByShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[107] + mi := &file_vtctldata_proto_msgTypes[109] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6170,7 +6288,7 @@ func (x *RefreshStateByShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateByShardRequest.ProtoReflect.Descriptor instead. func (*RefreshStateByShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{107} + return file_vtctldata_proto_rawDescGZIP(), []int{109} } func (x *RefreshStateByShardRequest) GetKeyspace() string { @@ -6207,7 +6325,7 @@ type RefreshStateByShardResponse struct { func (x *RefreshStateByShardResponse) Reset() { *x = RefreshStateByShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[108] + mi := &file_vtctldata_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6220,7 +6338,7 @@ func (x *RefreshStateByShardResponse) String() string { func (*RefreshStateByShardResponse) ProtoMessage() {} func (x *RefreshStateByShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[108] + mi := &file_vtctldata_proto_msgTypes[110] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6233,7 +6351,7 @@ func (x *RefreshStateByShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshStateByShardResponse.ProtoReflect.Descriptor instead. func (*RefreshStateByShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{108} + return file_vtctldata_proto_rawDescGZIP(), []int{110} } func (x *RefreshStateByShardResponse) GetIsPartialRefresh() bool { @@ -6261,7 +6379,7 @@ type ReloadSchemaRequest struct { func (x *ReloadSchemaRequest) Reset() { *x = ReloadSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[109] + mi := &file_vtctldata_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6274,7 +6392,7 @@ func (x *ReloadSchemaRequest) String() string { func (*ReloadSchemaRequest) ProtoMessage() {} func (x *ReloadSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[109] + mi := &file_vtctldata_proto_msgTypes[111] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6287,7 +6405,7 @@ func (x *ReloadSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaRequest.ProtoReflect.Descriptor instead. func (*ReloadSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{109} + return file_vtctldata_proto_rawDescGZIP(), []int{111} } func (x *ReloadSchemaRequest) GetTabletAlias() *topodata.TabletAlias { @@ -6306,7 +6424,7 @@ type ReloadSchemaResponse struct { func (x *ReloadSchemaResponse) Reset() { *x = ReloadSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[110] + mi := &file_vtctldata_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6319,7 +6437,7 @@ func (x *ReloadSchemaResponse) String() string { func (*ReloadSchemaResponse) ProtoMessage() {} func (x *ReloadSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[110] + mi := &file_vtctldata_proto_msgTypes[112] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6332,7 +6450,7 @@ func (x *ReloadSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaResponse.ProtoReflect.Descriptor instead. func (*ReloadSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{110} + return file_vtctldata_proto_rawDescGZIP(), []int{112} } type ReloadSchemaKeyspaceRequest struct { @@ -6352,7 +6470,7 @@ type ReloadSchemaKeyspaceRequest struct { func (x *ReloadSchemaKeyspaceRequest) Reset() { *x = ReloadSchemaKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[111] + mi := &file_vtctldata_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6365,7 +6483,7 @@ func (x *ReloadSchemaKeyspaceRequest) String() string { func (*ReloadSchemaKeyspaceRequest) ProtoMessage() {} func (x *ReloadSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[111] + mi := &file_vtctldata_proto_msgTypes[113] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6378,7 +6496,7 @@ func (x *ReloadSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ReloadSchemaKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{111} + return file_vtctldata_proto_rawDescGZIP(), []int{113} } func (x *ReloadSchemaKeyspaceRequest) GetKeyspace() string { @@ -6420,7 +6538,7 @@ type ReloadSchemaKeyspaceResponse struct { func (x *ReloadSchemaKeyspaceResponse) Reset() { *x = ReloadSchemaKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[112] + mi := &file_vtctldata_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6433,7 +6551,7 @@ func (x *ReloadSchemaKeyspaceResponse) String() string { func (*ReloadSchemaKeyspaceResponse) ProtoMessage() {} func (x *ReloadSchemaKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[112] + mi := &file_vtctldata_proto_msgTypes[114] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6446,7 +6564,7 @@ func (x *ReloadSchemaKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaKeyspaceResponse.ProtoReflect.Descriptor instead. func (*ReloadSchemaKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{112} + return file_vtctldata_proto_rawDescGZIP(), []int{114} } func (x *ReloadSchemaKeyspaceResponse) GetEvents() []*logutil.Event { @@ -6472,7 +6590,7 @@ type ReloadSchemaShardRequest struct { func (x *ReloadSchemaShardRequest) Reset() { *x = ReloadSchemaShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[113] + mi := &file_vtctldata_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6485,7 +6603,7 @@ func (x *ReloadSchemaShardRequest) String() string { func (*ReloadSchemaShardRequest) ProtoMessage() {} func (x *ReloadSchemaShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[113] + mi := &file_vtctldata_proto_msgTypes[115] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6498,7 +6616,7 @@ func (x *ReloadSchemaShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaShardRequest.ProtoReflect.Descriptor instead. func (*ReloadSchemaShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{113} + return file_vtctldata_proto_rawDescGZIP(), []int{115} } func (x *ReloadSchemaShardRequest) GetKeyspace() string { @@ -6547,7 +6665,7 @@ type ReloadSchemaShardResponse struct { func (x *ReloadSchemaShardResponse) Reset() { *x = ReloadSchemaShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[114] + mi := &file_vtctldata_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6560,7 +6678,7 @@ func (x *ReloadSchemaShardResponse) String() string { func (*ReloadSchemaShardResponse) ProtoMessage() {} func (x *ReloadSchemaShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[114] + mi := &file_vtctldata_proto_msgTypes[116] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6573,7 +6691,7 @@ func (x *ReloadSchemaShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReloadSchemaShardResponse.ProtoReflect.Descriptor instead. func (*ReloadSchemaShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{114} + return file_vtctldata_proto_rawDescGZIP(), []int{116} } func (x *ReloadSchemaShardResponse) GetEvents() []*logutil.Event { @@ -6596,7 +6714,7 @@ type RemoveBackupRequest struct { func (x *RemoveBackupRequest) Reset() { *x = RemoveBackupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[115] + mi := &file_vtctldata_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6609,7 +6727,7 @@ func (x *RemoveBackupRequest) String() string { func (*RemoveBackupRequest) ProtoMessage() {} func (x *RemoveBackupRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[115] + mi := &file_vtctldata_proto_msgTypes[117] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6622,7 +6740,7 @@ func (x *RemoveBackupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveBackupRequest.ProtoReflect.Descriptor instead. func (*RemoveBackupRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{115} + return file_vtctldata_proto_rawDescGZIP(), []int{117} } func (x *RemoveBackupRequest) GetKeyspace() string { @@ -6655,7 +6773,7 @@ type RemoveBackupResponse struct { func (x *RemoveBackupResponse) Reset() { *x = RemoveBackupResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[116] + mi := &file_vtctldata_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6668,7 +6786,7 @@ func (x *RemoveBackupResponse) String() string { func (*RemoveBackupResponse) ProtoMessage() {} func (x *RemoveBackupResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[116] + mi := &file_vtctldata_proto_msgTypes[118] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6681,7 +6799,7 @@ func (x *RemoveBackupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveBackupResponse.ProtoReflect.Descriptor instead. func (*RemoveBackupResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{116} + return file_vtctldata_proto_rawDescGZIP(), []int{118} } type RemoveKeyspaceCellRequest struct { @@ -6703,7 +6821,7 @@ type RemoveKeyspaceCellRequest struct { func (x *RemoveKeyspaceCellRequest) Reset() { *x = RemoveKeyspaceCellRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[117] + mi := &file_vtctldata_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6716,7 +6834,7 @@ func (x *RemoveKeyspaceCellRequest) String() string { func (*RemoveKeyspaceCellRequest) ProtoMessage() {} func (x *RemoveKeyspaceCellRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[117] + mi := &file_vtctldata_proto_msgTypes[119] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6729,7 +6847,7 @@ func (x *RemoveKeyspaceCellRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveKeyspaceCellRequest.ProtoReflect.Descriptor instead. func (*RemoveKeyspaceCellRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{117} + return file_vtctldata_proto_rawDescGZIP(), []int{119} } func (x *RemoveKeyspaceCellRequest) GetKeyspace() string { @@ -6769,7 +6887,7 @@ type RemoveKeyspaceCellResponse struct { func (x *RemoveKeyspaceCellResponse) Reset() { *x = RemoveKeyspaceCellResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[118] + mi := &file_vtctldata_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6782,7 +6900,7 @@ func (x *RemoveKeyspaceCellResponse) String() string { func (*RemoveKeyspaceCellResponse) ProtoMessage() {} func (x *RemoveKeyspaceCellResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[118] + mi := &file_vtctldata_proto_msgTypes[120] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6795,7 +6913,7 @@ func (x *RemoveKeyspaceCellResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveKeyspaceCellResponse.ProtoReflect.Descriptor instead. func (*RemoveKeyspaceCellResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{118} + return file_vtctldata_proto_rawDescGZIP(), []int{120} } type RemoveShardCellRequest struct { @@ -6818,7 +6936,7 @@ type RemoveShardCellRequest struct { func (x *RemoveShardCellRequest) Reset() { *x = RemoveShardCellRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[119] + mi := &file_vtctldata_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6831,7 +6949,7 @@ func (x *RemoveShardCellRequest) String() string { func (*RemoveShardCellRequest) ProtoMessage() {} func (x *RemoveShardCellRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[119] + mi := &file_vtctldata_proto_msgTypes[121] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6844,7 +6962,7 @@ func (x *RemoveShardCellRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveShardCellRequest.ProtoReflect.Descriptor instead. func (*RemoveShardCellRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{119} + return file_vtctldata_proto_rawDescGZIP(), []int{121} } func (x *RemoveShardCellRequest) GetKeyspace() string { @@ -6891,7 +7009,7 @@ type RemoveShardCellResponse struct { func (x *RemoveShardCellResponse) Reset() { *x = RemoveShardCellResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[120] + mi := &file_vtctldata_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6904,7 +7022,7 @@ func (x *RemoveShardCellResponse) String() string { func (*RemoveShardCellResponse) ProtoMessage() {} func (x *RemoveShardCellResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[120] + mi := &file_vtctldata_proto_msgTypes[122] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6917,7 +7035,7 @@ func (x *RemoveShardCellResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveShardCellResponse.ProtoReflect.Descriptor instead. func (*RemoveShardCellResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{120} + return file_vtctldata_proto_rawDescGZIP(), []int{122} } type ReparentTabletRequest struct { @@ -6933,7 +7051,7 @@ type ReparentTabletRequest struct { func (x *ReparentTabletRequest) Reset() { *x = ReparentTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[121] + mi := &file_vtctldata_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6946,7 +7064,7 @@ func (x *ReparentTabletRequest) String() string { func (*ReparentTabletRequest) ProtoMessage() {} func (x *ReparentTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[121] + mi := &file_vtctldata_proto_msgTypes[123] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6959,7 +7077,7 @@ func (x *ReparentTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReparentTabletRequest.ProtoReflect.Descriptor instead. func (*ReparentTabletRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{121} + return file_vtctldata_proto_rawDescGZIP(), []int{123} } func (x *ReparentTabletRequest) GetTablet() *topodata.TabletAlias { @@ -6985,7 +7103,7 @@ type ReparentTabletResponse struct { func (x *ReparentTabletResponse) Reset() { *x = ReparentTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[122] + mi := &file_vtctldata_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6998,7 +7116,7 @@ func (x *ReparentTabletResponse) String() string { func (*ReparentTabletResponse) ProtoMessage() {} func (x *ReparentTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[122] + mi := &file_vtctldata_proto_msgTypes[124] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7011,7 +7129,7 @@ func (x *ReparentTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReparentTabletResponse.ProtoReflect.Descriptor instead. func (*ReparentTabletResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{122} + return file_vtctldata_proto_rawDescGZIP(), []int{124} } func (x *ReparentTabletResponse) GetKeyspace() string { @@ -7049,7 +7167,7 @@ type RestoreFromBackupRequest struct { func (x *RestoreFromBackupRequest) Reset() { *x = RestoreFromBackupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[123] + mi := &file_vtctldata_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7062,7 +7180,7 @@ func (x *RestoreFromBackupRequest) String() string { func (*RestoreFromBackupRequest) ProtoMessage() {} func (x *RestoreFromBackupRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[123] + mi := &file_vtctldata_proto_msgTypes[125] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7075,7 +7193,7 @@ func (x *RestoreFromBackupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RestoreFromBackupRequest.ProtoReflect.Descriptor instead. func (*RestoreFromBackupRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{123} + return file_vtctldata_proto_rawDescGZIP(), []int{125} } func (x *RestoreFromBackupRequest) GetTabletAlias() *topodata.TabletAlias { @@ -7107,7 +7225,7 @@ type RestoreFromBackupResponse struct { func (x *RestoreFromBackupResponse) Reset() { *x = RestoreFromBackupResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[124] + mi := &file_vtctldata_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7120,7 +7238,7 @@ func (x *RestoreFromBackupResponse) String() string { func (*RestoreFromBackupResponse) ProtoMessage() {} func (x *RestoreFromBackupResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[124] + mi := &file_vtctldata_proto_msgTypes[126] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7133,7 +7251,7 @@ func (x *RestoreFromBackupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RestoreFromBackupResponse.ProtoReflect.Descriptor instead. func (*RestoreFromBackupResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{124} + return file_vtctldata_proto_rawDescGZIP(), []int{126} } func (x *RestoreFromBackupResponse) GetTabletAlias() *topodata.TabletAlias { @@ -7175,7 +7293,7 @@ type RunHealthCheckRequest struct { func (x *RunHealthCheckRequest) Reset() { *x = RunHealthCheckRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[125] + mi := &file_vtctldata_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7188,7 +7306,7 @@ func (x *RunHealthCheckRequest) String() string { func (*RunHealthCheckRequest) ProtoMessage() {} func (x *RunHealthCheckRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[125] + mi := &file_vtctldata_proto_msgTypes[127] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7201,7 +7319,7 @@ func (x *RunHealthCheckRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RunHealthCheckRequest.ProtoReflect.Descriptor instead. func (*RunHealthCheckRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{125} + return file_vtctldata_proto_rawDescGZIP(), []int{127} } func (x *RunHealthCheckRequest) GetTabletAlias() *topodata.TabletAlias { @@ -7220,7 +7338,7 @@ type RunHealthCheckResponse struct { func (x *RunHealthCheckResponse) Reset() { *x = RunHealthCheckResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[126] + mi := &file_vtctldata_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7233,7 +7351,7 @@ func (x *RunHealthCheckResponse) String() string { func (*RunHealthCheckResponse) ProtoMessage() {} func (x *RunHealthCheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[126] + mi := &file_vtctldata_proto_msgTypes[128] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7246,7 +7364,7 @@ func (x *RunHealthCheckResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RunHealthCheckResponse.ProtoReflect.Descriptor instead. func (*RunHealthCheckResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{126} + return file_vtctldata_proto_rawDescGZIP(), []int{128} } type SetKeyspaceDurabilityPolicyRequest struct { @@ -7261,7 +7379,7 @@ type SetKeyspaceDurabilityPolicyRequest struct { func (x *SetKeyspaceDurabilityPolicyRequest) Reset() { *x = SetKeyspaceDurabilityPolicyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[127] + mi := &file_vtctldata_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7274,7 +7392,7 @@ func (x *SetKeyspaceDurabilityPolicyRequest) String() string { func (*SetKeyspaceDurabilityPolicyRequest) ProtoMessage() {} func (x *SetKeyspaceDurabilityPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[127] + mi := &file_vtctldata_proto_msgTypes[129] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7287,7 +7405,7 @@ func (x *SetKeyspaceDurabilityPolicyRequest) ProtoReflect() protoreflect.Message // Deprecated: Use SetKeyspaceDurabilityPolicyRequest.ProtoReflect.Descriptor instead. func (*SetKeyspaceDurabilityPolicyRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{127} + return file_vtctldata_proto_rawDescGZIP(), []int{129} } func (x *SetKeyspaceDurabilityPolicyRequest) GetKeyspace() string { @@ -7316,7 +7434,7 @@ type SetKeyspaceDurabilityPolicyResponse struct { func (x *SetKeyspaceDurabilityPolicyResponse) Reset() { *x = SetKeyspaceDurabilityPolicyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[128] + mi := &file_vtctldata_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7329,7 +7447,7 @@ func (x *SetKeyspaceDurabilityPolicyResponse) String() string { func (*SetKeyspaceDurabilityPolicyResponse) ProtoMessage() {} func (x *SetKeyspaceDurabilityPolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[128] + mi := &file_vtctldata_proto_msgTypes[130] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7342,7 +7460,7 @@ func (x *SetKeyspaceDurabilityPolicyResponse) ProtoReflect() protoreflect.Messag // Deprecated: Use SetKeyspaceDurabilityPolicyResponse.ProtoReflect.Descriptor instead. func (*SetKeyspaceDurabilityPolicyResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{128} + return file_vtctldata_proto_rawDescGZIP(), []int{130} } func (x *SetKeyspaceDurabilityPolicyResponse) GetKeyspace() *topodata.Keyspace { @@ -7367,7 +7485,7 @@ type SetKeyspaceServedFromRequest struct { func (x *SetKeyspaceServedFromRequest) Reset() { *x = SetKeyspaceServedFromRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[129] + mi := &file_vtctldata_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7380,7 +7498,7 @@ func (x *SetKeyspaceServedFromRequest) String() string { func (*SetKeyspaceServedFromRequest) ProtoMessage() {} func (x *SetKeyspaceServedFromRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[129] + mi := &file_vtctldata_proto_msgTypes[131] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7393,7 +7511,7 @@ func (x *SetKeyspaceServedFromRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetKeyspaceServedFromRequest.ProtoReflect.Descriptor instead. func (*SetKeyspaceServedFromRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{129} + return file_vtctldata_proto_rawDescGZIP(), []int{131} } func (x *SetKeyspaceServedFromRequest) GetKeyspace() string { @@ -7443,7 +7561,7 @@ type SetKeyspaceServedFromResponse struct { func (x *SetKeyspaceServedFromResponse) Reset() { *x = SetKeyspaceServedFromResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[130] + mi := &file_vtctldata_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7456,7 +7574,7 @@ func (x *SetKeyspaceServedFromResponse) String() string { func (*SetKeyspaceServedFromResponse) ProtoMessage() {} func (x *SetKeyspaceServedFromResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[130] + mi := &file_vtctldata_proto_msgTypes[132] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7469,7 +7587,7 @@ func (x *SetKeyspaceServedFromResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetKeyspaceServedFromResponse.ProtoReflect.Descriptor instead. func (*SetKeyspaceServedFromResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{130} + return file_vtctldata_proto_rawDescGZIP(), []int{132} } func (x *SetKeyspaceServedFromResponse) GetKeyspace() *topodata.Keyspace { @@ -7491,7 +7609,7 @@ type SetKeyspaceShardingInfoRequest struct { func (x *SetKeyspaceShardingInfoRequest) Reset() { *x = SetKeyspaceShardingInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[131] + mi := &file_vtctldata_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7504,7 +7622,7 @@ func (x *SetKeyspaceShardingInfoRequest) String() string { func (*SetKeyspaceShardingInfoRequest) ProtoMessage() {} func (x *SetKeyspaceShardingInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[131] + mi := &file_vtctldata_proto_msgTypes[133] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7517,7 +7635,7 @@ func (x *SetKeyspaceShardingInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetKeyspaceShardingInfoRequest.ProtoReflect.Descriptor instead. func (*SetKeyspaceShardingInfoRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{131} + return file_vtctldata_proto_rawDescGZIP(), []int{133} } func (x *SetKeyspaceShardingInfoRequest) GetKeyspace() string { @@ -7546,7 +7664,7 @@ type SetKeyspaceShardingInfoResponse struct { func (x *SetKeyspaceShardingInfoResponse) Reset() { *x = SetKeyspaceShardingInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[132] + mi := &file_vtctldata_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7559,7 +7677,7 @@ func (x *SetKeyspaceShardingInfoResponse) String() string { func (*SetKeyspaceShardingInfoResponse) ProtoMessage() {} func (x *SetKeyspaceShardingInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[132] + mi := &file_vtctldata_proto_msgTypes[134] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7572,7 +7690,7 @@ func (x *SetKeyspaceShardingInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetKeyspaceShardingInfoResponse.ProtoReflect.Descriptor instead. func (*SetKeyspaceShardingInfoResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{132} + return file_vtctldata_proto_rawDescGZIP(), []int{134} } func (x *SetKeyspaceShardingInfoResponse) GetKeyspace() *topodata.Keyspace { @@ -7595,7 +7713,7 @@ type SetShardIsPrimaryServingRequest struct { func (x *SetShardIsPrimaryServingRequest) Reset() { *x = SetShardIsPrimaryServingRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[133] + mi := &file_vtctldata_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7608,7 +7726,7 @@ func (x *SetShardIsPrimaryServingRequest) String() string { func (*SetShardIsPrimaryServingRequest) ProtoMessage() {} func (x *SetShardIsPrimaryServingRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[133] + mi := &file_vtctldata_proto_msgTypes[135] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7621,7 +7739,7 @@ func (x *SetShardIsPrimaryServingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetShardIsPrimaryServingRequest.ProtoReflect.Descriptor instead. func (*SetShardIsPrimaryServingRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{133} + return file_vtctldata_proto_rawDescGZIP(), []int{135} } func (x *SetShardIsPrimaryServingRequest) GetKeyspace() string { @@ -7657,7 +7775,7 @@ type SetShardIsPrimaryServingResponse struct { func (x *SetShardIsPrimaryServingResponse) Reset() { *x = SetShardIsPrimaryServingResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[134] + mi := &file_vtctldata_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7670,7 +7788,7 @@ func (x *SetShardIsPrimaryServingResponse) String() string { func (*SetShardIsPrimaryServingResponse) ProtoMessage() {} func (x *SetShardIsPrimaryServingResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[134] + mi := &file_vtctldata_proto_msgTypes[136] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7683,7 +7801,7 @@ func (x *SetShardIsPrimaryServingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetShardIsPrimaryServingResponse.ProtoReflect.Descriptor instead. func (*SetShardIsPrimaryServingResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{134} + return file_vtctldata_proto_rawDescGZIP(), []int{136} } func (x *SetShardIsPrimaryServingResponse) GetShard() *topodata.Shard { @@ -7724,7 +7842,7 @@ type SetShardTabletControlRequest struct { func (x *SetShardTabletControlRequest) Reset() { *x = SetShardTabletControlRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[135] + mi := &file_vtctldata_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7737,7 +7855,7 @@ func (x *SetShardTabletControlRequest) String() string { func (*SetShardTabletControlRequest) ProtoMessage() {} func (x *SetShardTabletControlRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[135] + mi := &file_vtctldata_proto_msgTypes[137] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7750,7 +7868,7 @@ func (x *SetShardTabletControlRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetShardTabletControlRequest.ProtoReflect.Descriptor instead. func (*SetShardTabletControlRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{135} + return file_vtctldata_proto_rawDescGZIP(), []int{137} } func (x *SetShardTabletControlRequest) GetKeyspace() string { @@ -7814,7 +7932,7 @@ type SetShardTabletControlResponse struct { func (x *SetShardTabletControlResponse) Reset() { *x = SetShardTabletControlResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[136] + mi := &file_vtctldata_proto_msgTypes[138] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7827,7 +7945,7 @@ func (x *SetShardTabletControlResponse) String() string { func (*SetShardTabletControlResponse) ProtoMessage() {} func (x *SetShardTabletControlResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[136] + mi := &file_vtctldata_proto_msgTypes[138] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7840,7 +7958,7 @@ func (x *SetShardTabletControlResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetShardTabletControlResponse.ProtoReflect.Descriptor instead. func (*SetShardTabletControlResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{136} + return file_vtctldata_proto_rawDescGZIP(), []int{138} } func (x *SetShardTabletControlResponse) GetShard() *topodata.Shard { @@ -7862,7 +7980,7 @@ type SetWritableRequest struct { func (x *SetWritableRequest) Reset() { *x = SetWritableRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[137] + mi := &file_vtctldata_proto_msgTypes[139] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7875,7 +7993,7 @@ func (x *SetWritableRequest) String() string { func (*SetWritableRequest) ProtoMessage() {} func (x *SetWritableRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[137] + mi := &file_vtctldata_proto_msgTypes[139] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7888,7 +8006,7 @@ func (x *SetWritableRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetWritableRequest.ProtoReflect.Descriptor instead. func (*SetWritableRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{137} + return file_vtctldata_proto_rawDescGZIP(), []int{139} } func (x *SetWritableRequest) GetTabletAlias() *topodata.TabletAlias { @@ -7914,7 +8032,7 @@ type SetWritableResponse struct { func (x *SetWritableResponse) Reset() { *x = SetWritableResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[138] + mi := &file_vtctldata_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7927,7 +8045,7 @@ func (x *SetWritableResponse) String() string { func (*SetWritableResponse) ProtoMessage() {} func (x *SetWritableResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[138] + mi := &file_vtctldata_proto_msgTypes[140] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7940,7 +8058,7 @@ func (x *SetWritableResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetWritableResponse.ProtoReflect.Descriptor instead. func (*SetWritableResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{138} + return file_vtctldata_proto_rawDescGZIP(), []int{140} } type ShardReplicationAddRequest struct { @@ -7956,7 +8074,7 @@ type ShardReplicationAddRequest struct { func (x *ShardReplicationAddRequest) Reset() { *x = ShardReplicationAddRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[139] + mi := &file_vtctldata_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7969,7 +8087,7 @@ func (x *ShardReplicationAddRequest) String() string { func (*ShardReplicationAddRequest) ProtoMessage() {} func (x *ShardReplicationAddRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[139] + mi := &file_vtctldata_proto_msgTypes[141] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7982,7 +8100,7 @@ func (x *ShardReplicationAddRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationAddRequest.ProtoReflect.Descriptor instead. func (*ShardReplicationAddRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{139} + return file_vtctldata_proto_rawDescGZIP(), []int{141} } func (x *ShardReplicationAddRequest) GetKeyspace() string { @@ -8015,7 +8133,7 @@ type ShardReplicationAddResponse struct { func (x *ShardReplicationAddResponse) Reset() { *x = ShardReplicationAddResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[140] + mi := &file_vtctldata_proto_msgTypes[142] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8028,7 +8146,7 @@ func (x *ShardReplicationAddResponse) String() string { func (*ShardReplicationAddResponse) ProtoMessage() {} func (x *ShardReplicationAddResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[140] + mi := &file_vtctldata_proto_msgTypes[142] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8041,7 +8159,7 @@ func (x *ShardReplicationAddResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationAddResponse.ProtoReflect.Descriptor instead. func (*ShardReplicationAddResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{140} + return file_vtctldata_proto_rawDescGZIP(), []int{142} } type ShardReplicationFixRequest struct { @@ -8057,7 +8175,7 @@ type ShardReplicationFixRequest struct { func (x *ShardReplicationFixRequest) Reset() { *x = ShardReplicationFixRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[141] + mi := &file_vtctldata_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8070,7 +8188,7 @@ func (x *ShardReplicationFixRequest) String() string { func (*ShardReplicationFixRequest) ProtoMessage() {} func (x *ShardReplicationFixRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[141] + mi := &file_vtctldata_proto_msgTypes[143] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8083,7 +8201,7 @@ func (x *ShardReplicationFixRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationFixRequest.ProtoReflect.Descriptor instead. func (*ShardReplicationFixRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{141} + return file_vtctldata_proto_rawDescGZIP(), []int{143} } func (x *ShardReplicationFixRequest) GetKeyspace() string { @@ -8121,7 +8239,7 @@ type ShardReplicationFixResponse struct { func (x *ShardReplicationFixResponse) Reset() { *x = ShardReplicationFixResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[142] + mi := &file_vtctldata_proto_msgTypes[144] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8134,7 +8252,7 @@ func (x *ShardReplicationFixResponse) String() string { func (*ShardReplicationFixResponse) ProtoMessage() {} func (x *ShardReplicationFixResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[142] + mi := &file_vtctldata_proto_msgTypes[144] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8147,7 +8265,7 @@ func (x *ShardReplicationFixResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationFixResponse.ProtoReflect.Descriptor instead. func (*ShardReplicationFixResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{142} + return file_vtctldata_proto_rawDescGZIP(), []int{144} } func (x *ShardReplicationFixResponse) GetError() *topodata.ShardReplicationError { @@ -8169,7 +8287,7 @@ type ShardReplicationPositionsRequest struct { func (x *ShardReplicationPositionsRequest) Reset() { *x = ShardReplicationPositionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[143] + mi := &file_vtctldata_proto_msgTypes[145] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8182,7 +8300,7 @@ func (x *ShardReplicationPositionsRequest) String() string { func (*ShardReplicationPositionsRequest) ProtoMessage() {} func (x *ShardReplicationPositionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[143] + mi := &file_vtctldata_proto_msgTypes[145] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8195,7 +8313,7 @@ func (x *ShardReplicationPositionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationPositionsRequest.ProtoReflect.Descriptor instead. func (*ShardReplicationPositionsRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{143} + return file_vtctldata_proto_rawDescGZIP(), []int{145} } func (x *ShardReplicationPositionsRequest) GetKeyspace() string { @@ -8228,7 +8346,7 @@ type ShardReplicationPositionsResponse struct { func (x *ShardReplicationPositionsResponse) Reset() { *x = ShardReplicationPositionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[144] + mi := &file_vtctldata_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8241,7 +8359,7 @@ func (x *ShardReplicationPositionsResponse) String() string { func (*ShardReplicationPositionsResponse) ProtoMessage() {} func (x *ShardReplicationPositionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[144] + mi := &file_vtctldata_proto_msgTypes[146] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8254,7 +8372,7 @@ func (x *ShardReplicationPositionsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ShardReplicationPositionsResponse.ProtoReflect.Descriptor instead. func (*ShardReplicationPositionsResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{144} + return file_vtctldata_proto_rawDescGZIP(), []int{146} } func (x *ShardReplicationPositionsResponse) GetReplicationStatuses() map[string]*replicationdata.Status { @@ -8284,7 +8402,7 @@ type ShardReplicationRemoveRequest struct { func (x *ShardReplicationRemoveRequest) Reset() { *x = ShardReplicationRemoveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[145] + mi := &file_vtctldata_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8297,7 +8415,7 @@ func (x *ShardReplicationRemoveRequest) String() string { func (*ShardReplicationRemoveRequest) ProtoMessage() {} func (x *ShardReplicationRemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[145] + mi := &file_vtctldata_proto_msgTypes[147] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8310,7 +8428,7 @@ func (x *ShardReplicationRemoveRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationRemoveRequest.ProtoReflect.Descriptor instead. func (*ShardReplicationRemoveRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{145} + return file_vtctldata_proto_rawDescGZIP(), []int{147} } func (x *ShardReplicationRemoveRequest) GetKeyspace() string { @@ -8343,7 +8461,7 @@ type ShardReplicationRemoveResponse struct { func (x *ShardReplicationRemoveResponse) Reset() { *x = ShardReplicationRemoveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[146] + mi := &file_vtctldata_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8356,7 +8474,7 @@ func (x *ShardReplicationRemoveResponse) String() string { func (*ShardReplicationRemoveResponse) ProtoMessage() {} func (x *ShardReplicationRemoveResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[146] + mi := &file_vtctldata_proto_msgTypes[148] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8369,7 +8487,7 @@ func (x *ShardReplicationRemoveResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ShardReplicationRemoveResponse.ProtoReflect.Descriptor instead. func (*ShardReplicationRemoveResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{146} + return file_vtctldata_proto_rawDescGZIP(), []int{148} } type SleepTabletRequest struct { @@ -8384,7 +8502,7 @@ type SleepTabletRequest struct { func (x *SleepTabletRequest) Reset() { *x = SleepTabletRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[147] + mi := &file_vtctldata_proto_msgTypes[149] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8397,7 +8515,7 @@ func (x *SleepTabletRequest) String() string { func (*SleepTabletRequest) ProtoMessage() {} func (x *SleepTabletRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[147] + mi := &file_vtctldata_proto_msgTypes[149] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8410,7 +8528,7 @@ func (x *SleepTabletRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SleepTabletRequest.ProtoReflect.Descriptor instead. func (*SleepTabletRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{147} + return file_vtctldata_proto_rawDescGZIP(), []int{149} } func (x *SleepTabletRequest) GetTabletAlias() *topodata.TabletAlias { @@ -8436,7 +8554,7 @@ type SleepTabletResponse struct { func (x *SleepTabletResponse) Reset() { *x = SleepTabletResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[148] + mi := &file_vtctldata_proto_msgTypes[150] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8449,7 +8567,7 @@ func (x *SleepTabletResponse) String() string { func (*SleepTabletResponse) ProtoMessage() {} func (x *SleepTabletResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[148] + mi := &file_vtctldata_proto_msgTypes[150] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8462,7 +8580,7 @@ func (x *SleepTabletResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SleepTabletResponse.ProtoReflect.Descriptor instead. func (*SleepTabletResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{148} + return file_vtctldata_proto_rawDescGZIP(), []int{150} } type SourceShardAddRequest struct { @@ -8486,7 +8604,7 @@ type SourceShardAddRequest struct { func (x *SourceShardAddRequest) Reset() { *x = SourceShardAddRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[149] + mi := &file_vtctldata_proto_msgTypes[151] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8499,7 +8617,7 @@ func (x *SourceShardAddRequest) String() string { func (*SourceShardAddRequest) ProtoMessage() {} func (x *SourceShardAddRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[149] + mi := &file_vtctldata_proto_msgTypes[151] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8512,7 +8630,7 @@ func (x *SourceShardAddRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceShardAddRequest.ProtoReflect.Descriptor instead. func (*SourceShardAddRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{149} + return file_vtctldata_proto_rawDescGZIP(), []int{151} } func (x *SourceShardAddRequest) GetKeyspace() string { @@ -8576,7 +8694,7 @@ type SourceShardAddResponse struct { func (x *SourceShardAddResponse) Reset() { *x = SourceShardAddResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[150] + mi := &file_vtctldata_proto_msgTypes[152] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8589,7 +8707,7 @@ func (x *SourceShardAddResponse) String() string { func (*SourceShardAddResponse) ProtoMessage() {} func (x *SourceShardAddResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[150] + mi := &file_vtctldata_proto_msgTypes[152] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8602,7 +8720,7 @@ func (x *SourceShardAddResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceShardAddResponse.ProtoReflect.Descriptor instead. func (*SourceShardAddResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{150} + return file_vtctldata_proto_rawDescGZIP(), []int{152} } func (x *SourceShardAddResponse) GetShard() *topodata.Shard { @@ -8625,7 +8743,7 @@ type SourceShardDeleteRequest struct { func (x *SourceShardDeleteRequest) Reset() { *x = SourceShardDeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[151] + mi := &file_vtctldata_proto_msgTypes[153] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8638,7 +8756,7 @@ func (x *SourceShardDeleteRequest) String() string { func (*SourceShardDeleteRequest) ProtoMessage() {} func (x *SourceShardDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[151] + mi := &file_vtctldata_proto_msgTypes[153] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8651,7 +8769,7 @@ func (x *SourceShardDeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceShardDeleteRequest.ProtoReflect.Descriptor instead. func (*SourceShardDeleteRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{151} + return file_vtctldata_proto_rawDescGZIP(), []int{153} } func (x *SourceShardDeleteRequest) GetKeyspace() string { @@ -8687,7 +8805,7 @@ type SourceShardDeleteResponse struct { func (x *SourceShardDeleteResponse) Reset() { *x = SourceShardDeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[152] + mi := &file_vtctldata_proto_msgTypes[154] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8700,7 +8818,7 @@ func (x *SourceShardDeleteResponse) String() string { func (*SourceShardDeleteResponse) ProtoMessage() {} func (x *SourceShardDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[152] + mi := &file_vtctldata_proto_msgTypes[154] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8713,7 +8831,7 @@ func (x *SourceShardDeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceShardDeleteResponse.ProtoReflect.Descriptor instead. func (*SourceShardDeleteResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{152} + return file_vtctldata_proto_rawDescGZIP(), []int{154} } func (x *SourceShardDeleteResponse) GetShard() *topodata.Shard { @@ -8734,7 +8852,7 @@ type StartReplicationRequest struct { func (x *StartReplicationRequest) Reset() { *x = StartReplicationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[153] + mi := &file_vtctldata_proto_msgTypes[155] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8747,7 +8865,7 @@ func (x *StartReplicationRequest) String() string { func (*StartReplicationRequest) ProtoMessage() {} func (x *StartReplicationRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[153] + mi := &file_vtctldata_proto_msgTypes[155] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8760,7 +8878,7 @@ func (x *StartReplicationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StartReplicationRequest.ProtoReflect.Descriptor instead. func (*StartReplicationRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{153} + return file_vtctldata_proto_rawDescGZIP(), []int{155} } func (x *StartReplicationRequest) GetTabletAlias() *topodata.TabletAlias { @@ -8779,7 +8897,7 @@ type StartReplicationResponse struct { func (x *StartReplicationResponse) Reset() { *x = StartReplicationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[154] + mi := &file_vtctldata_proto_msgTypes[156] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8792,7 +8910,7 @@ func (x *StartReplicationResponse) String() string { func (*StartReplicationResponse) ProtoMessage() {} func (x *StartReplicationResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[154] + mi := &file_vtctldata_proto_msgTypes[156] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8805,7 +8923,7 @@ func (x *StartReplicationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StartReplicationResponse.ProtoReflect.Descriptor instead. func (*StartReplicationResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{154} + return file_vtctldata_proto_rawDescGZIP(), []int{156} } type StopReplicationRequest struct { @@ -8819,7 +8937,7 @@ type StopReplicationRequest struct { func (x *StopReplicationRequest) Reset() { *x = StopReplicationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[155] + mi := &file_vtctldata_proto_msgTypes[157] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8832,7 +8950,7 @@ func (x *StopReplicationRequest) String() string { func (*StopReplicationRequest) ProtoMessage() {} func (x *StopReplicationRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[155] + mi := &file_vtctldata_proto_msgTypes[157] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8845,7 +8963,7 @@ func (x *StopReplicationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StopReplicationRequest.ProtoReflect.Descriptor instead. func (*StopReplicationRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{155} + return file_vtctldata_proto_rawDescGZIP(), []int{157} } func (x *StopReplicationRequest) GetTabletAlias() *topodata.TabletAlias { @@ -8864,7 +8982,7 @@ type StopReplicationResponse struct { func (x *StopReplicationResponse) Reset() { *x = StopReplicationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[156] + mi := &file_vtctldata_proto_msgTypes[158] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8877,7 +8995,7 @@ func (x *StopReplicationResponse) String() string { func (*StopReplicationResponse) ProtoMessage() {} func (x *StopReplicationResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[156] + mi := &file_vtctldata_proto_msgTypes[158] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8890,7 +9008,7 @@ func (x *StopReplicationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StopReplicationResponse.ProtoReflect.Descriptor instead. func (*StopReplicationResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{156} + return file_vtctldata_proto_rawDescGZIP(), []int{158} } type TabletExternallyReparentedRequest struct { @@ -8906,7 +9024,7 @@ type TabletExternallyReparentedRequest struct { func (x *TabletExternallyReparentedRequest) Reset() { *x = TabletExternallyReparentedRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[157] + mi := &file_vtctldata_proto_msgTypes[159] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8919,7 +9037,7 @@ func (x *TabletExternallyReparentedRequest) String() string { func (*TabletExternallyReparentedRequest) ProtoMessage() {} func (x *TabletExternallyReparentedRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[157] + mi := &file_vtctldata_proto_msgTypes[159] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8932,7 +9050,7 @@ func (x *TabletExternallyReparentedRequest) ProtoReflect() protoreflect.Message // Deprecated: Use TabletExternallyReparentedRequest.ProtoReflect.Descriptor instead. func (*TabletExternallyReparentedRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{157} + return file_vtctldata_proto_rawDescGZIP(), []int{159} } func (x *TabletExternallyReparentedRequest) GetTablet() *topodata.TabletAlias { @@ -8956,7 +9074,7 @@ type TabletExternallyReparentedResponse struct { func (x *TabletExternallyReparentedResponse) Reset() { *x = TabletExternallyReparentedResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[158] + mi := &file_vtctldata_proto_msgTypes[160] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8969,7 +9087,7 @@ func (x *TabletExternallyReparentedResponse) String() string { func (*TabletExternallyReparentedResponse) ProtoMessage() {} func (x *TabletExternallyReparentedResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[158] + mi := &file_vtctldata_proto_msgTypes[160] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8982,7 +9100,7 @@ func (x *TabletExternallyReparentedResponse) ProtoReflect() protoreflect.Message // Deprecated: Use TabletExternallyReparentedResponse.ProtoReflect.Descriptor instead. func (*TabletExternallyReparentedResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{158} + return file_vtctldata_proto_rawDescGZIP(), []int{160} } func (x *TabletExternallyReparentedResponse) GetKeyspace() string { @@ -9025,7 +9143,7 @@ type UpdateCellInfoRequest struct { func (x *UpdateCellInfoRequest) Reset() { *x = UpdateCellInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[159] + mi := &file_vtctldata_proto_msgTypes[161] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9038,7 +9156,7 @@ func (x *UpdateCellInfoRequest) String() string { func (*UpdateCellInfoRequest) ProtoMessage() {} func (x *UpdateCellInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[159] + mi := &file_vtctldata_proto_msgTypes[161] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9051,7 +9169,7 @@ func (x *UpdateCellInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateCellInfoRequest.ProtoReflect.Descriptor instead. func (*UpdateCellInfoRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{159} + return file_vtctldata_proto_rawDescGZIP(), []int{161} } func (x *UpdateCellInfoRequest) GetName() string { @@ -9080,7 +9198,7 @@ type UpdateCellInfoResponse struct { func (x *UpdateCellInfoResponse) Reset() { *x = UpdateCellInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[160] + mi := &file_vtctldata_proto_msgTypes[162] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9093,7 +9211,7 @@ func (x *UpdateCellInfoResponse) String() string { func (*UpdateCellInfoResponse) ProtoMessage() {} func (x *UpdateCellInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[160] + mi := &file_vtctldata_proto_msgTypes[162] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9106,7 +9224,7 @@ func (x *UpdateCellInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateCellInfoResponse.ProtoReflect.Descriptor instead. func (*UpdateCellInfoResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{160} + return file_vtctldata_proto_rawDescGZIP(), []int{162} } func (x *UpdateCellInfoResponse) GetName() string { @@ -9135,7 +9253,7 @@ type UpdateCellsAliasRequest struct { func (x *UpdateCellsAliasRequest) Reset() { *x = UpdateCellsAliasRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[161] + mi := &file_vtctldata_proto_msgTypes[163] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9148,7 +9266,7 @@ func (x *UpdateCellsAliasRequest) String() string { func (*UpdateCellsAliasRequest) ProtoMessage() {} func (x *UpdateCellsAliasRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[161] + mi := &file_vtctldata_proto_msgTypes[163] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9161,7 +9279,7 @@ func (x *UpdateCellsAliasRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateCellsAliasRequest.ProtoReflect.Descriptor instead. func (*UpdateCellsAliasRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{161} + return file_vtctldata_proto_rawDescGZIP(), []int{163} } func (x *UpdateCellsAliasRequest) GetName() string { @@ -9190,7 +9308,7 @@ type UpdateCellsAliasResponse struct { func (x *UpdateCellsAliasResponse) Reset() { *x = UpdateCellsAliasResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[162] + mi := &file_vtctldata_proto_msgTypes[164] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9203,7 +9321,7 @@ func (x *UpdateCellsAliasResponse) String() string { func (*UpdateCellsAliasResponse) ProtoMessage() {} func (x *UpdateCellsAliasResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[162] + mi := &file_vtctldata_proto_msgTypes[164] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9216,7 +9334,7 @@ func (x *UpdateCellsAliasResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateCellsAliasResponse.ProtoReflect.Descriptor instead. func (*UpdateCellsAliasResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{162} + return file_vtctldata_proto_rawDescGZIP(), []int{164} } func (x *UpdateCellsAliasResponse) GetName() string { @@ -9244,7 +9362,7 @@ type ValidateRequest struct { func (x *ValidateRequest) Reset() { *x = ValidateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[163] + mi := &file_vtctldata_proto_msgTypes[165] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9257,7 +9375,7 @@ func (x *ValidateRequest) String() string { func (*ValidateRequest) ProtoMessage() {} func (x *ValidateRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[163] + mi := &file_vtctldata_proto_msgTypes[165] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9270,7 +9388,7 @@ func (x *ValidateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead. func (*ValidateRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{163} + return file_vtctldata_proto_rawDescGZIP(), []int{165} } func (x *ValidateRequest) GetPingTablets() bool { @@ -9292,7 +9410,7 @@ type ValidateResponse struct { func (x *ValidateResponse) Reset() { *x = ValidateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[164] + mi := &file_vtctldata_proto_msgTypes[166] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9305,7 +9423,7 @@ func (x *ValidateResponse) String() string { func (*ValidateResponse) ProtoMessage() {} func (x *ValidateResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[164] + mi := &file_vtctldata_proto_msgTypes[166] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9318,7 +9436,7 @@ func (x *ValidateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead. func (*ValidateResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{164} + return file_vtctldata_proto_rawDescGZIP(), []int{166} } func (x *ValidateResponse) GetResults() []string { @@ -9347,7 +9465,7 @@ type ValidateKeyspaceRequest struct { func (x *ValidateKeyspaceRequest) Reset() { *x = ValidateKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[165] + mi := &file_vtctldata_proto_msgTypes[167] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9360,7 +9478,7 @@ func (x *ValidateKeyspaceRequest) String() string { func (*ValidateKeyspaceRequest) ProtoMessage() {} func (x *ValidateKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[165] + mi := &file_vtctldata_proto_msgTypes[167] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9373,7 +9491,7 @@ func (x *ValidateKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{165} + return file_vtctldata_proto_rawDescGZIP(), []int{167} } func (x *ValidateKeyspaceRequest) GetKeyspace() string { @@ -9402,7 +9520,7 @@ type ValidateKeyspaceResponse struct { func (x *ValidateKeyspaceResponse) Reset() { *x = ValidateKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[166] + mi := &file_vtctldata_proto_msgTypes[168] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9415,7 +9533,7 @@ func (x *ValidateKeyspaceResponse) String() string { func (*ValidateKeyspaceResponse) ProtoMessage() {} func (x *ValidateKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[166] + mi := &file_vtctldata_proto_msgTypes[168] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9428,7 +9546,7 @@ func (x *ValidateKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateKeyspaceResponse.ProtoReflect.Descriptor instead. func (*ValidateKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{166} + return file_vtctldata_proto_rawDescGZIP(), []int{168} } func (x *ValidateKeyspaceResponse) GetResults() []string { @@ -9460,7 +9578,7 @@ type ValidateSchemaKeyspaceRequest struct { func (x *ValidateSchemaKeyspaceRequest) Reset() { *x = ValidateSchemaKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[167] + mi := &file_vtctldata_proto_msgTypes[169] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9473,7 +9591,7 @@ func (x *ValidateSchemaKeyspaceRequest) String() string { func (*ValidateSchemaKeyspaceRequest) ProtoMessage() {} func (x *ValidateSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[167] + mi := &file_vtctldata_proto_msgTypes[169] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9486,7 +9604,7 @@ func (x *ValidateSchemaKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateSchemaKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateSchemaKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{167} + return file_vtctldata_proto_rawDescGZIP(), []int{169} } func (x *ValidateSchemaKeyspaceRequest) GetKeyspace() string { @@ -9536,7 +9654,7 @@ type ValidateSchemaKeyspaceResponse struct { func (x *ValidateSchemaKeyspaceResponse) Reset() { *x = ValidateSchemaKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[168] + mi := &file_vtctldata_proto_msgTypes[170] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9549,7 +9667,7 @@ func (x *ValidateSchemaKeyspaceResponse) String() string { func (*ValidateSchemaKeyspaceResponse) ProtoMessage() {} func (x *ValidateSchemaKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[168] + mi := &file_vtctldata_proto_msgTypes[170] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9562,7 +9680,7 @@ func (x *ValidateSchemaKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateSchemaKeyspaceResponse.ProtoReflect.Descriptor instead. func (*ValidateSchemaKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{168} + return file_vtctldata_proto_rawDescGZIP(), []int{170} } func (x *ValidateSchemaKeyspaceResponse) GetResults() []string { @@ -9592,7 +9710,7 @@ type ValidateShardRequest struct { func (x *ValidateShardRequest) Reset() { *x = ValidateShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[169] + mi := &file_vtctldata_proto_msgTypes[171] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9605,7 +9723,7 @@ func (x *ValidateShardRequest) String() string { func (*ValidateShardRequest) ProtoMessage() {} func (x *ValidateShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[169] + mi := &file_vtctldata_proto_msgTypes[171] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9618,7 +9736,7 @@ func (x *ValidateShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateShardRequest.ProtoReflect.Descriptor instead. func (*ValidateShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{169} + return file_vtctldata_proto_rawDescGZIP(), []int{171} } func (x *ValidateShardRequest) GetKeyspace() string { @@ -9653,7 +9771,7 @@ type ValidateShardResponse struct { func (x *ValidateShardResponse) Reset() { *x = ValidateShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[170] + mi := &file_vtctldata_proto_msgTypes[172] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9666,7 +9784,7 @@ func (x *ValidateShardResponse) String() string { func (*ValidateShardResponse) ProtoMessage() {} func (x *ValidateShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[170] + mi := &file_vtctldata_proto_msgTypes[172] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9679,7 +9797,7 @@ func (x *ValidateShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateShardResponse.ProtoReflect.Descriptor instead. func (*ValidateShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{170} + return file_vtctldata_proto_rawDescGZIP(), []int{172} } func (x *ValidateShardResponse) GetResults() []string { @@ -9700,7 +9818,7 @@ type ValidateVersionKeyspaceRequest struct { func (x *ValidateVersionKeyspaceRequest) Reset() { *x = ValidateVersionKeyspaceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[171] + mi := &file_vtctldata_proto_msgTypes[173] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9713,7 +9831,7 @@ func (x *ValidateVersionKeyspaceRequest) String() string { func (*ValidateVersionKeyspaceRequest) ProtoMessage() {} func (x *ValidateVersionKeyspaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[171] + mi := &file_vtctldata_proto_msgTypes[173] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9726,7 +9844,7 @@ func (x *ValidateVersionKeyspaceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVersionKeyspaceRequest.ProtoReflect.Descriptor instead. func (*ValidateVersionKeyspaceRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{171} + return file_vtctldata_proto_rawDescGZIP(), []int{173} } func (x *ValidateVersionKeyspaceRequest) GetKeyspace() string { @@ -9748,7 +9866,7 @@ type ValidateVersionKeyspaceResponse struct { func (x *ValidateVersionKeyspaceResponse) Reset() { *x = ValidateVersionKeyspaceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[172] + mi := &file_vtctldata_proto_msgTypes[174] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9761,7 +9879,7 @@ func (x *ValidateVersionKeyspaceResponse) String() string { func (*ValidateVersionKeyspaceResponse) ProtoMessage() {} func (x *ValidateVersionKeyspaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[172] + mi := &file_vtctldata_proto_msgTypes[174] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9774,7 +9892,7 @@ func (x *ValidateVersionKeyspaceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVersionKeyspaceResponse.ProtoReflect.Descriptor instead. func (*ValidateVersionKeyspaceResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{172} + return file_vtctldata_proto_rawDescGZIP(), []int{174} } func (x *ValidateVersionKeyspaceResponse) GetResults() []string { @@ -9803,7 +9921,7 @@ type ValidateVersionShardRequest struct { func (x *ValidateVersionShardRequest) Reset() { *x = ValidateVersionShardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[173] + mi := &file_vtctldata_proto_msgTypes[175] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9816,7 +9934,7 @@ func (x *ValidateVersionShardRequest) String() string { func (*ValidateVersionShardRequest) ProtoMessage() {} func (x *ValidateVersionShardRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[173] + mi := &file_vtctldata_proto_msgTypes[175] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9829,7 +9947,7 @@ func (x *ValidateVersionShardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVersionShardRequest.ProtoReflect.Descriptor instead. func (*ValidateVersionShardRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{173} + return file_vtctldata_proto_rawDescGZIP(), []int{175} } func (x *ValidateVersionShardRequest) GetKeyspace() string { @@ -9857,7 +9975,7 @@ type ValidateVersionShardResponse struct { func (x *ValidateVersionShardResponse) Reset() { *x = ValidateVersionShardResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[174] + mi := &file_vtctldata_proto_msgTypes[176] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9870,7 +9988,7 @@ func (x *ValidateVersionShardResponse) String() string { func (*ValidateVersionShardResponse) ProtoMessage() {} func (x *ValidateVersionShardResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[174] + mi := &file_vtctldata_proto_msgTypes[176] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9883,7 +10001,7 @@ func (x *ValidateVersionShardResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVersionShardResponse.ProtoReflect.Descriptor instead. func (*ValidateVersionShardResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{174} + return file_vtctldata_proto_rawDescGZIP(), []int{176} } func (x *ValidateVersionShardResponse) GetResults() []string { @@ -9907,7 +10025,7 @@ type ValidateVSchemaRequest struct { func (x *ValidateVSchemaRequest) Reset() { *x = ValidateVSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[175] + mi := &file_vtctldata_proto_msgTypes[177] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9920,7 +10038,7 @@ func (x *ValidateVSchemaRequest) String() string { func (*ValidateVSchemaRequest) ProtoMessage() {} func (x *ValidateVSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[175] + mi := &file_vtctldata_proto_msgTypes[177] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9933,7 +10051,7 @@ func (x *ValidateVSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVSchemaRequest.ProtoReflect.Descriptor instead. func (*ValidateVSchemaRequest) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{175} + return file_vtctldata_proto_rawDescGZIP(), []int{177} } func (x *ValidateVSchemaRequest) GetKeyspace() string { @@ -9976,7 +10094,7 @@ type ValidateVSchemaResponse struct { func (x *ValidateVSchemaResponse) Reset() { *x = ValidateVSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[176] + mi := &file_vtctldata_proto_msgTypes[178] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9989,7 +10107,7 @@ func (x *ValidateVSchemaResponse) String() string { func (*ValidateVSchemaResponse) ProtoMessage() {} func (x *ValidateVSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[176] + mi := &file_vtctldata_proto_msgTypes[178] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10002,7 +10120,7 @@ func (x *ValidateVSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateVSchemaResponse.ProtoReflect.Descriptor instead. func (*ValidateVSchemaResponse) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{176} + return file_vtctldata_proto_rawDescGZIP(), []int{178} } func (x *ValidateVSchemaResponse) GetResults() []string { @@ -10031,7 +10149,7 @@ type Workflow_ReplicationLocation struct { func (x *Workflow_ReplicationLocation) Reset() { *x = Workflow_ReplicationLocation{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[178] + mi := &file_vtctldata_proto_msgTypes[180] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10044,7 +10162,7 @@ func (x *Workflow_ReplicationLocation) String() string { func (*Workflow_ReplicationLocation) ProtoMessage() {} func (x *Workflow_ReplicationLocation) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[178] + mi := &file_vtctldata_proto_msgTypes[180] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10087,7 +10205,7 @@ type Workflow_ShardStream struct { func (x *Workflow_ShardStream) Reset() { *x = Workflow_ShardStream{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[179] + mi := &file_vtctldata_proto_msgTypes[181] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10100,7 +10218,7 @@ func (x *Workflow_ShardStream) String() string { func (*Workflow_ShardStream) ProtoMessage() {} func (x *Workflow_ShardStream) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[179] + mi := &file_vtctldata_proto_msgTypes[181] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10170,7 +10288,7 @@ type Workflow_Stream struct { func (x *Workflow_Stream) Reset() { *x = Workflow_Stream{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[180] + mi := &file_vtctldata_proto_msgTypes[182] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10183,7 +10301,7 @@ func (x *Workflow_Stream) String() string { func (*Workflow_Stream) ProtoMessage() {} func (x *Workflow_Stream) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[180] + mi := &file_vtctldata_proto_msgTypes[182] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10316,7 +10434,7 @@ type Workflow_Stream_CopyState struct { func (x *Workflow_Stream_CopyState) Reset() { *x = Workflow_Stream_CopyState{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[181] + mi := &file_vtctldata_proto_msgTypes[183] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10329,7 +10447,7 @@ func (x *Workflow_Stream_CopyState) String() string { func (*Workflow_Stream_CopyState) ProtoMessage() {} func (x *Workflow_Stream_CopyState) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[181] + mi := &file_vtctldata_proto_msgTypes[183] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10377,7 +10495,7 @@ type Workflow_Stream_Log struct { func (x *Workflow_Stream_Log) Reset() { *x = Workflow_Stream_Log{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[182] + mi := &file_vtctldata_proto_msgTypes[184] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10390,7 +10508,7 @@ func (x *Workflow_Stream_Log) String() string { func (*Workflow_Stream_Log) ProtoMessage() {} func (x *Workflow_Stream_Log) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[182] + mi := &file_vtctldata_proto_msgTypes[184] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10473,7 +10591,7 @@ type GetSrvKeyspaceNamesResponse_NameList struct { func (x *GetSrvKeyspaceNamesResponse_NameList) Reset() { *x = GetSrvKeyspaceNamesResponse_NameList{} if protoimpl.UnsafeEnabled { - mi := &file_vtctldata_proto_msgTypes[186] + mi := &file_vtctldata_proto_msgTypes[191] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10486,7 +10604,7 @@ func (x *GetSrvKeyspaceNamesResponse_NameList) String() string { func (*GetSrvKeyspaceNamesResponse_NameList) ProtoMessage() {} func (x *GetSrvKeyspaceNamesResponse_NameList) ProtoReflect() protoreflect.Message { - mi := &file_vtctldata_proto_msgTypes[186] + mi := &file_vtctldata_proto_msgTypes[191] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10499,7 +10617,7 @@ func (x *GetSrvKeyspaceNamesResponse_NameList) ProtoReflect() protoreflect.Messa // Deprecated: Use GetSrvKeyspaceNamesResponse_NameList.ProtoReflect.Descriptor instead. func (*GetSrvKeyspaceNamesResponse_NameList) Descriptor() ([]byte, []int) { - return file_vtctldata_proto_rawDescGZIP(), []int{75, 1} + return file_vtctldata_proto_rawDescGZIP(), []int{77, 1} } func (x *GetSrvKeyspaceNamesResponse_NameList) GetNames() []string { @@ -10796,1033 +10914,1003 @@ var file_vtctldata_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x6e, 0x63, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x22, 0xe8, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x62, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, - 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x06, 0x64, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x72, 0x79, - 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x72, 0x79, 0x52, - 0x75, 0x6e, 0x22, 0xa6, 0x01, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x35, 0x0a, 0x0d, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x0c, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, - 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x0b, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x77, - 0x61, 0x73, 0x5f, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x09, 0x77, 0x61, 0x73, 0x44, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x22, 0xf1, 0x02, 0x0a, 0x15, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, - 0x2f, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x76, - 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x73, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x46, 0x72, 0x6f, - 0x6d, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x16, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x74, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, - 0x49, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x40, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, + 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, + 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xc0, 0x02, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0b, + 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x54, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x54, 0x61, + 0x67, 0x73, 0x12, 0x51, 0x0a, 0x0a, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, + 0x61, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x66, 0x74, 0x65, + 0x72, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x61, 0x66, 0x74, 0x65, + 0x72, 0x54, 0x61, 0x67, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x54, + 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a, 0x0e, 0x41, 0x66, 0x74, 0x65, 0x72, 0x54, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x9b, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x62, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x06, 0x64, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x72, 0x79, 0x5f, 0x72, + 0x75, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x64, 0x72, 0x79, 0x52, 0x75, 0x6e, + 0x22, 0xa6, 0x01, 0x0a, 0x18, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x0d, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x0c, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, + 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x0b, 0x61, 0x66, + 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x77, 0x61, 0x73, + 0x5f, 0x64, 0x72, 0x79, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, + 0x77, 0x61, 0x73, 0x44, 0x72, 0x79, 0x52, 0x75, 0x6e, 0x22, 0xf1, 0x02, 0x0a, 0x15, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, + 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x5f, 0x76, 0x5f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x40, + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x64, 0x46, + 0x72, 0x6f, 0x6d, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x73, + 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x31, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0x49, 0x0a, + 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, + 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, + 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xa0, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x26, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x5f, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x68, 0x61, 0x72, 0x64, 0x41, 0x6c, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x41, 0x0a, 0x15, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, + 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x67, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, + 0x73, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, + 0x73, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x76, 0x65, 0x6e, 0x5f, 0x69, 0x66, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x65, 0x76, 0x65, 0x6e, 0x49, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, + 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, + 0x72, 0x63, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, + 0x0a, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x02, 0x0a, 0x1d, 0x45, + 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x36, + 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x50, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x3e, 0x0a, 0x0f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, + 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0e, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x44, 0x0a, 0x15, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x77, 0x61, 0x69, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3f, 0x0a, 0x1c, + 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x63, 0x65, + 0x6c, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x19, 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, + 0x43, 0x65, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbc, 0x01, + 0x0a, 0x1e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x12, 0x40, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x5f, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa0, 0x01, 0x0a, + 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, + 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, + 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, + 0x52, 0x6f, 0x77, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x22, + 0x47, 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, + 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xd3, 0x01, 0x0a, 0x18, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x42, 0x41, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, + 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x6f, 0x77, 0x73, + 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x6c, + 0x6f, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x47, + 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, + 0x44, 0x42, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa5, 0x01, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x5f, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x11, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x5e, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, + 0x3c, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, + 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, - 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0xa0, 0x01, 0x0a, 0x13, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xbe, 0x01, + 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x49, + 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, + 0x73, 0x1a, 0x4b, 0x0a, 0x0b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x5f, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x65, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x68, 0x61, 0x72, 0x64, 0x41, - 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x41, 0x0a, 0x15, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, - 0x18, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, - 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, - 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x18, 0x0a, - 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, - 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, - 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x65, 0x76, 0x65, 0x6e, 0x5f, - 0x69, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x49, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x12, - 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, - 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x1a, 0x0a, 0x18, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x3c, 0x0a, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, - 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x23, - 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x02, 0x0a, - 0x1d, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6e, 0x65, - 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x3e, 0x0a, 0x0f, 0x69, 0x67, 0x6e, 0x6f, - 0x72, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0e, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x44, 0x0a, 0x15, 0x77, 0x61, 0x69, 0x74, + 0x61, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9e, + 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0d, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, + 0x44, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x63, 0x74, + 0x6c, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x73, 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x65, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, + 0x46, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, + 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, + 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x30, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, + 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb6, + 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x07, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x50, 0x0a, 0x0c, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x50, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x46, 0x75, + 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x4c, 0x0a, 0x15, 0x47, 0x65, 0x74, + 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, + 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x12, 0x47, 0x65, 0x74, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x46, 0x0a, 0x13, 0x47, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x5a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x22, 0xb0, 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x69, 0x65, + 0x77, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4f, 0x6e, 0x6c, 0x79, + 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x73, 0x5f, + 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x4c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x64, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, + 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x6a, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, + 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x11, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x32, 0x0a, + 0x1a, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, + 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x47, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x31, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, + 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x0a, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x72, + 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, + 0x6c, 0x6c, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x59, 0x0a, 0x0d, 0x73, 0x72, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x72, 0x76, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x72, + 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x56, 0x0a, 0x11, 0x53, 0x72, + 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x72, 0x76, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x2a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, + 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x4e, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x73, 0x72, 0x76, 0x5f, 0x76, + 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x0a, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0xc5, 0x01, + 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x73, 0x72, 0x76, 0x5f, + 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x1a, 0x53, 0x0a, 0x10, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x22, 0x3d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x22, 0xe8, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, + 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x12, 0x3c, 0x0a, 0x0e, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, + 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x40, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, + 0x2c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x46, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x65, 0x6c, 0x6c, 0x52, + 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x66, 0x0a, 0x0c, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, + 0x79, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0x2f, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x4d, + 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x2e, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x42, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x07, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x22, 0x52, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, + 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x22, 0xfb, 0x01, 0x0a, 0x17, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x52, + 0x0a, 0x1a, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x5f, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x17, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x15, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x77, 0x61, 0x69, 0x74, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3f, - 0x0a, 0x1c, 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, - 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x6f, - 0x73, 0x73, 0x43, 0x65, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0xbc, 0x01, 0x0a, 0x1e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x40, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, - 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, 0x64, 0x50, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, - 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xa0, - 0x01, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, - 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6d, - 0x61, 0x78, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, - 0x61, 0x78, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x6f, - 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6f, - 0x6c, 0x22, 0x47, 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, - 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xd3, 0x01, 0x0a, 0x18, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x42, 0x41, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x42, + 0x0a, 0x18, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, + 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x22, 0x4d, 0x0a, 0x11, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x72, - 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x52, 0x6f, - 0x77, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x62, 0x69, - 0x6e, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x42, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x22, 0x47, 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, - 0x41, 0x73, 0x44, 0x42, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa5, 0x01, 0x0a, 0x12, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x73, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x89, 0x02, 0x0a, 0x1b, 0x50, 0x6c, 0x61, 0x6e, + 0x6e, 0x65, 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x65, 0x77, + 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x3a, 0x0a, 0x0d, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, + 0x0c, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x44, 0x0a, + 0x15, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, + 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, + 0x77, 0x61, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x1c, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x52, + 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x40, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, + 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x65, + 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, + 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x22, 0x74, 0x0a, 0x1b, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, + 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x1a, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, + 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, 0x70, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x0a, 0x13, 0x52, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x11, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x5e, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x68, 0x6f, 0x6f, 0x6b, - 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x3c, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, - 0xbe, 0x01, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x49, 0x6e, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x73, 0x68, 0x61, - 0x72, 0x64, 0x73, 0x1a, 0x4b, 0x0a, 0x0b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x9e, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x64, 0x0a, 0x1a, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x73, 0x5f, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x73, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x36, 0x0a, 0x17, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, + 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x4f, + 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, + 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, + 0x16, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x6c, 0x6f, + 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x61, 0x69, 0x74, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x63, 0x79, 0x22, 0x46, 0x0a, 0x1c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xbc, 0x01, 0x0a, 0x18, + 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x61, + 0x69, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x77, 0x61, 0x69, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x63, + 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x43, 0x0a, 0x19, 0x52, 0x65, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, + 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, + 0x5b, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0d, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x22, 0x44, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x63, 0x74, 0x6c, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, - 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x22, 0x28, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x65, - 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, - 0x6c, 0x22, 0x46, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, - 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x08, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, - 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0x30, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, - 0x6e, 0x66, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, - 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0xb6, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x07, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, - 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x1a, 0x50, 0x0a, 0x0c, 0x41, 0x6c, 0x69, 0x61, 0x73, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x50, 0x0a, 0x14, 0x47, 0x65, 0x74, - 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x4c, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x16, 0x0a, 0x14, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x46, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, + 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, + 0x73, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x76, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x12, 0x14, 0x0a, + 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, + 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, + 0x65, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x0a, 0x15, + 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x22, 0x7b, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, + 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x22, 0x83, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, + 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x5a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x55, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, - 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, 0xb0, 0x02, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, - 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, - 0x69, 0x65, 0x77, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4f, 0x6e, - 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x73, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2a, 0x0a, 0x11, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x6e, 0x6c, - 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, - 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x4c, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x68, 0x61, - 0x72, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x6a, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x75, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x11, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x22, - 0x32, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, - 0x6c, 0x6c, 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x0a, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x20, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x16, 0x47, 0x65, 0x74, - 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, - 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x59, 0x0a, 0x0d, 0x73, 0x72, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x72, 0x76, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, - 0x73, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x56, 0x0a, 0x11, - 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x72, - 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2a, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, - 0x22, 0x4e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x73, 0x72, 0x76, - 0x5f, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0a, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x22, 0x2d, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, - 0xc5, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0d, 0x73, 0x72, - 0x76, 0x5f, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x1a, 0x53, 0x0a, 0x10, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4c, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x3d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, - 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x06, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x22, 0xe8, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, - 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x12, 0x3c, 0x0a, 0x0e, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, - 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x40, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x73, 0x22, 0x2c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, - 0x46, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, - 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x63, 0x65, - 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x43, 0x65, 0x6c, - 0x6c, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x66, 0x0a, 0x0c, 0x54, 0x6f, 0x70, 0x6f, 0x6c, - 0x6f, 0x67, 0x79, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, - 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, - 0x2f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x22, 0x4d, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, + 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0a, 0x62, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, - 0x2e, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x42, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x07, 0x76, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x22, 0x52, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x51, 0x0a, 0x15, 0x52, 0x75, 0x6e, 0x48, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x75, + 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x22, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x49, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x31, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x17, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x52, 0x0a, 0x1a, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x17, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x15, 0x77, 0x61, - 0x69, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x77, 0x61, 0x69, - 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x22, 0x42, 0x0a, 0x18, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, - 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x22, 0x4d, 0x0a, 0x11, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, - 0x69, 0x61, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x89, 0x02, 0x0a, 0x1b, 0x50, 0x6c, - 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x22, 0x55, 0x0a, 0x23, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, + 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xc8, 0x01, 0x0a, 0x1c, 0x53, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x64, + 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, + 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, + 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x4f, 0x0a, 0x1d, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x5e, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, + 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x51, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, + 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x72, 0x0a, 0x1f, 0x53, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1d, + 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x0a, + 0x20, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x8e, 0x02, 0x0a, 0x1c, 0x53, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x6e, - 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x0d, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x5f, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, - 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x52, 0x0c, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x44, 0x0a, 0x15, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x13, 0x77, 0x61, 0x69, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x54, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x1c, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x40, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, - 0x6f, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, - 0x74, 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, - 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x73, 0x22, 0x74, 0x0a, 0x1b, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, - 0x6c, 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x1a, 0x52, 0x65, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0x1d, 0x0a, 0x1b, - 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, - 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x0a, 0x13, 0x52, - 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, - 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x16, 0x0a, 0x14, - 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x1a, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x1b, 0x52, - 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x73, - 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x73, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, - 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x36, 0x0a, 0x17, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x61, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x22, 0x4f, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x35, 0x0a, 0x0b, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x6e, 0x69, + 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0c, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x32, 0x0a, + 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x64, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x22, 0x46, 0x0a, 0x1d, 0x53, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, + 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x22, 0x6a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x1b, 0x52, 0x65, - 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x61, - 0x69, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x46, 0x0a, 0x1c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xbc, 0x01, - 0x0a, 0x18, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, - 0x77, 0x61, 0x69, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x77, 0x61, 0x69, 0x74, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x22, 0x43, 0x0a, 0x19, - 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, - 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x22, 0x5b, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x16, - 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x15, 0x0a, + 0x13, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x1a, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x65, 0x6c, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, - 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, - 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x12, - 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, - 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, - 0x69, 0x76, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, - 0x0a, 0x15, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x22, 0x7b, 0x0a, 0x16, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, - 0x72, 0x64, 0x12, 0x2f, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x22, 0x83, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, - 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x0b, 0x62, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0c, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0a, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x19, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x51, 0x0a, 0x15, 0x52, 0x75, 0x6e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, - 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x18, 0x0a, 0x16, - 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x22, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, + 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, + 0x1d, 0x0a, 0x1b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x62, + 0x0a, 0x1a, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x75, 0x72, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x55, 0x0a, 0x23, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0xc8, 0x01, 0x0a, - 0x1c, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, + 0x6c, 0x6c, 0x22, 0x54, 0x0a, 0x1b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x54, 0x0a, 0x20, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0xaa, + 0x03, 0x0a, 0x21, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x5a, + 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x1a, 0x5f, 0x0a, 0x18, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4e, 0x0a, 0x0e, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x27, - 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x4f, 0x0a, 0x1d, 0x53, 0x65, 0x74, 0x4b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, - 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x5e, 0x0a, 0x1e, 0x53, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x02, - 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x51, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x08, 0x6b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x72, 0x0a, 0x1f, 0x53, - 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x22, - 0x49, 0x0a, 0x20, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x8e, 0x02, 0x0a, 0x1c, 0x53, - 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x35, 0x0a, - 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, - 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0c, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, - 0x32, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, - 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x22, 0x46, 0x0a, 0x1d, 0x53, - 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, - 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6f, - 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x22, 0x6a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, - 0x69, 0x61, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, - 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x1a, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x62, 0x0a, 0x1a, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x63, 0x65, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x63, 0x65, 0x6c, 0x6c, 0x22, 0x54, 0x0a, 0x1b, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x54, 0x0a, 0x20, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, - 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x22, 0xaa, 0x03, 0x0a, 0x21, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x13, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, - 0x12, 0x5a, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x1a, 0x5f, 0x0a, 0x18, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4e, 0x0a, - 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8b, 0x01, - 0x0a, 0x1d, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8b, 0x01, 0x0a, 0x1d, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, + 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x20, 0x0a, 0x1e, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x12, 0x53, + 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0b, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x20, 0x0a, 0x1e, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, - 0x12, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x6c, 0x65, + 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xf0, 0x01, 0x0a, 0x15, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x27, + 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x0a, 0x09, 0x6b, 0x65, + 0x79, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, + 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, + 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, + 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, + 0x68, 0x61, 0x72, 0x64, 0x22, 0x5e, 0x0a, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x03, 0x75, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x19, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, - 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x2c, 0x0a, - 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x15, 0x0a, 0x13, 0x53, - 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xf0, 0x01, 0x0a, 0x15, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x10, - 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, - 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x0a, 0x09, - 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x16, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, - 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x5e, 0x0a, 0x18, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x19, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x53, 0x0a, 0x17, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, - 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, - 0x1a, 0x0a, 0x18, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x16, 0x53, - 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, - 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, - 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, - 0x19, 0x0a, 0x17, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x21, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2d, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x22, 0xc6, - 0x01, 0x0a, 0x22, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, - 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x36, 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6f, 0x6c, 0x64, - 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x5c, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x65, 0x6c, - 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5d, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x65, 0x6c, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x64, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, - 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x5f, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, - 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x65, 0x0a, 0x18, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x65, - 0x6c, 0x6c, 0x73, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x22, 0x34, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x1a, 0x69, 0x0a, 0x16, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x58, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, - 0xfc, 0x01, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x61, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x37, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd8, - 0x01, 0x0a, 0x1d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, - 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, - 0x69, 0x65, 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, - 0x5f, 0x6e, 0x6f, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x4e, 0x6f, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, - 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, - 0x64, 0x65, 0x56, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x88, 0x02, 0x0a, 0x1e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x67, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, - 0x63, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6b, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x73, 0x22, 0x31, 0x0a, 0x15, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x1a, 0x0a, + 0x18, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x16, 0x53, 0x74, 0x6f, + 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x19, 0x0a, + 0x17, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x21, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, + 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x22, 0xc6, 0x01, 0x0a, + 0x22, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, + 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, + 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x36, 0x0a, + 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x6f, 0x6c, 0x64, 0x50, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x5c, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x65, 0x6c, 0x6c, 0x49, + 0x6e, 0x66, 0x6f, 0x22, 0x5d, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, + 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x65, 0x6c, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x22, 0x64, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, + 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0a, 0x63, 0x65, + 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x65, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x65, 0x6c, 0x6c, + 0x73, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x74, 0x6f, 0x70, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x52, 0x0a, 0x63, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x22, + 0x34, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0xfb, 0x01, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x22, 0x8a, 0x02, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x12, 0x68, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x4f, 0x0a, 0x1b, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, + 0x75, 0x6c, 0x74, 0x73, 0x12, 0x62, 0x0a, 0x13, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, + 0x62, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x1a, 0x69, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x42, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x58, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, - 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, - 0x22, 0x38, 0x0a, 0x1c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x16, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x63, - 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, - 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x56, 0x69, 0x65, 0x77, 0x73, 0x22, 0xfa, 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x60, 0x0a, 0x10, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x69, + 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, 0xfc, 0x01, + 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x12, 0x61, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, + 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd8, 0x01, 0x0a, + 0x1d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x69, 0x65, + 0x77, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6e, + 0x6f, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x4e, 0x6f, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x27, + 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x56, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x88, 0x02, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x12, 0x67, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, + 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, @@ -11831,14 +11919,79 @@ var file_vtctldata_proto_rawDesc = []byte{ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x2a, 0x4a, 0x0a, 0x15, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x43, - 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x4f, 0x56, 0x45, 0x54, - 0x41, 0x42, 0x4c, 0x45, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x52, 0x45, 0x41, 0x54, - 0x45, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x02, 0x42, 0x28, - 0x5a, 0x26, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, - 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x38, 0x01, 0x22, 0x6b, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x22, + 0x31, 0x0a, 0x15, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x22, 0x8a, 0x02, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x68, + 0x0a, 0x10, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, + 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4f, 0x0a, + 0x1b, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x22, 0x38, + 0x0a, 0x1c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0d, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x23, + 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x56, 0x69, + 0x65, 0x77, 0x73, 0x22, 0xfa, 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x60, 0x0a, 0x10, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x1a, 0x63, 0x0a, 0x13, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x2a, 0x4a, 0x0a, 0x15, 0x4d, 0x61, 0x74, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x55, 0x53, + 0x54, 0x4f, 0x4d, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x4f, 0x56, 0x45, 0x54, 0x41, 0x42, + 0x4c, 0x45, 0x53, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x4c, + 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x49, 0x4e, 0x44, 0x45, 0x58, 0x10, 0x02, 0x42, 0x28, 0x5a, 0x26, + 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, + 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -11854,7 +12007,7 @@ func file_vtctldata_proto_rawDescGZIP() []byte { } var file_vtctldata_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_vtctldata_proto_msgTypes = make([]protoimpl.MessageInfo, 196) +var file_vtctldata_proto_msgTypes = make([]protoimpl.MessageInfo, 201) var file_vtctldata_proto_goTypes = []interface{}{ (MaterializationIntent)(0), // 0: vtctldata.MaterializationIntent (*ExecuteVtctlCommandRequest)(nil), // 1: vtctldata.ExecuteVtctlCommandRequest @@ -11879,362 +12032,371 @@ var file_vtctldata_proto_goTypes = []interface{}{ (*BackupRequest)(nil), // 20: vtctldata.BackupRequest (*BackupResponse)(nil), // 21: vtctldata.BackupResponse (*BackupShardRequest)(nil), // 22: vtctldata.BackupShardRequest - (*ChangeTabletTypeRequest)(nil), // 23: vtctldata.ChangeTabletTypeRequest - (*ChangeTabletTypeResponse)(nil), // 24: vtctldata.ChangeTabletTypeResponse - (*CreateKeyspaceRequest)(nil), // 25: vtctldata.CreateKeyspaceRequest - (*CreateKeyspaceResponse)(nil), // 26: vtctldata.CreateKeyspaceResponse - (*CreateShardRequest)(nil), // 27: vtctldata.CreateShardRequest - (*CreateShardResponse)(nil), // 28: vtctldata.CreateShardResponse - (*DeleteCellInfoRequest)(nil), // 29: vtctldata.DeleteCellInfoRequest - (*DeleteCellInfoResponse)(nil), // 30: vtctldata.DeleteCellInfoResponse - (*DeleteCellsAliasRequest)(nil), // 31: vtctldata.DeleteCellsAliasRequest - (*DeleteCellsAliasResponse)(nil), // 32: vtctldata.DeleteCellsAliasResponse - (*DeleteKeyspaceRequest)(nil), // 33: vtctldata.DeleteKeyspaceRequest - (*DeleteKeyspaceResponse)(nil), // 34: vtctldata.DeleteKeyspaceResponse - (*DeleteShardsRequest)(nil), // 35: vtctldata.DeleteShardsRequest - (*DeleteShardsResponse)(nil), // 36: vtctldata.DeleteShardsResponse - (*DeleteSrvVSchemaRequest)(nil), // 37: vtctldata.DeleteSrvVSchemaRequest - (*DeleteSrvVSchemaResponse)(nil), // 38: vtctldata.DeleteSrvVSchemaResponse - (*DeleteTabletsRequest)(nil), // 39: vtctldata.DeleteTabletsRequest - (*DeleteTabletsResponse)(nil), // 40: vtctldata.DeleteTabletsResponse - (*EmergencyReparentShardRequest)(nil), // 41: vtctldata.EmergencyReparentShardRequest - (*EmergencyReparentShardResponse)(nil), // 42: vtctldata.EmergencyReparentShardResponse - (*ExecuteFetchAsAppRequest)(nil), // 43: vtctldata.ExecuteFetchAsAppRequest - (*ExecuteFetchAsAppResponse)(nil), // 44: vtctldata.ExecuteFetchAsAppResponse - (*ExecuteFetchAsDBARequest)(nil), // 45: vtctldata.ExecuteFetchAsDBARequest - (*ExecuteFetchAsDBAResponse)(nil), // 46: vtctldata.ExecuteFetchAsDBAResponse - (*ExecuteHookRequest)(nil), // 47: vtctldata.ExecuteHookRequest - (*ExecuteHookResponse)(nil), // 48: vtctldata.ExecuteHookResponse - (*FindAllShardsInKeyspaceRequest)(nil), // 49: vtctldata.FindAllShardsInKeyspaceRequest - (*FindAllShardsInKeyspaceResponse)(nil), // 50: vtctldata.FindAllShardsInKeyspaceResponse - (*GetBackupsRequest)(nil), // 51: vtctldata.GetBackupsRequest - (*GetBackupsResponse)(nil), // 52: vtctldata.GetBackupsResponse - (*GetCellInfoRequest)(nil), // 53: vtctldata.GetCellInfoRequest - (*GetCellInfoResponse)(nil), // 54: vtctldata.GetCellInfoResponse - (*GetCellInfoNamesRequest)(nil), // 55: vtctldata.GetCellInfoNamesRequest - (*GetCellInfoNamesResponse)(nil), // 56: vtctldata.GetCellInfoNamesResponse - (*GetCellsAliasesRequest)(nil), // 57: vtctldata.GetCellsAliasesRequest - (*GetCellsAliasesResponse)(nil), // 58: vtctldata.GetCellsAliasesResponse - (*GetFullStatusRequest)(nil), // 59: vtctldata.GetFullStatusRequest - (*GetFullStatusResponse)(nil), // 60: vtctldata.GetFullStatusResponse - (*GetKeyspacesRequest)(nil), // 61: vtctldata.GetKeyspacesRequest - (*GetKeyspacesResponse)(nil), // 62: vtctldata.GetKeyspacesResponse - (*GetKeyspaceRequest)(nil), // 63: vtctldata.GetKeyspaceRequest - (*GetKeyspaceResponse)(nil), // 64: vtctldata.GetKeyspaceResponse - (*GetPermissionsRequest)(nil), // 65: vtctldata.GetPermissionsRequest - (*GetPermissionsResponse)(nil), // 66: vtctldata.GetPermissionsResponse - (*GetRoutingRulesRequest)(nil), // 67: vtctldata.GetRoutingRulesRequest - (*GetRoutingRulesResponse)(nil), // 68: vtctldata.GetRoutingRulesResponse - (*GetSchemaRequest)(nil), // 69: vtctldata.GetSchemaRequest - (*GetSchemaResponse)(nil), // 70: vtctldata.GetSchemaResponse - (*GetShardRequest)(nil), // 71: vtctldata.GetShardRequest - (*GetShardResponse)(nil), // 72: vtctldata.GetShardResponse - (*GetShardRoutingRulesRequest)(nil), // 73: vtctldata.GetShardRoutingRulesRequest - (*GetShardRoutingRulesResponse)(nil), // 74: vtctldata.GetShardRoutingRulesResponse - (*GetSrvKeyspaceNamesRequest)(nil), // 75: vtctldata.GetSrvKeyspaceNamesRequest - (*GetSrvKeyspaceNamesResponse)(nil), // 76: vtctldata.GetSrvKeyspaceNamesResponse - (*GetSrvKeyspacesRequest)(nil), // 77: vtctldata.GetSrvKeyspacesRequest - (*GetSrvKeyspacesResponse)(nil), // 78: vtctldata.GetSrvKeyspacesResponse - (*GetSrvVSchemaRequest)(nil), // 79: vtctldata.GetSrvVSchemaRequest - (*GetSrvVSchemaResponse)(nil), // 80: vtctldata.GetSrvVSchemaResponse - (*GetSrvVSchemasRequest)(nil), // 81: vtctldata.GetSrvVSchemasRequest - (*GetSrvVSchemasResponse)(nil), // 82: vtctldata.GetSrvVSchemasResponse - (*GetTabletRequest)(nil), // 83: vtctldata.GetTabletRequest - (*GetTabletResponse)(nil), // 84: vtctldata.GetTabletResponse - (*GetTabletsRequest)(nil), // 85: vtctldata.GetTabletsRequest - (*GetTabletsResponse)(nil), // 86: vtctldata.GetTabletsResponse - (*GetTopologyPathRequest)(nil), // 87: vtctldata.GetTopologyPathRequest - (*GetTopologyPathResponse)(nil), // 88: vtctldata.GetTopologyPathResponse - (*TopologyCell)(nil), // 89: vtctldata.TopologyCell - (*GetVSchemaRequest)(nil), // 90: vtctldata.GetVSchemaRequest - (*GetVersionRequest)(nil), // 91: vtctldata.GetVersionRequest - (*GetVersionResponse)(nil), // 92: vtctldata.GetVersionResponse - (*GetVSchemaResponse)(nil), // 93: vtctldata.GetVSchemaResponse - (*GetWorkflowsRequest)(nil), // 94: vtctldata.GetWorkflowsRequest - (*GetWorkflowsResponse)(nil), // 95: vtctldata.GetWorkflowsResponse - (*InitShardPrimaryRequest)(nil), // 96: vtctldata.InitShardPrimaryRequest - (*InitShardPrimaryResponse)(nil), // 97: vtctldata.InitShardPrimaryResponse - (*PingTabletRequest)(nil), // 98: vtctldata.PingTabletRequest - (*PingTabletResponse)(nil), // 99: vtctldata.PingTabletResponse - (*PlannedReparentShardRequest)(nil), // 100: vtctldata.PlannedReparentShardRequest - (*PlannedReparentShardResponse)(nil), // 101: vtctldata.PlannedReparentShardResponse - (*RebuildKeyspaceGraphRequest)(nil), // 102: vtctldata.RebuildKeyspaceGraphRequest - (*RebuildKeyspaceGraphResponse)(nil), // 103: vtctldata.RebuildKeyspaceGraphResponse - (*RebuildVSchemaGraphRequest)(nil), // 104: vtctldata.RebuildVSchemaGraphRequest - (*RebuildVSchemaGraphResponse)(nil), // 105: vtctldata.RebuildVSchemaGraphResponse - (*RefreshStateRequest)(nil), // 106: vtctldata.RefreshStateRequest - (*RefreshStateResponse)(nil), // 107: vtctldata.RefreshStateResponse - (*RefreshStateByShardRequest)(nil), // 108: vtctldata.RefreshStateByShardRequest - (*RefreshStateByShardResponse)(nil), // 109: vtctldata.RefreshStateByShardResponse - (*ReloadSchemaRequest)(nil), // 110: vtctldata.ReloadSchemaRequest - (*ReloadSchemaResponse)(nil), // 111: vtctldata.ReloadSchemaResponse - (*ReloadSchemaKeyspaceRequest)(nil), // 112: vtctldata.ReloadSchemaKeyspaceRequest - (*ReloadSchemaKeyspaceResponse)(nil), // 113: vtctldata.ReloadSchemaKeyspaceResponse - (*ReloadSchemaShardRequest)(nil), // 114: vtctldata.ReloadSchemaShardRequest - (*ReloadSchemaShardResponse)(nil), // 115: vtctldata.ReloadSchemaShardResponse - (*RemoveBackupRequest)(nil), // 116: vtctldata.RemoveBackupRequest - (*RemoveBackupResponse)(nil), // 117: vtctldata.RemoveBackupResponse - (*RemoveKeyspaceCellRequest)(nil), // 118: vtctldata.RemoveKeyspaceCellRequest - (*RemoveKeyspaceCellResponse)(nil), // 119: vtctldata.RemoveKeyspaceCellResponse - (*RemoveShardCellRequest)(nil), // 120: vtctldata.RemoveShardCellRequest - (*RemoveShardCellResponse)(nil), // 121: vtctldata.RemoveShardCellResponse - (*ReparentTabletRequest)(nil), // 122: vtctldata.ReparentTabletRequest - (*ReparentTabletResponse)(nil), // 123: vtctldata.ReparentTabletResponse - (*RestoreFromBackupRequest)(nil), // 124: vtctldata.RestoreFromBackupRequest - (*RestoreFromBackupResponse)(nil), // 125: vtctldata.RestoreFromBackupResponse - (*RunHealthCheckRequest)(nil), // 126: vtctldata.RunHealthCheckRequest - (*RunHealthCheckResponse)(nil), // 127: vtctldata.RunHealthCheckResponse - (*SetKeyspaceDurabilityPolicyRequest)(nil), // 128: vtctldata.SetKeyspaceDurabilityPolicyRequest - (*SetKeyspaceDurabilityPolicyResponse)(nil), // 129: vtctldata.SetKeyspaceDurabilityPolicyResponse - (*SetKeyspaceServedFromRequest)(nil), // 130: vtctldata.SetKeyspaceServedFromRequest - (*SetKeyspaceServedFromResponse)(nil), // 131: vtctldata.SetKeyspaceServedFromResponse - (*SetKeyspaceShardingInfoRequest)(nil), // 132: vtctldata.SetKeyspaceShardingInfoRequest - (*SetKeyspaceShardingInfoResponse)(nil), // 133: vtctldata.SetKeyspaceShardingInfoResponse - (*SetShardIsPrimaryServingRequest)(nil), // 134: vtctldata.SetShardIsPrimaryServingRequest - (*SetShardIsPrimaryServingResponse)(nil), // 135: vtctldata.SetShardIsPrimaryServingResponse - (*SetShardTabletControlRequest)(nil), // 136: vtctldata.SetShardTabletControlRequest - (*SetShardTabletControlResponse)(nil), // 137: vtctldata.SetShardTabletControlResponse - (*SetWritableRequest)(nil), // 138: vtctldata.SetWritableRequest - (*SetWritableResponse)(nil), // 139: vtctldata.SetWritableResponse - (*ShardReplicationAddRequest)(nil), // 140: vtctldata.ShardReplicationAddRequest - (*ShardReplicationAddResponse)(nil), // 141: vtctldata.ShardReplicationAddResponse - (*ShardReplicationFixRequest)(nil), // 142: vtctldata.ShardReplicationFixRequest - (*ShardReplicationFixResponse)(nil), // 143: vtctldata.ShardReplicationFixResponse - (*ShardReplicationPositionsRequest)(nil), // 144: vtctldata.ShardReplicationPositionsRequest - (*ShardReplicationPositionsResponse)(nil), // 145: vtctldata.ShardReplicationPositionsResponse - (*ShardReplicationRemoveRequest)(nil), // 146: vtctldata.ShardReplicationRemoveRequest - (*ShardReplicationRemoveResponse)(nil), // 147: vtctldata.ShardReplicationRemoveResponse - (*SleepTabletRequest)(nil), // 148: vtctldata.SleepTabletRequest - (*SleepTabletResponse)(nil), // 149: vtctldata.SleepTabletResponse - (*SourceShardAddRequest)(nil), // 150: vtctldata.SourceShardAddRequest - (*SourceShardAddResponse)(nil), // 151: vtctldata.SourceShardAddResponse - (*SourceShardDeleteRequest)(nil), // 152: vtctldata.SourceShardDeleteRequest - (*SourceShardDeleteResponse)(nil), // 153: vtctldata.SourceShardDeleteResponse - (*StartReplicationRequest)(nil), // 154: vtctldata.StartReplicationRequest - (*StartReplicationResponse)(nil), // 155: vtctldata.StartReplicationResponse - (*StopReplicationRequest)(nil), // 156: vtctldata.StopReplicationRequest - (*StopReplicationResponse)(nil), // 157: vtctldata.StopReplicationResponse - (*TabletExternallyReparentedRequest)(nil), // 158: vtctldata.TabletExternallyReparentedRequest - (*TabletExternallyReparentedResponse)(nil), // 159: vtctldata.TabletExternallyReparentedResponse - (*UpdateCellInfoRequest)(nil), // 160: vtctldata.UpdateCellInfoRequest - (*UpdateCellInfoResponse)(nil), // 161: vtctldata.UpdateCellInfoResponse - (*UpdateCellsAliasRequest)(nil), // 162: vtctldata.UpdateCellsAliasRequest - (*UpdateCellsAliasResponse)(nil), // 163: vtctldata.UpdateCellsAliasResponse - (*ValidateRequest)(nil), // 164: vtctldata.ValidateRequest - (*ValidateResponse)(nil), // 165: vtctldata.ValidateResponse - (*ValidateKeyspaceRequest)(nil), // 166: vtctldata.ValidateKeyspaceRequest - (*ValidateKeyspaceResponse)(nil), // 167: vtctldata.ValidateKeyspaceResponse - (*ValidateSchemaKeyspaceRequest)(nil), // 168: vtctldata.ValidateSchemaKeyspaceRequest - (*ValidateSchemaKeyspaceResponse)(nil), // 169: vtctldata.ValidateSchemaKeyspaceResponse - (*ValidateShardRequest)(nil), // 170: vtctldata.ValidateShardRequest - (*ValidateShardResponse)(nil), // 171: vtctldata.ValidateShardResponse - (*ValidateVersionKeyspaceRequest)(nil), // 172: vtctldata.ValidateVersionKeyspaceRequest - (*ValidateVersionKeyspaceResponse)(nil), // 173: vtctldata.ValidateVersionKeyspaceResponse - (*ValidateVersionShardRequest)(nil), // 174: vtctldata.ValidateVersionShardRequest - (*ValidateVersionShardResponse)(nil), // 175: vtctldata.ValidateVersionShardResponse - (*ValidateVSchemaRequest)(nil), // 176: vtctldata.ValidateVSchemaRequest - (*ValidateVSchemaResponse)(nil), // 177: vtctldata.ValidateVSchemaResponse - nil, // 178: vtctldata.Workflow.ShardStreamsEntry - (*Workflow_ReplicationLocation)(nil), // 179: vtctldata.Workflow.ReplicationLocation - (*Workflow_ShardStream)(nil), // 180: vtctldata.Workflow.ShardStream - (*Workflow_Stream)(nil), // 181: vtctldata.Workflow.Stream - (*Workflow_Stream_CopyState)(nil), // 182: vtctldata.Workflow.Stream.CopyState - (*Workflow_Stream_Log)(nil), // 183: vtctldata.Workflow.Stream.Log - nil, // 184: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry - nil, // 185: vtctldata.GetCellsAliasesResponse.AliasesEntry - nil, // 186: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry - (*GetSrvKeyspaceNamesResponse_NameList)(nil), // 187: vtctldata.GetSrvKeyspaceNamesResponse.NameList - nil, // 188: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry - nil, // 189: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry - nil, // 190: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry - nil, // 191: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry - nil, // 192: vtctldata.ValidateResponse.ResultsByKeyspaceEntry - nil, // 193: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry - nil, // 194: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry - nil, // 195: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry - nil, // 196: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry - (*logutil.Event)(nil), // 197: logutil.Event - (*topodata.Keyspace)(nil), // 198: topodata.Keyspace - (*topodata.Shard)(nil), // 199: topodata.Shard - (*topodata.CellInfo)(nil), // 200: topodata.CellInfo - (*vschema.RoutingRules)(nil), // 201: vschema.RoutingRules - (*vschema.ShardRoutingRules)(nil), // 202: vschema.ShardRoutingRules - (*vttime.Duration)(nil), // 203: vttime.Duration - (*vtrpc.CallerID)(nil), // 204: vtrpc.CallerID - (*vschema.Keyspace)(nil), // 205: vschema.Keyspace - (*topodata.TabletAlias)(nil), // 206: topodata.TabletAlias - (topodata.TabletType)(0), // 207: topodata.TabletType - (*topodata.Tablet)(nil), // 208: topodata.Tablet - (*topodata.Keyspace_ServedFrom)(nil), // 209: topodata.Keyspace.ServedFrom - (topodata.KeyspaceType)(0), // 210: topodata.KeyspaceType - (*vttime.Time)(nil), // 211: vttime.Time - (*query.QueryResult)(nil), // 212: query.QueryResult - (*tabletmanagerdata.ExecuteHookRequest)(nil), // 213: tabletmanagerdata.ExecuteHookRequest - (*tabletmanagerdata.ExecuteHookResponse)(nil), // 214: tabletmanagerdata.ExecuteHookResponse - (*mysqlctl.BackupInfo)(nil), // 215: mysqlctl.BackupInfo - (*replicationdata.FullStatus)(nil), // 216: replicationdata.FullStatus - (*tabletmanagerdata.Permissions)(nil), // 217: tabletmanagerdata.Permissions - (*tabletmanagerdata.SchemaDefinition)(nil), // 218: tabletmanagerdata.SchemaDefinition - (*vschema.SrvVSchema)(nil), // 219: vschema.SrvVSchema - (*topodata.ShardReplicationError)(nil), // 220: topodata.ShardReplicationError - (*topodata.KeyRange)(nil), // 221: topodata.KeyRange - (*topodata.CellsAlias)(nil), // 222: topodata.CellsAlias - (*topodata.Shard_TabletControl)(nil), // 223: topodata.Shard.TabletControl - (*binlogdata.BinlogSource)(nil), // 224: binlogdata.BinlogSource - (*topodata.SrvKeyspace)(nil), // 225: topodata.SrvKeyspace - (*replicationdata.Status)(nil), // 226: replicationdata.Status + (*ChangeTabletTagsRequest)(nil), // 23: vtctldata.ChangeTabletTagsRequest + (*ChangeTabletTagsResponse)(nil), // 24: vtctldata.ChangeTabletTagsResponse + (*ChangeTabletTypeRequest)(nil), // 25: vtctldata.ChangeTabletTypeRequest + (*ChangeTabletTypeResponse)(nil), // 26: vtctldata.ChangeTabletTypeResponse + (*CreateKeyspaceRequest)(nil), // 27: vtctldata.CreateKeyspaceRequest + (*CreateKeyspaceResponse)(nil), // 28: vtctldata.CreateKeyspaceResponse + (*CreateShardRequest)(nil), // 29: vtctldata.CreateShardRequest + (*CreateShardResponse)(nil), // 30: vtctldata.CreateShardResponse + (*DeleteCellInfoRequest)(nil), // 31: vtctldata.DeleteCellInfoRequest + (*DeleteCellInfoResponse)(nil), // 32: vtctldata.DeleteCellInfoResponse + (*DeleteCellsAliasRequest)(nil), // 33: vtctldata.DeleteCellsAliasRequest + (*DeleteCellsAliasResponse)(nil), // 34: vtctldata.DeleteCellsAliasResponse + (*DeleteKeyspaceRequest)(nil), // 35: vtctldata.DeleteKeyspaceRequest + (*DeleteKeyspaceResponse)(nil), // 36: vtctldata.DeleteKeyspaceResponse + (*DeleteShardsRequest)(nil), // 37: vtctldata.DeleteShardsRequest + (*DeleteShardsResponse)(nil), // 38: vtctldata.DeleteShardsResponse + (*DeleteSrvVSchemaRequest)(nil), // 39: vtctldata.DeleteSrvVSchemaRequest + (*DeleteSrvVSchemaResponse)(nil), // 40: vtctldata.DeleteSrvVSchemaResponse + (*DeleteTabletsRequest)(nil), // 41: vtctldata.DeleteTabletsRequest + (*DeleteTabletsResponse)(nil), // 42: vtctldata.DeleteTabletsResponse + (*EmergencyReparentShardRequest)(nil), // 43: vtctldata.EmergencyReparentShardRequest + (*EmergencyReparentShardResponse)(nil), // 44: vtctldata.EmergencyReparentShardResponse + (*ExecuteFetchAsAppRequest)(nil), // 45: vtctldata.ExecuteFetchAsAppRequest + (*ExecuteFetchAsAppResponse)(nil), // 46: vtctldata.ExecuteFetchAsAppResponse + (*ExecuteFetchAsDBARequest)(nil), // 47: vtctldata.ExecuteFetchAsDBARequest + (*ExecuteFetchAsDBAResponse)(nil), // 48: vtctldata.ExecuteFetchAsDBAResponse + (*ExecuteHookRequest)(nil), // 49: vtctldata.ExecuteHookRequest + (*ExecuteHookResponse)(nil), // 50: vtctldata.ExecuteHookResponse + (*FindAllShardsInKeyspaceRequest)(nil), // 51: vtctldata.FindAllShardsInKeyspaceRequest + (*FindAllShardsInKeyspaceResponse)(nil), // 52: vtctldata.FindAllShardsInKeyspaceResponse + (*GetBackupsRequest)(nil), // 53: vtctldata.GetBackupsRequest + (*GetBackupsResponse)(nil), // 54: vtctldata.GetBackupsResponse + (*GetCellInfoRequest)(nil), // 55: vtctldata.GetCellInfoRequest + (*GetCellInfoResponse)(nil), // 56: vtctldata.GetCellInfoResponse + (*GetCellInfoNamesRequest)(nil), // 57: vtctldata.GetCellInfoNamesRequest + (*GetCellInfoNamesResponse)(nil), // 58: vtctldata.GetCellInfoNamesResponse + (*GetCellsAliasesRequest)(nil), // 59: vtctldata.GetCellsAliasesRequest + (*GetCellsAliasesResponse)(nil), // 60: vtctldata.GetCellsAliasesResponse + (*GetFullStatusRequest)(nil), // 61: vtctldata.GetFullStatusRequest + (*GetFullStatusResponse)(nil), // 62: vtctldata.GetFullStatusResponse + (*GetKeyspacesRequest)(nil), // 63: vtctldata.GetKeyspacesRequest + (*GetKeyspacesResponse)(nil), // 64: vtctldata.GetKeyspacesResponse + (*GetKeyspaceRequest)(nil), // 65: vtctldata.GetKeyspaceRequest + (*GetKeyspaceResponse)(nil), // 66: vtctldata.GetKeyspaceResponse + (*GetPermissionsRequest)(nil), // 67: vtctldata.GetPermissionsRequest + (*GetPermissionsResponse)(nil), // 68: vtctldata.GetPermissionsResponse + (*GetRoutingRulesRequest)(nil), // 69: vtctldata.GetRoutingRulesRequest + (*GetRoutingRulesResponse)(nil), // 70: vtctldata.GetRoutingRulesResponse + (*GetSchemaRequest)(nil), // 71: vtctldata.GetSchemaRequest + (*GetSchemaResponse)(nil), // 72: vtctldata.GetSchemaResponse + (*GetShardRequest)(nil), // 73: vtctldata.GetShardRequest + (*GetShardResponse)(nil), // 74: vtctldata.GetShardResponse + (*GetShardRoutingRulesRequest)(nil), // 75: vtctldata.GetShardRoutingRulesRequest + (*GetShardRoutingRulesResponse)(nil), // 76: vtctldata.GetShardRoutingRulesResponse + (*GetSrvKeyspaceNamesRequest)(nil), // 77: vtctldata.GetSrvKeyspaceNamesRequest + (*GetSrvKeyspaceNamesResponse)(nil), // 78: vtctldata.GetSrvKeyspaceNamesResponse + (*GetSrvKeyspacesRequest)(nil), // 79: vtctldata.GetSrvKeyspacesRequest + (*GetSrvKeyspacesResponse)(nil), // 80: vtctldata.GetSrvKeyspacesResponse + (*GetSrvVSchemaRequest)(nil), // 81: vtctldata.GetSrvVSchemaRequest + (*GetSrvVSchemaResponse)(nil), // 82: vtctldata.GetSrvVSchemaResponse + (*GetSrvVSchemasRequest)(nil), // 83: vtctldata.GetSrvVSchemasRequest + (*GetSrvVSchemasResponse)(nil), // 84: vtctldata.GetSrvVSchemasResponse + (*GetTabletRequest)(nil), // 85: vtctldata.GetTabletRequest + (*GetTabletResponse)(nil), // 86: vtctldata.GetTabletResponse + (*GetTabletsRequest)(nil), // 87: vtctldata.GetTabletsRequest + (*GetTabletsResponse)(nil), // 88: vtctldata.GetTabletsResponse + (*GetTopologyPathRequest)(nil), // 89: vtctldata.GetTopologyPathRequest + (*GetTopologyPathResponse)(nil), // 90: vtctldata.GetTopologyPathResponse + (*TopologyCell)(nil), // 91: vtctldata.TopologyCell + (*GetVSchemaRequest)(nil), // 92: vtctldata.GetVSchemaRequest + (*GetVersionRequest)(nil), // 93: vtctldata.GetVersionRequest + (*GetVersionResponse)(nil), // 94: vtctldata.GetVersionResponse + (*GetVSchemaResponse)(nil), // 95: vtctldata.GetVSchemaResponse + (*GetWorkflowsRequest)(nil), // 96: vtctldata.GetWorkflowsRequest + (*GetWorkflowsResponse)(nil), // 97: vtctldata.GetWorkflowsResponse + (*InitShardPrimaryRequest)(nil), // 98: vtctldata.InitShardPrimaryRequest + (*InitShardPrimaryResponse)(nil), // 99: vtctldata.InitShardPrimaryResponse + (*PingTabletRequest)(nil), // 100: vtctldata.PingTabletRequest + (*PingTabletResponse)(nil), // 101: vtctldata.PingTabletResponse + (*PlannedReparentShardRequest)(nil), // 102: vtctldata.PlannedReparentShardRequest + (*PlannedReparentShardResponse)(nil), // 103: vtctldata.PlannedReparentShardResponse + (*RebuildKeyspaceGraphRequest)(nil), // 104: vtctldata.RebuildKeyspaceGraphRequest + (*RebuildKeyspaceGraphResponse)(nil), // 105: vtctldata.RebuildKeyspaceGraphResponse + (*RebuildVSchemaGraphRequest)(nil), // 106: vtctldata.RebuildVSchemaGraphRequest + (*RebuildVSchemaGraphResponse)(nil), // 107: vtctldata.RebuildVSchemaGraphResponse + (*RefreshStateRequest)(nil), // 108: vtctldata.RefreshStateRequest + (*RefreshStateResponse)(nil), // 109: vtctldata.RefreshStateResponse + (*RefreshStateByShardRequest)(nil), // 110: vtctldata.RefreshStateByShardRequest + (*RefreshStateByShardResponse)(nil), // 111: vtctldata.RefreshStateByShardResponse + (*ReloadSchemaRequest)(nil), // 112: vtctldata.ReloadSchemaRequest + (*ReloadSchemaResponse)(nil), // 113: vtctldata.ReloadSchemaResponse + (*ReloadSchemaKeyspaceRequest)(nil), // 114: vtctldata.ReloadSchemaKeyspaceRequest + (*ReloadSchemaKeyspaceResponse)(nil), // 115: vtctldata.ReloadSchemaKeyspaceResponse + (*ReloadSchemaShardRequest)(nil), // 116: vtctldata.ReloadSchemaShardRequest + (*ReloadSchemaShardResponse)(nil), // 117: vtctldata.ReloadSchemaShardResponse + (*RemoveBackupRequest)(nil), // 118: vtctldata.RemoveBackupRequest + (*RemoveBackupResponse)(nil), // 119: vtctldata.RemoveBackupResponse + (*RemoveKeyspaceCellRequest)(nil), // 120: vtctldata.RemoveKeyspaceCellRequest + (*RemoveKeyspaceCellResponse)(nil), // 121: vtctldata.RemoveKeyspaceCellResponse + (*RemoveShardCellRequest)(nil), // 122: vtctldata.RemoveShardCellRequest + (*RemoveShardCellResponse)(nil), // 123: vtctldata.RemoveShardCellResponse + (*ReparentTabletRequest)(nil), // 124: vtctldata.ReparentTabletRequest + (*ReparentTabletResponse)(nil), // 125: vtctldata.ReparentTabletResponse + (*RestoreFromBackupRequest)(nil), // 126: vtctldata.RestoreFromBackupRequest + (*RestoreFromBackupResponse)(nil), // 127: vtctldata.RestoreFromBackupResponse + (*RunHealthCheckRequest)(nil), // 128: vtctldata.RunHealthCheckRequest + (*RunHealthCheckResponse)(nil), // 129: vtctldata.RunHealthCheckResponse + (*SetKeyspaceDurabilityPolicyRequest)(nil), // 130: vtctldata.SetKeyspaceDurabilityPolicyRequest + (*SetKeyspaceDurabilityPolicyResponse)(nil), // 131: vtctldata.SetKeyspaceDurabilityPolicyResponse + (*SetKeyspaceServedFromRequest)(nil), // 132: vtctldata.SetKeyspaceServedFromRequest + (*SetKeyspaceServedFromResponse)(nil), // 133: vtctldata.SetKeyspaceServedFromResponse + (*SetKeyspaceShardingInfoRequest)(nil), // 134: vtctldata.SetKeyspaceShardingInfoRequest + (*SetKeyspaceShardingInfoResponse)(nil), // 135: vtctldata.SetKeyspaceShardingInfoResponse + (*SetShardIsPrimaryServingRequest)(nil), // 136: vtctldata.SetShardIsPrimaryServingRequest + (*SetShardIsPrimaryServingResponse)(nil), // 137: vtctldata.SetShardIsPrimaryServingResponse + (*SetShardTabletControlRequest)(nil), // 138: vtctldata.SetShardTabletControlRequest + (*SetShardTabletControlResponse)(nil), // 139: vtctldata.SetShardTabletControlResponse + (*SetWritableRequest)(nil), // 140: vtctldata.SetWritableRequest + (*SetWritableResponse)(nil), // 141: vtctldata.SetWritableResponse + (*ShardReplicationAddRequest)(nil), // 142: vtctldata.ShardReplicationAddRequest + (*ShardReplicationAddResponse)(nil), // 143: vtctldata.ShardReplicationAddResponse + (*ShardReplicationFixRequest)(nil), // 144: vtctldata.ShardReplicationFixRequest + (*ShardReplicationFixResponse)(nil), // 145: vtctldata.ShardReplicationFixResponse + (*ShardReplicationPositionsRequest)(nil), // 146: vtctldata.ShardReplicationPositionsRequest + (*ShardReplicationPositionsResponse)(nil), // 147: vtctldata.ShardReplicationPositionsResponse + (*ShardReplicationRemoveRequest)(nil), // 148: vtctldata.ShardReplicationRemoveRequest + (*ShardReplicationRemoveResponse)(nil), // 149: vtctldata.ShardReplicationRemoveResponse + (*SleepTabletRequest)(nil), // 150: vtctldata.SleepTabletRequest + (*SleepTabletResponse)(nil), // 151: vtctldata.SleepTabletResponse + (*SourceShardAddRequest)(nil), // 152: vtctldata.SourceShardAddRequest + (*SourceShardAddResponse)(nil), // 153: vtctldata.SourceShardAddResponse + (*SourceShardDeleteRequest)(nil), // 154: vtctldata.SourceShardDeleteRequest + (*SourceShardDeleteResponse)(nil), // 155: vtctldata.SourceShardDeleteResponse + (*StartReplicationRequest)(nil), // 156: vtctldata.StartReplicationRequest + (*StartReplicationResponse)(nil), // 157: vtctldata.StartReplicationResponse + (*StopReplicationRequest)(nil), // 158: vtctldata.StopReplicationRequest + (*StopReplicationResponse)(nil), // 159: vtctldata.StopReplicationResponse + (*TabletExternallyReparentedRequest)(nil), // 160: vtctldata.TabletExternallyReparentedRequest + (*TabletExternallyReparentedResponse)(nil), // 161: vtctldata.TabletExternallyReparentedResponse + (*UpdateCellInfoRequest)(nil), // 162: vtctldata.UpdateCellInfoRequest + (*UpdateCellInfoResponse)(nil), // 163: vtctldata.UpdateCellInfoResponse + (*UpdateCellsAliasRequest)(nil), // 164: vtctldata.UpdateCellsAliasRequest + (*UpdateCellsAliasResponse)(nil), // 165: vtctldata.UpdateCellsAliasResponse + (*ValidateRequest)(nil), // 166: vtctldata.ValidateRequest + (*ValidateResponse)(nil), // 167: vtctldata.ValidateResponse + (*ValidateKeyspaceRequest)(nil), // 168: vtctldata.ValidateKeyspaceRequest + (*ValidateKeyspaceResponse)(nil), // 169: vtctldata.ValidateKeyspaceResponse + (*ValidateSchemaKeyspaceRequest)(nil), // 170: vtctldata.ValidateSchemaKeyspaceRequest + (*ValidateSchemaKeyspaceResponse)(nil), // 171: vtctldata.ValidateSchemaKeyspaceResponse + (*ValidateShardRequest)(nil), // 172: vtctldata.ValidateShardRequest + (*ValidateShardResponse)(nil), // 173: vtctldata.ValidateShardResponse + (*ValidateVersionKeyspaceRequest)(nil), // 174: vtctldata.ValidateVersionKeyspaceRequest + (*ValidateVersionKeyspaceResponse)(nil), // 175: vtctldata.ValidateVersionKeyspaceResponse + (*ValidateVersionShardRequest)(nil), // 176: vtctldata.ValidateVersionShardRequest + (*ValidateVersionShardResponse)(nil), // 177: vtctldata.ValidateVersionShardResponse + (*ValidateVSchemaRequest)(nil), // 178: vtctldata.ValidateVSchemaRequest + (*ValidateVSchemaResponse)(nil), // 179: vtctldata.ValidateVSchemaResponse + nil, // 180: vtctldata.Workflow.ShardStreamsEntry + (*Workflow_ReplicationLocation)(nil), // 181: vtctldata.Workflow.ReplicationLocation + (*Workflow_ShardStream)(nil), // 182: vtctldata.Workflow.ShardStream + (*Workflow_Stream)(nil), // 183: vtctldata.Workflow.Stream + (*Workflow_Stream_CopyState)(nil), // 184: vtctldata.Workflow.Stream.CopyState + (*Workflow_Stream_Log)(nil), // 185: vtctldata.Workflow.Stream.Log + nil, // 186: vtctldata.ChangeTabletTagsRequest.TagsEntry + nil, // 187: vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry + nil, // 188: vtctldata.ChangeTabletTagsResponse.AfterTagsEntry + nil, // 189: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry + nil, // 190: vtctldata.GetCellsAliasesResponse.AliasesEntry + nil, // 191: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry + (*GetSrvKeyspaceNamesResponse_NameList)(nil), // 192: vtctldata.GetSrvKeyspaceNamesResponse.NameList + nil, // 193: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry + nil, // 194: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry + nil, // 195: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry + nil, // 196: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry + nil, // 197: vtctldata.ValidateResponse.ResultsByKeyspaceEntry + nil, // 198: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry + nil, // 199: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry + nil, // 200: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry + nil, // 201: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry + (*logutil.Event)(nil), // 202: logutil.Event + (*topodata.Keyspace)(nil), // 203: topodata.Keyspace + (*topodata.Shard)(nil), // 204: topodata.Shard + (*topodata.CellInfo)(nil), // 205: topodata.CellInfo + (*vschema.RoutingRules)(nil), // 206: vschema.RoutingRules + (*vschema.ShardRoutingRules)(nil), // 207: vschema.ShardRoutingRules + (*vttime.Duration)(nil), // 208: vttime.Duration + (*vtrpc.CallerID)(nil), // 209: vtrpc.CallerID + (*vschema.Keyspace)(nil), // 210: vschema.Keyspace + (*topodata.TabletAlias)(nil), // 211: topodata.TabletAlias + (topodata.TabletType)(0), // 212: topodata.TabletType + (*topodata.Tablet)(nil), // 213: topodata.Tablet + (*topodata.Keyspace_ServedFrom)(nil), // 214: topodata.Keyspace.ServedFrom + (topodata.KeyspaceType)(0), // 215: topodata.KeyspaceType + (*vttime.Time)(nil), // 216: vttime.Time + (*query.QueryResult)(nil), // 217: query.QueryResult + (*tabletmanagerdata.ExecuteHookRequest)(nil), // 218: tabletmanagerdata.ExecuteHookRequest + (*tabletmanagerdata.ExecuteHookResponse)(nil), // 219: tabletmanagerdata.ExecuteHookResponse + (*mysqlctl.BackupInfo)(nil), // 220: mysqlctl.BackupInfo + (*replicationdata.FullStatus)(nil), // 221: replicationdata.FullStatus + (*tabletmanagerdata.Permissions)(nil), // 222: tabletmanagerdata.Permissions + (*tabletmanagerdata.SchemaDefinition)(nil), // 223: tabletmanagerdata.SchemaDefinition + (*vschema.SrvVSchema)(nil), // 224: vschema.SrvVSchema + (*topodata.ShardReplicationError)(nil), // 225: topodata.ShardReplicationError + (*topodata.KeyRange)(nil), // 226: topodata.KeyRange + (*topodata.CellsAlias)(nil), // 227: topodata.CellsAlias + (*topodata.Shard_TabletControl)(nil), // 228: topodata.Shard.TabletControl + (*binlogdata.BinlogSource)(nil), // 229: binlogdata.BinlogSource + (*topodata.SrvKeyspace)(nil), // 230: topodata.SrvKeyspace + (*replicationdata.Status)(nil), // 231: replicationdata.Status } var file_vtctldata_proto_depIdxs = []int32{ - 197, // 0: vtctldata.ExecuteVtctlCommandResponse.event:type_name -> logutil.Event + 202, // 0: vtctldata.ExecuteVtctlCommandResponse.event:type_name -> logutil.Event 3, // 1: vtctldata.MaterializeSettings.table_settings:type_name -> vtctldata.TableMaterializeSettings 0, // 2: vtctldata.MaterializeSettings.materialization_intent:type_name -> vtctldata.MaterializationIntent - 198, // 3: vtctldata.Keyspace.keyspace:type_name -> topodata.Keyspace - 199, // 4: vtctldata.Shard.shard:type_name -> topodata.Shard - 179, // 5: vtctldata.Workflow.source:type_name -> vtctldata.Workflow.ReplicationLocation - 179, // 6: vtctldata.Workflow.target:type_name -> vtctldata.Workflow.ReplicationLocation - 178, // 7: vtctldata.Workflow.shard_streams:type_name -> vtctldata.Workflow.ShardStreamsEntry - 200, // 8: vtctldata.AddCellInfoRequest.cell_info:type_name -> topodata.CellInfo - 201, // 9: vtctldata.ApplyRoutingRulesRequest.routing_rules:type_name -> vschema.RoutingRules - 202, // 10: vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules:type_name -> vschema.ShardRoutingRules - 203, // 11: vtctldata.ApplySchemaRequest.wait_replicas_timeout:type_name -> vttime.Duration - 204, // 12: vtctldata.ApplySchemaRequest.caller_id:type_name -> vtrpc.CallerID - 205, // 13: vtctldata.ApplyVSchemaRequest.v_schema:type_name -> vschema.Keyspace - 205, // 14: vtctldata.ApplyVSchemaResponse.v_schema:type_name -> vschema.Keyspace - 206, // 15: vtctldata.BackupRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 16: vtctldata.BackupResponse.tablet_alias:type_name -> topodata.TabletAlias - 197, // 17: vtctldata.BackupResponse.event:type_name -> logutil.Event - 206, // 18: vtctldata.ChangeTabletTypeRequest.tablet_alias:type_name -> topodata.TabletAlias - 207, // 19: vtctldata.ChangeTabletTypeRequest.db_type:type_name -> topodata.TabletType - 208, // 20: vtctldata.ChangeTabletTypeResponse.before_tablet:type_name -> topodata.Tablet - 208, // 21: vtctldata.ChangeTabletTypeResponse.after_tablet:type_name -> topodata.Tablet - 209, // 22: vtctldata.CreateKeyspaceRequest.served_froms:type_name -> topodata.Keyspace.ServedFrom - 210, // 23: vtctldata.CreateKeyspaceRequest.type:type_name -> topodata.KeyspaceType - 211, // 24: vtctldata.CreateKeyspaceRequest.snapshot_time:type_name -> vttime.Time - 5, // 25: vtctldata.CreateKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace - 5, // 26: vtctldata.CreateShardResponse.keyspace:type_name -> vtctldata.Keyspace - 6, // 27: vtctldata.CreateShardResponse.shard:type_name -> vtctldata.Shard - 6, // 28: vtctldata.DeleteShardsRequest.shards:type_name -> vtctldata.Shard - 206, // 29: vtctldata.DeleteTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias - 206, // 30: vtctldata.EmergencyReparentShardRequest.new_primary:type_name -> topodata.TabletAlias - 206, // 31: vtctldata.EmergencyReparentShardRequest.ignore_replicas:type_name -> topodata.TabletAlias - 203, // 32: vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration - 206, // 33: vtctldata.EmergencyReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 197, // 34: vtctldata.EmergencyReparentShardResponse.events:type_name -> logutil.Event - 206, // 35: vtctldata.ExecuteFetchAsAppRequest.tablet_alias:type_name -> topodata.TabletAlias - 212, // 36: vtctldata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult - 206, // 37: vtctldata.ExecuteFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias - 212, // 38: vtctldata.ExecuteFetchAsDBAResponse.result:type_name -> query.QueryResult - 206, // 39: vtctldata.ExecuteHookRequest.tablet_alias:type_name -> topodata.TabletAlias - 213, // 40: vtctldata.ExecuteHookRequest.tablet_hook_request:type_name -> tabletmanagerdata.ExecuteHookRequest - 214, // 41: vtctldata.ExecuteHookResponse.hook_result:type_name -> tabletmanagerdata.ExecuteHookResponse - 184, // 42: vtctldata.FindAllShardsInKeyspaceResponse.shards:type_name -> vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry - 215, // 43: vtctldata.GetBackupsResponse.backups:type_name -> mysqlctl.BackupInfo - 200, // 44: vtctldata.GetCellInfoResponse.cell_info:type_name -> topodata.CellInfo - 185, // 45: vtctldata.GetCellsAliasesResponse.aliases:type_name -> vtctldata.GetCellsAliasesResponse.AliasesEntry - 206, // 46: vtctldata.GetFullStatusRequest.tablet_alias:type_name -> topodata.TabletAlias - 216, // 47: vtctldata.GetFullStatusResponse.status:type_name -> replicationdata.FullStatus - 5, // 48: vtctldata.GetKeyspacesResponse.keyspaces:type_name -> vtctldata.Keyspace - 5, // 49: vtctldata.GetKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace - 206, // 50: vtctldata.GetPermissionsRequest.tablet_alias:type_name -> topodata.TabletAlias - 217, // 51: vtctldata.GetPermissionsResponse.permissions:type_name -> tabletmanagerdata.Permissions - 201, // 52: vtctldata.GetRoutingRulesResponse.routing_rules:type_name -> vschema.RoutingRules - 206, // 53: vtctldata.GetSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias - 218, // 54: vtctldata.GetSchemaResponse.schema:type_name -> tabletmanagerdata.SchemaDefinition - 6, // 55: vtctldata.GetShardResponse.shard:type_name -> vtctldata.Shard - 202, // 56: vtctldata.GetShardRoutingRulesResponse.shard_routing_rules:type_name -> vschema.ShardRoutingRules - 186, // 57: vtctldata.GetSrvKeyspaceNamesResponse.names:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry - 188, // 58: vtctldata.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry - 219, // 59: vtctldata.GetSrvVSchemaResponse.srv_v_schema:type_name -> vschema.SrvVSchema - 189, // 60: vtctldata.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry - 206, // 61: vtctldata.GetTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 208, // 62: vtctldata.GetTabletResponse.tablet:type_name -> topodata.Tablet - 206, // 63: vtctldata.GetTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias - 207, // 64: vtctldata.GetTabletsRequest.tablet_type:type_name -> topodata.TabletType - 208, // 65: vtctldata.GetTabletsResponse.tablets:type_name -> topodata.Tablet - 89, // 66: vtctldata.GetTopologyPathResponse.cell:type_name -> vtctldata.TopologyCell - 206, // 67: vtctldata.GetVersionRequest.tablet_alias:type_name -> topodata.TabletAlias - 205, // 68: vtctldata.GetVSchemaResponse.v_schema:type_name -> vschema.Keyspace - 7, // 69: vtctldata.GetWorkflowsResponse.workflows:type_name -> vtctldata.Workflow - 206, // 70: vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias:type_name -> topodata.TabletAlias - 203, // 71: vtctldata.InitShardPrimaryRequest.wait_replicas_timeout:type_name -> vttime.Duration - 197, // 72: vtctldata.InitShardPrimaryResponse.events:type_name -> logutil.Event - 206, // 73: vtctldata.PingTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 74: vtctldata.PlannedReparentShardRequest.new_primary:type_name -> topodata.TabletAlias - 206, // 75: vtctldata.PlannedReparentShardRequest.avoid_primary:type_name -> topodata.TabletAlias - 203, // 76: vtctldata.PlannedReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration - 206, // 77: vtctldata.PlannedReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias - 197, // 78: vtctldata.PlannedReparentShardResponse.events:type_name -> logutil.Event - 206, // 79: vtctldata.RefreshStateRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 80: vtctldata.ReloadSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias - 197, // 81: vtctldata.ReloadSchemaKeyspaceResponse.events:type_name -> logutil.Event - 197, // 82: vtctldata.ReloadSchemaShardResponse.events:type_name -> logutil.Event - 206, // 83: vtctldata.ReparentTabletRequest.tablet:type_name -> topodata.TabletAlias - 206, // 84: vtctldata.ReparentTabletResponse.primary:type_name -> topodata.TabletAlias - 206, // 85: vtctldata.RestoreFromBackupRequest.tablet_alias:type_name -> topodata.TabletAlias - 211, // 86: vtctldata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time - 206, // 87: vtctldata.RestoreFromBackupResponse.tablet_alias:type_name -> topodata.TabletAlias - 197, // 88: vtctldata.RestoreFromBackupResponse.event:type_name -> logutil.Event - 206, // 89: vtctldata.RunHealthCheckRequest.tablet_alias:type_name -> topodata.TabletAlias - 198, // 90: vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace:type_name -> topodata.Keyspace - 207, // 91: vtctldata.SetKeyspaceServedFromRequest.tablet_type:type_name -> topodata.TabletType - 198, // 92: vtctldata.SetKeyspaceServedFromResponse.keyspace:type_name -> topodata.Keyspace - 198, // 93: vtctldata.SetKeyspaceShardingInfoResponse.keyspace:type_name -> topodata.Keyspace - 199, // 94: vtctldata.SetShardIsPrimaryServingResponse.shard:type_name -> topodata.Shard - 207, // 95: vtctldata.SetShardTabletControlRequest.tablet_type:type_name -> topodata.TabletType - 199, // 96: vtctldata.SetShardTabletControlResponse.shard:type_name -> topodata.Shard - 206, // 97: vtctldata.SetWritableRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 98: vtctldata.ShardReplicationAddRequest.tablet_alias:type_name -> topodata.TabletAlias - 220, // 99: vtctldata.ShardReplicationFixResponse.error:type_name -> topodata.ShardReplicationError - 190, // 100: vtctldata.ShardReplicationPositionsResponse.replication_statuses:type_name -> vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry - 191, // 101: vtctldata.ShardReplicationPositionsResponse.tablet_map:type_name -> vtctldata.ShardReplicationPositionsResponse.TabletMapEntry - 206, // 102: vtctldata.ShardReplicationRemoveRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 103: vtctldata.SleepTabletRequest.tablet_alias:type_name -> topodata.TabletAlias - 203, // 104: vtctldata.SleepTabletRequest.duration:type_name -> vttime.Duration - 221, // 105: vtctldata.SourceShardAddRequest.key_range:type_name -> topodata.KeyRange - 199, // 106: vtctldata.SourceShardAddResponse.shard:type_name -> topodata.Shard - 199, // 107: vtctldata.SourceShardDeleteResponse.shard:type_name -> topodata.Shard - 206, // 108: vtctldata.StartReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 109: vtctldata.StopReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias - 206, // 110: vtctldata.TabletExternallyReparentedRequest.tablet:type_name -> topodata.TabletAlias - 206, // 111: vtctldata.TabletExternallyReparentedResponse.new_primary:type_name -> topodata.TabletAlias - 206, // 112: vtctldata.TabletExternallyReparentedResponse.old_primary:type_name -> topodata.TabletAlias - 200, // 113: vtctldata.UpdateCellInfoRequest.cell_info:type_name -> topodata.CellInfo - 200, // 114: vtctldata.UpdateCellInfoResponse.cell_info:type_name -> topodata.CellInfo - 222, // 115: vtctldata.UpdateCellsAliasRequest.cells_alias:type_name -> topodata.CellsAlias - 222, // 116: vtctldata.UpdateCellsAliasResponse.cells_alias:type_name -> topodata.CellsAlias - 192, // 117: vtctldata.ValidateResponse.results_by_keyspace:type_name -> vtctldata.ValidateResponse.ResultsByKeyspaceEntry - 193, // 118: vtctldata.ValidateKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry - 194, // 119: vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry - 195, // 120: vtctldata.ValidateVersionKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry - 196, // 121: vtctldata.ValidateVSchemaResponse.results_by_shard:type_name -> vtctldata.ValidateVSchemaResponse.ResultsByShardEntry - 180, // 122: vtctldata.Workflow.ShardStreamsEntry.value:type_name -> vtctldata.Workflow.ShardStream - 181, // 123: vtctldata.Workflow.ShardStream.streams:type_name -> vtctldata.Workflow.Stream - 223, // 124: vtctldata.Workflow.ShardStream.tablet_controls:type_name -> topodata.Shard.TabletControl - 206, // 125: vtctldata.Workflow.Stream.tablet:type_name -> topodata.TabletAlias - 224, // 126: vtctldata.Workflow.Stream.binlog_source:type_name -> binlogdata.BinlogSource - 211, // 127: vtctldata.Workflow.Stream.transaction_timestamp:type_name -> vttime.Time - 211, // 128: vtctldata.Workflow.Stream.time_updated:type_name -> vttime.Time - 182, // 129: vtctldata.Workflow.Stream.copy_states:type_name -> vtctldata.Workflow.Stream.CopyState - 183, // 130: vtctldata.Workflow.Stream.logs:type_name -> vtctldata.Workflow.Stream.Log - 211, // 131: vtctldata.Workflow.Stream.Log.created_at:type_name -> vttime.Time - 211, // 132: vtctldata.Workflow.Stream.Log.updated_at:type_name -> vttime.Time - 6, // 133: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry.value:type_name -> vtctldata.Shard - 222, // 134: vtctldata.GetCellsAliasesResponse.AliasesEntry.value:type_name -> topodata.CellsAlias - 187, // 135: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry.value:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NameList - 225, // 136: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> topodata.SrvKeyspace - 219, // 137: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry.value:type_name -> vschema.SrvVSchema - 226, // 138: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry.value:type_name -> replicationdata.Status - 208, // 139: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry.value:type_name -> topodata.Tablet - 167, // 140: vtctldata.ValidateResponse.ResultsByKeyspaceEntry.value:type_name -> vtctldata.ValidateKeyspaceResponse - 171, // 141: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 171, // 142: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 171, // 143: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 171, // 144: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse - 145, // [145:145] is the sub-list for method output_type - 145, // [145:145] is the sub-list for method input_type - 145, // [145:145] is the sub-list for extension type_name - 145, // [145:145] is the sub-list for extension extendee - 0, // [0:145] is the sub-list for field type_name + 203, // 3: vtctldata.Keyspace.keyspace:type_name -> topodata.Keyspace + 204, // 4: vtctldata.Shard.shard:type_name -> topodata.Shard + 181, // 5: vtctldata.Workflow.source:type_name -> vtctldata.Workflow.ReplicationLocation + 181, // 6: vtctldata.Workflow.target:type_name -> vtctldata.Workflow.ReplicationLocation + 180, // 7: vtctldata.Workflow.shard_streams:type_name -> vtctldata.Workflow.ShardStreamsEntry + 205, // 8: vtctldata.AddCellInfoRequest.cell_info:type_name -> topodata.CellInfo + 206, // 9: vtctldata.ApplyRoutingRulesRequest.routing_rules:type_name -> vschema.RoutingRules + 207, // 10: vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules:type_name -> vschema.ShardRoutingRules + 208, // 11: vtctldata.ApplySchemaRequest.wait_replicas_timeout:type_name -> vttime.Duration + 209, // 12: vtctldata.ApplySchemaRequest.caller_id:type_name -> vtrpc.CallerID + 210, // 13: vtctldata.ApplyVSchemaRequest.v_schema:type_name -> vschema.Keyspace + 210, // 14: vtctldata.ApplyVSchemaResponse.v_schema:type_name -> vschema.Keyspace + 211, // 15: vtctldata.BackupRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 16: vtctldata.BackupResponse.tablet_alias:type_name -> topodata.TabletAlias + 202, // 17: vtctldata.BackupResponse.event:type_name -> logutil.Event + 211, // 18: vtctldata.ChangeTabletTagsRequest.tablet_alias:type_name -> topodata.TabletAlias + 186, // 19: vtctldata.ChangeTabletTagsRequest.tags:type_name -> vtctldata.ChangeTabletTagsRequest.TagsEntry + 187, // 20: vtctldata.ChangeTabletTagsResponse.before_tags:type_name -> vtctldata.ChangeTabletTagsResponse.BeforeTagsEntry + 188, // 21: vtctldata.ChangeTabletTagsResponse.after_tags:type_name -> vtctldata.ChangeTabletTagsResponse.AfterTagsEntry + 211, // 22: vtctldata.ChangeTabletTypeRequest.tablet_alias:type_name -> topodata.TabletAlias + 212, // 23: vtctldata.ChangeTabletTypeRequest.db_type:type_name -> topodata.TabletType + 213, // 24: vtctldata.ChangeTabletTypeResponse.before_tablet:type_name -> topodata.Tablet + 213, // 25: vtctldata.ChangeTabletTypeResponse.after_tablet:type_name -> topodata.Tablet + 214, // 26: vtctldata.CreateKeyspaceRequest.served_froms:type_name -> topodata.Keyspace.ServedFrom + 215, // 27: vtctldata.CreateKeyspaceRequest.type:type_name -> topodata.KeyspaceType + 216, // 28: vtctldata.CreateKeyspaceRequest.snapshot_time:type_name -> vttime.Time + 5, // 29: vtctldata.CreateKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace + 5, // 30: vtctldata.CreateShardResponse.keyspace:type_name -> vtctldata.Keyspace + 6, // 31: vtctldata.CreateShardResponse.shard:type_name -> vtctldata.Shard + 6, // 32: vtctldata.DeleteShardsRequest.shards:type_name -> vtctldata.Shard + 211, // 33: vtctldata.DeleteTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias + 211, // 34: vtctldata.EmergencyReparentShardRequest.new_primary:type_name -> topodata.TabletAlias + 211, // 35: vtctldata.EmergencyReparentShardRequest.ignore_replicas:type_name -> topodata.TabletAlias + 208, // 36: vtctldata.EmergencyReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration + 211, // 37: vtctldata.EmergencyReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 202, // 38: vtctldata.EmergencyReparentShardResponse.events:type_name -> logutil.Event + 211, // 39: vtctldata.ExecuteFetchAsAppRequest.tablet_alias:type_name -> topodata.TabletAlias + 217, // 40: vtctldata.ExecuteFetchAsAppResponse.result:type_name -> query.QueryResult + 211, // 41: vtctldata.ExecuteFetchAsDBARequest.tablet_alias:type_name -> topodata.TabletAlias + 217, // 42: vtctldata.ExecuteFetchAsDBAResponse.result:type_name -> query.QueryResult + 211, // 43: vtctldata.ExecuteHookRequest.tablet_alias:type_name -> topodata.TabletAlias + 218, // 44: vtctldata.ExecuteHookRequest.tablet_hook_request:type_name -> tabletmanagerdata.ExecuteHookRequest + 219, // 45: vtctldata.ExecuteHookResponse.hook_result:type_name -> tabletmanagerdata.ExecuteHookResponse + 189, // 46: vtctldata.FindAllShardsInKeyspaceResponse.shards:type_name -> vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry + 220, // 47: vtctldata.GetBackupsResponse.backups:type_name -> mysqlctl.BackupInfo + 205, // 48: vtctldata.GetCellInfoResponse.cell_info:type_name -> topodata.CellInfo + 190, // 49: vtctldata.GetCellsAliasesResponse.aliases:type_name -> vtctldata.GetCellsAliasesResponse.AliasesEntry + 211, // 50: vtctldata.GetFullStatusRequest.tablet_alias:type_name -> topodata.TabletAlias + 221, // 51: vtctldata.GetFullStatusResponse.status:type_name -> replicationdata.FullStatus + 5, // 52: vtctldata.GetKeyspacesResponse.keyspaces:type_name -> vtctldata.Keyspace + 5, // 53: vtctldata.GetKeyspaceResponse.keyspace:type_name -> vtctldata.Keyspace + 211, // 54: vtctldata.GetPermissionsRequest.tablet_alias:type_name -> topodata.TabletAlias + 222, // 55: vtctldata.GetPermissionsResponse.permissions:type_name -> tabletmanagerdata.Permissions + 206, // 56: vtctldata.GetRoutingRulesResponse.routing_rules:type_name -> vschema.RoutingRules + 211, // 57: vtctldata.GetSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias + 223, // 58: vtctldata.GetSchemaResponse.schema:type_name -> tabletmanagerdata.SchemaDefinition + 6, // 59: vtctldata.GetShardResponse.shard:type_name -> vtctldata.Shard + 207, // 60: vtctldata.GetShardRoutingRulesResponse.shard_routing_rules:type_name -> vschema.ShardRoutingRules + 191, // 61: vtctldata.GetSrvKeyspaceNamesResponse.names:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry + 193, // 62: vtctldata.GetSrvKeyspacesResponse.srv_keyspaces:type_name -> vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry + 224, // 63: vtctldata.GetSrvVSchemaResponse.srv_v_schema:type_name -> vschema.SrvVSchema + 194, // 64: vtctldata.GetSrvVSchemasResponse.srv_v_schemas:type_name -> vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry + 211, // 65: vtctldata.GetTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 213, // 66: vtctldata.GetTabletResponse.tablet:type_name -> topodata.Tablet + 211, // 67: vtctldata.GetTabletsRequest.tablet_aliases:type_name -> topodata.TabletAlias + 212, // 68: vtctldata.GetTabletsRequest.tablet_type:type_name -> topodata.TabletType + 213, // 69: vtctldata.GetTabletsResponse.tablets:type_name -> topodata.Tablet + 91, // 70: vtctldata.GetTopologyPathResponse.cell:type_name -> vtctldata.TopologyCell + 211, // 71: vtctldata.GetVersionRequest.tablet_alias:type_name -> topodata.TabletAlias + 210, // 72: vtctldata.GetVSchemaResponse.v_schema:type_name -> vschema.Keyspace + 7, // 73: vtctldata.GetWorkflowsResponse.workflows:type_name -> vtctldata.Workflow + 211, // 74: vtctldata.InitShardPrimaryRequest.primary_elect_tablet_alias:type_name -> topodata.TabletAlias + 208, // 75: vtctldata.InitShardPrimaryRequest.wait_replicas_timeout:type_name -> vttime.Duration + 202, // 76: vtctldata.InitShardPrimaryResponse.events:type_name -> logutil.Event + 211, // 77: vtctldata.PingTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 78: vtctldata.PlannedReparentShardRequest.new_primary:type_name -> topodata.TabletAlias + 211, // 79: vtctldata.PlannedReparentShardRequest.avoid_primary:type_name -> topodata.TabletAlias + 208, // 80: vtctldata.PlannedReparentShardRequest.wait_replicas_timeout:type_name -> vttime.Duration + 211, // 81: vtctldata.PlannedReparentShardResponse.promoted_primary:type_name -> topodata.TabletAlias + 202, // 82: vtctldata.PlannedReparentShardResponse.events:type_name -> logutil.Event + 211, // 83: vtctldata.RefreshStateRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 84: vtctldata.ReloadSchemaRequest.tablet_alias:type_name -> topodata.TabletAlias + 202, // 85: vtctldata.ReloadSchemaKeyspaceResponse.events:type_name -> logutil.Event + 202, // 86: vtctldata.ReloadSchemaShardResponse.events:type_name -> logutil.Event + 211, // 87: vtctldata.ReparentTabletRequest.tablet:type_name -> topodata.TabletAlias + 211, // 88: vtctldata.ReparentTabletResponse.primary:type_name -> topodata.TabletAlias + 211, // 89: vtctldata.RestoreFromBackupRequest.tablet_alias:type_name -> topodata.TabletAlias + 216, // 90: vtctldata.RestoreFromBackupRequest.backup_time:type_name -> vttime.Time + 211, // 91: vtctldata.RestoreFromBackupResponse.tablet_alias:type_name -> topodata.TabletAlias + 202, // 92: vtctldata.RestoreFromBackupResponse.event:type_name -> logutil.Event + 211, // 93: vtctldata.RunHealthCheckRequest.tablet_alias:type_name -> topodata.TabletAlias + 203, // 94: vtctldata.SetKeyspaceDurabilityPolicyResponse.keyspace:type_name -> topodata.Keyspace + 212, // 95: vtctldata.SetKeyspaceServedFromRequest.tablet_type:type_name -> topodata.TabletType + 203, // 96: vtctldata.SetKeyspaceServedFromResponse.keyspace:type_name -> topodata.Keyspace + 203, // 97: vtctldata.SetKeyspaceShardingInfoResponse.keyspace:type_name -> topodata.Keyspace + 204, // 98: vtctldata.SetShardIsPrimaryServingResponse.shard:type_name -> topodata.Shard + 212, // 99: vtctldata.SetShardTabletControlRequest.tablet_type:type_name -> topodata.TabletType + 204, // 100: vtctldata.SetShardTabletControlResponse.shard:type_name -> topodata.Shard + 211, // 101: vtctldata.SetWritableRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 102: vtctldata.ShardReplicationAddRequest.tablet_alias:type_name -> topodata.TabletAlias + 225, // 103: vtctldata.ShardReplicationFixResponse.error:type_name -> topodata.ShardReplicationError + 195, // 104: vtctldata.ShardReplicationPositionsResponse.replication_statuses:type_name -> vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry + 196, // 105: vtctldata.ShardReplicationPositionsResponse.tablet_map:type_name -> vtctldata.ShardReplicationPositionsResponse.TabletMapEntry + 211, // 106: vtctldata.ShardReplicationRemoveRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 107: vtctldata.SleepTabletRequest.tablet_alias:type_name -> topodata.TabletAlias + 208, // 108: vtctldata.SleepTabletRequest.duration:type_name -> vttime.Duration + 226, // 109: vtctldata.SourceShardAddRequest.key_range:type_name -> topodata.KeyRange + 204, // 110: vtctldata.SourceShardAddResponse.shard:type_name -> topodata.Shard + 204, // 111: vtctldata.SourceShardDeleteResponse.shard:type_name -> topodata.Shard + 211, // 112: vtctldata.StartReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 113: vtctldata.StopReplicationRequest.tablet_alias:type_name -> topodata.TabletAlias + 211, // 114: vtctldata.TabletExternallyReparentedRequest.tablet:type_name -> topodata.TabletAlias + 211, // 115: vtctldata.TabletExternallyReparentedResponse.new_primary:type_name -> topodata.TabletAlias + 211, // 116: vtctldata.TabletExternallyReparentedResponse.old_primary:type_name -> topodata.TabletAlias + 205, // 117: vtctldata.UpdateCellInfoRequest.cell_info:type_name -> topodata.CellInfo + 205, // 118: vtctldata.UpdateCellInfoResponse.cell_info:type_name -> topodata.CellInfo + 227, // 119: vtctldata.UpdateCellsAliasRequest.cells_alias:type_name -> topodata.CellsAlias + 227, // 120: vtctldata.UpdateCellsAliasResponse.cells_alias:type_name -> topodata.CellsAlias + 197, // 121: vtctldata.ValidateResponse.results_by_keyspace:type_name -> vtctldata.ValidateResponse.ResultsByKeyspaceEntry + 198, // 122: vtctldata.ValidateKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry + 199, // 123: vtctldata.ValidateSchemaKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry + 200, // 124: vtctldata.ValidateVersionKeyspaceResponse.results_by_shard:type_name -> vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry + 201, // 125: vtctldata.ValidateVSchemaResponse.results_by_shard:type_name -> vtctldata.ValidateVSchemaResponse.ResultsByShardEntry + 182, // 126: vtctldata.Workflow.ShardStreamsEntry.value:type_name -> vtctldata.Workflow.ShardStream + 183, // 127: vtctldata.Workflow.ShardStream.streams:type_name -> vtctldata.Workflow.Stream + 228, // 128: vtctldata.Workflow.ShardStream.tablet_controls:type_name -> topodata.Shard.TabletControl + 211, // 129: vtctldata.Workflow.Stream.tablet:type_name -> topodata.TabletAlias + 229, // 130: vtctldata.Workflow.Stream.binlog_source:type_name -> binlogdata.BinlogSource + 216, // 131: vtctldata.Workflow.Stream.transaction_timestamp:type_name -> vttime.Time + 216, // 132: vtctldata.Workflow.Stream.time_updated:type_name -> vttime.Time + 184, // 133: vtctldata.Workflow.Stream.copy_states:type_name -> vtctldata.Workflow.Stream.CopyState + 185, // 134: vtctldata.Workflow.Stream.logs:type_name -> vtctldata.Workflow.Stream.Log + 216, // 135: vtctldata.Workflow.Stream.Log.created_at:type_name -> vttime.Time + 216, // 136: vtctldata.Workflow.Stream.Log.updated_at:type_name -> vttime.Time + 6, // 137: vtctldata.FindAllShardsInKeyspaceResponse.ShardsEntry.value:type_name -> vtctldata.Shard + 227, // 138: vtctldata.GetCellsAliasesResponse.AliasesEntry.value:type_name -> topodata.CellsAlias + 192, // 139: vtctldata.GetSrvKeyspaceNamesResponse.NamesEntry.value:type_name -> vtctldata.GetSrvKeyspaceNamesResponse.NameList + 230, // 140: vtctldata.GetSrvKeyspacesResponse.SrvKeyspacesEntry.value:type_name -> topodata.SrvKeyspace + 224, // 141: vtctldata.GetSrvVSchemasResponse.SrvVSchemasEntry.value:type_name -> vschema.SrvVSchema + 231, // 142: vtctldata.ShardReplicationPositionsResponse.ReplicationStatusesEntry.value:type_name -> replicationdata.Status + 213, // 143: vtctldata.ShardReplicationPositionsResponse.TabletMapEntry.value:type_name -> topodata.Tablet + 169, // 144: vtctldata.ValidateResponse.ResultsByKeyspaceEntry.value:type_name -> vtctldata.ValidateKeyspaceResponse + 173, // 145: vtctldata.ValidateKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 173, // 146: vtctldata.ValidateSchemaKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 173, // 147: vtctldata.ValidateVersionKeyspaceResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 173, // 148: vtctldata.ValidateVSchemaResponse.ResultsByShardEntry.value:type_name -> vtctldata.ValidateShardResponse + 149, // [149:149] is the sub-list for method output_type + 149, // [149:149] is the sub-list for method input_type + 149, // [149:149] is the sub-list for extension type_name + 149, // [149:149] is the sub-list for extension extendee + 0, // [0:149] is the sub-list for field type_name } func init() { file_vtctldata_proto_init() } @@ -12508,7 +12670,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeTabletTypeRequest); i { + switch v := v.(*ChangeTabletTagsRequest); i { case 0: return &v.state case 1: @@ -12520,7 +12682,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeTabletTypeResponse); i { + switch v := v.(*ChangeTabletTagsResponse); i { case 0: return &v.state case 1: @@ -12532,7 +12694,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyspaceRequest); i { + switch v := v.(*ChangeTabletTypeRequest); i { case 0: return &v.state case 1: @@ -12544,7 +12706,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyspaceResponse); i { + switch v := v.(*ChangeTabletTypeResponse); i { case 0: return &v.state case 1: @@ -12556,7 +12718,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateShardRequest); i { + switch v := v.(*CreateKeyspaceRequest); i { case 0: return &v.state case 1: @@ -12568,7 +12730,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateShardResponse); i { + switch v := v.(*CreateKeyspaceResponse); i { case 0: return &v.state case 1: @@ -12580,7 +12742,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCellInfoRequest); i { + switch v := v.(*CreateShardRequest); i { case 0: return &v.state case 1: @@ -12592,7 +12754,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCellInfoResponse); i { + switch v := v.(*CreateShardResponse); i { case 0: return &v.state case 1: @@ -12604,7 +12766,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCellsAliasRequest); i { + switch v := v.(*DeleteCellInfoRequest); i { case 0: return &v.state case 1: @@ -12616,7 +12778,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCellsAliasResponse); i { + switch v := v.(*DeleteCellInfoResponse); i { case 0: return &v.state case 1: @@ -12628,7 +12790,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyspaceRequest); i { + switch v := v.(*DeleteCellsAliasRequest); i { case 0: return &v.state case 1: @@ -12640,7 +12802,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyspaceResponse); i { + switch v := v.(*DeleteCellsAliasResponse); i { case 0: return &v.state case 1: @@ -12652,7 +12814,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteShardsRequest); i { + switch v := v.(*DeleteKeyspaceRequest); i { case 0: return &v.state case 1: @@ -12664,7 +12826,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteShardsResponse); i { + switch v := v.(*DeleteKeyspaceResponse); i { case 0: return &v.state case 1: @@ -12676,7 +12838,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteSrvVSchemaRequest); i { + switch v := v.(*DeleteShardsRequest); i { case 0: return &v.state case 1: @@ -12688,7 +12850,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteSrvVSchemaResponse); i { + switch v := v.(*DeleteShardsResponse); i { case 0: return &v.state case 1: @@ -12700,7 +12862,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTabletsRequest); i { + switch v := v.(*DeleteSrvVSchemaRequest); i { case 0: return &v.state case 1: @@ -12712,7 +12874,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTabletsResponse); i { + switch v := v.(*DeleteSrvVSchemaResponse); i { case 0: return &v.state case 1: @@ -12724,7 +12886,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmergencyReparentShardRequest); i { + switch v := v.(*DeleteTabletsRequest); i { case 0: return &v.state case 1: @@ -12736,7 +12898,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmergencyReparentShardResponse); i { + switch v := v.(*DeleteTabletsResponse); i { case 0: return &v.state case 1: @@ -12748,7 +12910,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteFetchAsAppRequest); i { + switch v := v.(*EmergencyReparentShardRequest); i { case 0: return &v.state case 1: @@ -12760,7 +12922,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteFetchAsAppResponse); i { + switch v := v.(*EmergencyReparentShardResponse); i { case 0: return &v.state case 1: @@ -12772,7 +12934,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteFetchAsDBARequest); i { + switch v := v.(*ExecuteFetchAsAppRequest); i { case 0: return &v.state case 1: @@ -12784,7 +12946,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteFetchAsDBAResponse); i { + switch v := v.(*ExecuteFetchAsAppResponse); i { case 0: return &v.state case 1: @@ -12796,7 +12958,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteHookRequest); i { + switch v := v.(*ExecuteFetchAsDBARequest); i { case 0: return &v.state case 1: @@ -12808,7 +12970,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteHookResponse); i { + switch v := v.(*ExecuteFetchAsDBAResponse); i { case 0: return &v.state case 1: @@ -12820,7 +12982,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllShardsInKeyspaceRequest); i { + switch v := v.(*ExecuteHookRequest); i { case 0: return &v.state case 1: @@ -12832,7 +12994,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllShardsInKeyspaceResponse); i { + switch v := v.(*ExecuteHookResponse); i { case 0: return &v.state case 1: @@ -12844,7 +13006,7 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBackupsRequest); i { + switch v := v.(*FindAllShardsInKeyspaceRequest); i { case 0: return &v.state case 1: @@ -12856,6 +13018,30 @@ func file_vtctldata_proto_init() { } } file_vtctldata_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllShardsInKeyspaceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtctldata_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBackupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_vtctldata_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBackupsResponse); i { case 0: return &v.state @@ -12867,7 +13053,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellInfoRequest); i { case 0: return &v.state @@ -12879,7 +13065,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellInfoResponse); i { case 0: return &v.state @@ -12891,7 +13077,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellInfoNamesRequest); i { case 0: return &v.state @@ -12903,7 +13089,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellInfoNamesResponse); i { case 0: return &v.state @@ -12915,7 +13101,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellsAliasesRequest); i { case 0: return &v.state @@ -12927,7 +13113,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCellsAliasesResponse); i { case 0: return &v.state @@ -12939,7 +13125,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetFullStatusRequest); i { case 0: return &v.state @@ -12951,7 +13137,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetFullStatusResponse); i { case 0: return &v.state @@ -12963,7 +13149,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKeyspacesRequest); i { case 0: return &v.state @@ -12975,7 +13161,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKeyspacesResponse); i { case 0: return &v.state @@ -12987,7 +13173,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKeyspaceRequest); i { case 0: return &v.state @@ -12999,7 +13185,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetKeyspaceResponse); i { case 0: return &v.state @@ -13011,7 +13197,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetPermissionsRequest); i { case 0: return &v.state @@ -13023,7 +13209,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetPermissionsResponse); i { case 0: return &v.state @@ -13035,7 +13221,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRoutingRulesRequest); i { case 0: return &v.state @@ -13047,7 +13233,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetRoutingRulesResponse); i { case 0: return &v.state @@ -13059,7 +13245,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSchemaRequest); i { case 0: return &v.state @@ -13071,7 +13257,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSchemaResponse); i { case 0: return &v.state @@ -13083,7 +13269,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetShardRequest); i { case 0: return &v.state @@ -13095,7 +13281,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetShardResponse); i { case 0: return &v.state @@ -13107,7 +13293,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetShardRoutingRulesRequest); i { case 0: return &v.state @@ -13119,7 +13305,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetShardRoutingRulesResponse); i { case 0: return &v.state @@ -13131,7 +13317,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvKeyspaceNamesRequest); i { case 0: return &v.state @@ -13143,7 +13329,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvKeyspaceNamesResponse); i { case 0: return &v.state @@ -13155,7 +13341,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvKeyspacesRequest); i { case 0: return &v.state @@ -13167,7 +13353,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvKeyspacesResponse); i { case 0: return &v.state @@ -13179,7 +13365,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvVSchemaRequest); i { case 0: return &v.state @@ -13191,7 +13377,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvVSchemaResponse); i { case 0: return &v.state @@ -13203,7 +13389,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvVSchemasRequest); i { case 0: return &v.state @@ -13215,7 +13401,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvVSchemasResponse); i { case 0: return &v.state @@ -13227,7 +13413,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTabletRequest); i { case 0: return &v.state @@ -13239,7 +13425,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTabletResponse); i { case 0: return &v.state @@ -13251,7 +13437,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTabletsRequest); i { case 0: return &v.state @@ -13263,7 +13449,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTabletsResponse); i { case 0: return &v.state @@ -13275,7 +13461,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTopologyPathRequest); i { case 0: return &v.state @@ -13287,7 +13473,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTopologyPathResponse); i { case 0: return &v.state @@ -13299,7 +13485,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TopologyCell); i { case 0: return &v.state @@ -13311,7 +13497,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetVSchemaRequest); i { case 0: return &v.state @@ -13323,7 +13509,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetVersionRequest); i { case 0: return &v.state @@ -13335,7 +13521,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetVersionResponse); i { case 0: return &v.state @@ -13347,7 +13533,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetVSchemaResponse); i { case 0: return &v.state @@ -13359,7 +13545,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetWorkflowsRequest); i { case 0: return &v.state @@ -13371,7 +13557,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetWorkflowsResponse); i { case 0: return &v.state @@ -13383,7 +13569,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InitShardPrimaryRequest); i { case 0: return &v.state @@ -13395,7 +13581,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InitShardPrimaryResponse); i { case 0: return &v.state @@ -13407,7 +13593,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PingTabletRequest); i { case 0: return &v.state @@ -13419,7 +13605,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PingTabletResponse); i { case 0: return &v.state @@ -13431,7 +13617,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PlannedReparentShardRequest); i { case 0: return &v.state @@ -13443,7 +13629,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PlannedReparentShardResponse); i { case 0: return &v.state @@ -13455,7 +13641,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RebuildKeyspaceGraphRequest); i { case 0: return &v.state @@ -13467,7 +13653,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RebuildKeyspaceGraphResponse); i { case 0: return &v.state @@ -13479,7 +13665,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RebuildVSchemaGraphRequest); i { case 0: return &v.state @@ -13491,7 +13677,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RebuildVSchemaGraphResponse); i { case 0: return &v.state @@ -13503,7 +13689,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RefreshStateRequest); i { case 0: return &v.state @@ -13515,7 +13701,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RefreshStateResponse); i { case 0: return &v.state @@ -13527,7 +13713,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RefreshStateByShardRequest); i { case 0: return &v.state @@ -13539,7 +13725,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RefreshStateByShardResponse); i { case 0: return &v.state @@ -13551,7 +13737,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaRequest); i { case 0: return &v.state @@ -13563,7 +13749,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaResponse); i { case 0: return &v.state @@ -13575,7 +13761,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaKeyspaceRequest); i { case 0: return &v.state @@ -13587,7 +13773,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaKeyspaceResponse); i { case 0: return &v.state @@ -13599,7 +13785,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaShardRequest); i { case 0: return &v.state @@ -13611,7 +13797,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReloadSchemaShardResponse); i { case 0: return &v.state @@ -13623,7 +13809,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveBackupRequest); i { case 0: return &v.state @@ -13635,7 +13821,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveBackupResponse); i { case 0: return &v.state @@ -13647,7 +13833,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveKeyspaceCellRequest); i { case 0: return &v.state @@ -13659,7 +13845,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveKeyspaceCellResponse); i { case 0: return &v.state @@ -13671,7 +13857,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveShardCellRequest); i { case 0: return &v.state @@ -13683,7 +13869,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveShardCellResponse); i { case 0: return &v.state @@ -13695,7 +13881,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReparentTabletRequest); i { case 0: return &v.state @@ -13707,7 +13893,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ReparentTabletResponse); i { case 0: return &v.state @@ -13719,7 +13905,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RestoreFromBackupRequest); i { case 0: return &v.state @@ -13731,7 +13917,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RestoreFromBackupResponse); i { case 0: return &v.state @@ -13743,7 +13929,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RunHealthCheckRequest); i { case 0: return &v.state @@ -13755,7 +13941,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RunHealthCheckResponse); i { case 0: return &v.state @@ -13767,7 +13953,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceDurabilityPolicyRequest); i { case 0: return &v.state @@ -13779,7 +13965,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceDurabilityPolicyResponse); i { case 0: return &v.state @@ -13791,7 +13977,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceServedFromRequest); i { case 0: return &v.state @@ -13803,7 +13989,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceServedFromResponse); i { case 0: return &v.state @@ -13815,7 +14001,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceShardingInfoRequest); i { case 0: return &v.state @@ -13827,7 +14013,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetKeyspaceShardingInfoResponse); i { case 0: return &v.state @@ -13839,7 +14025,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetShardIsPrimaryServingRequest); i { case 0: return &v.state @@ -13851,7 +14037,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetShardIsPrimaryServingResponse); i { case 0: return &v.state @@ -13863,7 +14049,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetShardTabletControlRequest); i { case 0: return &v.state @@ -13875,7 +14061,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetShardTabletControlResponse); i { case 0: return &v.state @@ -13887,7 +14073,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetWritableRequest); i { case 0: return &v.state @@ -13899,7 +14085,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SetWritableResponse); i { case 0: return &v.state @@ -13911,7 +14097,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationAddRequest); i { case 0: return &v.state @@ -13923,7 +14109,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationAddResponse); i { case 0: return &v.state @@ -13935,7 +14121,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationFixRequest); i { case 0: return &v.state @@ -13947,7 +14133,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationFixResponse); i { case 0: return &v.state @@ -13959,7 +14145,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationPositionsRequest); i { case 0: return &v.state @@ -13971,7 +14157,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationPositionsResponse); i { case 0: return &v.state @@ -13983,7 +14169,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationRemoveRequest); i { case 0: return &v.state @@ -13995,7 +14181,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ShardReplicationRemoveResponse); i { case 0: return &v.state @@ -14007,7 +14193,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SleepTabletRequest); i { case 0: return &v.state @@ -14019,7 +14205,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SleepTabletResponse); i { case 0: return &v.state @@ -14031,7 +14217,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceShardAddRequest); i { case 0: return &v.state @@ -14043,7 +14229,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceShardAddResponse); i { case 0: return &v.state @@ -14055,7 +14241,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceShardDeleteRequest); i { case 0: return &v.state @@ -14067,7 +14253,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceShardDeleteResponse); i { case 0: return &v.state @@ -14079,7 +14265,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartReplicationRequest); i { case 0: return &v.state @@ -14091,7 +14277,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartReplicationResponse); i { case 0: return &v.state @@ -14103,7 +14289,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StopReplicationRequest); i { case 0: return &v.state @@ -14115,7 +14301,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StopReplicationResponse); i { case 0: return &v.state @@ -14127,7 +14313,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TabletExternallyReparentedRequest); i { case 0: return &v.state @@ -14139,7 +14325,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TabletExternallyReparentedResponse); i { case 0: return &v.state @@ -14151,7 +14337,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateCellInfoRequest); i { case 0: return &v.state @@ -14163,7 +14349,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateCellInfoResponse); i { case 0: return &v.state @@ -14175,7 +14361,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateCellsAliasRequest); i { case 0: return &v.state @@ -14187,7 +14373,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateCellsAliasResponse); i { case 0: return &v.state @@ -14199,7 +14385,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateRequest); i { case 0: return &v.state @@ -14211,7 +14397,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateResponse); i { case 0: return &v.state @@ -14223,7 +14409,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateKeyspaceRequest); i { case 0: return &v.state @@ -14235,7 +14421,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateKeyspaceResponse); i { case 0: return &v.state @@ -14247,7 +14433,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateSchemaKeyspaceRequest); i { case 0: return &v.state @@ -14259,7 +14445,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateSchemaKeyspaceResponse); i { case 0: return &v.state @@ -14271,7 +14457,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateShardRequest); i { case 0: return &v.state @@ -14283,7 +14469,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateShardResponse); i { case 0: return &v.state @@ -14295,7 +14481,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVersionKeyspaceRequest); i { case 0: return &v.state @@ -14307,7 +14493,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVersionKeyspaceResponse); i { case 0: return &v.state @@ -14319,7 +14505,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVersionShardRequest); i { case 0: return &v.state @@ -14331,7 +14517,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVersionShardResponse); i { case 0: return &v.state @@ -14343,7 +14529,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVSchemaRequest); i { case 0: return &v.state @@ -14355,7 +14541,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[178].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateVSchemaResponse); i { case 0: return &v.state @@ -14367,7 +14553,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[178].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[180].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Workflow_ReplicationLocation); i { case 0: return &v.state @@ -14379,7 +14565,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[179].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[181].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Workflow_ShardStream); i { case 0: return &v.state @@ -14391,7 +14577,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[180].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[182].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Workflow_Stream); i { case 0: return &v.state @@ -14403,7 +14589,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[181].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[183].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Workflow_Stream_CopyState); i { case 0: return &v.state @@ -14415,7 +14601,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[182].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[184].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Workflow_Stream_Log); i { case 0: return &v.state @@ -14427,7 +14613,7 @@ func file_vtctldata_proto_init() { return nil } } - file_vtctldata_proto_msgTypes[186].Exporter = func(v interface{}, i int) interface{} { + file_vtctldata_proto_msgTypes[191].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetSrvKeyspaceNamesResponse_NameList); i { case 0: return &v.state @@ -14446,7 +14632,7 @@ func file_vtctldata_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_vtctldata_proto_rawDesc, NumEnums: 1, - NumMessages: 196, + NumMessages: 201, NumExtensions: 0, NumServices: 0, }, diff --git a/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go b/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go index 929b09d1c3e..aba0fcb683c 100644 --- a/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go +++ b/go/vt/proto/vtctldata/vtctldata_vtproto.pb.go @@ -1728,6 +1728,149 @@ func (m *BackupShardRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ChangeTabletTagsRequest) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ChangeTabletTagsRequest) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ChangeTabletTagsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Replace { + i-- + if m.Replace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Tags) > 0 { + for k := range m.Tags { + v := m.Tags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if m.TabletAlias != nil { + size, err := m.TabletAlias.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ChangeTabletTagsResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ChangeTabletTagsResponse) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ChangeTabletTagsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.AfterTags) > 0 { + for k := range m.AfterTags { + v := m.AfterTags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.BeforeTags) > 0 { + for k := range m.BeforeTags { + v := m.BeforeTags[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarint(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *ChangeTabletTypeRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -10234,6 +10377,61 @@ func (m *BackupShardRequest) SizeVT() (n int) { return n } +func (m *ChangeTabletTagsRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TabletAlias != nil { + l = m.TabletAlias.SizeVT() + n += 1 + l + sov(uint64(l)) + } + if len(m.Tags) > 0 { + for k, v := range m.Tags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.Replace { + n += 2 + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + +func (m *ChangeTabletTagsResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.BeforeTags) > 0 { + for k, v := range m.BeforeTags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if len(m.AfterTags) > 0 { + for k, v := range m.AfterTags { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) + n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + } + } + if m.unknownFields != nil { + n += len(m.unknownFields) + } + return n +} + func (m *ChangeTabletTypeRequest) SizeVT() (n int) { if m == nil { return 0 @@ -17775,6 +17973,545 @@ func (m *BackupShardRequest) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *ChangeTabletTagsRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ChangeTabletTagsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ChangeTabletTagsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TabletAlias", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TabletAlias == nil { + m.TabletAlias = &topodata.TabletAlias{} + } + if err := m.TabletAlias.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tags == nil { + m.Tags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Tags[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Replace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ChangeTabletTagsResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ChangeTabletTagsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ChangeTabletTagsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeforeTags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BeforeTags == nil { + m.BeforeTags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.BeforeTags[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfterTags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfterTags == nil { + m.AfterTags = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLength + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLength + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.AfterTags[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ChangeTabletTypeRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/go/vt/proto/vtctlservice/vtctlservice.pb.go b/go/vt/proto/vtctlservice/vtctlservice.pb.go index fab6c3b40f7..6918c7ad4c1 100644 --- a/go/vt/proto/vtctlservice/vtctlservice.pb.go +++ b/go/vt/proto/vtctlservice/vtctlservice.pb.go @@ -51,7 +51,7 @@ var file_vtctlservice_proto_rawDesc = []byte{ 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0xa3, 0x3c, 0x0a, 0x06, 0x56, 0x74, 0x63, 0x74, 0x6c, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0x82, 0x3d, 0x0a, 0x06, 0x56, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x12, 0x4e, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, @@ -95,449 +95,454 @@ var file_vtctlservice_proto_rawDesc = []byte{ 0x75, 0x70, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x5d, 0x0a, - 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, + 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x61, 0x67, + 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x61, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x61, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, + 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, + 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, - 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, - 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, - 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, - 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x22, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x22, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, - 0x0a, 0x16, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, - 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x60, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, - 0x73, 0x41, 0x70, 0x70, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, - 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x60, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x41, 0x73, 0x44, 0x42, 0x41, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, - 0x73, 0x44, 0x42, 0x41, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, - 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x42, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, - 0x6f, 0x6b, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x72, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, - 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x4e, 0x61, - 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, - 0x66, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, - 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, - 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, - 0x0d, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, + 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, + 0x16, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6d, + 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, + 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, + 0x41, 0x70, 0x70, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, 0x41, 0x70, + 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x41, 0x73, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x60, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, + 0x41, 0x73, 0x44, 0x42, 0x41, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, 0x74, 0x63, 0x68, 0x41, 0x73, + 0x44, 0x42, 0x41, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x46, 0x65, + 0x74, 0x63, 0x68, 0x41, 0x73, 0x44, 0x42, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, + 0x6b, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x48, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x72, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x73, 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x53, 0x68, 0x61, 0x72, 0x64, 0x73, + 0x49, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, + 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, + 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, + 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, + 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, + 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, + 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6c, + 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, - 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x46, - 0x75, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x09, 0x47, - 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, - 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x72, - 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x25, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, - 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, - 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, + 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, + 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, + 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x09, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, - 0x50, 0x61, 0x74, 0x68, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, - 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, - 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x49, 0x6e, - 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x22, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, - 0x6e, 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x50, 0x69, 0x6e, - 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x47, + 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x25, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, + 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x73, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x47, 0x65, + 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x57, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x73, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x47, 0x65, 0x74, 0x53, 0x72, 0x76, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x09, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, + 0x73, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x5a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, + 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, - 0x65, 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x69, 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x61, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x49, 0x6e, 0x69, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x22, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, + 0x69, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0a, 0x50, 0x69, 0x6e, 0x67, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, + 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x69, 0x0a, 0x14, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, 0x70, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x52, + 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, + 0x70, 0x68, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, + 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, + 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x25, 0x2e, + 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, + 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, + 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, + 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x69, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x47, 0x72, 0x61, - 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, - 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, - 0x61, 0x70, 0x68, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, - 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x25, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, - 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, - 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, - 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, - 0x11, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, - 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, - 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x63, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x11, + 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, + 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, + 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e, + 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, - 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x63, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x11, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, - 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, - 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x1b, 0x53, 0x65, 0x74, - 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x68, 0x61, 0x72, + 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x11, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, + 0x57, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x75, + 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x75, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x1b, 0x53, 0x65, 0x74, 0x4b, + 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x18, 0x53, 0x65, 0x74, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x44, 0x75, + 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x53, + 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, - 0x61, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2b, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, - 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x6c, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, - 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, - 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1d, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, + 0x72, 0x76, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x6c, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, + 0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, + 0x0b, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, - 0x0a, 0x13, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x12, 0x25, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x72, 0x69, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, + 0x13, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x41, 0x64, 0x64, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, - 0x0a, 0x19, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x76, 0x74, + 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x13, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x12, 0x25, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x53, 0x6c, 0x65, - 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x78, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x69, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, + 0x19, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x0b, 0x53, 0x6c, 0x65, 0x65, + 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x12, 0x1d, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x12, 0x20, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, - 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x68, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x60, 0x0a, 0x11, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, - 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, + 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x7b, 0x0a, 0x1a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x76, 0x74, - 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, - 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, - 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, - 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x68, 0x61, 0x72, 0x64, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x60, 0x0a, 0x11, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x68, + 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, + 0x0a, 0x1a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x76, 0x74, 0x63, + 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x52, 0x65, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x1a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, - 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, + 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, + 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x65, 0x6c, 0x6c, 0x73, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, + 0x65, 0x6c, 0x6c, 0x73, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x1a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1f, 0x2e, 0x76, - 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, + 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x72, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x76, + 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x1f, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, 0x2e, - 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x5a, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x29, - 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, - 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, - 0x74, 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x65, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x72, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x76, 0x74, + 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x69, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x12, 0x26, 0x2e, 0x76, + 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x68, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x5a, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x12, 0x21, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x76, 0x74, 0x63, 0x74, 0x6c, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x56, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x29, 0x76, + 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, + 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x63, 0x74, + 0x6c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_vtctlservice_proto_goTypes = []interface{}{ @@ -550,164 +555,166 @@ var file_vtctlservice_proto_goTypes = []interface{}{ (*vtctldata.ApplyVSchemaRequest)(nil), // 6: vtctldata.ApplyVSchemaRequest (*vtctldata.BackupRequest)(nil), // 7: vtctldata.BackupRequest (*vtctldata.BackupShardRequest)(nil), // 8: vtctldata.BackupShardRequest - (*vtctldata.ChangeTabletTypeRequest)(nil), // 9: vtctldata.ChangeTabletTypeRequest - (*vtctldata.CreateKeyspaceRequest)(nil), // 10: vtctldata.CreateKeyspaceRequest - (*vtctldata.CreateShardRequest)(nil), // 11: vtctldata.CreateShardRequest - (*vtctldata.DeleteCellInfoRequest)(nil), // 12: vtctldata.DeleteCellInfoRequest - (*vtctldata.DeleteCellsAliasRequest)(nil), // 13: vtctldata.DeleteCellsAliasRequest - (*vtctldata.DeleteKeyspaceRequest)(nil), // 14: vtctldata.DeleteKeyspaceRequest - (*vtctldata.DeleteShardsRequest)(nil), // 15: vtctldata.DeleteShardsRequest - (*vtctldata.DeleteSrvVSchemaRequest)(nil), // 16: vtctldata.DeleteSrvVSchemaRequest - (*vtctldata.DeleteTabletsRequest)(nil), // 17: vtctldata.DeleteTabletsRequest - (*vtctldata.EmergencyReparentShardRequest)(nil), // 18: vtctldata.EmergencyReparentShardRequest - (*vtctldata.ExecuteFetchAsAppRequest)(nil), // 19: vtctldata.ExecuteFetchAsAppRequest - (*vtctldata.ExecuteFetchAsDBARequest)(nil), // 20: vtctldata.ExecuteFetchAsDBARequest - (*vtctldata.ExecuteHookRequest)(nil), // 21: vtctldata.ExecuteHookRequest - (*vtctldata.FindAllShardsInKeyspaceRequest)(nil), // 22: vtctldata.FindAllShardsInKeyspaceRequest - (*vtctldata.GetBackupsRequest)(nil), // 23: vtctldata.GetBackupsRequest - (*vtctldata.GetCellInfoRequest)(nil), // 24: vtctldata.GetCellInfoRequest - (*vtctldata.GetCellInfoNamesRequest)(nil), // 25: vtctldata.GetCellInfoNamesRequest - (*vtctldata.GetCellsAliasesRequest)(nil), // 26: vtctldata.GetCellsAliasesRequest - (*vtctldata.GetFullStatusRequest)(nil), // 27: vtctldata.GetFullStatusRequest - (*vtctldata.GetKeyspaceRequest)(nil), // 28: vtctldata.GetKeyspaceRequest - (*vtctldata.GetKeyspacesRequest)(nil), // 29: vtctldata.GetKeyspacesRequest - (*vtctldata.GetPermissionsRequest)(nil), // 30: vtctldata.GetPermissionsRequest - (*vtctldata.GetRoutingRulesRequest)(nil), // 31: vtctldata.GetRoutingRulesRequest - (*vtctldata.GetSchemaRequest)(nil), // 32: vtctldata.GetSchemaRequest - (*vtctldata.GetShardRequest)(nil), // 33: vtctldata.GetShardRequest - (*vtctldata.GetShardRoutingRulesRequest)(nil), // 34: vtctldata.GetShardRoutingRulesRequest - (*vtctldata.GetSrvKeyspaceNamesRequest)(nil), // 35: vtctldata.GetSrvKeyspaceNamesRequest - (*vtctldata.GetSrvKeyspacesRequest)(nil), // 36: vtctldata.GetSrvKeyspacesRequest - (*vtctldata.GetSrvVSchemaRequest)(nil), // 37: vtctldata.GetSrvVSchemaRequest - (*vtctldata.GetSrvVSchemasRequest)(nil), // 38: vtctldata.GetSrvVSchemasRequest - (*vtctldata.GetTabletRequest)(nil), // 39: vtctldata.GetTabletRequest - (*vtctldata.GetTabletsRequest)(nil), // 40: vtctldata.GetTabletsRequest - (*vtctldata.GetTopologyPathRequest)(nil), // 41: vtctldata.GetTopologyPathRequest - (*vtctldata.GetVersionRequest)(nil), // 42: vtctldata.GetVersionRequest - (*vtctldata.GetVSchemaRequest)(nil), // 43: vtctldata.GetVSchemaRequest - (*vtctldata.GetWorkflowsRequest)(nil), // 44: vtctldata.GetWorkflowsRequest - (*vtctldata.InitShardPrimaryRequest)(nil), // 45: vtctldata.InitShardPrimaryRequest - (*vtctldata.PingTabletRequest)(nil), // 46: vtctldata.PingTabletRequest - (*vtctldata.PlannedReparentShardRequest)(nil), // 47: vtctldata.PlannedReparentShardRequest - (*vtctldata.RebuildKeyspaceGraphRequest)(nil), // 48: vtctldata.RebuildKeyspaceGraphRequest - (*vtctldata.RebuildVSchemaGraphRequest)(nil), // 49: vtctldata.RebuildVSchemaGraphRequest - (*vtctldata.RefreshStateRequest)(nil), // 50: vtctldata.RefreshStateRequest - (*vtctldata.RefreshStateByShardRequest)(nil), // 51: vtctldata.RefreshStateByShardRequest - (*vtctldata.ReloadSchemaRequest)(nil), // 52: vtctldata.ReloadSchemaRequest - (*vtctldata.ReloadSchemaKeyspaceRequest)(nil), // 53: vtctldata.ReloadSchemaKeyspaceRequest - (*vtctldata.ReloadSchemaShardRequest)(nil), // 54: vtctldata.ReloadSchemaShardRequest - (*vtctldata.RemoveBackupRequest)(nil), // 55: vtctldata.RemoveBackupRequest - (*vtctldata.RemoveKeyspaceCellRequest)(nil), // 56: vtctldata.RemoveKeyspaceCellRequest - (*vtctldata.RemoveShardCellRequest)(nil), // 57: vtctldata.RemoveShardCellRequest - (*vtctldata.ReparentTabletRequest)(nil), // 58: vtctldata.ReparentTabletRequest - (*vtctldata.RestoreFromBackupRequest)(nil), // 59: vtctldata.RestoreFromBackupRequest - (*vtctldata.RunHealthCheckRequest)(nil), // 60: vtctldata.RunHealthCheckRequest - (*vtctldata.SetKeyspaceDurabilityPolicyRequest)(nil), // 61: vtctldata.SetKeyspaceDurabilityPolicyRequest - (*vtctldata.SetShardIsPrimaryServingRequest)(nil), // 62: vtctldata.SetShardIsPrimaryServingRequest - (*vtctldata.SetShardTabletControlRequest)(nil), // 63: vtctldata.SetShardTabletControlRequest - (*vtctldata.SetWritableRequest)(nil), // 64: vtctldata.SetWritableRequest - (*vtctldata.ShardReplicationAddRequest)(nil), // 65: vtctldata.ShardReplicationAddRequest - (*vtctldata.ShardReplicationFixRequest)(nil), // 66: vtctldata.ShardReplicationFixRequest - (*vtctldata.ShardReplicationPositionsRequest)(nil), // 67: vtctldata.ShardReplicationPositionsRequest - (*vtctldata.ShardReplicationRemoveRequest)(nil), // 68: vtctldata.ShardReplicationRemoveRequest - (*vtctldata.SleepTabletRequest)(nil), // 69: vtctldata.SleepTabletRequest - (*vtctldata.SourceShardAddRequest)(nil), // 70: vtctldata.SourceShardAddRequest - (*vtctldata.SourceShardDeleteRequest)(nil), // 71: vtctldata.SourceShardDeleteRequest - (*vtctldata.StartReplicationRequest)(nil), // 72: vtctldata.StartReplicationRequest - (*vtctldata.StopReplicationRequest)(nil), // 73: vtctldata.StopReplicationRequest - (*vtctldata.TabletExternallyReparentedRequest)(nil), // 74: vtctldata.TabletExternallyReparentedRequest - (*vtctldata.UpdateCellInfoRequest)(nil), // 75: vtctldata.UpdateCellInfoRequest - (*vtctldata.UpdateCellsAliasRequest)(nil), // 76: vtctldata.UpdateCellsAliasRequest - (*vtctldata.ValidateRequest)(nil), // 77: vtctldata.ValidateRequest - (*vtctldata.ValidateKeyspaceRequest)(nil), // 78: vtctldata.ValidateKeyspaceRequest - (*vtctldata.ValidateSchemaKeyspaceRequest)(nil), // 79: vtctldata.ValidateSchemaKeyspaceRequest - (*vtctldata.ValidateShardRequest)(nil), // 80: vtctldata.ValidateShardRequest - (*vtctldata.ValidateVersionKeyspaceRequest)(nil), // 81: vtctldata.ValidateVersionKeyspaceRequest - (*vtctldata.ValidateVersionShardRequest)(nil), // 82: vtctldata.ValidateVersionShardRequest - (*vtctldata.ValidateVSchemaRequest)(nil), // 83: vtctldata.ValidateVSchemaRequest - (*vtctldata.ExecuteVtctlCommandResponse)(nil), // 84: vtctldata.ExecuteVtctlCommandResponse - (*vtctldata.AddCellInfoResponse)(nil), // 85: vtctldata.AddCellInfoResponse - (*vtctldata.AddCellsAliasResponse)(nil), // 86: vtctldata.AddCellsAliasResponse - (*vtctldata.ApplyRoutingRulesResponse)(nil), // 87: vtctldata.ApplyRoutingRulesResponse - (*vtctldata.ApplySchemaResponse)(nil), // 88: vtctldata.ApplySchemaResponse - (*vtctldata.ApplyShardRoutingRulesResponse)(nil), // 89: vtctldata.ApplyShardRoutingRulesResponse - (*vtctldata.ApplyVSchemaResponse)(nil), // 90: vtctldata.ApplyVSchemaResponse - (*vtctldata.BackupResponse)(nil), // 91: vtctldata.BackupResponse - (*vtctldata.ChangeTabletTypeResponse)(nil), // 92: vtctldata.ChangeTabletTypeResponse - (*vtctldata.CreateKeyspaceResponse)(nil), // 93: vtctldata.CreateKeyspaceResponse - (*vtctldata.CreateShardResponse)(nil), // 94: vtctldata.CreateShardResponse - (*vtctldata.DeleteCellInfoResponse)(nil), // 95: vtctldata.DeleteCellInfoResponse - (*vtctldata.DeleteCellsAliasResponse)(nil), // 96: vtctldata.DeleteCellsAliasResponse - (*vtctldata.DeleteKeyspaceResponse)(nil), // 97: vtctldata.DeleteKeyspaceResponse - (*vtctldata.DeleteShardsResponse)(nil), // 98: vtctldata.DeleteShardsResponse - (*vtctldata.DeleteSrvVSchemaResponse)(nil), // 99: vtctldata.DeleteSrvVSchemaResponse - (*vtctldata.DeleteTabletsResponse)(nil), // 100: vtctldata.DeleteTabletsResponse - (*vtctldata.EmergencyReparentShardResponse)(nil), // 101: vtctldata.EmergencyReparentShardResponse - (*vtctldata.ExecuteFetchAsAppResponse)(nil), // 102: vtctldata.ExecuteFetchAsAppResponse - (*vtctldata.ExecuteFetchAsDBAResponse)(nil), // 103: vtctldata.ExecuteFetchAsDBAResponse - (*vtctldata.ExecuteHookResponse)(nil), // 104: vtctldata.ExecuteHookResponse - (*vtctldata.FindAllShardsInKeyspaceResponse)(nil), // 105: vtctldata.FindAllShardsInKeyspaceResponse - (*vtctldata.GetBackupsResponse)(nil), // 106: vtctldata.GetBackupsResponse - (*vtctldata.GetCellInfoResponse)(nil), // 107: vtctldata.GetCellInfoResponse - (*vtctldata.GetCellInfoNamesResponse)(nil), // 108: vtctldata.GetCellInfoNamesResponse - (*vtctldata.GetCellsAliasesResponse)(nil), // 109: vtctldata.GetCellsAliasesResponse - (*vtctldata.GetFullStatusResponse)(nil), // 110: vtctldata.GetFullStatusResponse - (*vtctldata.GetKeyspaceResponse)(nil), // 111: vtctldata.GetKeyspaceResponse - (*vtctldata.GetKeyspacesResponse)(nil), // 112: vtctldata.GetKeyspacesResponse - (*vtctldata.GetPermissionsResponse)(nil), // 113: vtctldata.GetPermissionsResponse - (*vtctldata.GetRoutingRulesResponse)(nil), // 114: vtctldata.GetRoutingRulesResponse - (*vtctldata.GetSchemaResponse)(nil), // 115: vtctldata.GetSchemaResponse - (*vtctldata.GetShardResponse)(nil), // 116: vtctldata.GetShardResponse - (*vtctldata.GetShardRoutingRulesResponse)(nil), // 117: vtctldata.GetShardRoutingRulesResponse - (*vtctldata.GetSrvKeyspaceNamesResponse)(nil), // 118: vtctldata.GetSrvKeyspaceNamesResponse - (*vtctldata.GetSrvKeyspacesResponse)(nil), // 119: vtctldata.GetSrvKeyspacesResponse - (*vtctldata.GetSrvVSchemaResponse)(nil), // 120: vtctldata.GetSrvVSchemaResponse - (*vtctldata.GetSrvVSchemasResponse)(nil), // 121: vtctldata.GetSrvVSchemasResponse - (*vtctldata.GetTabletResponse)(nil), // 122: vtctldata.GetTabletResponse - (*vtctldata.GetTabletsResponse)(nil), // 123: vtctldata.GetTabletsResponse - (*vtctldata.GetTopologyPathResponse)(nil), // 124: vtctldata.GetTopologyPathResponse - (*vtctldata.GetVersionResponse)(nil), // 125: vtctldata.GetVersionResponse - (*vtctldata.GetVSchemaResponse)(nil), // 126: vtctldata.GetVSchemaResponse - (*vtctldata.GetWorkflowsResponse)(nil), // 127: vtctldata.GetWorkflowsResponse - (*vtctldata.InitShardPrimaryResponse)(nil), // 128: vtctldata.InitShardPrimaryResponse - (*vtctldata.PingTabletResponse)(nil), // 129: vtctldata.PingTabletResponse - (*vtctldata.PlannedReparentShardResponse)(nil), // 130: vtctldata.PlannedReparentShardResponse - (*vtctldata.RebuildKeyspaceGraphResponse)(nil), // 131: vtctldata.RebuildKeyspaceGraphResponse - (*vtctldata.RebuildVSchemaGraphResponse)(nil), // 132: vtctldata.RebuildVSchemaGraphResponse - (*vtctldata.RefreshStateResponse)(nil), // 133: vtctldata.RefreshStateResponse - (*vtctldata.RefreshStateByShardResponse)(nil), // 134: vtctldata.RefreshStateByShardResponse - (*vtctldata.ReloadSchemaResponse)(nil), // 135: vtctldata.ReloadSchemaResponse - (*vtctldata.ReloadSchemaKeyspaceResponse)(nil), // 136: vtctldata.ReloadSchemaKeyspaceResponse - (*vtctldata.ReloadSchemaShardResponse)(nil), // 137: vtctldata.ReloadSchemaShardResponse - (*vtctldata.RemoveBackupResponse)(nil), // 138: vtctldata.RemoveBackupResponse - (*vtctldata.RemoveKeyspaceCellResponse)(nil), // 139: vtctldata.RemoveKeyspaceCellResponse - (*vtctldata.RemoveShardCellResponse)(nil), // 140: vtctldata.RemoveShardCellResponse - (*vtctldata.ReparentTabletResponse)(nil), // 141: vtctldata.ReparentTabletResponse - (*vtctldata.RestoreFromBackupResponse)(nil), // 142: vtctldata.RestoreFromBackupResponse - (*vtctldata.RunHealthCheckResponse)(nil), // 143: vtctldata.RunHealthCheckResponse - (*vtctldata.SetKeyspaceDurabilityPolicyResponse)(nil), // 144: vtctldata.SetKeyspaceDurabilityPolicyResponse - (*vtctldata.SetShardIsPrimaryServingResponse)(nil), // 145: vtctldata.SetShardIsPrimaryServingResponse - (*vtctldata.SetShardTabletControlResponse)(nil), // 146: vtctldata.SetShardTabletControlResponse - (*vtctldata.SetWritableResponse)(nil), // 147: vtctldata.SetWritableResponse - (*vtctldata.ShardReplicationAddResponse)(nil), // 148: vtctldata.ShardReplicationAddResponse - (*vtctldata.ShardReplicationFixResponse)(nil), // 149: vtctldata.ShardReplicationFixResponse - (*vtctldata.ShardReplicationPositionsResponse)(nil), // 150: vtctldata.ShardReplicationPositionsResponse - (*vtctldata.ShardReplicationRemoveResponse)(nil), // 151: vtctldata.ShardReplicationRemoveResponse - (*vtctldata.SleepTabletResponse)(nil), // 152: vtctldata.SleepTabletResponse - (*vtctldata.SourceShardAddResponse)(nil), // 153: vtctldata.SourceShardAddResponse - (*vtctldata.SourceShardDeleteResponse)(nil), // 154: vtctldata.SourceShardDeleteResponse - (*vtctldata.StartReplicationResponse)(nil), // 155: vtctldata.StartReplicationResponse - (*vtctldata.StopReplicationResponse)(nil), // 156: vtctldata.StopReplicationResponse - (*vtctldata.TabletExternallyReparentedResponse)(nil), // 157: vtctldata.TabletExternallyReparentedResponse - (*vtctldata.UpdateCellInfoResponse)(nil), // 158: vtctldata.UpdateCellInfoResponse - (*vtctldata.UpdateCellsAliasResponse)(nil), // 159: vtctldata.UpdateCellsAliasResponse - (*vtctldata.ValidateResponse)(nil), // 160: vtctldata.ValidateResponse - (*vtctldata.ValidateKeyspaceResponse)(nil), // 161: vtctldata.ValidateKeyspaceResponse - (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 162: vtctldata.ValidateSchemaKeyspaceResponse - (*vtctldata.ValidateShardResponse)(nil), // 163: vtctldata.ValidateShardResponse - (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 164: vtctldata.ValidateVersionKeyspaceResponse - (*vtctldata.ValidateVersionShardResponse)(nil), // 165: vtctldata.ValidateVersionShardResponse - (*vtctldata.ValidateVSchemaResponse)(nil), // 166: vtctldata.ValidateVSchemaResponse + (*vtctldata.ChangeTabletTagsRequest)(nil), // 9: vtctldata.ChangeTabletTagsRequest + (*vtctldata.ChangeTabletTypeRequest)(nil), // 10: vtctldata.ChangeTabletTypeRequest + (*vtctldata.CreateKeyspaceRequest)(nil), // 11: vtctldata.CreateKeyspaceRequest + (*vtctldata.CreateShardRequest)(nil), // 12: vtctldata.CreateShardRequest + (*vtctldata.DeleteCellInfoRequest)(nil), // 13: vtctldata.DeleteCellInfoRequest + (*vtctldata.DeleteCellsAliasRequest)(nil), // 14: vtctldata.DeleteCellsAliasRequest + (*vtctldata.DeleteKeyspaceRequest)(nil), // 15: vtctldata.DeleteKeyspaceRequest + (*vtctldata.DeleteShardsRequest)(nil), // 16: vtctldata.DeleteShardsRequest + (*vtctldata.DeleteSrvVSchemaRequest)(nil), // 17: vtctldata.DeleteSrvVSchemaRequest + (*vtctldata.DeleteTabletsRequest)(nil), // 18: vtctldata.DeleteTabletsRequest + (*vtctldata.EmergencyReparentShardRequest)(nil), // 19: vtctldata.EmergencyReparentShardRequest + (*vtctldata.ExecuteFetchAsAppRequest)(nil), // 20: vtctldata.ExecuteFetchAsAppRequest + (*vtctldata.ExecuteFetchAsDBARequest)(nil), // 21: vtctldata.ExecuteFetchAsDBARequest + (*vtctldata.ExecuteHookRequest)(nil), // 22: vtctldata.ExecuteHookRequest + (*vtctldata.FindAllShardsInKeyspaceRequest)(nil), // 23: vtctldata.FindAllShardsInKeyspaceRequest + (*vtctldata.GetBackupsRequest)(nil), // 24: vtctldata.GetBackupsRequest + (*vtctldata.GetCellInfoRequest)(nil), // 25: vtctldata.GetCellInfoRequest + (*vtctldata.GetCellInfoNamesRequest)(nil), // 26: vtctldata.GetCellInfoNamesRequest + (*vtctldata.GetCellsAliasesRequest)(nil), // 27: vtctldata.GetCellsAliasesRequest + (*vtctldata.GetFullStatusRequest)(nil), // 28: vtctldata.GetFullStatusRequest + (*vtctldata.GetKeyspaceRequest)(nil), // 29: vtctldata.GetKeyspaceRequest + (*vtctldata.GetKeyspacesRequest)(nil), // 30: vtctldata.GetKeyspacesRequest + (*vtctldata.GetPermissionsRequest)(nil), // 31: vtctldata.GetPermissionsRequest + (*vtctldata.GetRoutingRulesRequest)(nil), // 32: vtctldata.GetRoutingRulesRequest + (*vtctldata.GetSchemaRequest)(nil), // 33: vtctldata.GetSchemaRequest + (*vtctldata.GetShardRequest)(nil), // 34: vtctldata.GetShardRequest + (*vtctldata.GetShardRoutingRulesRequest)(nil), // 35: vtctldata.GetShardRoutingRulesRequest + (*vtctldata.GetSrvKeyspaceNamesRequest)(nil), // 36: vtctldata.GetSrvKeyspaceNamesRequest + (*vtctldata.GetSrvKeyspacesRequest)(nil), // 37: vtctldata.GetSrvKeyspacesRequest + (*vtctldata.GetSrvVSchemaRequest)(nil), // 38: vtctldata.GetSrvVSchemaRequest + (*vtctldata.GetSrvVSchemasRequest)(nil), // 39: vtctldata.GetSrvVSchemasRequest + (*vtctldata.GetTabletRequest)(nil), // 40: vtctldata.GetTabletRequest + (*vtctldata.GetTabletsRequest)(nil), // 41: vtctldata.GetTabletsRequest + (*vtctldata.GetTopologyPathRequest)(nil), // 42: vtctldata.GetTopologyPathRequest + (*vtctldata.GetVersionRequest)(nil), // 43: vtctldata.GetVersionRequest + (*vtctldata.GetVSchemaRequest)(nil), // 44: vtctldata.GetVSchemaRequest + (*vtctldata.GetWorkflowsRequest)(nil), // 45: vtctldata.GetWorkflowsRequest + (*vtctldata.InitShardPrimaryRequest)(nil), // 46: vtctldata.InitShardPrimaryRequest + (*vtctldata.PingTabletRequest)(nil), // 47: vtctldata.PingTabletRequest + (*vtctldata.PlannedReparentShardRequest)(nil), // 48: vtctldata.PlannedReparentShardRequest + (*vtctldata.RebuildKeyspaceGraphRequest)(nil), // 49: vtctldata.RebuildKeyspaceGraphRequest + (*vtctldata.RebuildVSchemaGraphRequest)(nil), // 50: vtctldata.RebuildVSchemaGraphRequest + (*vtctldata.RefreshStateRequest)(nil), // 51: vtctldata.RefreshStateRequest + (*vtctldata.RefreshStateByShardRequest)(nil), // 52: vtctldata.RefreshStateByShardRequest + (*vtctldata.ReloadSchemaRequest)(nil), // 53: vtctldata.ReloadSchemaRequest + (*vtctldata.ReloadSchemaKeyspaceRequest)(nil), // 54: vtctldata.ReloadSchemaKeyspaceRequest + (*vtctldata.ReloadSchemaShardRequest)(nil), // 55: vtctldata.ReloadSchemaShardRequest + (*vtctldata.RemoveBackupRequest)(nil), // 56: vtctldata.RemoveBackupRequest + (*vtctldata.RemoveKeyspaceCellRequest)(nil), // 57: vtctldata.RemoveKeyspaceCellRequest + (*vtctldata.RemoveShardCellRequest)(nil), // 58: vtctldata.RemoveShardCellRequest + (*vtctldata.ReparentTabletRequest)(nil), // 59: vtctldata.ReparentTabletRequest + (*vtctldata.RestoreFromBackupRequest)(nil), // 60: vtctldata.RestoreFromBackupRequest + (*vtctldata.RunHealthCheckRequest)(nil), // 61: vtctldata.RunHealthCheckRequest + (*vtctldata.SetKeyspaceDurabilityPolicyRequest)(nil), // 62: vtctldata.SetKeyspaceDurabilityPolicyRequest + (*vtctldata.SetShardIsPrimaryServingRequest)(nil), // 63: vtctldata.SetShardIsPrimaryServingRequest + (*vtctldata.SetShardTabletControlRequest)(nil), // 64: vtctldata.SetShardTabletControlRequest + (*vtctldata.SetWritableRequest)(nil), // 65: vtctldata.SetWritableRequest + (*vtctldata.ShardReplicationAddRequest)(nil), // 66: vtctldata.ShardReplicationAddRequest + (*vtctldata.ShardReplicationFixRequest)(nil), // 67: vtctldata.ShardReplicationFixRequest + (*vtctldata.ShardReplicationPositionsRequest)(nil), // 68: vtctldata.ShardReplicationPositionsRequest + (*vtctldata.ShardReplicationRemoveRequest)(nil), // 69: vtctldata.ShardReplicationRemoveRequest + (*vtctldata.SleepTabletRequest)(nil), // 70: vtctldata.SleepTabletRequest + (*vtctldata.SourceShardAddRequest)(nil), // 71: vtctldata.SourceShardAddRequest + (*vtctldata.SourceShardDeleteRequest)(nil), // 72: vtctldata.SourceShardDeleteRequest + (*vtctldata.StartReplicationRequest)(nil), // 73: vtctldata.StartReplicationRequest + (*vtctldata.StopReplicationRequest)(nil), // 74: vtctldata.StopReplicationRequest + (*vtctldata.TabletExternallyReparentedRequest)(nil), // 75: vtctldata.TabletExternallyReparentedRequest + (*vtctldata.UpdateCellInfoRequest)(nil), // 76: vtctldata.UpdateCellInfoRequest + (*vtctldata.UpdateCellsAliasRequest)(nil), // 77: vtctldata.UpdateCellsAliasRequest + (*vtctldata.ValidateRequest)(nil), // 78: vtctldata.ValidateRequest + (*vtctldata.ValidateKeyspaceRequest)(nil), // 79: vtctldata.ValidateKeyspaceRequest + (*vtctldata.ValidateSchemaKeyspaceRequest)(nil), // 80: vtctldata.ValidateSchemaKeyspaceRequest + (*vtctldata.ValidateShardRequest)(nil), // 81: vtctldata.ValidateShardRequest + (*vtctldata.ValidateVersionKeyspaceRequest)(nil), // 82: vtctldata.ValidateVersionKeyspaceRequest + (*vtctldata.ValidateVersionShardRequest)(nil), // 83: vtctldata.ValidateVersionShardRequest + (*vtctldata.ValidateVSchemaRequest)(nil), // 84: vtctldata.ValidateVSchemaRequest + (*vtctldata.ExecuteVtctlCommandResponse)(nil), // 85: vtctldata.ExecuteVtctlCommandResponse + (*vtctldata.AddCellInfoResponse)(nil), // 86: vtctldata.AddCellInfoResponse + (*vtctldata.AddCellsAliasResponse)(nil), // 87: vtctldata.AddCellsAliasResponse + (*vtctldata.ApplyRoutingRulesResponse)(nil), // 88: vtctldata.ApplyRoutingRulesResponse + (*vtctldata.ApplySchemaResponse)(nil), // 89: vtctldata.ApplySchemaResponse + (*vtctldata.ApplyShardRoutingRulesResponse)(nil), // 90: vtctldata.ApplyShardRoutingRulesResponse + (*vtctldata.ApplyVSchemaResponse)(nil), // 91: vtctldata.ApplyVSchemaResponse + (*vtctldata.BackupResponse)(nil), // 92: vtctldata.BackupResponse + (*vtctldata.ChangeTabletTagsResponse)(nil), // 93: vtctldata.ChangeTabletTagsResponse + (*vtctldata.ChangeTabletTypeResponse)(nil), // 94: vtctldata.ChangeTabletTypeResponse + (*vtctldata.CreateKeyspaceResponse)(nil), // 95: vtctldata.CreateKeyspaceResponse + (*vtctldata.CreateShardResponse)(nil), // 96: vtctldata.CreateShardResponse + (*vtctldata.DeleteCellInfoResponse)(nil), // 97: vtctldata.DeleteCellInfoResponse + (*vtctldata.DeleteCellsAliasResponse)(nil), // 98: vtctldata.DeleteCellsAliasResponse + (*vtctldata.DeleteKeyspaceResponse)(nil), // 99: vtctldata.DeleteKeyspaceResponse + (*vtctldata.DeleteShardsResponse)(nil), // 100: vtctldata.DeleteShardsResponse + (*vtctldata.DeleteSrvVSchemaResponse)(nil), // 101: vtctldata.DeleteSrvVSchemaResponse + (*vtctldata.DeleteTabletsResponse)(nil), // 102: vtctldata.DeleteTabletsResponse + (*vtctldata.EmergencyReparentShardResponse)(nil), // 103: vtctldata.EmergencyReparentShardResponse + (*vtctldata.ExecuteFetchAsAppResponse)(nil), // 104: vtctldata.ExecuteFetchAsAppResponse + (*vtctldata.ExecuteFetchAsDBAResponse)(nil), // 105: vtctldata.ExecuteFetchAsDBAResponse + (*vtctldata.ExecuteHookResponse)(nil), // 106: vtctldata.ExecuteHookResponse + (*vtctldata.FindAllShardsInKeyspaceResponse)(nil), // 107: vtctldata.FindAllShardsInKeyspaceResponse + (*vtctldata.GetBackupsResponse)(nil), // 108: vtctldata.GetBackupsResponse + (*vtctldata.GetCellInfoResponse)(nil), // 109: vtctldata.GetCellInfoResponse + (*vtctldata.GetCellInfoNamesResponse)(nil), // 110: vtctldata.GetCellInfoNamesResponse + (*vtctldata.GetCellsAliasesResponse)(nil), // 111: vtctldata.GetCellsAliasesResponse + (*vtctldata.GetFullStatusResponse)(nil), // 112: vtctldata.GetFullStatusResponse + (*vtctldata.GetKeyspaceResponse)(nil), // 113: vtctldata.GetKeyspaceResponse + (*vtctldata.GetKeyspacesResponse)(nil), // 114: vtctldata.GetKeyspacesResponse + (*vtctldata.GetPermissionsResponse)(nil), // 115: vtctldata.GetPermissionsResponse + (*vtctldata.GetRoutingRulesResponse)(nil), // 116: vtctldata.GetRoutingRulesResponse + (*vtctldata.GetSchemaResponse)(nil), // 117: vtctldata.GetSchemaResponse + (*vtctldata.GetShardResponse)(nil), // 118: vtctldata.GetShardResponse + (*vtctldata.GetShardRoutingRulesResponse)(nil), // 119: vtctldata.GetShardRoutingRulesResponse + (*vtctldata.GetSrvKeyspaceNamesResponse)(nil), // 120: vtctldata.GetSrvKeyspaceNamesResponse + (*vtctldata.GetSrvKeyspacesResponse)(nil), // 121: vtctldata.GetSrvKeyspacesResponse + (*vtctldata.GetSrvVSchemaResponse)(nil), // 122: vtctldata.GetSrvVSchemaResponse + (*vtctldata.GetSrvVSchemasResponse)(nil), // 123: vtctldata.GetSrvVSchemasResponse + (*vtctldata.GetTabletResponse)(nil), // 124: vtctldata.GetTabletResponse + (*vtctldata.GetTabletsResponse)(nil), // 125: vtctldata.GetTabletsResponse + (*vtctldata.GetTopologyPathResponse)(nil), // 126: vtctldata.GetTopologyPathResponse + (*vtctldata.GetVersionResponse)(nil), // 127: vtctldata.GetVersionResponse + (*vtctldata.GetVSchemaResponse)(nil), // 128: vtctldata.GetVSchemaResponse + (*vtctldata.GetWorkflowsResponse)(nil), // 129: vtctldata.GetWorkflowsResponse + (*vtctldata.InitShardPrimaryResponse)(nil), // 130: vtctldata.InitShardPrimaryResponse + (*vtctldata.PingTabletResponse)(nil), // 131: vtctldata.PingTabletResponse + (*vtctldata.PlannedReparentShardResponse)(nil), // 132: vtctldata.PlannedReparentShardResponse + (*vtctldata.RebuildKeyspaceGraphResponse)(nil), // 133: vtctldata.RebuildKeyspaceGraphResponse + (*vtctldata.RebuildVSchemaGraphResponse)(nil), // 134: vtctldata.RebuildVSchemaGraphResponse + (*vtctldata.RefreshStateResponse)(nil), // 135: vtctldata.RefreshStateResponse + (*vtctldata.RefreshStateByShardResponse)(nil), // 136: vtctldata.RefreshStateByShardResponse + (*vtctldata.ReloadSchemaResponse)(nil), // 137: vtctldata.ReloadSchemaResponse + (*vtctldata.ReloadSchemaKeyspaceResponse)(nil), // 138: vtctldata.ReloadSchemaKeyspaceResponse + (*vtctldata.ReloadSchemaShardResponse)(nil), // 139: vtctldata.ReloadSchemaShardResponse + (*vtctldata.RemoveBackupResponse)(nil), // 140: vtctldata.RemoveBackupResponse + (*vtctldata.RemoveKeyspaceCellResponse)(nil), // 141: vtctldata.RemoveKeyspaceCellResponse + (*vtctldata.RemoveShardCellResponse)(nil), // 142: vtctldata.RemoveShardCellResponse + (*vtctldata.ReparentTabletResponse)(nil), // 143: vtctldata.ReparentTabletResponse + (*vtctldata.RestoreFromBackupResponse)(nil), // 144: vtctldata.RestoreFromBackupResponse + (*vtctldata.RunHealthCheckResponse)(nil), // 145: vtctldata.RunHealthCheckResponse + (*vtctldata.SetKeyspaceDurabilityPolicyResponse)(nil), // 146: vtctldata.SetKeyspaceDurabilityPolicyResponse + (*vtctldata.SetShardIsPrimaryServingResponse)(nil), // 147: vtctldata.SetShardIsPrimaryServingResponse + (*vtctldata.SetShardTabletControlResponse)(nil), // 148: vtctldata.SetShardTabletControlResponse + (*vtctldata.SetWritableResponse)(nil), // 149: vtctldata.SetWritableResponse + (*vtctldata.ShardReplicationAddResponse)(nil), // 150: vtctldata.ShardReplicationAddResponse + (*vtctldata.ShardReplicationFixResponse)(nil), // 151: vtctldata.ShardReplicationFixResponse + (*vtctldata.ShardReplicationPositionsResponse)(nil), // 152: vtctldata.ShardReplicationPositionsResponse + (*vtctldata.ShardReplicationRemoveResponse)(nil), // 153: vtctldata.ShardReplicationRemoveResponse + (*vtctldata.SleepTabletResponse)(nil), // 154: vtctldata.SleepTabletResponse + (*vtctldata.SourceShardAddResponse)(nil), // 155: vtctldata.SourceShardAddResponse + (*vtctldata.SourceShardDeleteResponse)(nil), // 156: vtctldata.SourceShardDeleteResponse + (*vtctldata.StartReplicationResponse)(nil), // 157: vtctldata.StartReplicationResponse + (*vtctldata.StopReplicationResponse)(nil), // 158: vtctldata.StopReplicationResponse + (*vtctldata.TabletExternallyReparentedResponse)(nil), // 159: vtctldata.TabletExternallyReparentedResponse + (*vtctldata.UpdateCellInfoResponse)(nil), // 160: vtctldata.UpdateCellInfoResponse + (*vtctldata.UpdateCellsAliasResponse)(nil), // 161: vtctldata.UpdateCellsAliasResponse + (*vtctldata.ValidateResponse)(nil), // 162: vtctldata.ValidateResponse + (*vtctldata.ValidateKeyspaceResponse)(nil), // 163: vtctldata.ValidateKeyspaceResponse + (*vtctldata.ValidateSchemaKeyspaceResponse)(nil), // 164: vtctldata.ValidateSchemaKeyspaceResponse + (*vtctldata.ValidateShardResponse)(nil), // 165: vtctldata.ValidateShardResponse + (*vtctldata.ValidateVersionKeyspaceResponse)(nil), // 166: vtctldata.ValidateVersionKeyspaceResponse + (*vtctldata.ValidateVersionShardResponse)(nil), // 167: vtctldata.ValidateVersionShardResponse + (*vtctldata.ValidateVSchemaResponse)(nil), // 168: vtctldata.ValidateVSchemaResponse } var file_vtctlservice_proto_depIdxs = []int32{ 0, // 0: vtctlservice.Vtctl.ExecuteVtctlCommand:input_type -> vtctldata.ExecuteVtctlCommandRequest @@ -719,167 +726,169 @@ var file_vtctlservice_proto_depIdxs = []int32{ 6, // 6: vtctlservice.Vtctld.ApplyVSchema:input_type -> vtctldata.ApplyVSchemaRequest 7, // 7: vtctlservice.Vtctld.Backup:input_type -> vtctldata.BackupRequest 8, // 8: vtctlservice.Vtctld.BackupShard:input_type -> vtctldata.BackupShardRequest - 9, // 9: vtctlservice.Vtctld.ChangeTabletType:input_type -> vtctldata.ChangeTabletTypeRequest - 10, // 10: vtctlservice.Vtctld.CreateKeyspace:input_type -> vtctldata.CreateKeyspaceRequest - 11, // 11: vtctlservice.Vtctld.CreateShard:input_type -> vtctldata.CreateShardRequest - 12, // 12: vtctlservice.Vtctld.DeleteCellInfo:input_type -> vtctldata.DeleteCellInfoRequest - 13, // 13: vtctlservice.Vtctld.DeleteCellsAlias:input_type -> vtctldata.DeleteCellsAliasRequest - 14, // 14: vtctlservice.Vtctld.DeleteKeyspace:input_type -> vtctldata.DeleteKeyspaceRequest - 15, // 15: vtctlservice.Vtctld.DeleteShards:input_type -> vtctldata.DeleteShardsRequest - 16, // 16: vtctlservice.Vtctld.DeleteSrvVSchema:input_type -> vtctldata.DeleteSrvVSchemaRequest - 17, // 17: vtctlservice.Vtctld.DeleteTablets:input_type -> vtctldata.DeleteTabletsRequest - 18, // 18: vtctlservice.Vtctld.EmergencyReparentShard:input_type -> vtctldata.EmergencyReparentShardRequest - 19, // 19: vtctlservice.Vtctld.ExecuteFetchAsApp:input_type -> vtctldata.ExecuteFetchAsAppRequest - 20, // 20: vtctlservice.Vtctld.ExecuteFetchAsDBA:input_type -> vtctldata.ExecuteFetchAsDBARequest - 21, // 21: vtctlservice.Vtctld.ExecuteHook:input_type -> vtctldata.ExecuteHookRequest - 22, // 22: vtctlservice.Vtctld.FindAllShardsInKeyspace:input_type -> vtctldata.FindAllShardsInKeyspaceRequest - 23, // 23: vtctlservice.Vtctld.GetBackups:input_type -> vtctldata.GetBackupsRequest - 24, // 24: vtctlservice.Vtctld.GetCellInfo:input_type -> vtctldata.GetCellInfoRequest - 25, // 25: vtctlservice.Vtctld.GetCellInfoNames:input_type -> vtctldata.GetCellInfoNamesRequest - 26, // 26: vtctlservice.Vtctld.GetCellsAliases:input_type -> vtctldata.GetCellsAliasesRequest - 27, // 27: vtctlservice.Vtctld.GetFullStatus:input_type -> vtctldata.GetFullStatusRequest - 28, // 28: vtctlservice.Vtctld.GetKeyspace:input_type -> vtctldata.GetKeyspaceRequest - 29, // 29: vtctlservice.Vtctld.GetKeyspaces:input_type -> vtctldata.GetKeyspacesRequest - 30, // 30: vtctlservice.Vtctld.GetPermissions:input_type -> vtctldata.GetPermissionsRequest - 31, // 31: vtctlservice.Vtctld.GetRoutingRules:input_type -> vtctldata.GetRoutingRulesRequest - 32, // 32: vtctlservice.Vtctld.GetSchema:input_type -> vtctldata.GetSchemaRequest - 33, // 33: vtctlservice.Vtctld.GetShard:input_type -> vtctldata.GetShardRequest - 34, // 34: vtctlservice.Vtctld.GetShardRoutingRules:input_type -> vtctldata.GetShardRoutingRulesRequest - 35, // 35: vtctlservice.Vtctld.GetSrvKeyspaceNames:input_type -> vtctldata.GetSrvKeyspaceNamesRequest - 36, // 36: vtctlservice.Vtctld.GetSrvKeyspaces:input_type -> vtctldata.GetSrvKeyspacesRequest - 37, // 37: vtctlservice.Vtctld.GetSrvVSchema:input_type -> vtctldata.GetSrvVSchemaRequest - 38, // 38: vtctlservice.Vtctld.GetSrvVSchemas:input_type -> vtctldata.GetSrvVSchemasRequest - 39, // 39: vtctlservice.Vtctld.GetTablet:input_type -> vtctldata.GetTabletRequest - 40, // 40: vtctlservice.Vtctld.GetTablets:input_type -> vtctldata.GetTabletsRequest - 41, // 41: vtctlservice.Vtctld.GetTopologyPath:input_type -> vtctldata.GetTopologyPathRequest - 42, // 42: vtctlservice.Vtctld.GetVersion:input_type -> vtctldata.GetVersionRequest - 43, // 43: vtctlservice.Vtctld.GetVSchema:input_type -> vtctldata.GetVSchemaRequest - 44, // 44: vtctlservice.Vtctld.GetWorkflows:input_type -> vtctldata.GetWorkflowsRequest - 45, // 45: vtctlservice.Vtctld.InitShardPrimary:input_type -> vtctldata.InitShardPrimaryRequest - 46, // 46: vtctlservice.Vtctld.PingTablet:input_type -> vtctldata.PingTabletRequest - 47, // 47: vtctlservice.Vtctld.PlannedReparentShard:input_type -> vtctldata.PlannedReparentShardRequest - 48, // 48: vtctlservice.Vtctld.RebuildKeyspaceGraph:input_type -> vtctldata.RebuildKeyspaceGraphRequest - 49, // 49: vtctlservice.Vtctld.RebuildVSchemaGraph:input_type -> vtctldata.RebuildVSchemaGraphRequest - 50, // 50: vtctlservice.Vtctld.RefreshState:input_type -> vtctldata.RefreshStateRequest - 51, // 51: vtctlservice.Vtctld.RefreshStateByShard:input_type -> vtctldata.RefreshStateByShardRequest - 52, // 52: vtctlservice.Vtctld.ReloadSchema:input_type -> vtctldata.ReloadSchemaRequest - 53, // 53: vtctlservice.Vtctld.ReloadSchemaKeyspace:input_type -> vtctldata.ReloadSchemaKeyspaceRequest - 54, // 54: vtctlservice.Vtctld.ReloadSchemaShard:input_type -> vtctldata.ReloadSchemaShardRequest - 55, // 55: vtctlservice.Vtctld.RemoveBackup:input_type -> vtctldata.RemoveBackupRequest - 56, // 56: vtctlservice.Vtctld.RemoveKeyspaceCell:input_type -> vtctldata.RemoveKeyspaceCellRequest - 57, // 57: vtctlservice.Vtctld.RemoveShardCell:input_type -> vtctldata.RemoveShardCellRequest - 58, // 58: vtctlservice.Vtctld.ReparentTablet:input_type -> vtctldata.ReparentTabletRequest - 59, // 59: vtctlservice.Vtctld.RestoreFromBackup:input_type -> vtctldata.RestoreFromBackupRequest - 60, // 60: vtctlservice.Vtctld.RunHealthCheck:input_type -> vtctldata.RunHealthCheckRequest - 61, // 61: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:input_type -> vtctldata.SetKeyspaceDurabilityPolicyRequest - 62, // 62: vtctlservice.Vtctld.SetShardIsPrimaryServing:input_type -> vtctldata.SetShardIsPrimaryServingRequest - 63, // 63: vtctlservice.Vtctld.SetShardTabletControl:input_type -> vtctldata.SetShardTabletControlRequest - 64, // 64: vtctlservice.Vtctld.SetWritable:input_type -> vtctldata.SetWritableRequest - 65, // 65: vtctlservice.Vtctld.ShardReplicationAdd:input_type -> vtctldata.ShardReplicationAddRequest - 66, // 66: vtctlservice.Vtctld.ShardReplicationFix:input_type -> vtctldata.ShardReplicationFixRequest - 67, // 67: vtctlservice.Vtctld.ShardReplicationPositions:input_type -> vtctldata.ShardReplicationPositionsRequest - 68, // 68: vtctlservice.Vtctld.ShardReplicationRemove:input_type -> vtctldata.ShardReplicationRemoveRequest - 69, // 69: vtctlservice.Vtctld.SleepTablet:input_type -> vtctldata.SleepTabletRequest - 70, // 70: vtctlservice.Vtctld.SourceShardAdd:input_type -> vtctldata.SourceShardAddRequest - 71, // 71: vtctlservice.Vtctld.SourceShardDelete:input_type -> vtctldata.SourceShardDeleteRequest - 72, // 72: vtctlservice.Vtctld.StartReplication:input_type -> vtctldata.StartReplicationRequest - 73, // 73: vtctlservice.Vtctld.StopReplication:input_type -> vtctldata.StopReplicationRequest - 74, // 74: vtctlservice.Vtctld.TabletExternallyReparented:input_type -> vtctldata.TabletExternallyReparentedRequest - 75, // 75: vtctlservice.Vtctld.UpdateCellInfo:input_type -> vtctldata.UpdateCellInfoRequest - 76, // 76: vtctlservice.Vtctld.UpdateCellsAlias:input_type -> vtctldata.UpdateCellsAliasRequest - 77, // 77: vtctlservice.Vtctld.Validate:input_type -> vtctldata.ValidateRequest - 78, // 78: vtctlservice.Vtctld.ValidateKeyspace:input_type -> vtctldata.ValidateKeyspaceRequest - 79, // 79: vtctlservice.Vtctld.ValidateSchemaKeyspace:input_type -> vtctldata.ValidateSchemaKeyspaceRequest - 80, // 80: vtctlservice.Vtctld.ValidateShard:input_type -> vtctldata.ValidateShardRequest - 81, // 81: vtctlservice.Vtctld.ValidateVersionKeyspace:input_type -> vtctldata.ValidateVersionKeyspaceRequest - 82, // 82: vtctlservice.Vtctld.ValidateVersionShard:input_type -> vtctldata.ValidateVersionShardRequest - 83, // 83: vtctlservice.Vtctld.ValidateVSchema:input_type -> vtctldata.ValidateVSchemaRequest - 84, // 84: vtctlservice.Vtctl.ExecuteVtctlCommand:output_type -> vtctldata.ExecuteVtctlCommandResponse - 85, // 85: vtctlservice.Vtctld.AddCellInfo:output_type -> vtctldata.AddCellInfoResponse - 86, // 86: vtctlservice.Vtctld.AddCellsAlias:output_type -> vtctldata.AddCellsAliasResponse - 87, // 87: vtctlservice.Vtctld.ApplyRoutingRules:output_type -> vtctldata.ApplyRoutingRulesResponse - 88, // 88: vtctlservice.Vtctld.ApplySchema:output_type -> vtctldata.ApplySchemaResponse - 89, // 89: vtctlservice.Vtctld.ApplyShardRoutingRules:output_type -> vtctldata.ApplyShardRoutingRulesResponse - 90, // 90: vtctlservice.Vtctld.ApplyVSchema:output_type -> vtctldata.ApplyVSchemaResponse - 91, // 91: vtctlservice.Vtctld.Backup:output_type -> vtctldata.BackupResponse - 91, // 92: vtctlservice.Vtctld.BackupShard:output_type -> vtctldata.BackupResponse - 92, // 93: vtctlservice.Vtctld.ChangeTabletType:output_type -> vtctldata.ChangeTabletTypeResponse - 93, // 94: vtctlservice.Vtctld.CreateKeyspace:output_type -> vtctldata.CreateKeyspaceResponse - 94, // 95: vtctlservice.Vtctld.CreateShard:output_type -> vtctldata.CreateShardResponse - 95, // 96: vtctlservice.Vtctld.DeleteCellInfo:output_type -> vtctldata.DeleteCellInfoResponse - 96, // 97: vtctlservice.Vtctld.DeleteCellsAlias:output_type -> vtctldata.DeleteCellsAliasResponse - 97, // 98: vtctlservice.Vtctld.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse - 98, // 99: vtctlservice.Vtctld.DeleteShards:output_type -> vtctldata.DeleteShardsResponse - 99, // 100: vtctlservice.Vtctld.DeleteSrvVSchema:output_type -> vtctldata.DeleteSrvVSchemaResponse - 100, // 101: vtctlservice.Vtctld.DeleteTablets:output_type -> vtctldata.DeleteTabletsResponse - 101, // 102: vtctlservice.Vtctld.EmergencyReparentShard:output_type -> vtctldata.EmergencyReparentShardResponse - 102, // 103: vtctlservice.Vtctld.ExecuteFetchAsApp:output_type -> vtctldata.ExecuteFetchAsAppResponse - 103, // 104: vtctlservice.Vtctld.ExecuteFetchAsDBA:output_type -> vtctldata.ExecuteFetchAsDBAResponse - 104, // 105: vtctlservice.Vtctld.ExecuteHook:output_type -> vtctldata.ExecuteHookResponse - 105, // 106: vtctlservice.Vtctld.FindAllShardsInKeyspace:output_type -> vtctldata.FindAllShardsInKeyspaceResponse - 106, // 107: vtctlservice.Vtctld.GetBackups:output_type -> vtctldata.GetBackupsResponse - 107, // 108: vtctlservice.Vtctld.GetCellInfo:output_type -> vtctldata.GetCellInfoResponse - 108, // 109: vtctlservice.Vtctld.GetCellInfoNames:output_type -> vtctldata.GetCellInfoNamesResponse - 109, // 110: vtctlservice.Vtctld.GetCellsAliases:output_type -> vtctldata.GetCellsAliasesResponse - 110, // 111: vtctlservice.Vtctld.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse - 111, // 112: vtctlservice.Vtctld.GetKeyspace:output_type -> vtctldata.GetKeyspaceResponse - 112, // 113: vtctlservice.Vtctld.GetKeyspaces:output_type -> vtctldata.GetKeyspacesResponse - 113, // 114: vtctlservice.Vtctld.GetPermissions:output_type -> vtctldata.GetPermissionsResponse - 114, // 115: vtctlservice.Vtctld.GetRoutingRules:output_type -> vtctldata.GetRoutingRulesResponse - 115, // 116: vtctlservice.Vtctld.GetSchema:output_type -> vtctldata.GetSchemaResponse - 116, // 117: vtctlservice.Vtctld.GetShard:output_type -> vtctldata.GetShardResponse - 117, // 118: vtctlservice.Vtctld.GetShardRoutingRules:output_type -> vtctldata.GetShardRoutingRulesResponse - 118, // 119: vtctlservice.Vtctld.GetSrvKeyspaceNames:output_type -> vtctldata.GetSrvKeyspaceNamesResponse - 119, // 120: vtctlservice.Vtctld.GetSrvKeyspaces:output_type -> vtctldata.GetSrvKeyspacesResponse - 120, // 121: vtctlservice.Vtctld.GetSrvVSchema:output_type -> vtctldata.GetSrvVSchemaResponse - 121, // 122: vtctlservice.Vtctld.GetSrvVSchemas:output_type -> vtctldata.GetSrvVSchemasResponse - 122, // 123: vtctlservice.Vtctld.GetTablet:output_type -> vtctldata.GetTabletResponse - 123, // 124: vtctlservice.Vtctld.GetTablets:output_type -> vtctldata.GetTabletsResponse - 124, // 125: vtctlservice.Vtctld.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse - 125, // 126: vtctlservice.Vtctld.GetVersion:output_type -> vtctldata.GetVersionResponse - 126, // 127: vtctlservice.Vtctld.GetVSchema:output_type -> vtctldata.GetVSchemaResponse - 127, // 128: vtctlservice.Vtctld.GetWorkflows:output_type -> vtctldata.GetWorkflowsResponse - 128, // 129: vtctlservice.Vtctld.InitShardPrimary:output_type -> vtctldata.InitShardPrimaryResponse - 129, // 130: vtctlservice.Vtctld.PingTablet:output_type -> vtctldata.PingTabletResponse - 130, // 131: vtctlservice.Vtctld.PlannedReparentShard:output_type -> vtctldata.PlannedReparentShardResponse - 131, // 132: vtctlservice.Vtctld.RebuildKeyspaceGraph:output_type -> vtctldata.RebuildKeyspaceGraphResponse - 132, // 133: vtctlservice.Vtctld.RebuildVSchemaGraph:output_type -> vtctldata.RebuildVSchemaGraphResponse - 133, // 134: vtctlservice.Vtctld.RefreshState:output_type -> vtctldata.RefreshStateResponse - 134, // 135: vtctlservice.Vtctld.RefreshStateByShard:output_type -> vtctldata.RefreshStateByShardResponse - 135, // 136: vtctlservice.Vtctld.ReloadSchema:output_type -> vtctldata.ReloadSchemaResponse - 136, // 137: vtctlservice.Vtctld.ReloadSchemaKeyspace:output_type -> vtctldata.ReloadSchemaKeyspaceResponse - 137, // 138: vtctlservice.Vtctld.ReloadSchemaShard:output_type -> vtctldata.ReloadSchemaShardResponse - 138, // 139: vtctlservice.Vtctld.RemoveBackup:output_type -> vtctldata.RemoveBackupResponse - 139, // 140: vtctlservice.Vtctld.RemoveKeyspaceCell:output_type -> vtctldata.RemoveKeyspaceCellResponse - 140, // 141: vtctlservice.Vtctld.RemoveShardCell:output_type -> vtctldata.RemoveShardCellResponse - 141, // 142: vtctlservice.Vtctld.ReparentTablet:output_type -> vtctldata.ReparentTabletResponse - 142, // 143: vtctlservice.Vtctld.RestoreFromBackup:output_type -> vtctldata.RestoreFromBackupResponse - 143, // 144: vtctlservice.Vtctld.RunHealthCheck:output_type -> vtctldata.RunHealthCheckResponse - 144, // 145: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:output_type -> vtctldata.SetKeyspaceDurabilityPolicyResponse - 145, // 146: vtctlservice.Vtctld.SetShardIsPrimaryServing:output_type -> vtctldata.SetShardIsPrimaryServingResponse - 146, // 147: vtctlservice.Vtctld.SetShardTabletControl:output_type -> vtctldata.SetShardTabletControlResponse - 147, // 148: vtctlservice.Vtctld.SetWritable:output_type -> vtctldata.SetWritableResponse - 148, // 149: vtctlservice.Vtctld.ShardReplicationAdd:output_type -> vtctldata.ShardReplicationAddResponse - 149, // 150: vtctlservice.Vtctld.ShardReplicationFix:output_type -> vtctldata.ShardReplicationFixResponse - 150, // 151: vtctlservice.Vtctld.ShardReplicationPositions:output_type -> vtctldata.ShardReplicationPositionsResponse - 151, // 152: vtctlservice.Vtctld.ShardReplicationRemove:output_type -> vtctldata.ShardReplicationRemoveResponse - 152, // 153: vtctlservice.Vtctld.SleepTablet:output_type -> vtctldata.SleepTabletResponse - 153, // 154: vtctlservice.Vtctld.SourceShardAdd:output_type -> vtctldata.SourceShardAddResponse - 154, // 155: vtctlservice.Vtctld.SourceShardDelete:output_type -> vtctldata.SourceShardDeleteResponse - 155, // 156: vtctlservice.Vtctld.StartReplication:output_type -> vtctldata.StartReplicationResponse - 156, // 157: vtctlservice.Vtctld.StopReplication:output_type -> vtctldata.StopReplicationResponse - 157, // 158: vtctlservice.Vtctld.TabletExternallyReparented:output_type -> vtctldata.TabletExternallyReparentedResponse - 158, // 159: vtctlservice.Vtctld.UpdateCellInfo:output_type -> vtctldata.UpdateCellInfoResponse - 159, // 160: vtctlservice.Vtctld.UpdateCellsAlias:output_type -> vtctldata.UpdateCellsAliasResponse - 160, // 161: vtctlservice.Vtctld.Validate:output_type -> vtctldata.ValidateResponse - 161, // 162: vtctlservice.Vtctld.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse - 162, // 163: vtctlservice.Vtctld.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse - 163, // 164: vtctlservice.Vtctld.ValidateShard:output_type -> vtctldata.ValidateShardResponse - 164, // 165: vtctlservice.Vtctld.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse - 165, // 166: vtctlservice.Vtctld.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse - 166, // 167: vtctlservice.Vtctld.ValidateVSchema:output_type -> vtctldata.ValidateVSchemaResponse - 84, // [84:168] is the sub-list for method output_type - 0, // [0:84] is the sub-list for method input_type + 9, // 9: vtctlservice.Vtctld.ChangeTabletTags:input_type -> vtctldata.ChangeTabletTagsRequest + 10, // 10: vtctlservice.Vtctld.ChangeTabletType:input_type -> vtctldata.ChangeTabletTypeRequest + 11, // 11: vtctlservice.Vtctld.CreateKeyspace:input_type -> vtctldata.CreateKeyspaceRequest + 12, // 12: vtctlservice.Vtctld.CreateShard:input_type -> vtctldata.CreateShardRequest + 13, // 13: vtctlservice.Vtctld.DeleteCellInfo:input_type -> vtctldata.DeleteCellInfoRequest + 14, // 14: vtctlservice.Vtctld.DeleteCellsAlias:input_type -> vtctldata.DeleteCellsAliasRequest + 15, // 15: vtctlservice.Vtctld.DeleteKeyspace:input_type -> vtctldata.DeleteKeyspaceRequest + 16, // 16: vtctlservice.Vtctld.DeleteShards:input_type -> vtctldata.DeleteShardsRequest + 17, // 17: vtctlservice.Vtctld.DeleteSrvVSchema:input_type -> vtctldata.DeleteSrvVSchemaRequest + 18, // 18: vtctlservice.Vtctld.DeleteTablets:input_type -> vtctldata.DeleteTabletsRequest + 19, // 19: vtctlservice.Vtctld.EmergencyReparentShard:input_type -> vtctldata.EmergencyReparentShardRequest + 20, // 20: vtctlservice.Vtctld.ExecuteFetchAsApp:input_type -> vtctldata.ExecuteFetchAsAppRequest + 21, // 21: vtctlservice.Vtctld.ExecuteFetchAsDBA:input_type -> vtctldata.ExecuteFetchAsDBARequest + 22, // 22: vtctlservice.Vtctld.ExecuteHook:input_type -> vtctldata.ExecuteHookRequest + 23, // 23: vtctlservice.Vtctld.FindAllShardsInKeyspace:input_type -> vtctldata.FindAllShardsInKeyspaceRequest + 24, // 24: vtctlservice.Vtctld.GetBackups:input_type -> vtctldata.GetBackupsRequest + 25, // 25: vtctlservice.Vtctld.GetCellInfo:input_type -> vtctldata.GetCellInfoRequest + 26, // 26: vtctlservice.Vtctld.GetCellInfoNames:input_type -> vtctldata.GetCellInfoNamesRequest + 27, // 27: vtctlservice.Vtctld.GetCellsAliases:input_type -> vtctldata.GetCellsAliasesRequest + 28, // 28: vtctlservice.Vtctld.GetFullStatus:input_type -> vtctldata.GetFullStatusRequest + 29, // 29: vtctlservice.Vtctld.GetKeyspace:input_type -> vtctldata.GetKeyspaceRequest + 30, // 30: vtctlservice.Vtctld.GetKeyspaces:input_type -> vtctldata.GetKeyspacesRequest + 31, // 31: vtctlservice.Vtctld.GetPermissions:input_type -> vtctldata.GetPermissionsRequest + 32, // 32: vtctlservice.Vtctld.GetRoutingRules:input_type -> vtctldata.GetRoutingRulesRequest + 33, // 33: vtctlservice.Vtctld.GetSchema:input_type -> vtctldata.GetSchemaRequest + 34, // 34: vtctlservice.Vtctld.GetShard:input_type -> vtctldata.GetShardRequest + 35, // 35: vtctlservice.Vtctld.GetShardRoutingRules:input_type -> vtctldata.GetShardRoutingRulesRequest + 36, // 36: vtctlservice.Vtctld.GetSrvKeyspaceNames:input_type -> vtctldata.GetSrvKeyspaceNamesRequest + 37, // 37: vtctlservice.Vtctld.GetSrvKeyspaces:input_type -> vtctldata.GetSrvKeyspacesRequest + 38, // 38: vtctlservice.Vtctld.GetSrvVSchema:input_type -> vtctldata.GetSrvVSchemaRequest + 39, // 39: vtctlservice.Vtctld.GetSrvVSchemas:input_type -> vtctldata.GetSrvVSchemasRequest + 40, // 40: vtctlservice.Vtctld.GetTablet:input_type -> vtctldata.GetTabletRequest + 41, // 41: vtctlservice.Vtctld.GetTablets:input_type -> vtctldata.GetTabletsRequest + 42, // 42: vtctlservice.Vtctld.GetTopologyPath:input_type -> vtctldata.GetTopologyPathRequest + 43, // 43: vtctlservice.Vtctld.GetVersion:input_type -> vtctldata.GetVersionRequest + 44, // 44: vtctlservice.Vtctld.GetVSchema:input_type -> vtctldata.GetVSchemaRequest + 45, // 45: vtctlservice.Vtctld.GetWorkflows:input_type -> vtctldata.GetWorkflowsRequest + 46, // 46: vtctlservice.Vtctld.InitShardPrimary:input_type -> vtctldata.InitShardPrimaryRequest + 47, // 47: vtctlservice.Vtctld.PingTablet:input_type -> vtctldata.PingTabletRequest + 48, // 48: vtctlservice.Vtctld.PlannedReparentShard:input_type -> vtctldata.PlannedReparentShardRequest + 49, // 49: vtctlservice.Vtctld.RebuildKeyspaceGraph:input_type -> vtctldata.RebuildKeyspaceGraphRequest + 50, // 50: vtctlservice.Vtctld.RebuildVSchemaGraph:input_type -> vtctldata.RebuildVSchemaGraphRequest + 51, // 51: vtctlservice.Vtctld.RefreshState:input_type -> vtctldata.RefreshStateRequest + 52, // 52: vtctlservice.Vtctld.RefreshStateByShard:input_type -> vtctldata.RefreshStateByShardRequest + 53, // 53: vtctlservice.Vtctld.ReloadSchema:input_type -> vtctldata.ReloadSchemaRequest + 54, // 54: vtctlservice.Vtctld.ReloadSchemaKeyspace:input_type -> vtctldata.ReloadSchemaKeyspaceRequest + 55, // 55: vtctlservice.Vtctld.ReloadSchemaShard:input_type -> vtctldata.ReloadSchemaShardRequest + 56, // 56: vtctlservice.Vtctld.RemoveBackup:input_type -> vtctldata.RemoveBackupRequest + 57, // 57: vtctlservice.Vtctld.RemoveKeyspaceCell:input_type -> vtctldata.RemoveKeyspaceCellRequest + 58, // 58: vtctlservice.Vtctld.RemoveShardCell:input_type -> vtctldata.RemoveShardCellRequest + 59, // 59: vtctlservice.Vtctld.ReparentTablet:input_type -> vtctldata.ReparentTabletRequest + 60, // 60: vtctlservice.Vtctld.RestoreFromBackup:input_type -> vtctldata.RestoreFromBackupRequest + 61, // 61: vtctlservice.Vtctld.RunHealthCheck:input_type -> vtctldata.RunHealthCheckRequest + 62, // 62: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:input_type -> vtctldata.SetKeyspaceDurabilityPolicyRequest + 63, // 63: vtctlservice.Vtctld.SetShardIsPrimaryServing:input_type -> vtctldata.SetShardIsPrimaryServingRequest + 64, // 64: vtctlservice.Vtctld.SetShardTabletControl:input_type -> vtctldata.SetShardTabletControlRequest + 65, // 65: vtctlservice.Vtctld.SetWritable:input_type -> vtctldata.SetWritableRequest + 66, // 66: vtctlservice.Vtctld.ShardReplicationAdd:input_type -> vtctldata.ShardReplicationAddRequest + 67, // 67: vtctlservice.Vtctld.ShardReplicationFix:input_type -> vtctldata.ShardReplicationFixRequest + 68, // 68: vtctlservice.Vtctld.ShardReplicationPositions:input_type -> vtctldata.ShardReplicationPositionsRequest + 69, // 69: vtctlservice.Vtctld.ShardReplicationRemove:input_type -> vtctldata.ShardReplicationRemoveRequest + 70, // 70: vtctlservice.Vtctld.SleepTablet:input_type -> vtctldata.SleepTabletRequest + 71, // 71: vtctlservice.Vtctld.SourceShardAdd:input_type -> vtctldata.SourceShardAddRequest + 72, // 72: vtctlservice.Vtctld.SourceShardDelete:input_type -> vtctldata.SourceShardDeleteRequest + 73, // 73: vtctlservice.Vtctld.StartReplication:input_type -> vtctldata.StartReplicationRequest + 74, // 74: vtctlservice.Vtctld.StopReplication:input_type -> vtctldata.StopReplicationRequest + 75, // 75: vtctlservice.Vtctld.TabletExternallyReparented:input_type -> vtctldata.TabletExternallyReparentedRequest + 76, // 76: vtctlservice.Vtctld.UpdateCellInfo:input_type -> vtctldata.UpdateCellInfoRequest + 77, // 77: vtctlservice.Vtctld.UpdateCellsAlias:input_type -> vtctldata.UpdateCellsAliasRequest + 78, // 78: vtctlservice.Vtctld.Validate:input_type -> vtctldata.ValidateRequest + 79, // 79: vtctlservice.Vtctld.ValidateKeyspace:input_type -> vtctldata.ValidateKeyspaceRequest + 80, // 80: vtctlservice.Vtctld.ValidateSchemaKeyspace:input_type -> vtctldata.ValidateSchemaKeyspaceRequest + 81, // 81: vtctlservice.Vtctld.ValidateShard:input_type -> vtctldata.ValidateShardRequest + 82, // 82: vtctlservice.Vtctld.ValidateVersionKeyspace:input_type -> vtctldata.ValidateVersionKeyspaceRequest + 83, // 83: vtctlservice.Vtctld.ValidateVersionShard:input_type -> vtctldata.ValidateVersionShardRequest + 84, // 84: vtctlservice.Vtctld.ValidateVSchema:input_type -> vtctldata.ValidateVSchemaRequest + 85, // 85: vtctlservice.Vtctl.ExecuteVtctlCommand:output_type -> vtctldata.ExecuteVtctlCommandResponse + 86, // 86: vtctlservice.Vtctld.AddCellInfo:output_type -> vtctldata.AddCellInfoResponse + 87, // 87: vtctlservice.Vtctld.AddCellsAlias:output_type -> vtctldata.AddCellsAliasResponse + 88, // 88: vtctlservice.Vtctld.ApplyRoutingRules:output_type -> vtctldata.ApplyRoutingRulesResponse + 89, // 89: vtctlservice.Vtctld.ApplySchema:output_type -> vtctldata.ApplySchemaResponse + 90, // 90: vtctlservice.Vtctld.ApplyShardRoutingRules:output_type -> vtctldata.ApplyShardRoutingRulesResponse + 91, // 91: vtctlservice.Vtctld.ApplyVSchema:output_type -> vtctldata.ApplyVSchemaResponse + 92, // 92: vtctlservice.Vtctld.Backup:output_type -> vtctldata.BackupResponse + 92, // 93: vtctlservice.Vtctld.BackupShard:output_type -> vtctldata.BackupResponse + 93, // 94: vtctlservice.Vtctld.ChangeTabletTags:output_type -> vtctldata.ChangeTabletTagsResponse + 94, // 95: vtctlservice.Vtctld.ChangeTabletType:output_type -> vtctldata.ChangeTabletTypeResponse + 95, // 96: vtctlservice.Vtctld.CreateKeyspace:output_type -> vtctldata.CreateKeyspaceResponse + 96, // 97: vtctlservice.Vtctld.CreateShard:output_type -> vtctldata.CreateShardResponse + 97, // 98: vtctlservice.Vtctld.DeleteCellInfo:output_type -> vtctldata.DeleteCellInfoResponse + 98, // 99: vtctlservice.Vtctld.DeleteCellsAlias:output_type -> vtctldata.DeleteCellsAliasResponse + 99, // 100: vtctlservice.Vtctld.DeleteKeyspace:output_type -> vtctldata.DeleteKeyspaceResponse + 100, // 101: vtctlservice.Vtctld.DeleteShards:output_type -> vtctldata.DeleteShardsResponse + 101, // 102: vtctlservice.Vtctld.DeleteSrvVSchema:output_type -> vtctldata.DeleteSrvVSchemaResponse + 102, // 103: vtctlservice.Vtctld.DeleteTablets:output_type -> vtctldata.DeleteTabletsResponse + 103, // 104: vtctlservice.Vtctld.EmergencyReparentShard:output_type -> vtctldata.EmergencyReparentShardResponse + 104, // 105: vtctlservice.Vtctld.ExecuteFetchAsApp:output_type -> vtctldata.ExecuteFetchAsAppResponse + 105, // 106: vtctlservice.Vtctld.ExecuteFetchAsDBA:output_type -> vtctldata.ExecuteFetchAsDBAResponse + 106, // 107: vtctlservice.Vtctld.ExecuteHook:output_type -> vtctldata.ExecuteHookResponse + 107, // 108: vtctlservice.Vtctld.FindAllShardsInKeyspace:output_type -> vtctldata.FindAllShardsInKeyspaceResponse + 108, // 109: vtctlservice.Vtctld.GetBackups:output_type -> vtctldata.GetBackupsResponse + 109, // 110: vtctlservice.Vtctld.GetCellInfo:output_type -> vtctldata.GetCellInfoResponse + 110, // 111: vtctlservice.Vtctld.GetCellInfoNames:output_type -> vtctldata.GetCellInfoNamesResponse + 111, // 112: vtctlservice.Vtctld.GetCellsAliases:output_type -> vtctldata.GetCellsAliasesResponse + 112, // 113: vtctlservice.Vtctld.GetFullStatus:output_type -> vtctldata.GetFullStatusResponse + 113, // 114: vtctlservice.Vtctld.GetKeyspace:output_type -> vtctldata.GetKeyspaceResponse + 114, // 115: vtctlservice.Vtctld.GetKeyspaces:output_type -> vtctldata.GetKeyspacesResponse + 115, // 116: vtctlservice.Vtctld.GetPermissions:output_type -> vtctldata.GetPermissionsResponse + 116, // 117: vtctlservice.Vtctld.GetRoutingRules:output_type -> vtctldata.GetRoutingRulesResponse + 117, // 118: vtctlservice.Vtctld.GetSchema:output_type -> vtctldata.GetSchemaResponse + 118, // 119: vtctlservice.Vtctld.GetShard:output_type -> vtctldata.GetShardResponse + 119, // 120: vtctlservice.Vtctld.GetShardRoutingRules:output_type -> vtctldata.GetShardRoutingRulesResponse + 120, // 121: vtctlservice.Vtctld.GetSrvKeyspaceNames:output_type -> vtctldata.GetSrvKeyspaceNamesResponse + 121, // 122: vtctlservice.Vtctld.GetSrvKeyspaces:output_type -> vtctldata.GetSrvKeyspacesResponse + 122, // 123: vtctlservice.Vtctld.GetSrvVSchema:output_type -> vtctldata.GetSrvVSchemaResponse + 123, // 124: vtctlservice.Vtctld.GetSrvVSchemas:output_type -> vtctldata.GetSrvVSchemasResponse + 124, // 125: vtctlservice.Vtctld.GetTablet:output_type -> vtctldata.GetTabletResponse + 125, // 126: vtctlservice.Vtctld.GetTablets:output_type -> vtctldata.GetTabletsResponse + 126, // 127: vtctlservice.Vtctld.GetTopologyPath:output_type -> vtctldata.GetTopologyPathResponse + 127, // 128: vtctlservice.Vtctld.GetVersion:output_type -> vtctldata.GetVersionResponse + 128, // 129: vtctlservice.Vtctld.GetVSchema:output_type -> vtctldata.GetVSchemaResponse + 129, // 130: vtctlservice.Vtctld.GetWorkflows:output_type -> vtctldata.GetWorkflowsResponse + 130, // 131: vtctlservice.Vtctld.InitShardPrimary:output_type -> vtctldata.InitShardPrimaryResponse + 131, // 132: vtctlservice.Vtctld.PingTablet:output_type -> vtctldata.PingTabletResponse + 132, // 133: vtctlservice.Vtctld.PlannedReparentShard:output_type -> vtctldata.PlannedReparentShardResponse + 133, // 134: vtctlservice.Vtctld.RebuildKeyspaceGraph:output_type -> vtctldata.RebuildKeyspaceGraphResponse + 134, // 135: vtctlservice.Vtctld.RebuildVSchemaGraph:output_type -> vtctldata.RebuildVSchemaGraphResponse + 135, // 136: vtctlservice.Vtctld.RefreshState:output_type -> vtctldata.RefreshStateResponse + 136, // 137: vtctlservice.Vtctld.RefreshStateByShard:output_type -> vtctldata.RefreshStateByShardResponse + 137, // 138: vtctlservice.Vtctld.ReloadSchema:output_type -> vtctldata.ReloadSchemaResponse + 138, // 139: vtctlservice.Vtctld.ReloadSchemaKeyspace:output_type -> vtctldata.ReloadSchemaKeyspaceResponse + 139, // 140: vtctlservice.Vtctld.ReloadSchemaShard:output_type -> vtctldata.ReloadSchemaShardResponse + 140, // 141: vtctlservice.Vtctld.RemoveBackup:output_type -> vtctldata.RemoveBackupResponse + 141, // 142: vtctlservice.Vtctld.RemoveKeyspaceCell:output_type -> vtctldata.RemoveKeyspaceCellResponse + 142, // 143: vtctlservice.Vtctld.RemoveShardCell:output_type -> vtctldata.RemoveShardCellResponse + 143, // 144: vtctlservice.Vtctld.ReparentTablet:output_type -> vtctldata.ReparentTabletResponse + 144, // 145: vtctlservice.Vtctld.RestoreFromBackup:output_type -> vtctldata.RestoreFromBackupResponse + 145, // 146: vtctlservice.Vtctld.RunHealthCheck:output_type -> vtctldata.RunHealthCheckResponse + 146, // 147: vtctlservice.Vtctld.SetKeyspaceDurabilityPolicy:output_type -> vtctldata.SetKeyspaceDurabilityPolicyResponse + 147, // 148: vtctlservice.Vtctld.SetShardIsPrimaryServing:output_type -> vtctldata.SetShardIsPrimaryServingResponse + 148, // 149: vtctlservice.Vtctld.SetShardTabletControl:output_type -> vtctldata.SetShardTabletControlResponse + 149, // 150: vtctlservice.Vtctld.SetWritable:output_type -> vtctldata.SetWritableResponse + 150, // 151: vtctlservice.Vtctld.ShardReplicationAdd:output_type -> vtctldata.ShardReplicationAddResponse + 151, // 152: vtctlservice.Vtctld.ShardReplicationFix:output_type -> vtctldata.ShardReplicationFixResponse + 152, // 153: vtctlservice.Vtctld.ShardReplicationPositions:output_type -> vtctldata.ShardReplicationPositionsResponse + 153, // 154: vtctlservice.Vtctld.ShardReplicationRemove:output_type -> vtctldata.ShardReplicationRemoveResponse + 154, // 155: vtctlservice.Vtctld.SleepTablet:output_type -> vtctldata.SleepTabletResponse + 155, // 156: vtctlservice.Vtctld.SourceShardAdd:output_type -> vtctldata.SourceShardAddResponse + 156, // 157: vtctlservice.Vtctld.SourceShardDelete:output_type -> vtctldata.SourceShardDeleteResponse + 157, // 158: vtctlservice.Vtctld.StartReplication:output_type -> vtctldata.StartReplicationResponse + 158, // 159: vtctlservice.Vtctld.StopReplication:output_type -> vtctldata.StopReplicationResponse + 159, // 160: vtctlservice.Vtctld.TabletExternallyReparented:output_type -> vtctldata.TabletExternallyReparentedResponse + 160, // 161: vtctlservice.Vtctld.UpdateCellInfo:output_type -> vtctldata.UpdateCellInfoResponse + 161, // 162: vtctlservice.Vtctld.UpdateCellsAlias:output_type -> vtctldata.UpdateCellsAliasResponse + 162, // 163: vtctlservice.Vtctld.Validate:output_type -> vtctldata.ValidateResponse + 163, // 164: vtctlservice.Vtctld.ValidateKeyspace:output_type -> vtctldata.ValidateKeyspaceResponse + 164, // 165: vtctlservice.Vtctld.ValidateSchemaKeyspace:output_type -> vtctldata.ValidateSchemaKeyspaceResponse + 165, // 166: vtctlservice.Vtctld.ValidateShard:output_type -> vtctldata.ValidateShardResponse + 166, // 167: vtctlservice.Vtctld.ValidateVersionKeyspace:output_type -> vtctldata.ValidateVersionKeyspaceResponse + 167, // 168: vtctlservice.Vtctld.ValidateVersionShard:output_type -> vtctldata.ValidateVersionShardResponse + 168, // 169: vtctlservice.Vtctld.ValidateVSchema:output_type -> vtctldata.ValidateVSchemaResponse + 85, // [85:170] is the sub-list for method output_type + 0, // [0:85] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go b/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go index 0e17723a363..e6110d81fc3 100644 --- a/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go +++ b/go/vt/proto/vtctlservice/vtctlservice_grpc.pb.go @@ -159,6 +159,8 @@ type VtctldClient interface { Backup(ctx context.Context, in *vtctldata.BackupRequest, opts ...grpc.CallOption) (Vtctld_BackupClient, error) // BackupShard chooses a tablet in the shard and uses it to create a backup. BackupShard(ctx context.Context, in *vtctldata.BackupShardRequest, opts ...grpc.CallOption) (Vtctld_BackupShardClient, error) + // ChangeTabletTags changes the tags of the specified tablet, if possible. + ChangeTabletTags(ctx context.Context, in *vtctldata.ChangeTabletTagsRequest, opts ...grpc.CallOption) (*vtctldata.ChangeTabletTagsResponse, error) // ChangeTabletType changes the db type for the specified tablet, if possible. // This is used primarily to arrange replicas, and it will not convert a // primary. For that, use InitShardPrimary. @@ -524,6 +526,15 @@ func (x *vtctldBackupShardClient) Recv() (*vtctldata.BackupResponse, error) { return m, nil } +func (c *vtctldClient) ChangeTabletTags(ctx context.Context, in *vtctldata.ChangeTabletTagsRequest, opts ...grpc.CallOption) (*vtctldata.ChangeTabletTagsResponse, error) { + out := new(vtctldata.ChangeTabletTagsResponse) + err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/ChangeTabletTags", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *vtctldClient) ChangeTabletType(ctx context.Context, in *vtctldata.ChangeTabletTypeRequest, opts ...grpc.CallOption) (*vtctldata.ChangeTabletTypeResponse, error) { out := new(vtctldata.ChangeTabletTypeResponse) err := c.cc.Invoke(ctx, "/vtctlservice.Vtctld/ChangeTabletType", in, out, opts...) @@ -1249,6 +1260,8 @@ type VtctldServer interface { Backup(*vtctldata.BackupRequest, Vtctld_BackupServer) error // BackupShard chooses a tablet in the shard and uses it to create a backup. BackupShard(*vtctldata.BackupShardRequest, Vtctld_BackupShardServer) error + // ChangeTabletTags changes the tags of the specified tablet, if possible. + ChangeTabletTags(context.Context, *vtctldata.ChangeTabletTagsRequest) (*vtctldata.ChangeTabletTagsResponse, error) // ChangeTabletType changes the db type for the specified tablet, if possible. // This is used primarily to arrange replicas, and it will not convert a // primary. For that, use InitShardPrimary. @@ -1517,6 +1530,9 @@ func (UnimplementedVtctldServer) Backup(*vtctldata.BackupRequest, Vtctld_BackupS func (UnimplementedVtctldServer) BackupShard(*vtctldata.BackupShardRequest, Vtctld_BackupShardServer) error { return status.Errorf(codes.Unimplemented, "method BackupShard not implemented") } +func (UnimplementedVtctldServer) ChangeTabletTags(context.Context, *vtctldata.ChangeTabletTagsRequest) (*vtctldata.ChangeTabletTagsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeTabletTags not implemented") +} func (UnimplementedVtctldServer) ChangeTabletType(context.Context, *vtctldata.ChangeTabletTypeRequest) (*vtctldata.ChangeTabletTypeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeTabletType not implemented") } @@ -1905,6 +1921,24 @@ func (x *vtctldBackupShardServer) Send(m *vtctldata.BackupResponse) error { return x.ServerStream.SendMsg(m) } +func _Vtctld_ChangeTabletTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(vtctldata.ChangeTabletTagsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VtctldServer).ChangeTabletTags(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/vtctlservice.Vtctld/ChangeTabletTags", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VtctldServer).ChangeTabletTags(ctx, req.(*vtctldata.ChangeTabletTagsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Vtctld_ChangeTabletType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(vtctldata.ChangeTabletTypeRequest) if err := dec(in); err != nil { @@ -3289,6 +3323,10 @@ var Vtctld_ServiceDesc = grpc.ServiceDesc{ MethodName: "ApplyVSchema", Handler: _Vtctld_ApplyVSchema_Handler, }, + { + MethodName: "ChangeTabletTags", + Handler: _Vtctld_ChangeTabletTags_Handler, + }, { MethodName: "ChangeTabletType", Handler: _Vtctld_ChangeTabletType_Handler, diff --git a/go/vt/topotools/tablet.go b/go/vt/topotools/tablet.go index af6f4b3c3c6..a81adec8a38 100644 --- a/go/vt/topotools/tablet.go +++ b/go/vt/topotools/tablet.go @@ -36,6 +36,7 @@ import ( "context" "errors" "fmt" + "maps" "google.golang.org/protobuf/proto" @@ -60,6 +61,37 @@ func ConfigureTabletHook(hk *hook.Hook, tabletAlias *topodatapb.TabletAlias) { hk.ExtraEnv["TABLET_ALIAS"] = topoproto.TabletAliasString(tabletAlias) } +// ChangeTags changes the tags of the tablet. Make this external, since these +// transitions need to be forced from time to time. +// +// If successful, the updated tablet record is returned. +func ChangeTags(ctx context.Context, ts *topo.Server, tabletAlias *topodatapb.TabletAlias, tabletTags map[string]string, replace bool) (map[string]string, error) { + var result map[string]string + _, err := ts.UpdateTabletFields(ctx, tabletAlias, func(tablet *topodatapb.Tablet) error { + if replace && maps.Equal(tablet.Tags, tabletTags) { + result = tablet.Tags + return topo.NewError(topo.NoUpdateNeeded, topoproto.TabletAliasString(tabletAlias)) + } + if replace || tablet.Tags == nil { + tablet.Tags = tabletTags + } else { + for key, val := range tabletTags { + if val == "" { + delete(tablet.Tags, key) + continue + } + tablet.Tags[key] = val + } + } + result = tablet.Tags + return nil + }) + if err != nil { + return nil, err + } + return result, nil +} + // ChangeType changes the type of the tablet. Make this external, since these // transitions need to be forced from time to time. // diff --git a/go/vt/vtcombo/tablet_map.go b/go/vt/vtcombo/tablet_map.go index 6164aa793e8..e0534a1c651 100644 --- a/go/vt/vtcombo/tablet_map.go +++ b/go/vt/vtcombo/tablet_map.go @@ -764,6 +764,14 @@ func (itmc *internalTabletManagerClient) SetReadWrite(ctx context.Context, table return fmt.Errorf("not implemented in vtcombo") } +func (itmc *internalTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { + t, ok := tabletMap[tablet.Alias.Uid] + if !ok { + return nil, fmt.Errorf("tmclient: cannot find tablet %v", tablet.Alias.Uid) + } + return t.tm.ChangeTags(ctx, tabletTags, replace) +} + func (itmc *internalTabletManagerClient) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error { t, ok := tabletMap[tablet.Alias.Uid] if !ok { diff --git a/go/vt/vtctl/grpcvtctldclient/client_gen.go b/go/vt/vtctl/grpcvtctldclient/client_gen.go index 2cb78f13d27..4d759f23248 100644 --- a/go/vt/vtctl/grpcvtctldclient/client_gen.go +++ b/go/vt/vtctl/grpcvtctldclient/client_gen.go @@ -101,6 +101,15 @@ func (client *gRPCVtctldClient) BackupShard(ctx context.Context, in *vtctldatapb return client.c.BackupShard(ctx, in, opts...) } +// ChangeTabletTags is part of the vtctlservicepb.VtctldClient interface. +func (client *gRPCVtctldClient) ChangeTabletTags(ctx context.Context, in *vtctldatapb.ChangeTabletTagsRequest, opts ...grpc.CallOption) (*vtctldatapb.ChangeTabletTagsResponse, error) { + if client.c == nil { + return nil, status.Error(codes.Unavailable, connClosedMsg) + } + + return client.c.ChangeTabletTags(ctx, in, opts...) +} + // ChangeTabletType is part of the vtctlservicepb.VtctldClient interface. func (client *gRPCVtctldClient) ChangeTabletType(ctx context.Context, in *vtctldatapb.ChangeTabletTypeRequest, opts ...grpc.CallOption) (*vtctldatapb.ChangeTabletTypeResponse, error) { if client.c == nil { diff --git a/go/vt/vtctl/grpcvtctldserver/server.go b/go/vt/vtctl/grpcvtctldserver/server.go index 4c1bdcce199..73bddbdcc85 100644 --- a/go/vt/vtctl/grpcvtctldserver/server.go +++ b/go/vt/vtctl/grpcvtctldserver/server.go @@ -498,6 +498,39 @@ func (s *VtctldServer) backupTablet(ctx context.Context, tablet *topodatapb.Tabl } } +// ChangeTabletTags is part of the vtctlservicepb.VtctldServer interface. +func (s *VtctldServer) ChangeTabletTags(ctx context.Context, req *vtctldatapb.ChangeTabletTagsRequest) (resp *vtctldatapb.ChangeTabletTagsResponse, err error) { + span, ctx := trace.NewSpan(ctx, "VtctldServer.ChangeTabletTags") + defer span.Finish() + + defer panicHandler(&err) + + span.Annotate("tablet_alias", topoproto.TabletAliasString(req.TabletAlias)) + span.Annotate("replace", req.Replace) + + ctx, cancel := context.WithTimeout(ctx, topo.RemoteOperationTimeout) + defer cancel() + + tablet, err := s.ts.GetTablet(ctx, req.TabletAlias) + if err != nil { + return nil, err + } + + span.Annotate("before_tablet_tags", tablet.Tags) + + afterTags, err := s.tmc.ChangeTags(ctx, tablet.Tablet, req.Tags, req.Replace) + if err != nil { + return nil, err + } + + span.Annotate("after_tablet_tags", afterTags) + + return &vtctldatapb.ChangeTabletTagsResponse{ + BeforeTags: tablet.Tags, + AfterTags: afterTags, + }, nil +} + // ChangeTabletType is part of the vtctlservicepb.VtctldServer interface. func (s *VtctldServer) ChangeTabletType(ctx context.Context, req *vtctldatapb.ChangeTabletTypeRequest) (resp *vtctldatapb.ChangeTabletTypeResponse, err error) { span, ctx := trace.NewSpan(ctx, "VtctldServer.ChangeTabletType") diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 2f8a15b14a9..5521f879cd0 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -42,6 +42,7 @@ import ( "vitess.io/vitess/go/vt/topo/topoproto" "vitess.io/vitess/go/vt/vtctl/grpcvtctldserver/testutil" "vitess.io/vitess/go/vt/vtctl/localvtctldclient" + "vitess.io/vitess/go/vt/vtenv" "vitess.io/vitess/go/vt/vttablet/tmclient" "vitess.io/vitess/go/vt/vttablet/tmclienttest" @@ -1011,6 +1012,206 @@ func TestBackupShard(t *testing.T) { } } +func TestChangeTabletTags(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + cells []string + tablet *topodatapb.Tablet + req *vtctldatapb.ChangeTabletTagsRequest + expected *vtctldatapb.ChangeTabletTagsResponse + shouldErr bool + }{ + { + name: "success", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + AfterTags: map[string]string{ + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "success with existing", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Tags: map[string]string{ + "delete": "me", + "hello": "world!", + }, + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "delete": "", + "test": t.Name(), + }, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + BeforeTags: map[string]string{ + "delete": "me", + "hello": "world!", + }, + AfterTags: map[string]string{ + "hello": "world!", + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "success with replace", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Tags: map[string]string{ + "hello": "world!", + }, + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + Replace: true, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + BeforeTags: map[string]string{ + "hello": "world!", + }, + AfterTags: map[string]string{ + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "tablet not found", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 200, + }, + Keyspace: "ks", + Shard: "0", + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }, + expected: nil, + shouldErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + ts := memorytopo.NewServer(ctx, tt.cells...) + vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ + TopoServer: ts, + }, func(ts *topo.Server) vtctlservicepb.VtctldServer { + return NewVtctldServer(vtenv.NewTestEnv(), ts) + }) + + testutil.AddTablets(ctx, t, ts, &testutil.AddTabletOptions{ + AlsoSetShardPrimary: true, + }, tt.tablet) + + resp, err := vtctld.ChangeTabletTags(ctx, tt.req) + if tt.shouldErr { + assert.Error(t, err) + return + } + assert.NoError(t, err) + utils.MustMatch(t, tt.expected, resp) + + tablet, err := ts.GetTablet(ctx, tt.req.TabletAlias) + assert.NoError(t, err) + utils.MustMatch(t, resp.AfterTags, tablet.Tags) + }) + } + + t.Run("tabletmanager failure", func(t *testing.T) { + t.Parallel() + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + ts := memorytopo.NewServer(ctx, "zone1") + vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ + TopoServer: nil, + }, func(ts *topo.Server) vtctlservicepb.VtctldServer { + return NewVtctldServer(vtenv.NewTestEnv(), ts) + }) + + testutil.AddTablet(ctx, t, ts, &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Type: topodatapb.TabletType_REPLICA, + }, nil) + + _, err := vtctld.ChangeTabletTags(ctx, &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }) + assert.Error(t, err) + }) +} + func TestChangeTabletType(t *testing.T) { t.Parallel() diff --git a/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go b/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go index 5ed8a30190c..280c4e7f13e 100644 --- a/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go +++ b/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go @@ -185,6 +185,11 @@ type TabletManagerClient struct { ErrorAfter time.Duration } // keyed by tablet alias. + ChangeTabletTagsResult map[string]struct { + Tags map[string]string + Error error + } + ChangeTabletTagsDelays map[string]time.Duration ChangeTabletTypeResult map[string]error // keyed by tablet alias. DemotePrimaryDelays map[string]time.Duration @@ -443,6 +448,32 @@ func (fake *TabletManagerClient) Backup(ctx context.Context, tablet *topodatapb. return stream, nil } +// ChangeTags is part of the tmclient.TabletManagerClient interface. +func (fake *TabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { + key := topoproto.TabletAliasString(tablet.Alias) + + if fake.ChangeTabletTagsDelays != nil { + if delay, ok := fake.ChangeTabletTagsDelays[key]; ok { + select { + case <-ctx.Done(): + return nil, ctx.Err() + case <-time.After(delay): + // proceed to results + } + } + } + + if result, ok := fake.ChangeTabletTagsResult[key]; ok { + return result.Tags, result.Error + } + + if fake.TopoServer == nil { + return nil, assert.AnError + } + + return topotools.ChangeTags(ctx, fake.TopoServer, tablet.Alias, tabletTags, replace) +} + // ChangeType is part of the tmclient.TabletManagerClient interface. func (fake *TabletManagerClient) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, newType topodatapb.TabletType, semiSync bool) error { if result, ok := fake.ChangeTabletTypeResult[topoproto.TabletAliasString(tablet.Alias)]; ok { diff --git a/go/vt/vtctl/localvtctldclient/client_gen.go b/go/vt/vtctl/localvtctldclient/client_gen.go index fae824d7edf..005bf9f8608 100644 --- a/go/vt/vtctl/localvtctldclient/client_gen.go +++ b/go/vt/vtctl/localvtctldclient/client_gen.go @@ -161,6 +161,11 @@ func (client *localVtctldClient) BackupShard(ctx context.Context, in *vtctldatap return stream, nil } +// ChangeTabletTags is part of the vtctlservicepb.VtctldClient interface. +func (client *localVtctldClient) ChangeTabletTags(ctx context.Context, in *vtctldatapb.ChangeTabletTagsRequest, opts ...grpc.CallOption) (*vtctldatapb.ChangeTabletTagsResponse, error) { + return client.s.ChangeTabletTags(ctx, in) +} + // ChangeTabletType is part of the vtctlservicepb.VtctldClient interface. func (client *localVtctldClient) ChangeTabletType(ctx context.Context, in *vtctldatapb.ChangeTabletTypeRequest, opts ...grpc.CallOption) (*vtctldatapb.ChangeTabletTypeResponse, error) { return client.s.ChangeTabletType(ctx, in) diff --git a/go/vt/vttablet/faketmclient/fake_client.go b/go/vt/vttablet/faketmclient/fake_client.go index ebe0adb22e7..224b04fefbe 100644 --- a/go/vt/vttablet/faketmclient/fake_client.go +++ b/go/vt/vttablet/faketmclient/fake_client.go @@ -120,6 +120,11 @@ func (client *FakeTabletManagerClient) SetReadWrite(ctx context.Context, tablet return nil } +// ChangeTags is part of the tmclient.TabletManagerClient interface. +func (client *FakeTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { + return map[string]string{}, nil +} + // ChangeType is part of the tmclient.TabletManagerClient interface. func (client *FakeTabletManagerClient) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error { return nil diff --git a/go/vt/vttablet/grpctmclient/client.go b/go/vt/vttablet/grpctmclient/client.go index 3e3c6ad3ac2..7a15db914f8 100644 --- a/go/vt/vttablet/grpctmclient/client.go +++ b/go/vt/vttablet/grpctmclient/client.go @@ -314,6 +314,23 @@ func (client *Client) SetReadWrite(ctx context.Context, tablet *topodatapb.Table return err } +// ChangeTags is part of the tmclient.TabletManagerClient interface. +func (client *Client) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { + c, closer, err := client.dialer.dial(ctx, tablet) + if err != nil { + return nil, err + } + defer closer.Close() + resp, err := c.ChangeTags(ctx, &tabletmanagerdatapb.ChangeTagsRequest{ + Tags: tabletTags, + Replace: replace, + }) + if err != nil { + return nil, err + } + return resp.Tags, nil +} + // ChangeType is part of the tmclient.TabletManagerClient interface. func (client *Client) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error { c, closer, err := client.dialer.dial(ctx, tablet) diff --git a/go/vt/vttablet/grpctmserver/server.go b/go/vt/vttablet/grpctmserver/server.go index 563db4e8a73..fbee8e15aff 100644 --- a/go/vt/vttablet/grpctmserver/server.go +++ b/go/vt/vttablet/grpctmserver/server.go @@ -118,6 +118,15 @@ func (s *server) SetReadWrite(ctx context.Context, request *tabletmanagerdatapb. return response, s.tm.SetReadOnly(ctx, false) } +func (s *server) ChangeTags(ctx context.Context, request *tabletmanagerdatapb.ChangeTagsRequest) (response *tabletmanagerdatapb.ChangeTagsResponse, err error) { + defer s.tm.HandleRPCPanic(ctx, "ChangeTags", request, response, false /*verbose*/, &err) + ctx = callinfo.GRPCCallInfo(ctx) + tags, err := s.tm.ChangeTags(ctx, request.Tags, request.Replace) + return &tabletmanagerdatapb.ChangeTagsResponse{ + Tags: tags, + }, err +} + func (s *server) ChangeType(ctx context.Context, request *tabletmanagerdatapb.ChangeTypeRequest) (response *tabletmanagerdatapb.ChangeTypeResponse, err error) { defer s.tm.HandleRPCPanic(ctx, "ChangeType", request, response, true /*verbose*/, &err) ctx = callinfo.GRPCCallInfo(ctx) diff --git a/go/vt/vttablet/tabletmanager/rpc_actions.go b/go/vt/vttablet/tabletmanager/rpc_actions.go index d51f5d2f84a..1c7a5d3ca17 100644 --- a/go/vt/vttablet/tabletmanager/rpc_actions.go +++ b/go/vt/vttablet/tabletmanager/rpc_actions.go @@ -77,6 +77,30 @@ func (tm *TabletManager) SetReadOnly(ctx context.Context, rdonly bool) error { return tm.MysqlDaemon.SetReadOnly(rdonly) } +// ChangeTags changes the tablet tags +func (tm *TabletManager) ChangeTags(ctx context.Context, tabletTags map[string]string, replace bool) (map[string]string, error) { + if err := tm.lock(ctx); err != nil { + return nil, err + } + defer tm.unlock() + + tags := tm.tmState.Tablet().Tags + if replace || len(tags) == 0 { + tags = tabletTags + } else { + for key, val := range tabletTags { + if val == "" { + delete(tags, key) + continue + } + tags[key] = val + } + } + + tm.tmState.ChangeTabletTags(ctx, tags) + return tags, nil +} + // ChangeType changes the tablet type func (tm *TabletManager) ChangeType(ctx context.Context, tabletType topodatapb.TabletType, semiSync bool) error { if err := tm.lock(ctx); err != nil { @@ -92,7 +116,7 @@ func (tm *TabletManager) ChangeType(ctx context.Context, tabletType topodatapb.T return tm.changeTypeLocked(ctx, tabletType, DBActionNone, semiSyncAction) } -// ChangeType changes the tablet type +// changeTypeLocked changes the tablet type under a lock func (tm *TabletManager) changeTypeLocked(ctx context.Context, tabletType topodatapb.TabletType, action DBAction, semiSync SemiSyncAction) error { // We don't want to allow multiple callers to claim a tablet as drained. if tabletType == topodatapb.TabletType_DRAINED && tm.Tablet().Type == topodatapb.TabletType_DRAINED { diff --git a/go/vt/vttablet/tabletmanager/rpc_agent.go b/go/vt/vttablet/tabletmanager/rpc_agent.go index 2ba894f288f..cbf0d8d9146 100644 --- a/go/vt/vttablet/tabletmanager/rpc_agent.go +++ b/go/vt/vttablet/tabletmanager/rpc_agent.go @@ -47,6 +47,8 @@ type RPCTM interface { SetReadOnly(ctx context.Context, rdonly bool) error + ChangeTags(ctx context.Context, tabletTags map[string]string, replace bool) (map[string]string, error) + ChangeType(ctx context.Context, tabletType topodatapb.TabletType, semiSync bool) error Sleep(ctx context.Context, duration time.Duration) diff --git a/go/vt/vttablet/tabletmanager/tm_init.go b/go/vt/vttablet/tabletmanager/tm_init.go index b35a0c180d4..468fb04884c 100644 --- a/go/vt/vttablet/tabletmanager/tm_init.go +++ b/go/vt/vttablet/tabletmanager/tm_init.go @@ -353,6 +353,13 @@ func mergeTags(a, b map[string]string) map[string]string { return result } +func setTabletTagsStats(tabletTags map[string]string) { + statsTabletTags.ResetAll() + for key, val := range tabletTags { + statsTabletTags.Set([]string{key, val}, 1) + } +} + // Start starts the TabletManager. func (tm *TabletManager) Start(tablet *topodatapb.Tablet, healthCheckInterval time.Duration) error { tm.DBConfigs.DBName = topoproto.TabletDbName(tablet) @@ -813,9 +820,7 @@ func (tm *TabletManager) exportStats() { statsKeyRangeEnd.Set(hex.EncodeToString(tablet.KeyRange.End)) } statsAlias.Set(topoproto.TabletAliasString(tablet.Alias)) - for k, v := range tablet.Tags { - statsTabletTags.Set([]string{k, v}, 1) - } + setTabletTagsStats(tablet.Tags) } // withRetry will exponentially back off and retry a function upon diff --git a/go/vt/vttablet/tabletmanager/tm_state.go b/go/vt/vttablet/tabletmanager/tm_state.go index da43cbf9a25..60e86520363 100644 --- a/go/vt/vttablet/tabletmanager/tm_state.go +++ b/go/vt/vttablet/tabletmanager/tm_state.go @@ -237,6 +237,16 @@ func (ts *tmState) ChangeTabletType(ctx context.Context, tabletType topodatapb.T return err } +func (ts *tmState) ChangeTabletTags(ctx context.Context, tabletTags map[string]string) { + ts.mu.Lock() + defer ts.mu.Unlock() + log.Infof("Changing Tablet Tags: %v for %s", tabletTags, ts.tablet.Alias.String()) + + ts.tablet.Tags = tabletTags + ts.publishStateLocked(ctx) + setTabletTagsStats(tabletTags) +} + func (ts *tmState) SetMysqlPort(mport int32) { ts.mu.Lock() defer ts.mu.Unlock() diff --git a/go/vt/vttablet/tmclient/rpc_client_api.go b/go/vt/vttablet/tmclient/rpc_client_api.go index 646c1b71ce8..900a3e61727 100644 --- a/go/vt/vttablet/tmclient/rpc_client_api.go +++ b/go/vt/vttablet/tmclient/rpc_client_api.go @@ -85,6 +85,9 @@ type TabletManagerClient interface { // SetReadWrite makes the mysql instance read-write SetReadWrite(ctx context.Context, tablet *topodatapb.Tablet) error + // ChangeTags asks the remote tablet to change its tags + ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) + // ChangeType asks the remote tablet to change its type ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error diff --git a/go/vt/vttablet/tmrpctest/test_tm_rpc.go b/go/vt/vttablet/tmrpctest/test_tm_rpc.go index 3c700bc6c19..fb2b413cda0 100644 --- a/go/vt/vttablet/tmrpctest/test_tm_rpc.go +++ b/go/vt/vttablet/tmrpctest/test_tm_rpc.go @@ -377,6 +377,30 @@ func tmRPCTestSetReadOnlyPanic(ctx context.Context, t *testing.T, client tmclien expectHandleRPCPanic(t, "SetReadWrite", true /*verbose*/, err) } +var testChangeTagsValue = map[string]string{ + "test": "12345", +} + +func (fra *fakeRPCTM) ChangeTags(ctx context.Context, tabletTags map[string]string, replace bool) (map[string]string, error) { + if fra.panics { + panic(fmt.Errorf("test-triggered panic")) + } + compare(fra.t, "ChangeTags tabletType", tabletTags, testChangeTagsValue) + return tabletTags, nil +} + +func tmRPCTestChangeTags(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { + _, err := client.ChangeTags(ctx, tablet, testChangeTagsValue, false) + if err != nil { + t.Errorf("ChangeTags failed: %v", err) + } +} + +func tmRPCTestChangeTagsPanic(ctx context.Context, t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet) { + _, err := client.ChangeTags(ctx, tablet, testChangeTagsValue, false) + expectHandleRPCPanic(t, "ChangeTags", true /*verbose*/, err) +} + var testChangeTypeValue = topodatapb.TabletType_REPLICA func (fra *fakeRPCTM) ChangeType(ctx context.Context, tabletType topodatapb.TabletType, semiSync bool) error { diff --git a/proto/tabletmanagerdata.proto b/proto/tabletmanagerdata.proto index 842a71b7392..0aa76cb8575 100644 --- a/proto/tabletmanagerdata.proto +++ b/proto/tabletmanagerdata.proto @@ -542,3 +542,12 @@ message VDiffOptions { VDiffCoreOptions core_options = 2; VDiffReportOptions report_options = 3; } + +message ChangeTagsRequest { + map tags = 1; + bool replace = 2; +} + +message ChangeTagsResponse { + map tags = 1; +} diff --git a/proto/tabletmanagerservice.proto b/proto/tabletmanagerservice.proto index c23631acd59..e86fdfa83c1 100644 --- a/proto/tabletmanagerservice.proto +++ b/proto/tabletmanagerservice.proto @@ -53,6 +53,9 @@ service TabletManager { rpc SetReadWrite(tabletmanagerdata.SetReadWriteRequest) returns (tabletmanagerdata.SetReadWriteResponse) {}; + // ChangeTags asks the remote tablet to change its tags + rpc ChangeTags(tabletmanagerdata.ChangeTagsRequest) returns (tabletmanagerdata.ChangeTagsResponse) {}; + // ChangeType asks the remote tablet to change its type rpc ChangeType(tabletmanagerdata.ChangeTypeRequest) returns (tabletmanagerdata.ChangeTypeResponse) {}; diff --git a/proto/vtctldata.proto b/proto/vtctldata.proto index 44094e2ad8d..14a6044fd35 100644 --- a/proto/vtctldata.proto +++ b/proto/vtctldata.proto @@ -289,6 +289,17 @@ message BackupShardRequest { uint64 concurrency = 4; } +message ChangeTabletTagsRequest { + topodata.TabletAlias tablet_alias = 1; + map tags = 2; + bool replace = 3; +} + +message ChangeTabletTagsResponse { + map before_tags = 1; + map after_tags = 2; +} + message ChangeTabletTypeRequest { topodata.TabletAlias tablet_alias = 1; topodata.TabletType db_type = 2; diff --git a/proto/vtctlservice.proto b/proto/vtctlservice.proto index de69443eee4..ddc9b43cd02 100644 --- a/proto/vtctlservice.proto +++ b/proto/vtctlservice.proto @@ -54,6 +54,8 @@ service Vtctld { rpc Backup(vtctldata.BackupRequest) returns (stream vtctldata.BackupResponse) {}; // BackupShard chooses a tablet in the shard and uses it to create a backup. rpc BackupShard(vtctldata.BackupShardRequest) returns (stream vtctldata.BackupResponse) {}; + // ChangeTabletTags changes the tags of the specified tablet, if possible. + rpc ChangeTabletTags(vtctldata.ChangeTabletTagsRequest) returns (vtctldata.ChangeTabletTagsResponse) {}; // ChangeTabletType changes the db type for the specified tablet, if possible. // This is used primarily to arrange replicas, and it will not convert a // primary. For that, use InitShardPrimary. diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index 51a4d5f7301..0ab35d3b415 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -50766,6 +50766,206 @@ export namespace vtctldata { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a ChangeTagsRequest. */ + interface IChangeTagsRequest { + + /** ChangeTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTagsRequest. */ + class ChangeTagsRequest implements IChangeTagsRequest { + + /** + * Constructs a new ChangeTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsRequest); + + /** ChangeTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsRequest instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; + + /** + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; + + /** + * Verifies a ChangeTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; + + /** + * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTagsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTagsResponse. */ + interface IChangeTagsResponse { + + /** ChangeTagsResponse tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTagsResponse. */ + class ChangeTagsResponse implements IChangeTagsResponse { + + /** + * Constructs a new ChangeTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsResponse); + + /** ChangeTagsResponse tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new ChangeTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsResponse instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; + + /** + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; + + /** + * Verifies a ChangeTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsResponse + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; + + /** + * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTagsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace binlogdata. */ @@ -53967,5 +54167,39647 @@ export namespace binlogdata { * @returns JSON object */ public toJSON(): { [k: string]: any }; +<<<<<<< HEAD +======= + + /** + * Gets the default type url for VStreamResultsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace vtrpc. */ +export namespace vtrpc { + + /** Properties of a CallerID. */ + interface ICallerID { + + /** CallerID principal */ + principal?: (string|null); + + /** CallerID component */ + component?: (string|null); + + /** CallerID subcomponent */ + subcomponent?: (string|null); + + /** CallerID groups */ + groups?: (string[]|null); + } + + /** Represents a CallerID. */ + class CallerID implements ICallerID { + + /** + * Constructs a new CallerID. + * @param [properties] Properties to set + */ + constructor(properties?: vtrpc.ICallerID); + + /** CallerID principal. */ + public principal: string; + + /** CallerID component. */ + public component: string; + + /** CallerID subcomponent. */ + public subcomponent: string; + + /** CallerID groups. */ + public groups: string[]; + + /** + * Creates a new CallerID instance using the specified properties. + * @param [properties] Properties to set + * @returns CallerID instance + */ + public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; + + /** + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @param message CallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CallerID message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.CallerID; + + /** + * Decodes a CallerID message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.CallerID; + + /** + * Verifies a CallerID message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CallerID + */ + public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; + + /** + * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * @param message CallerID + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CallerID to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CallerID + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Code enum. */ + enum Code { + OK = 0, + CANCELED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15, + UNAUTHENTICATED = 16, + CLUSTER_EVENT = 17, + READ_ONLY = 18 + } + + /** Properties of a RPCError. */ + interface IRPCError { + + /** RPCError message */ + message?: (string|null); + + /** RPCError code */ + code?: (vtrpc.Code|null); + } + + /** Represents a RPCError. */ + class RPCError implements IRPCError { + + /** + * Constructs a new RPCError. + * @param [properties] Properties to set + */ + constructor(properties?: vtrpc.IRPCError); + + /** RPCError message. */ + public message: string; + + /** RPCError code. */ + public code: vtrpc.Code; + + /** + * Creates a new RPCError instance using the specified properties. + * @param [properties] Properties to set + * @returns RPCError instance + */ + public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; + + /** + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * @param message RPCError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RPCError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RPCError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.RPCError; + + /** + * Decodes a RPCError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RPCError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.RPCError; + + /** + * Verifies a RPCError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RPCError + */ + public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; + + /** + * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * @param message RPCError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RPCError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RPCError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace query. */ +export namespace query { + + /** Properties of a Target. */ + interface ITarget { + + /** Target keyspace */ + keyspace?: (string|null); + + /** Target shard */ + shard?: (string|null); + + /** Target tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** Target cell */ + cell?: (string|null); + } + + /** Represents a Target. */ + class Target implements ITarget { + + /** + * Constructs a new Target. + * @param [properties] Properties to set + */ + constructor(properties?: query.ITarget); + + /** Target keyspace. */ + public keyspace: string; + + /** Target shard. */ + public shard: string; + + /** Target tablet_type. */ + public tablet_type: topodata.TabletType; + + /** Target cell. */ + public cell: string; + + /** + * Creates a new Target instance using the specified properties. + * @param [properties] Properties to set + * @returns Target instance + */ + public static create(properties?: query.ITarget): query.Target; + + /** + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Target message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Target; + + /** + * Decodes a Target message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Target; + + /** + * Verifies a Target message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Target message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Target + */ + public static fromObject(object: { [k: string]: any }): query.Target; + + /** + * Creates a plain object from a Target message. Also converts values to other types if specified. + * @param message Target + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Target to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Target + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VTGateCallerID. */ + interface IVTGateCallerID { + + /** VTGateCallerID username */ + username?: (string|null); + + /** VTGateCallerID groups */ + groups?: (string[]|null); + } + + /** Represents a VTGateCallerID. */ + class VTGateCallerID implements IVTGateCallerID { + + /** + * Constructs a new VTGateCallerID. + * @param [properties] Properties to set + */ + constructor(properties?: query.IVTGateCallerID); + + /** VTGateCallerID username. */ + public username: string; + + /** VTGateCallerID groups. */ + public groups: string[]; + + /** + * Creates a new VTGateCallerID instance using the specified properties. + * @param [properties] Properties to set + * @returns VTGateCallerID instance + */ + public static create(properties?: query.IVTGateCallerID): query.VTGateCallerID; + + /** + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * @param message VTGateCallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * @param message VTGateCallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VTGateCallerID message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VTGateCallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.VTGateCallerID; + + /** + * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VTGateCallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.VTGateCallerID; + + /** + * Verifies a VTGateCallerID message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VTGateCallerID + */ + public static fromObject(object: { [k: string]: any }): query.VTGateCallerID; + + /** + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * @param message VTGateCallerID + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.VTGateCallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VTGateCallerID to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VTGateCallerID + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventToken. */ + interface IEventToken { + + /** EventToken timestamp */ + timestamp?: (number|Long|null); + + /** EventToken shard */ + shard?: (string|null); + + /** EventToken position */ + position?: (string|null); + } + + /** Represents an EventToken. */ + class EventToken implements IEventToken { + + /** + * Constructs a new EventToken. + * @param [properties] Properties to set + */ + constructor(properties?: query.IEventToken); + + /** EventToken timestamp. */ + public timestamp: (number|Long); + + /** EventToken shard. */ + public shard: string; + + /** EventToken position. */ + public position: string; + + /** + * Creates a new EventToken instance using the specified properties. + * @param [properties] Properties to set + * @returns EventToken instance + */ + public static create(properties?: query.IEventToken): query.EventToken; + + /** + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @param message EventToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @param message EventToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.EventToken; + + /** + * Decodes an EventToken message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EventToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.EventToken; + + /** + * Verifies an EventToken message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EventToken + */ + public static fromObject(object: { [k: string]: any }): query.EventToken; + + /** + * Creates a plain object from an EventToken message. Also converts values to other types if specified. + * @param message EventToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.EventToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MySqlFlag enum. */ + enum MySqlFlag { + EMPTY = 0, + NOT_NULL_FLAG = 1, + PRI_KEY_FLAG = 2, + UNIQUE_KEY_FLAG = 4, + MULTIPLE_KEY_FLAG = 8, + BLOB_FLAG = 16, + UNSIGNED_FLAG = 32, + ZEROFILL_FLAG = 64, + BINARY_FLAG = 128, + ENUM_FLAG = 256, + AUTO_INCREMENT_FLAG = 512, + TIMESTAMP_FLAG = 1024, + SET_FLAG = 2048, + NO_DEFAULT_VALUE_FLAG = 4096, + ON_UPDATE_NOW_FLAG = 8192, + NUM_FLAG = 32768, + PART_KEY_FLAG = 16384, + GROUP_FLAG = 32768, + UNIQUE_FLAG = 65536, + BINCMP_FLAG = 131072 + } + + /** Flag enum. */ + enum Flag { + NONE = 0, + ISINTEGRAL = 256, + ISUNSIGNED = 512, + ISFLOAT = 1024, + ISQUOTED = 2048, + ISTEXT = 4096, + ISBINARY = 8192 + } + + /** Type enum. */ + enum Type { + NULL_TYPE = 0, + INT8 = 257, + UINT8 = 770, + INT16 = 259, + UINT16 = 772, + INT24 = 261, + UINT24 = 774, + INT32 = 263, + UINT32 = 776, + INT64 = 265, + UINT64 = 778, + FLOAT32 = 1035, + FLOAT64 = 1036, + TIMESTAMP = 2061, + DATE = 2062, + TIME = 2063, + DATETIME = 2064, + YEAR = 785, + DECIMAL = 18, + TEXT = 6163, + BLOB = 10260, + VARCHAR = 6165, + VARBINARY = 10262, + CHAR = 6167, + BINARY = 10264, + BIT = 2073, + ENUM = 2074, + SET = 2075, + TUPLE = 28, + GEOMETRY = 2077, + JSON = 2078, + EXPRESSION = 31, + HEXNUM = 4128, + HEXVAL = 4129, + BITNUM = 4130, + VECTOR = 2083, + RAW = 2084 + } + + /** Properties of a Value. */ + interface IValue { + + /** Value type */ + type?: (query.Type|null); + + /** Value value */ + value?: (Uint8Array|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: query.IValue); + + /** Value type. */ + public type: query.Type; + + /** Value value. */ + public value: Uint8Array; + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: query.IValue): query.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): query.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BindVariable. */ + interface IBindVariable { + + /** BindVariable type */ + type?: (query.Type|null); + + /** BindVariable value */ + value?: (Uint8Array|null); + + /** BindVariable values */ + values?: (query.IValue[]|null); + } + + /** Represents a BindVariable. */ + class BindVariable implements IBindVariable { + + /** + * Constructs a new BindVariable. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBindVariable); + + /** BindVariable type. */ + public type: query.Type; + + /** BindVariable value. */ + public value: Uint8Array; + + /** BindVariable values. */ + public values: query.IValue[]; + + /** + * Creates a new BindVariable instance using the specified properties. + * @param [properties] Properties to set + * @returns BindVariable instance + */ + public static create(properties?: query.IBindVariable): query.BindVariable; + + /** + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @param message BindVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @param message BindVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindVariable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BindVariable; + + /** + * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BindVariable; + + /** + * Verifies a BindVariable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BindVariable + */ + public static fromObject(object: { [k: string]: any }): query.BindVariable; + + /** + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * @param message BindVariable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BindVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BindVariable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BindVariable + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BoundQuery. */ + interface IBoundQuery { + + /** BoundQuery sql */ + sql?: (string|null); + + /** BoundQuery bind_variables */ + bind_variables?: ({ [k: string]: query.IBindVariable }|null); + } + + /** Represents a BoundQuery. */ + class BoundQuery implements IBoundQuery { + + /** + * Constructs a new BoundQuery. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBoundQuery); + + /** BoundQuery sql. */ + public sql: string; + + /** BoundQuery bind_variables. */ + public bind_variables: { [k: string]: query.IBindVariable }; + + /** + * Creates a new BoundQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns BoundQuery instance + */ + public static create(properties?: query.IBoundQuery): query.BoundQuery; + + /** + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @param message BoundQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @param message BoundQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoundQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoundQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BoundQuery; + + /** + * Decodes a BoundQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BoundQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BoundQuery; + + /** + * Verifies a BoundQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BoundQuery + */ + public static fromObject(object: { [k: string]: any }): query.BoundQuery; + + /** + * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. + * @param message BoundQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BoundQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BoundQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BoundQuery + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteOptions. */ + interface IExecuteOptions { + + /** ExecuteOptions included_fields */ + included_fields?: (query.ExecuteOptions.IncludedFields|null); + + /** ExecuteOptions client_found_rows */ + client_found_rows?: (boolean|null); + + /** ExecuteOptions workload */ + workload?: (query.ExecuteOptions.Workload|null); + + /** ExecuteOptions sql_select_limit */ + sql_select_limit?: (number|Long|null); + + /** ExecuteOptions transaction_isolation */ + transaction_isolation?: (query.ExecuteOptions.TransactionIsolation|null); + + /** ExecuteOptions skip_query_plan_cache */ + skip_query_plan_cache?: (boolean|null); + + /** ExecuteOptions planner_version */ + planner_version?: (query.ExecuteOptions.PlannerVersion|null); + + /** ExecuteOptions has_created_temp_tables */ + has_created_temp_tables?: (boolean|null); + + /** ExecuteOptions consolidator */ + consolidator?: (query.ExecuteOptions.Consolidator|null); + + /** ExecuteOptions transaction_access_mode */ + transaction_access_mode?: (query.ExecuteOptions.TransactionAccessMode[]|null); + + /** ExecuteOptions WorkloadName */ + WorkloadName?: (string|null); + + /** ExecuteOptions priority */ + priority?: (string|null); + + /** ExecuteOptions authoritative_timeout */ + authoritative_timeout?: (number|Long|null); + } + + /** Represents an ExecuteOptions. */ + class ExecuteOptions implements IExecuteOptions { + + /** + * Constructs a new ExecuteOptions. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteOptions); + + /** ExecuteOptions included_fields. */ + public included_fields: query.ExecuteOptions.IncludedFields; + + /** ExecuteOptions client_found_rows. */ + public client_found_rows: boolean; + + /** ExecuteOptions workload. */ + public workload: query.ExecuteOptions.Workload; + + /** ExecuteOptions sql_select_limit. */ + public sql_select_limit: (number|Long); + + /** ExecuteOptions transaction_isolation. */ + public transaction_isolation: query.ExecuteOptions.TransactionIsolation; + + /** ExecuteOptions skip_query_plan_cache. */ + public skip_query_plan_cache: boolean; + + /** ExecuteOptions planner_version. */ + public planner_version: query.ExecuteOptions.PlannerVersion; + + /** ExecuteOptions has_created_temp_tables. */ + public has_created_temp_tables: boolean; + + /** ExecuteOptions consolidator. */ + public consolidator: query.ExecuteOptions.Consolidator; + + /** ExecuteOptions transaction_access_mode. */ + public transaction_access_mode: query.ExecuteOptions.TransactionAccessMode[]; + + /** ExecuteOptions WorkloadName. */ + public WorkloadName: string; + + /** ExecuteOptions priority. */ + public priority: string; + + /** ExecuteOptions authoritative_timeout. */ + public authoritative_timeout?: (number|Long|null); + + /** ExecuteOptions timeout. */ + public timeout?: "authoritative_timeout"; + + /** + * Creates a new ExecuteOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteOptions instance + */ + public static create(properties?: query.IExecuteOptions): query.ExecuteOptions; + + /** + * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * @param message ExecuteOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * @param message ExecuteOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteOptions; + + /** + * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteOptions; + + /** + * Verifies an ExecuteOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteOptions + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteOptions; + + /** + * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. + * @param message ExecuteOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExecuteOptions { + + /** IncludedFields enum. */ + enum IncludedFields { + TYPE_AND_NAME = 0, + TYPE_ONLY = 1, + ALL = 2 + } + + /** Workload enum. */ + enum Workload { + UNSPECIFIED = 0, + OLTP = 1, + OLAP = 2, + DBA = 3 + } + + /** TransactionIsolation enum. */ + enum TransactionIsolation { + DEFAULT = 0, + REPEATABLE_READ = 1, + READ_COMMITTED = 2, + READ_UNCOMMITTED = 3, + SERIALIZABLE = 4, + CONSISTENT_SNAPSHOT_READ_ONLY = 5, + AUTOCOMMIT = 6 + } + + /** PlannerVersion enum. */ + enum PlannerVersion { + DEFAULT_PLANNER = 0, + V3 = 1, + Gen4 = 2, + Gen4Greedy = 3, + Gen4Left2Right = 4, + Gen4WithFallback = 5, + Gen4CompareV3 = 6, + V3Insert = 7 + } + + /** Consolidator enum. */ + enum Consolidator { + CONSOLIDATOR_UNSPECIFIED = 0, + CONSOLIDATOR_DISABLED = 1, + CONSOLIDATOR_ENABLED = 2, + CONSOLIDATOR_ENABLED_REPLICAS = 3 + } + + /** TransactionAccessMode enum. */ + enum TransactionAccessMode { + CONSISTENT_SNAPSHOT = 0, + READ_WRITE = 1, + READ_ONLY = 2 + } + } + + /** Properties of a Field. */ + interface IField { + + /** Field name */ + name?: (string|null); + + /** Field type */ + type?: (query.Type|null); + + /** Field table */ + table?: (string|null); + + /** Field org_table */ + org_table?: (string|null); + + /** Field database */ + database?: (string|null); + + /** Field org_name */ + org_name?: (string|null); + + /** Field column_length */ + column_length?: (number|null); + + /** Field charset */ + charset?: (number|null); + + /** Field decimals */ + decimals?: (number|null); + + /** Field flags */ + flags?: (number|null); + + /** Field column_type */ + column_type?: (string|null); + } + + /** Represents a Field. */ + class Field implements IField { + + /** + * Constructs a new Field. + * @param [properties] Properties to set + */ + constructor(properties?: query.IField); + + /** Field name. */ + public name: string; + + /** Field type. */ + public type: query.Type; + + /** Field table. */ + public table: string; + + /** Field org_table. */ + public org_table: string; + + /** Field database. */ + public database: string; + + /** Field org_name. */ + public org_name: string; + + /** Field column_length. */ + public column_length: number; + + /** Field charset. */ + public charset: number; + + /** Field decimals. */ + public decimals: number; + + /** Field flags. */ + public flags: number; + + /** Field column_type. */ + public column_type: string; + + /** + * Creates a new Field instance using the specified properties. + * @param [properties] Properties to set + * @returns Field instance + */ + public static create(properties?: query.IField): query.Field; + + /** + * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Field message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Field; + + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Field; + + /** + * Verifies a Field message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Field + */ + public static fromObject(object: { [k: string]: any }): query.Field; + + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @param message Field + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Field to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Field + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Row. */ + interface IRow { + + /** Row lengths */ + lengths?: ((number|Long)[]|null); + + /** Row values */ + values?: (Uint8Array|null); + } + + /** Represents a Row. */ + class Row implements IRow { + + /** + * Constructs a new Row. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRow); + + /** Row lengths. */ + public lengths: (number|Long)[]; + + /** Row values. */ + public values: Uint8Array; + + /** + * Creates a new Row instance using the specified properties. + * @param [properties] Properties to set + * @returns Row instance + */ + public static create(properties?: query.IRow): query.Row; + + /** + * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * @param message Row message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * @param message Row message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Row message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Row + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Row; + + /** + * Decodes a Row message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Row + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Row; + + /** + * Verifies a Row message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Row message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Row + */ + public static fromObject(object: { [k: string]: any }): query.Row; + + /** + * Creates a plain object from a Row message. Also converts values to other types if specified. + * @param message Row + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Row to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Row + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QueryResult. */ + interface IQueryResult { + + /** QueryResult fields */ + fields?: (query.IField[]|null); + + /** QueryResult rows_affected */ + rows_affected?: (number|Long|null); + + /** QueryResult insert_id */ + insert_id?: (number|Long|null); + + /** QueryResult rows */ + rows?: (query.IRow[]|null); + + /** QueryResult info */ + info?: (string|null); + + /** QueryResult session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { + + /** + * Constructs a new QueryResult. + * @param [properties] Properties to set + */ + constructor(properties?: query.IQueryResult); + + /** QueryResult fields. */ + public fields: query.IField[]; + + /** QueryResult rows_affected. */ + public rows_affected: (number|Long); + + /** QueryResult insert_id. */ + public insert_id: (number|Long); + + /** QueryResult rows. */ + public rows: query.IRow[]; + + /** QueryResult info. */ + public info: string; + + /** QueryResult session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new QueryResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryResult instance + */ + public static create(properties?: query.IQueryResult): query.QueryResult; + + /** + * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryResult; + + /** + * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryResult; + + /** + * Verifies a QueryResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryResult + */ + public static fromObject(object: { [k: string]: any }): query.QueryResult; + + /** + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QueryResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QueryWarning. */ + interface IQueryWarning { + + /** QueryWarning code */ + code?: (number|null); + + /** QueryWarning message */ + message?: (string|null); + } + + /** Represents a QueryWarning. */ + class QueryWarning implements IQueryWarning { + + /** + * Constructs a new QueryWarning. + * @param [properties] Properties to set + */ + constructor(properties?: query.IQueryWarning); + + /** QueryWarning code. */ + public code: number; + + /** QueryWarning message. */ + public message: string; + + /** + * Creates a new QueryWarning instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryWarning instance + */ + public static create(properties?: query.IQueryWarning): query.QueryWarning; + + /** + * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @param message QueryWarning message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @param message QueryWarning message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryWarning message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryWarning; + + /** + * Decodes a QueryWarning message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryWarning; + + /** + * Verifies a QueryWarning message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryWarning + */ + public static fromObject(object: { [k: string]: any }): query.QueryWarning; + + /** + * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. + * @param message QueryWarning + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.QueryWarning, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryWarning to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QueryWarning + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamEvent. */ + interface IStreamEvent { + + /** StreamEvent statements */ + statements?: (query.StreamEvent.IStatement[]|null); + + /** StreamEvent event_token */ + event_token?: (query.IEventToken|null); + } + + /** Represents a StreamEvent. */ + class StreamEvent implements IStreamEvent { + + /** + * Constructs a new StreamEvent. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamEvent); + + /** StreamEvent statements. */ + public statements: query.StreamEvent.IStatement[]; + + /** StreamEvent event_token. */ + public event_token?: (query.IEventToken|null); + + /** + * Creates a new StreamEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamEvent instance + */ + public static create(properties?: query.IStreamEvent): query.StreamEvent; + + /** + * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * @param message StreamEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * @param message StreamEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent; + + /** + * Decodes a StreamEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent; + + /** + * Verifies a StreamEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamEvent + */ + public static fromObject(object: { [k: string]: any }): query.StreamEvent; + + /** + * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. + * @param message StreamEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StreamEvent { + + /** Properties of a Statement. */ + interface IStatement { + + /** Statement category */ + category?: (query.StreamEvent.Statement.Category|null); + + /** Statement table_name */ + table_name?: (string|null); + + /** Statement primary_key_fields */ + primary_key_fields?: (query.IField[]|null); + + /** Statement primary_key_values */ + primary_key_values?: (query.IRow[]|null); + + /** Statement sql */ + sql?: (Uint8Array|null); + } + + /** Represents a Statement. */ + class Statement implements IStatement { + + /** + * Constructs a new Statement. + * @param [properties] Properties to set + */ + constructor(properties?: query.StreamEvent.IStatement); + + /** Statement category. */ + public category: query.StreamEvent.Statement.Category; + + /** Statement table_name. */ + public table_name: string; + + /** Statement primary_key_fields. */ + public primary_key_fields: query.IField[]; + + /** Statement primary_key_values. */ + public primary_key_values: query.IRow[]; + + /** Statement sql. */ + public sql: Uint8Array; + + /** + * Creates a new Statement instance using the specified properties. + * @param [properties] Properties to set + * @returns Statement instance + */ + public static create(properties?: query.StreamEvent.IStatement): query.StreamEvent.Statement; + + /** + * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @param message Statement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @param message Statement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Statement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent.Statement; + + /** + * Decodes a Statement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent.Statement; + + /** + * Verifies a Statement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Statement + */ + public static fromObject(object: { [k: string]: any }): query.StreamEvent.Statement; + + /** + * Creates a plain object from a Statement message. Also converts values to other types if specified. + * @param message Statement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamEvent.Statement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Statement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Statement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Statement { + + /** Category enum. */ + enum Category { + Error = 0, + DML = 1, + DDL = 2 + } + } + } + + /** Properties of an ExecuteRequest. */ + interface IExecuteRequest { + + /** ExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ExecuteRequest target */ + target?: (query.ITarget|null); + + /** ExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents an ExecuteRequest. */ + class ExecuteRequest implements IExecuteRequest { + + /** + * Constructs a new ExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteRequest); + + /** ExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new ExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteRequest instance + */ + public static create(properties?: query.IExecuteRequest): query.ExecuteRequest; + + /** + * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * @param message ExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * @param message ExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteRequest; + + /** + * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteRequest; + + /** + * Verifies an ExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteRequest; + + /** + * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. + * @param message ExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteResponse. */ + interface IExecuteResponse { + + /** ExecuteResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteResponse. */ + class ExecuteResponse implements IExecuteResponse { + + /** + * Constructs a new ExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteResponse); + + /** ExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteResponse instance + */ + public static create(properties?: query.IExecuteResponse): query.ExecuteResponse; + + /** + * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * @param message ExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * @param message ExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteResponse; + + /** + * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteResponse; + + /** + * Verifies an ExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteResponse; + + /** + * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. + * @param message ExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ResultWithError. */ + interface IResultWithError { + + /** ResultWithError error */ + error?: (vtrpc.IRPCError|null); + + /** ResultWithError result */ + result?: (query.IQueryResult|null); + } + + /** Represents a ResultWithError. */ + class ResultWithError implements IResultWithError { + + /** + * Constructs a new ResultWithError. + * @param [properties] Properties to set + */ + constructor(properties?: query.IResultWithError); + + /** ResultWithError error. */ + public error?: (vtrpc.IRPCError|null); + + /** ResultWithError result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ResultWithError instance using the specified properties. + * @param [properties] Properties to set + * @returns ResultWithError instance + */ + public static create(properties?: query.IResultWithError): query.ResultWithError; + + /** + * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * @param message ResultWithError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * @param message ResultWithError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResultWithError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResultWithError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ResultWithError; + + /** + * Decodes a ResultWithError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResultWithError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ResultWithError; + + /** + * Verifies a ResultWithError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResultWithError + */ + public static fromObject(object: { [k: string]: any }): query.ResultWithError; + + /** + * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. + * @param message ResultWithError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ResultWithError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResultWithError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResultWithError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamExecuteRequest. */ + interface IStreamExecuteRequest { + + /** StreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** StreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** StreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** StreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** StreamExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** StreamExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a StreamExecuteRequest. */ + class StreamExecuteRequest implements IStreamExecuteRequest { + + /** + * Constructs a new StreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamExecuteRequest); + + /** StreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** StreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** StreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** StreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** StreamExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** StreamExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new StreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamExecuteRequest instance + */ + public static create(properties?: query.IStreamExecuteRequest): query.StreamExecuteRequest; + + /** + * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * @param message StreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * @param message StreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteRequest; + + /** + * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteRequest; + + /** + * Verifies a StreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.StreamExecuteRequest; + + /** + * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. + * @param message StreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamExecuteResponse. */ + interface IStreamExecuteResponse { + + /** StreamExecuteResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a StreamExecuteResponse. */ + class StreamExecuteResponse implements IStreamExecuteResponse { + + /** + * Constructs a new StreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamExecuteResponse); + + /** StreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new StreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamExecuteResponse instance + */ + public static create(properties?: query.IStreamExecuteResponse): query.StreamExecuteResponse; + + /** + * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * @param message StreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * @param message StreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteResponse; + + /** + * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteResponse; + + /** + * Verifies a StreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.StreamExecuteResponse; + + /** + * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. + * @param message StreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginRequest. */ + interface IBeginRequest { + + /** BeginRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginRequest target */ + target?: (query.ITarget|null); + + /** BeginRequest options */ + options?: (query.IExecuteOptions|null); + } + + /** Represents a BeginRequest. */ + class BeginRequest implements IBeginRequest { + + /** + * Constructs a new BeginRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginRequest); + + /** BeginRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginRequest target. */ + public target?: (query.ITarget|null); + + /** BeginRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** + * Creates a new BeginRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginRequest instance + */ + public static create(properties?: query.IBeginRequest): query.BeginRequest; + + /** + * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * @param message BeginRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * @param message BeginRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginRequest; + + /** + * Decodes a BeginRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginRequest; + + /** + * Verifies a BeginRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginRequest; + + /** + * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. + * @param message BeginRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginResponse. */ + interface IBeginResponse { + + /** BeginResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginResponse. */ + class BeginResponse implements IBeginResponse { + + /** + * Constructs a new BeginResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginResponse); + + /** BeginResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginResponse instance + */ + public static create(properties?: query.IBeginResponse): query.BeginResponse; + + /** + * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * @param message BeginResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * @param message BeginResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginResponse; + + /** + * Decodes a BeginResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginResponse; + + /** + * Verifies a BeginResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginResponse; + + /** + * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. + * @param message BeginResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitRequest. */ + interface ICommitRequest { + + /** CommitRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitRequest target */ + target?: (query.ITarget|null); + + /** CommitRequest transaction_id */ + transaction_id?: (number|Long|null); + } + + /** Represents a CommitRequest. */ + class CommitRequest implements ICommitRequest { + + /** + * Constructs a new CommitRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitRequest); + + /** CommitRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitRequest target. */ + public target?: (query.ITarget|null); + + /** CommitRequest transaction_id. */ + public transaction_id: (number|Long); + + /** + * Creates a new CommitRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitRequest instance + */ + public static create(properties?: query.ICommitRequest): query.CommitRequest; + + /** + * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * @param message CommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * @param message CommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitRequest; + + /** + * Decodes a CommitRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitRequest; + + /** + * Verifies a CommitRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitRequest + */ + public static fromObject(object: { [k: string]: any }): query.CommitRequest; + + /** + * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. + * @param message CommitRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitResponse. */ + interface ICommitResponse { + + /** CommitResponse reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a CommitResponse. */ + class CommitResponse implements ICommitResponse { + + /** + * Constructs a new CommitResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitResponse); + + /** CommitResponse reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new CommitResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitResponse instance + */ + public static create(properties?: query.ICommitResponse): query.CommitResponse; + + /** + * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * @param message CommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * @param message CommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitResponse; + + /** + * Decodes a CommitResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitResponse; + + /** + * Verifies a CommitResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitResponse + */ + public static fromObject(object: { [k: string]: any }): query.CommitResponse; + + /** + * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. + * @param message CommitResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackRequest. */ + interface IRollbackRequest { + + /** RollbackRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackRequest target */ + target?: (query.ITarget|null); + + /** RollbackRequest transaction_id */ + transaction_id?: (number|Long|null); + } + + /** Represents a RollbackRequest. */ + class RollbackRequest implements IRollbackRequest { + + /** + * Constructs a new RollbackRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackRequest); + + /** RollbackRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackRequest target. */ + public target?: (query.ITarget|null); + + /** RollbackRequest transaction_id. */ + public transaction_id: (number|Long); + + /** + * Creates a new RollbackRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackRequest instance + */ + public static create(properties?: query.IRollbackRequest): query.RollbackRequest; + + /** + * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * @param message RollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * @param message RollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackRequest; + + /** + * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackRequest; + + /** + * Verifies a RollbackRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackRequest + */ + public static fromObject(object: { [k: string]: any }): query.RollbackRequest; + + /** + * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. + * @param message RollbackRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackResponse. */ + interface IRollbackResponse { + + /** RollbackResponse reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a RollbackResponse. */ + class RollbackResponse implements IRollbackResponse { + + /** + * Constructs a new RollbackResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackResponse); + + /** RollbackResponse reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new RollbackResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackResponse instance + */ + public static create(properties?: query.IRollbackResponse): query.RollbackResponse; + + /** + * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * @param message RollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * @param message RollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackResponse; + + /** + * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackResponse; + + /** + * Verifies a RollbackResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackResponse + */ + public static fromObject(object: { [k: string]: any }): query.RollbackResponse; + + /** + * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. + * @param message RollbackResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrepareRequest. */ + interface IPrepareRequest { + + /** PrepareRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** PrepareRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** PrepareRequest target */ + target?: (query.ITarget|null); + + /** PrepareRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** PrepareRequest dtid */ + dtid?: (string|null); + } + + /** Represents a PrepareRequest. */ + class PrepareRequest implements IPrepareRequest { + + /** + * Constructs a new PrepareRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IPrepareRequest); + + /** PrepareRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** PrepareRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** PrepareRequest target. */ + public target?: (query.ITarget|null); + + /** PrepareRequest transaction_id. */ + public transaction_id: (number|Long); + + /** PrepareRequest dtid. */ + public dtid: string; + + /** + * Creates a new PrepareRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PrepareRequest instance + */ + public static create(properties?: query.IPrepareRequest): query.PrepareRequest; + + /** + * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * @param message PrepareRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * @param message PrepareRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrepareRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrepareRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareRequest; + + /** + * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrepareRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareRequest; + + /** + * Verifies a PrepareRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrepareRequest + */ + public static fromObject(object: { [k: string]: any }): query.PrepareRequest; + + /** + * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. + * @param message PrepareRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.PrepareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrepareRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrepareRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrepareResponse. */ + interface IPrepareResponse { + } + + /** Represents a PrepareResponse. */ + class PrepareResponse implements IPrepareResponse { + + /** + * Constructs a new PrepareResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IPrepareResponse); + + /** + * Creates a new PrepareResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PrepareResponse instance + */ + public static create(properties?: query.IPrepareResponse): query.PrepareResponse; + + /** + * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * @param message PrepareResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * @param message PrepareResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrepareResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrepareResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareResponse; + + /** + * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrepareResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareResponse; + + /** + * Verifies a PrepareResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrepareResponse + */ + public static fromObject(object: { [k: string]: any }): query.PrepareResponse; + + /** + * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. + * @param message PrepareResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.PrepareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrepareResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrepareResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitPreparedRequest. */ + interface ICommitPreparedRequest { + + /** CommitPreparedRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitPreparedRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitPreparedRequest target */ + target?: (query.ITarget|null); + + /** CommitPreparedRequest dtid */ + dtid?: (string|null); + } + + /** Represents a CommitPreparedRequest. */ + class CommitPreparedRequest implements ICommitPreparedRequest { + + /** + * Constructs a new CommitPreparedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitPreparedRequest); + + /** CommitPreparedRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitPreparedRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitPreparedRequest target. */ + public target?: (query.ITarget|null); + + /** CommitPreparedRequest dtid. */ + public dtid: string; + + /** + * Creates a new CommitPreparedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitPreparedRequest instance + */ + public static create(properties?: query.ICommitPreparedRequest): query.CommitPreparedRequest; + + /** + * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * @param message CommitPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * @param message CommitPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitPreparedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedRequest; + + /** + * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedRequest; + + /** + * Verifies a CommitPreparedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitPreparedRequest + */ + public static fromObject(object: { [k: string]: any }): query.CommitPreparedRequest; + + /** + * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. + * @param message CommitPreparedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitPreparedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitPreparedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitPreparedResponse. */ + interface ICommitPreparedResponse { + } + + /** Represents a CommitPreparedResponse. */ + class CommitPreparedResponse implements ICommitPreparedResponse { + + /** + * Constructs a new CommitPreparedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitPreparedResponse); + + /** + * Creates a new CommitPreparedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitPreparedResponse instance + */ + public static create(properties?: query.ICommitPreparedResponse): query.CommitPreparedResponse; + + /** + * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * @param message CommitPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * @param message CommitPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitPreparedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedResponse; + + /** + * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedResponse; + + /** + * Verifies a CommitPreparedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitPreparedResponse + */ + public static fromObject(object: { [k: string]: any }): query.CommitPreparedResponse; + + /** + * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. + * @param message CommitPreparedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitPreparedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitPreparedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackPreparedRequest. */ + interface IRollbackPreparedRequest { + + /** RollbackPreparedRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackPreparedRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackPreparedRequest target */ + target?: (query.ITarget|null); + + /** RollbackPreparedRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** RollbackPreparedRequest dtid */ + dtid?: (string|null); + } + + /** Represents a RollbackPreparedRequest. */ + class RollbackPreparedRequest implements IRollbackPreparedRequest { + + /** + * Constructs a new RollbackPreparedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackPreparedRequest); + + /** RollbackPreparedRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackPreparedRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackPreparedRequest target. */ + public target?: (query.ITarget|null); + + /** RollbackPreparedRequest transaction_id. */ + public transaction_id: (number|Long); + + /** RollbackPreparedRequest dtid. */ + public dtid: string; + + /** + * Creates a new RollbackPreparedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackPreparedRequest instance + */ + public static create(properties?: query.IRollbackPreparedRequest): query.RollbackPreparedRequest; + + /** + * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * @param message RollbackPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * @param message RollbackPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackPreparedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedRequest; + + /** + * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedRequest; + + /** + * Verifies a RollbackPreparedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackPreparedRequest + */ + public static fromObject(object: { [k: string]: any }): query.RollbackPreparedRequest; + + /** + * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. + * @param message RollbackPreparedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackPreparedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackPreparedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackPreparedResponse. */ + interface IRollbackPreparedResponse { + } + + /** Represents a RollbackPreparedResponse. */ + class RollbackPreparedResponse implements IRollbackPreparedResponse { + + /** + * Constructs a new RollbackPreparedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackPreparedResponse); + + /** + * Creates a new RollbackPreparedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackPreparedResponse instance + */ + public static create(properties?: query.IRollbackPreparedResponse): query.RollbackPreparedResponse; + + /** + * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * @param message RollbackPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * @param message RollbackPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackPreparedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedResponse; + + /** + * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedResponse; + + /** + * Verifies a RollbackPreparedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackPreparedResponse + */ + public static fromObject(object: { [k: string]: any }): query.RollbackPreparedResponse; + + /** + * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. + * @param message RollbackPreparedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackPreparedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackPreparedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTransactionRequest. */ + interface ICreateTransactionRequest { + + /** CreateTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CreateTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CreateTransactionRequest target */ + target?: (query.ITarget|null); + + /** CreateTransactionRequest dtid */ + dtid?: (string|null); + + /** CreateTransactionRequest participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a CreateTransactionRequest. */ + class CreateTransactionRequest implements ICreateTransactionRequest { + + /** + * Constructs a new CreateTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICreateTransactionRequest); + + /** CreateTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CreateTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CreateTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** CreateTransactionRequest dtid. */ + public dtid: string; + + /** CreateTransactionRequest participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new CreateTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTransactionRequest instance + */ + public static create(properties?: query.ICreateTransactionRequest): query.CreateTransactionRequest; + + /** + * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * @param message CreateTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * @param message CreateTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionRequest; + + /** + * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionRequest; + + /** + * Verifies a CreateTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.CreateTransactionRequest; + + /** + * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. + * @param message CreateTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CreateTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTransactionResponse. */ + interface ICreateTransactionResponse { + } + + /** Represents a CreateTransactionResponse. */ + class CreateTransactionResponse implements ICreateTransactionResponse { + + /** + * Constructs a new CreateTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICreateTransactionResponse); + + /** + * Creates a new CreateTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTransactionResponse instance + */ + public static create(properties?: query.ICreateTransactionResponse): query.CreateTransactionResponse; + + /** + * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * @param message CreateTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * @param message CreateTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionResponse; + + /** + * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionResponse; + + /** + * Verifies a CreateTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.CreateTransactionResponse; + + /** + * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. + * @param message CreateTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CreateTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartCommitRequest. */ + interface IStartCommitRequest { + + /** StartCommitRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** StartCommitRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StartCommitRequest target */ + target?: (query.ITarget|null); + + /** StartCommitRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** StartCommitRequest dtid */ + dtid?: (string|null); + } + + /** Represents a StartCommitRequest. */ + class StartCommitRequest implements IStartCommitRequest { + + /** + * Constructs a new StartCommitRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStartCommitRequest); + + /** StartCommitRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** StartCommitRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StartCommitRequest target. */ + public target?: (query.ITarget|null); + + /** StartCommitRequest transaction_id. */ + public transaction_id: (number|Long); + + /** StartCommitRequest dtid. */ + public dtid: string; + + /** + * Creates a new StartCommitRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartCommitRequest instance + */ + public static create(properties?: query.IStartCommitRequest): query.StartCommitRequest; + + /** + * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * @param message StartCommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * @param message StartCommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartCommitRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartCommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitRequest; + + /** + * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartCommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitRequest; + + /** + * Verifies a StartCommitRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartCommitRequest + */ + public static fromObject(object: { [k: string]: any }): query.StartCommitRequest; + + /** + * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. + * @param message StartCommitRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StartCommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartCommitRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartCommitRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartCommitResponse. */ + interface IStartCommitResponse { + } + + /** Represents a StartCommitResponse. */ + class StartCommitResponse implements IStartCommitResponse { + + /** + * Constructs a new StartCommitResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStartCommitResponse); + + /** + * Creates a new StartCommitResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StartCommitResponse instance + */ + public static create(properties?: query.IStartCommitResponse): query.StartCommitResponse; + + /** + * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * @param message StartCommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * @param message StartCommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartCommitResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartCommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitResponse; + + /** + * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartCommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitResponse; + + /** + * Verifies a StartCommitResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartCommitResponse + */ + public static fromObject(object: { [k: string]: any }): query.StartCommitResponse; + + /** + * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. + * @param message StartCommitResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StartCommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartCommitResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartCommitResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetRollbackRequest. */ + interface ISetRollbackRequest { + + /** SetRollbackRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** SetRollbackRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** SetRollbackRequest target */ + target?: (query.ITarget|null); + + /** SetRollbackRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** SetRollbackRequest dtid */ + dtid?: (string|null); + } + + /** Represents a SetRollbackRequest. */ + class SetRollbackRequest implements ISetRollbackRequest { + + /** + * Constructs a new SetRollbackRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ISetRollbackRequest); + + /** SetRollbackRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** SetRollbackRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** SetRollbackRequest target. */ + public target?: (query.ITarget|null); + + /** SetRollbackRequest transaction_id. */ + public transaction_id: (number|Long); + + /** SetRollbackRequest dtid. */ + public dtid: string; + + /** + * Creates a new SetRollbackRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetRollbackRequest instance + */ + public static create(properties?: query.ISetRollbackRequest): query.SetRollbackRequest; + + /** + * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * @param message SetRollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * @param message SetRollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetRollbackRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetRollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackRequest; + + /** + * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetRollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackRequest; + + /** + * Verifies a SetRollbackRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetRollbackRequest + */ + public static fromObject(object: { [k: string]: any }): query.SetRollbackRequest; + + /** + * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. + * @param message SetRollbackRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.SetRollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetRollbackRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetRollbackRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetRollbackResponse. */ + interface ISetRollbackResponse { + } + + /** Represents a SetRollbackResponse. */ + class SetRollbackResponse implements ISetRollbackResponse { + + /** + * Constructs a new SetRollbackResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ISetRollbackResponse); + + /** + * Creates a new SetRollbackResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetRollbackResponse instance + */ + public static create(properties?: query.ISetRollbackResponse): query.SetRollbackResponse; + + /** + * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @param message SetRollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @param message SetRollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackResponse; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackResponse; + + /** + * Verifies a SetRollbackResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetRollbackResponse + */ + public static fromObject(object: { [k: string]: any }): query.SetRollbackResponse; + + /** + * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. + * @param message SetRollbackResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.SetRollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetRollbackResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetRollbackResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { + + /** ConcludeTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ConcludeTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ConcludeTransactionRequest target */ + target?: (query.ITarget|null); + + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); + } + + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { + + /** + * Constructs a new ConcludeTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IConcludeTransactionRequest); + + /** ConcludeTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ConcludeTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ConcludeTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** ConcludeTransactionRequest dtid. */ + public dtid: string; + + /** + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionRequest instance + */ + public static create(properties?: query.IConcludeTransactionRequest): query.ConcludeTransactionRequest; + + /** + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionRequest; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionRequest; + + /** + * Verifies a ConcludeTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionRequest; + + /** + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * @param message ConcludeTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { + } + + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { + + /** + * Constructs a new ConcludeTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IConcludeTransactionResponse); + + /** + * Creates a new ConcludeTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionResponse instance + */ + public static create(properties?: query.IConcludeTransactionResponse): query.ConcludeTransactionResponse; + + /** + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionResponse; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionResponse; + + /** + * Verifies a ConcludeTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionResponse; + + /** + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * @param message ConcludeTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTransactionRequest. */ + interface IReadTransactionRequest { + + /** ReadTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReadTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReadTransactionRequest target */ + target?: (query.ITarget|null); + + /** ReadTransactionRequest dtid */ + dtid?: (string|null); + } + + /** Represents a ReadTransactionRequest. */ + class ReadTransactionRequest implements IReadTransactionRequest { + + /** + * Constructs a new ReadTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReadTransactionRequest); + + /** ReadTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReadTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReadTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** ReadTransactionRequest dtid. */ + public dtid: string; + + /** + * Creates a new ReadTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTransactionRequest instance + */ + public static create(properties?: query.IReadTransactionRequest): query.ReadTransactionRequest; + + /** + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * @param message ReadTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * @param message ReadTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionRequest; + + /** + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionRequest; + + /** + * Verifies a ReadTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReadTransactionRequest; + + /** + * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. + * @param message ReadTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTransactionResponse. */ + interface IReadTransactionResponse { + + /** ReadTransactionResponse metadata */ + metadata?: (query.ITransactionMetadata|null); + } + + /** Represents a ReadTransactionResponse. */ + class ReadTransactionResponse implements IReadTransactionResponse { + + /** + * Constructs a new ReadTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReadTransactionResponse); + + /** ReadTransactionResponse metadata. */ + public metadata?: (query.ITransactionMetadata|null); + + /** + * Creates a new ReadTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTransactionResponse instance + */ + public static create(properties?: query.IReadTransactionResponse): query.ReadTransactionResponse; + + /** + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * @param message ReadTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * @param message ReadTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionResponse; + + /** + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionResponse; + + /** + * Verifies a ReadTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReadTransactionResponse; + + /** + * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. + * @param message ReadTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UnresolvedTransactionsRequest. */ + interface IUnresolvedTransactionsRequest { + + /** UnresolvedTransactionsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** UnresolvedTransactionsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** UnresolvedTransactionsRequest target */ + target?: (query.ITarget|null); + + /** UnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); + } + + /** Represents an UnresolvedTransactionsRequest. */ + class UnresolvedTransactionsRequest implements IUnresolvedTransactionsRequest { + + /** + * Constructs a new UnresolvedTransactionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUnresolvedTransactionsRequest); + + /** UnresolvedTransactionsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** UnresolvedTransactionsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** UnresolvedTransactionsRequest target. */ + public target?: (query.ITarget|null); + + /** UnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); + + /** + * Creates a new UnresolvedTransactionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UnresolvedTransactionsRequest instance + */ + public static create(properties?: query.IUnresolvedTransactionsRequest): query.UnresolvedTransactionsRequest; + + /** + * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * @param message UnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * @param message UnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsRequest; + + /** + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsRequest; + + /** + * Verifies an UnresolvedTransactionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnresolvedTransactionsRequest + */ + public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsRequest; + + /** + * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified. + * @param message UnresolvedTransactionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnresolvedTransactionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnresolvedTransactionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UnresolvedTransactionsResponse. */ + interface IUnresolvedTransactionsResponse { + + /** UnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); + } + + /** Represents an UnresolvedTransactionsResponse. */ + class UnresolvedTransactionsResponse implements IUnresolvedTransactionsResponse { + + /** + * Constructs a new UnresolvedTransactionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUnresolvedTransactionsResponse); + + /** UnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; + + /** + * Creates a new UnresolvedTransactionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UnresolvedTransactionsResponse instance + */ + public static create(properties?: query.IUnresolvedTransactionsResponse): query.UnresolvedTransactionsResponse; + + /** + * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * @param message UnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * @param message UnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsResponse; + + /** + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsResponse; + + /** + * Verifies an UnresolvedTransactionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnresolvedTransactionsResponse + */ + public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsResponse; + + /** + * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified. + * @param message UnresolvedTransactionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnresolvedTransactionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnresolvedTransactionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginExecuteRequest. */ + interface IBeginExecuteRequest { + + /** BeginExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginExecuteRequest target */ + target?: (query.ITarget|null); + + /** BeginExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** BeginExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** BeginExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + + /** BeginExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a BeginExecuteRequest. */ + class BeginExecuteRequest implements IBeginExecuteRequest { + + /** + * Constructs a new BeginExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginExecuteRequest); + + /** BeginExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** BeginExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** BeginExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** BeginExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** BeginExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new BeginExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginExecuteRequest instance + */ + public static create(properties?: query.IBeginExecuteRequest): query.BeginExecuteRequest; + + /** + * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * @param message BeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * @param message BeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteRequest; + + /** + * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteRequest; + + /** + * Verifies a BeginExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginExecuteRequest; + + /** + * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. + * @param message BeginExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginExecuteResponse. */ + interface IBeginExecuteResponse { + + /** BeginExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** BeginExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** BeginExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginExecuteResponse. */ + class BeginExecuteResponse implements IBeginExecuteResponse { + + /** + * Constructs a new BeginExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginExecuteResponse); + + /** BeginExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** BeginExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** BeginExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginExecuteResponse instance + */ + public static create(properties?: query.IBeginExecuteResponse): query.BeginExecuteResponse; + + /** + * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * @param message BeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * @param message BeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteResponse; + + /** + * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteResponse; + + /** + * Verifies a BeginExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginExecuteResponse; + + /** + * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. + * @param message BeginExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginStreamExecuteRequest. */ + interface IBeginStreamExecuteRequest { + + /** BeginStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** BeginStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** BeginStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** BeginStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** BeginStreamExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a BeginStreamExecuteRequest. */ + class BeginStreamExecuteRequest implements IBeginStreamExecuteRequest { + + /** + * Constructs a new BeginStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginStreamExecuteRequest); + + /** BeginStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** BeginStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** BeginStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** BeginStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** BeginStreamExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new BeginStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginStreamExecuteRequest instance + */ + public static create(properties?: query.IBeginStreamExecuteRequest): query.BeginStreamExecuteRequest; + + /** + * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * @param message BeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * @param message BeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteRequest; + + /** + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteRequest; + + /** + * Verifies a BeginStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteRequest; + + /** + * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. + * @param message BeginStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginStreamExecuteResponse. */ + interface IBeginStreamExecuteResponse { + + /** BeginStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** BeginStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** BeginStreamExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginStreamExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginStreamExecuteResponse. */ + class BeginStreamExecuteResponse implements IBeginStreamExecuteResponse { + + /** + * Constructs a new BeginStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginStreamExecuteResponse); + + /** BeginStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** BeginStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** BeginStreamExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginStreamExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginStreamExecuteResponse instance + */ + public static create(properties?: query.IBeginStreamExecuteResponse): query.BeginStreamExecuteResponse; + + /** + * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * @param message BeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * @param message BeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteResponse; + + /** + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteResponse; + + /** + * Verifies a BeginStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteResponse; + + /** + * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. + * @param message BeginStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageStreamRequest. */ + interface IMessageStreamRequest { + + /** MessageStreamRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageStreamRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageStreamRequest target */ + target?: (query.ITarget|null); + + /** MessageStreamRequest name */ + name?: (string|null); + } + + /** Represents a MessageStreamRequest. */ + class MessageStreamRequest implements IMessageStreamRequest { + + /** + * Constructs a new MessageStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageStreamRequest); + + /** MessageStreamRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageStreamRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageStreamRequest target. */ + public target?: (query.ITarget|null); + + /** MessageStreamRequest name. */ + public name: string; + + /** + * Creates a new MessageStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageStreamRequest instance + */ + public static create(properties?: query.IMessageStreamRequest): query.MessageStreamRequest; + + /** + * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * @param message MessageStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * @param message MessageStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamRequest; + + /** + * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamRequest; + + /** + * Verifies a MessageStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageStreamRequest + */ + public static fromObject(object: { [k: string]: any }): query.MessageStreamRequest; + + /** + * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. + * @param message MessageStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageStreamResponse. */ + interface IMessageStreamResponse { + + /** MessageStreamResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a MessageStreamResponse. */ + class MessageStreamResponse implements IMessageStreamResponse { + + /** + * Constructs a new MessageStreamResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageStreamResponse); + + /** MessageStreamResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new MessageStreamResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageStreamResponse instance + */ + public static create(properties?: query.IMessageStreamResponse): query.MessageStreamResponse; + + /** + * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * @param message MessageStreamResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * @param message MessageStreamResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageStreamResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamResponse; + + /** + * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamResponse; + + /** + * Verifies a MessageStreamResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageStreamResponse + */ + public static fromObject(object: { [k: string]: any }): query.MessageStreamResponse; + + /** + * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. + * @param message MessageStreamResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageStreamResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageStreamResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageAckRequest. */ + interface IMessageAckRequest { + + /** MessageAckRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageAckRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageAckRequest target */ + target?: (query.ITarget|null); + + /** MessageAckRequest name */ + name?: (string|null); + + /** MessageAckRequest ids */ + ids?: (query.IValue[]|null); + } + + /** Represents a MessageAckRequest. */ + class MessageAckRequest implements IMessageAckRequest { + + /** + * Constructs a new MessageAckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageAckRequest); + + /** MessageAckRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageAckRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageAckRequest target. */ + public target?: (query.ITarget|null); + + /** MessageAckRequest name. */ + public name: string; + + /** MessageAckRequest ids. */ + public ids: query.IValue[]; + + /** + * Creates a new MessageAckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageAckRequest instance + */ + public static create(properties?: query.IMessageAckRequest): query.MessageAckRequest; + + /** + * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * @param message MessageAckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * @param message MessageAckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageAckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageAckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckRequest; + + /** + * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageAckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckRequest; + + /** + * Verifies a MessageAckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageAckRequest + */ + public static fromObject(object: { [k: string]: any }): query.MessageAckRequest; + + /** + * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. + * @param message MessageAckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageAckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageAckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageAckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageAckResponse. */ + interface IMessageAckResponse { + + /** MessageAckResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a MessageAckResponse. */ + class MessageAckResponse implements IMessageAckResponse { + + /** + * Constructs a new MessageAckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageAckResponse); + + /** MessageAckResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new MessageAckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageAckResponse instance + */ + public static create(properties?: query.IMessageAckResponse): query.MessageAckResponse; + + /** + * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * @param message MessageAckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * @param message MessageAckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageAckResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckResponse; + + /** + * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckResponse; + + /** + * Verifies a MessageAckResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageAckResponse + */ + public static fromObject(object: { [k: string]: any }): query.MessageAckResponse; + + /** + * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. + * @param message MessageAckResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageAckResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageAckResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveExecuteRequest. */ + interface IReserveExecuteRequest { + + /** ReserveExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a ReserveExecuteRequest. */ + class ReserveExecuteRequest implements IReserveExecuteRequest { + + /** + * Constructs a new ReserveExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveExecuteRequest); + + /** ReserveExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new ReserveExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveExecuteRequest instance + */ + public static create(properties?: query.IReserveExecuteRequest): query.ReserveExecuteRequest; + + /** + * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * @param message ReserveExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * @param message ReserveExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteRequest; + + /** + * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteRequest; + + /** + * Verifies a ReserveExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveExecuteRequest; + + /** + * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveExecuteResponse. */ + interface IReserveExecuteResponse { + + /** ReserveExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReserveExecuteResponse. */ + class ReserveExecuteResponse implements IReserveExecuteResponse { + + /** + * Constructs a new ReserveExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveExecuteResponse); + + /** ReserveExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReserveExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveExecuteResponse instance + */ + public static create(properties?: query.IReserveExecuteResponse): query.ReserveExecuteResponse; + + /** + * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * @param message ReserveExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * @param message ReserveExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteResponse; + + /** + * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteResponse; + + /** + * Verifies a ReserveExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveExecuteResponse; + + /** + * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveStreamExecuteRequest. */ + interface IReserveStreamExecuteRequest { + + /** ReserveStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveStreamExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a ReserveStreamExecuteRequest. */ + class ReserveStreamExecuteRequest implements IReserveStreamExecuteRequest { + + /** + * Constructs a new ReserveStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveStreamExecuteRequest); + + /** ReserveStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveStreamExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new ReserveStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveStreamExecuteRequest instance + */ + public static create(properties?: query.IReserveStreamExecuteRequest): query.ReserveStreamExecuteRequest; + + /** + * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * @param message ReserveStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * @param message ReserveStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteRequest; + + /** + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteRequest; + + /** + * Verifies a ReserveStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteRequest; + + /** + * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveStreamExecuteResponse. */ + interface IReserveStreamExecuteResponse { + + /** ReserveStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveStreamExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReserveStreamExecuteResponse. */ + class ReserveStreamExecuteResponse implements IReserveStreamExecuteResponse { + + /** + * Constructs a new ReserveStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveStreamExecuteResponse); + + /** ReserveStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveStreamExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveStreamExecuteResponse instance + */ + public static create(properties?: query.IReserveStreamExecuteResponse): query.ReserveStreamExecuteResponse; + + /** + * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @param message ReserveStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @param message ReserveStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteResponse; + + /** + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteResponse; + + /** + * Verifies a ReserveStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteResponse; + + /** + * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginExecuteRequest. */ + interface IReserveBeginExecuteRequest { + + /** ReserveBeginExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveBeginExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveBeginExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveBeginExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** ReserveBeginExecuteRequest post_begin_queries */ + post_begin_queries?: (string[]|null); + } + + /** Represents a ReserveBeginExecuteRequest. */ + class ReserveBeginExecuteRequest implements IReserveBeginExecuteRequest { + + /** + * Constructs a new ReserveBeginExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginExecuteRequest); + + /** ReserveBeginExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveBeginExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveBeginExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveBeginExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** ReserveBeginExecuteRequest post_begin_queries. */ + public post_begin_queries: string[]; + + /** + * Creates a new ReserveBeginExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginExecuteRequest instance + */ + public static create(properties?: query.IReserveBeginExecuteRequest): query.ReserveBeginExecuteRequest; + + /** + * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * @param message ReserveBeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * @param message ReserveBeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteRequest; + + /** + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteRequest; + + /** + * Verifies a ReserveBeginExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteRequest; + + /** + * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveBeginExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginExecuteResponse. */ + interface IReserveBeginExecuteResponse { + + /** ReserveBeginExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveBeginExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveBeginExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveBeginExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveBeginExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a ReserveBeginExecuteResponse. */ + class ReserveBeginExecuteResponse implements IReserveBeginExecuteResponse { + + /** + * Constructs a new ReserveBeginExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginExecuteResponse); + + /** ReserveBeginExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveBeginExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveBeginExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveBeginExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveBeginExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new ReserveBeginExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginExecuteResponse instance + */ + public static create(properties?: query.IReserveBeginExecuteResponse): query.ReserveBeginExecuteResponse; + + /** + * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * @param message ReserveBeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * @param message ReserveBeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteResponse; + + /** + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteResponse; + + /** + * Verifies a ReserveBeginExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteResponse; + + /** + * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveBeginExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginStreamExecuteRequest. */ + interface IReserveBeginStreamExecuteRequest { + + /** ReserveBeginStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveBeginStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveBeginStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveBeginStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** ReserveBeginStreamExecuteRequest post_begin_queries */ + post_begin_queries?: (string[]|null); + } + + /** Represents a ReserveBeginStreamExecuteRequest. */ + class ReserveBeginStreamExecuteRequest implements IReserveBeginStreamExecuteRequest { + + /** + * Constructs a new ReserveBeginStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginStreamExecuteRequest); + + /** ReserveBeginStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveBeginStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveBeginStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveBeginStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** ReserveBeginStreamExecuteRequest post_begin_queries. */ + public post_begin_queries: string[]; + + /** + * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginStreamExecuteRequest instance + */ + public static create(properties?: query.IReserveBeginStreamExecuteRequest): query.ReserveBeginStreamExecuteRequest; + + /** + * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * @param message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * @param message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteRequest; + + /** + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteRequest; + + /** + * Verifies a ReserveBeginStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteRequest; + + /** + * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveBeginStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginStreamExecuteResponse. */ + interface IReserveBeginStreamExecuteResponse { + + /** ReserveBeginStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveBeginStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveBeginStreamExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveBeginStreamExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveBeginStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginStreamExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a ReserveBeginStreamExecuteResponse. */ + class ReserveBeginStreamExecuteResponse implements IReserveBeginStreamExecuteResponse { + + /** + * Constructs a new ReserveBeginStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginStreamExecuteResponse); + + /** ReserveBeginStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveBeginStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveBeginStreamExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveBeginStreamExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveBeginStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginStreamExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginStreamExecuteResponse instance + */ + public static create(properties?: query.IReserveBeginStreamExecuteResponse): query.ReserveBeginStreamExecuteResponse; + + /** + * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * @param message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * @param message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteResponse; + + /** + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteResponse; + + /** + * Verifies a ReserveBeginStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteResponse; + + /** + * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveBeginStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReleaseRequest. */ + interface IReleaseRequest { + + /** ReleaseRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReleaseRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReleaseRequest target */ + target?: (query.ITarget|null); + + /** ReleaseRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReleaseRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a ReleaseRequest. */ + class ReleaseRequest implements IReleaseRequest { + + /** + * Constructs a new ReleaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReleaseRequest); + + /** ReleaseRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReleaseRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReleaseRequest target. */ + public target?: (query.ITarget|null); + + /** ReleaseRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReleaseRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new ReleaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseRequest instance + */ + public static create(properties?: query.IReleaseRequest): query.ReleaseRequest; + + /** + * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * @param message ReleaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * @param message ReleaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseRequest; + + /** + * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseRequest; + + /** + * Verifies a ReleaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReleaseRequest; + + /** + * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. + * @param message ReleaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReleaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReleaseResponse. */ + interface IReleaseResponse { + } + + /** Represents a ReleaseResponse. */ + class ReleaseResponse implements IReleaseResponse { + + /** + * Constructs a new ReleaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReleaseResponse); + + /** + * Creates a new ReleaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseResponse instance + */ + public static create(properties?: query.IReleaseResponse): query.ReleaseResponse; + + /** + * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * @param message ReleaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * @param message ReleaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseResponse; + + /** + * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseResponse; + + /** + * Verifies a ReleaseResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReleaseResponse; + + /** + * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. + * @param message ReleaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReleaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamHealthRequest. */ + interface IStreamHealthRequest { + } + + /** Represents a StreamHealthRequest. */ + class StreamHealthRequest implements IStreamHealthRequest { + + /** + * Constructs a new StreamHealthRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamHealthRequest); + + /** + * Creates a new StreamHealthRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamHealthRequest instance + */ + public static create(properties?: query.IStreamHealthRequest): query.StreamHealthRequest; + + /** + * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @param message StreamHealthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @param message StreamHealthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamHealthRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamHealthRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthRequest; + + /** + * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamHealthRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthRequest; + + /** + * Verifies a StreamHealthRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamHealthRequest + */ + public static fromObject(object: { [k: string]: any }): query.StreamHealthRequest; + + /** + * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. + * @param message StreamHealthRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamHealthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamHealthRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamHealthRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RealtimeStats. */ + interface IRealtimeStats { + + /** RealtimeStats health_error */ + health_error?: (string|null); + + /** RealtimeStats replication_lag_seconds */ + replication_lag_seconds?: (number|null); + + /** RealtimeStats binlog_players_count */ + binlog_players_count?: (number|null); + + /** RealtimeStats filtered_replication_lag_seconds */ + filtered_replication_lag_seconds?: (number|Long|null); + + /** RealtimeStats cpu_usage */ + cpu_usage?: (number|null); + + /** RealtimeStats qps */ + qps?: (number|null); + + /** RealtimeStats table_schema_changed */ + table_schema_changed?: (string[]|null); + + /** RealtimeStats view_schema_changed */ + view_schema_changed?: (string[]|null); + + /** RealtimeStats udfs_changed */ + udfs_changed?: (boolean|null); + + /** RealtimeStats tx_unresolved */ + tx_unresolved?: (boolean|null); + } + + /** Represents a RealtimeStats. */ + class RealtimeStats implements IRealtimeStats { + + /** + * Constructs a new RealtimeStats. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRealtimeStats); + + /** RealtimeStats health_error. */ + public health_error: string; + + /** RealtimeStats replication_lag_seconds. */ + public replication_lag_seconds: number; + + /** RealtimeStats binlog_players_count. */ + public binlog_players_count: number; + + /** RealtimeStats filtered_replication_lag_seconds. */ + public filtered_replication_lag_seconds: (number|Long); + + /** RealtimeStats cpu_usage. */ + public cpu_usage: number; + + /** RealtimeStats qps. */ + public qps: number; + + /** RealtimeStats table_schema_changed. */ + public table_schema_changed: string[]; + + /** RealtimeStats view_schema_changed. */ + public view_schema_changed: string[]; + + /** RealtimeStats udfs_changed. */ + public udfs_changed: boolean; + + /** RealtimeStats tx_unresolved. */ + public tx_unresolved: boolean; + + /** + * Creates a new RealtimeStats instance using the specified properties. + * @param [properties] Properties to set + * @returns RealtimeStats instance + */ + public static create(properties?: query.IRealtimeStats): query.RealtimeStats; + + /** + * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * @param message RealtimeStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * @param message RealtimeStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RealtimeStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RealtimeStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RealtimeStats; + + /** + * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RealtimeStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RealtimeStats; + + /** + * Verifies a RealtimeStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RealtimeStats + */ + public static fromObject(object: { [k: string]: any }): query.RealtimeStats; + + /** + * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. + * @param message RealtimeStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RealtimeStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RealtimeStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RealtimeStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AggregateStats. */ + interface IAggregateStats { + + /** AggregateStats healthy_tablet_count */ + healthy_tablet_count?: (number|null); + + /** AggregateStats unhealthy_tablet_count */ + unhealthy_tablet_count?: (number|null); + + /** AggregateStats replication_lag_seconds_min */ + replication_lag_seconds_min?: (number|null); + + /** AggregateStats replication_lag_seconds_max */ + replication_lag_seconds_max?: (number|null); + } + + /** Represents an AggregateStats. */ + class AggregateStats implements IAggregateStats { + + /** + * Constructs a new AggregateStats. + * @param [properties] Properties to set + */ + constructor(properties?: query.IAggregateStats); + + /** AggregateStats healthy_tablet_count. */ + public healthy_tablet_count: number; + + /** AggregateStats unhealthy_tablet_count. */ + public unhealthy_tablet_count: number; + + /** AggregateStats replication_lag_seconds_min. */ + public replication_lag_seconds_min: number; + + /** AggregateStats replication_lag_seconds_max. */ + public replication_lag_seconds_max: number; + + /** + * Creates a new AggregateStats instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregateStats instance + */ + public static create(properties?: query.IAggregateStats): query.AggregateStats; + + /** + * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * @param message AggregateStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * @param message AggregateStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregateStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregateStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.AggregateStats; + + /** + * Decodes an AggregateStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregateStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.AggregateStats; + + /** + * Verifies an AggregateStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregateStats + */ + public static fromObject(object: { [k: string]: any }): query.AggregateStats; + + /** + * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. + * @param message AggregateStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.AggregateStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregateStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregateStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamHealthResponse. */ + interface IStreamHealthResponse { + + /** StreamHealthResponse target */ + target?: (query.ITarget|null); + + /** StreamHealthResponse serving */ + serving?: (boolean|null); + + /** StreamHealthResponse primary_term_start_timestamp */ + primary_term_start_timestamp?: (number|Long|null); + + /** StreamHealthResponse realtime_stats */ + realtime_stats?: (query.IRealtimeStats|null); + + /** StreamHealthResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StreamHealthResponse. */ + class StreamHealthResponse implements IStreamHealthResponse { + + /** + * Constructs a new StreamHealthResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamHealthResponse); + + /** StreamHealthResponse target. */ + public target?: (query.ITarget|null); + + /** StreamHealthResponse serving. */ + public serving: boolean; + + /** StreamHealthResponse primary_term_start_timestamp. */ + public primary_term_start_timestamp: (number|Long); + + /** StreamHealthResponse realtime_stats. */ + public realtime_stats?: (query.IRealtimeStats|null); + + /** StreamHealthResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StreamHealthResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamHealthResponse instance + */ + public static create(properties?: query.IStreamHealthResponse): query.StreamHealthResponse; + + /** + * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * @param message StreamHealthResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * @param message StreamHealthResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamHealthResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamHealthResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthResponse; + + /** + * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamHealthResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthResponse; + + /** + * Verifies a StreamHealthResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamHealthResponse + */ + public static fromObject(object: { [k: string]: any }): query.StreamHealthResponse; + + /** + * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. + * @param message StreamHealthResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamHealthResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamHealthResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamHealthResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** TransactionState enum. */ + enum TransactionState { + UNKNOWN = 0, + PREPARE = 1, + ROLLBACK = 2, + COMMIT = 3 + } + + /** Properties of a TransactionMetadata. */ + interface ITransactionMetadata { + + /** TransactionMetadata dtid */ + dtid?: (string|null); + + /** TransactionMetadata state */ + state?: (query.TransactionState|null); + + /** TransactionMetadata time_created */ + time_created?: (number|Long|null); + + /** TransactionMetadata participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a TransactionMetadata. */ + class TransactionMetadata implements ITransactionMetadata { + + /** + * Constructs a new TransactionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: query.ITransactionMetadata); + + /** TransactionMetadata dtid. */ + public dtid: string; + + /** TransactionMetadata state. */ + public state: query.TransactionState; + + /** TransactionMetadata time_created. */ + public time_created: (number|Long); + + /** TransactionMetadata participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new TransactionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TransactionMetadata instance + */ + public static create(properties?: query.ITransactionMetadata): query.TransactionMetadata; + + /** + * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * @param message TransactionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * @param message TransactionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TransactionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransactionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.TransactionMetadata; + + /** + * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransactionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.TransactionMetadata; + + /** + * Verifies a TransactionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransactionMetadata + */ + public static fromObject(object: { [k: string]: any }): query.TransactionMetadata; + + /** + * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. + * @param message TransactionMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.TransactionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TransactionMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransactionMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** SchemaTableType enum. */ + enum SchemaTableType { + VIEWS = 0, + TABLES = 1, + ALL = 2, + UDFS = 3 + } + + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest target */ + target?: (query.ITarget|null); + + /** GetSchemaRequest table_type */ + table_type?: (query.SchemaTableType|null); + + /** GetSchemaRequest table_names */ + table_names?: (string[]|null); + } + + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { + + /** + * Constructs a new GetSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IGetSchemaRequest); + + /** GetSchemaRequest target. */ + public target?: (query.ITarget|null); + + /** GetSchemaRequest table_type. */ + public table_type: query.SchemaTableType; + + /** GetSchemaRequest table_names. */ + public table_names: string[]; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaRequest instance + */ + public static create(properties?: query.IGetSchemaRequest): query.GetSchemaRequest; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaRequest; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaRequest; + + /** + * Verifies a GetSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): query.GetSchemaRequest; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a UDFInfo. */ + interface IUDFInfo { + + /** UDFInfo name */ + name?: (string|null); + + /** UDFInfo aggregating */ + aggregating?: (boolean|null); + + /** UDFInfo return_type */ + return_type?: (query.Type|null); + } + + /** Represents a UDFInfo. */ + class UDFInfo implements IUDFInfo { + + /** + * Constructs a new UDFInfo. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUDFInfo); + + /** UDFInfo name. */ + public name: string; + + /** UDFInfo aggregating. */ + public aggregating: boolean; + + /** UDFInfo return_type. */ + public return_type: query.Type; + + /** + * Creates a new UDFInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UDFInfo instance + */ + public static create(properties?: query.IUDFInfo): query.UDFInfo; + + /** + * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * @param message UDFInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * @param message UDFInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UDFInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UDFInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UDFInfo; + + /** + * Decodes a UDFInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UDFInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UDFInfo; + + /** + * Verifies a UDFInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UDFInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UDFInfo + */ + public static fromObject(object: { [k: string]: any }): query.UDFInfo; + + /** + * Creates a plain object from a UDFInfo message. Also converts values to other types if specified. + * @param message UDFInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UDFInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UDFInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UDFInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse udfs */ + udfs?: (query.IUDFInfo[]|null); + + /** GetSchemaResponse table_definition */ + table_definition?: ({ [k: string]: string }|null); + } + + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { + + /** + * Constructs a new GetSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IGetSchemaResponse); + + /** GetSchemaResponse udfs. */ + public udfs: query.IUDFInfo[]; + + /** GetSchemaResponse table_definition. */ + public table_definition: { [k: string]: string }; + + /** + * Creates a new GetSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaResponse instance + */ + public static create(properties?: query.IGetSchemaResponse): query.GetSchemaResponse; + + /** + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaResponse; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaResponse; + + /** + * Verifies a GetSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): query.GetSchemaResponse; + + /** + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * @param message GetSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace replicationdata. */ +export namespace replicationdata { + + /** Properties of a Status. */ + interface IStatus { + + /** Status position */ + position?: (string|null); + + /** Status replication_lag_seconds */ + replication_lag_seconds?: (number|null); + + /** Status source_host */ + source_host?: (string|null); + + /** Status source_port */ + source_port?: (number|null); + + /** Status connect_retry */ + connect_retry?: (number|null); + + /** Status relay_log_position */ + relay_log_position?: (string|null); + + /** Status file_position */ + file_position?: (string|null); + + /** Status relay_log_source_binlog_equivalent_position */ + relay_log_source_binlog_equivalent_position?: (string|null); + + /** Status source_server_id */ + source_server_id?: (number|null); + + /** Status source_uuid */ + source_uuid?: (string|null); + + /** Status io_state */ + io_state?: (number|null); + + /** Status last_io_error */ + last_io_error?: (string|null); + + /** Status sql_state */ + sql_state?: (number|null); + + /** Status last_sql_error */ + last_sql_error?: (string|null); + + /** Status relay_log_file_position */ + relay_log_file_position?: (string|null); + + /** Status source_user */ + source_user?: (string|null); + + /** Status sql_delay */ + sql_delay?: (number|null); + + /** Status auto_position */ + auto_position?: (boolean|null); + + /** Status using_gtid */ + using_gtid?: (boolean|null); + + /** Status has_replication_filters */ + has_replication_filters?: (boolean|null); + + /** Status ssl_allowed */ + ssl_allowed?: (boolean|null); + + /** Status replication_lag_unknown */ + replication_lag_unknown?: (boolean|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IStatus); + + /** Status position. */ + public position: string; + + /** Status replication_lag_seconds. */ + public replication_lag_seconds: number; + + /** Status source_host. */ + public source_host: string; + + /** Status source_port. */ + public source_port: number; + + /** Status connect_retry. */ + public connect_retry: number; + + /** Status relay_log_position. */ + public relay_log_position: string; + + /** Status file_position. */ + public file_position: string; + + /** Status relay_log_source_binlog_equivalent_position. */ + public relay_log_source_binlog_equivalent_position: string; + + /** Status source_server_id. */ + public source_server_id: number; + + /** Status source_uuid. */ + public source_uuid: string; + + /** Status io_state. */ + public io_state: number; + + /** Status last_io_error. */ + public last_io_error: string; + + /** Status sql_state. */ + public sql_state: number; + + /** Status last_sql_error. */ + public last_sql_error: string; + + /** Status relay_log_file_position. */ + public relay_log_file_position: string; + + /** Status source_user. */ + public source_user: string; + + /** Status sql_delay. */ + public sql_delay: number; + + /** Status auto_position. */ + public auto_position: boolean; + + /** Status using_gtid. */ + public using_gtid: boolean; + + /** Status has_replication_filters. */ + public has_replication_filters: boolean; + + /** Status ssl_allowed. */ + public ssl_allowed: boolean; + + /** Status replication_lag_unknown. */ + public replication_lag_unknown: boolean; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: replicationdata.IStatus): replicationdata.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Status; + + /** + * Verifies a Status message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): replicationdata.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Configuration. */ + interface IConfiguration { + + /** Configuration heartbeat_interval */ + heartbeat_interval?: (number|null); + + /** Configuration replica_net_timeout */ + replica_net_timeout?: (number|null); + } + + /** Represents a Configuration. */ + class Configuration implements IConfiguration { + + /** + * Constructs a new Configuration. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IConfiguration); + + /** Configuration heartbeat_interval. */ + public heartbeat_interval: number; + + /** Configuration replica_net_timeout. */ + public replica_net_timeout: number; + + /** + * Creates a new Configuration instance using the specified properties. + * @param [properties] Properties to set + * @returns Configuration instance + */ + public static create(properties?: replicationdata.IConfiguration): replicationdata.Configuration; + + /** + * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * @param message Configuration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * @param message Configuration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Configuration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Configuration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Configuration; + + /** + * Decodes a Configuration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Configuration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Configuration; + + /** + * Verifies a Configuration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Configuration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Configuration + */ + public static fromObject(object: { [k: string]: any }): replicationdata.Configuration; + + /** + * Creates a plain object from a Configuration message. Also converts values to other types if specified. + * @param message Configuration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.Configuration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Configuration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Configuration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationStatus. */ + interface IStopReplicationStatus { + + /** StopReplicationStatus before */ + before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after */ + after?: (replicationdata.IStatus|null); + } + + /** Represents a StopReplicationStatus. */ + class StopReplicationStatus implements IStopReplicationStatus { + + /** + * Constructs a new StopReplicationStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IStopReplicationStatus); + + /** StopReplicationStatus before. */ + public before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after. */ + public after?: (replicationdata.IStatus|null); + + /** + * Creates a new StopReplicationStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationStatus instance + */ + public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; + + /** + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.StopReplicationStatus; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.StopReplicationStatus; + + /** + * Verifies a StopReplicationStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; + + /** + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * @param message StopReplicationStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** StopReplicationMode enum. */ + enum StopReplicationMode { + IOANDSQLTHREAD = 0, + IOTHREADONLY = 1 + } + + /** Properties of a PrimaryStatus. */ + interface IPrimaryStatus { + + /** PrimaryStatus position */ + position?: (string|null); + + /** PrimaryStatus file_position */ + file_position?: (string|null); + } + + /** Represents a PrimaryStatus. */ + class PrimaryStatus implements IPrimaryStatus { + + /** + * Constructs a new PrimaryStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IPrimaryStatus); + + /** PrimaryStatus position. */ + public position: string; + + /** PrimaryStatus file_position. */ + public file_position: string; + + /** + * Creates a new PrimaryStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PrimaryStatus instance + */ + public static create(properties?: replicationdata.IPrimaryStatus): replicationdata.PrimaryStatus; + + /** + * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * @param message PrimaryStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * @param message PrimaryStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrimaryStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrimaryStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.PrimaryStatus; + + /** + * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrimaryStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.PrimaryStatus; + + /** + * Verifies a PrimaryStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrimaryStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.PrimaryStatus; + + /** + * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. + * @param message PrimaryStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.PrimaryStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrimaryStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrimaryStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FullStatus. */ + interface IFullStatus { + + /** FullStatus server_id */ + server_id?: (number|null); + + /** FullStatus server_uuid */ + server_uuid?: (string|null); + + /** FullStatus replication_status */ + replication_status?: (replicationdata.IStatus|null); + + /** FullStatus primary_status */ + primary_status?: (replicationdata.IPrimaryStatus|null); + + /** FullStatus gtid_purged */ + gtid_purged?: (string|null); + + /** FullStatus version */ + version?: (string|null); + + /** FullStatus version_comment */ + version_comment?: (string|null); + + /** FullStatus read_only */ + read_only?: (boolean|null); + + /** FullStatus gtid_mode */ + gtid_mode?: (string|null); + + /** FullStatus binlog_format */ + binlog_format?: (string|null); + + /** FullStatus binlog_row_image */ + binlog_row_image?: (string|null); + + /** FullStatus log_bin_enabled */ + log_bin_enabled?: (boolean|null); + + /** FullStatus log_replica_updates */ + log_replica_updates?: (boolean|null); + + /** FullStatus semi_sync_primary_enabled */ + semi_sync_primary_enabled?: (boolean|null); + + /** FullStatus semi_sync_replica_enabled */ + semi_sync_replica_enabled?: (boolean|null); + + /** FullStatus semi_sync_primary_status */ + semi_sync_primary_status?: (boolean|null); + + /** FullStatus semi_sync_replica_status */ + semi_sync_replica_status?: (boolean|null); + + /** FullStatus semi_sync_primary_clients */ + semi_sync_primary_clients?: (number|null); + + /** FullStatus semi_sync_primary_timeout */ + semi_sync_primary_timeout?: (number|Long|null); + + /** FullStatus semi_sync_wait_for_replica_count */ + semi_sync_wait_for_replica_count?: (number|null); + + /** FullStatus super_read_only */ + super_read_only?: (boolean|null); + + /** FullStatus replication_configuration */ + replication_configuration?: (replicationdata.IConfiguration|null); + } + + /** Represents a FullStatus. */ + class FullStatus implements IFullStatus { + + /** + * Constructs a new FullStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IFullStatus); + + /** FullStatus server_id. */ + public server_id: number; + + /** FullStatus server_uuid. */ + public server_uuid: string; + + /** FullStatus replication_status. */ + public replication_status?: (replicationdata.IStatus|null); + + /** FullStatus primary_status. */ + public primary_status?: (replicationdata.IPrimaryStatus|null); + + /** FullStatus gtid_purged. */ + public gtid_purged: string; + + /** FullStatus version. */ + public version: string; + + /** FullStatus version_comment. */ + public version_comment: string; + + /** FullStatus read_only. */ + public read_only: boolean; + + /** FullStatus gtid_mode. */ + public gtid_mode: string; + + /** FullStatus binlog_format. */ + public binlog_format: string; + + /** FullStatus binlog_row_image. */ + public binlog_row_image: string; + + /** FullStatus log_bin_enabled. */ + public log_bin_enabled: boolean; + + /** FullStatus log_replica_updates. */ + public log_replica_updates: boolean; + + /** FullStatus semi_sync_primary_enabled. */ + public semi_sync_primary_enabled: boolean; + + /** FullStatus semi_sync_replica_enabled. */ + public semi_sync_replica_enabled: boolean; + + /** FullStatus semi_sync_primary_status. */ + public semi_sync_primary_status: boolean; + + /** FullStatus semi_sync_replica_status. */ + public semi_sync_replica_status: boolean; + + /** FullStatus semi_sync_primary_clients. */ + public semi_sync_primary_clients: number; + + /** FullStatus semi_sync_primary_timeout. */ + public semi_sync_primary_timeout: (number|Long); + + /** FullStatus semi_sync_wait_for_replica_count. */ + public semi_sync_wait_for_replica_count: number; + + /** FullStatus super_read_only. */ + public super_read_only: boolean; + + /** FullStatus replication_configuration. */ + public replication_configuration?: (replicationdata.IConfiguration|null); + + /** + * Creates a new FullStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns FullStatus instance + */ + public static create(properties?: replicationdata.IFullStatus): replicationdata.FullStatus; + + /** + * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * @param message FullStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * @param message FullStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FullStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.FullStatus; + + /** + * Decodes a FullStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.FullStatus; + + /** + * Verifies a FullStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.FullStatus; + + /** + * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * @param message FullStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.FullStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FullStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace vschema. */ +export namespace vschema { + + /** Properties of a RoutingRules. */ + interface IRoutingRules { + + /** RoutingRules rules */ + rules?: (vschema.IRoutingRule[]|null); + } + + /** Represents a RoutingRules. */ + class RoutingRules implements IRoutingRules { + + /** + * Constructs a new RoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IRoutingRules); + + /** RoutingRules rules. */ + public rules: vschema.IRoutingRule[]; + + /** + * Creates a new RoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingRules instance + */ + public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; + + /** + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRules; + + /** + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRules; + + /** + * Verifies a RoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; + + /** + * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. + * @param message RoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RoutingRule. */ + interface IRoutingRule { + + /** RoutingRule from_table */ + from_table?: (string|null); + + /** RoutingRule to_tables */ + to_tables?: (string[]|null); + } + + /** Represents a RoutingRule. */ + class RoutingRule implements IRoutingRule { + + /** + * Constructs a new RoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IRoutingRule); + + /** RoutingRule from_table. */ + public from_table: string; + + /** RoutingRule to_tables. */ + public to_tables: string[]; + + /** + * Creates a new RoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingRule instance + */ + public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; + + /** + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRule; + + /** + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRule; + + /** + * Verifies a RoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; + + /** + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. + * @param message RoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Keyspace. */ + interface IKeyspace { + + /** Keyspace sharded */ + sharded?: (boolean|null); + + /** Keyspace vindexes */ + vindexes?: ({ [k: string]: vschema.IVindex }|null); + + /** Keyspace tables */ + tables?: ({ [k: string]: vschema.ITable }|null); + + /** Keyspace require_explicit_routing */ + require_explicit_routing?: (boolean|null); + + /** Keyspace foreign_key_mode */ + foreign_key_mode?: (vschema.Keyspace.ForeignKeyMode|null); + + /** Keyspace multi_tenant_spec */ + multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + } + + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { + + /** + * Constructs a new Keyspace. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspace); + + /** Keyspace sharded. */ + public sharded: boolean; + + /** Keyspace vindexes. */ + public vindexes: { [k: string]: vschema.IVindex }; + + /** Keyspace tables. */ + public tables: { [k: string]: vschema.ITable }; + + /** Keyspace require_explicit_routing. */ + public require_explicit_routing: boolean; + + /** Keyspace foreign_key_mode. */ + public foreign_key_mode: vschema.Keyspace.ForeignKeyMode; + + /** Keyspace multi_tenant_spec. */ + public multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + + /** + * Creates a new Keyspace instance using the specified properties. + * @param [properties] Properties to set + * @returns Keyspace instance + */ + public static create(properties?: vschema.IKeyspace): vschema.Keyspace; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Keyspace; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Keyspace; + + /** + * Verifies a Keyspace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Keyspace + */ + public static fromObject(object: { [k: string]: any }): vschema.Keyspace; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Keyspace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Keyspace + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Keyspace { + + /** ForeignKeyMode enum. */ + enum ForeignKeyMode { + unspecified = 0, + disallow = 1, + unmanaged = 2, + managed = 3 + } + } + + /** Properties of a MultiTenantSpec. */ + interface IMultiTenantSpec { + + /** MultiTenantSpec tenant_id_column_name */ + tenant_id_column_name?: (string|null); + + /** MultiTenantSpec tenant_id_column_type */ + tenant_id_column_type?: (query.Type|null); + } + + /** Represents a MultiTenantSpec. */ + class MultiTenantSpec implements IMultiTenantSpec { + + /** + * Constructs a new MultiTenantSpec. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMultiTenantSpec); + + /** MultiTenantSpec tenant_id_column_name. */ + public tenant_id_column_name: string; + + /** MultiTenantSpec tenant_id_column_type. */ + public tenant_id_column_type: query.Type; + + /** + * Creates a new MultiTenantSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTenantSpec instance + */ + public static create(properties?: vschema.IMultiTenantSpec): vschema.MultiTenantSpec; + + /** + * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * @param message MultiTenantSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * @param message MultiTenantSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTenantSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTenantSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MultiTenantSpec; + + /** + * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTenantSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MultiTenantSpec; + + /** + * Verifies a MultiTenantSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTenantSpec + */ + public static fromObject(object: { [k: string]: any }): vschema.MultiTenantSpec; + + /** + * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. + * @param message MultiTenantSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MultiTenantSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTenantSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTenantSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Vindex. */ + interface IVindex { + + /** Vindex type */ + type?: (string|null); + + /** Vindex params */ + params?: ({ [k: string]: string }|null); + + /** Vindex owner */ + owner?: (string|null); + } + + /** Represents a Vindex. */ + class Vindex implements IVindex { + + /** + * Constructs a new Vindex. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IVindex); + + /** Vindex type. */ + public type: string; + + /** Vindex params. */ + public params: { [k: string]: string }; + + /** Vindex owner. */ + public owner: string; + + /** + * Creates a new Vindex instance using the specified properties. + * @param [properties] Properties to set + * @returns Vindex instance + */ + public static create(properties?: vschema.IVindex): vschema.Vindex; + + /** + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Vindex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; + + /** + * Decodes a Vindex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; + + /** + * Verifies a Vindex message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vindex + */ + public static fromObject(object: { [k: string]: any }): vschema.Vindex; + + /** + * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * @param message Vindex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Vindex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Vindex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Table. */ + interface ITable { + + /** Table type */ + type?: (string|null); + + /** Table column_vindexes */ + column_vindexes?: (vschema.IColumnVindex[]|null); + + /** Table auto_increment */ + auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns */ + columns?: (vschema.IColumn[]|null); + + /** Table pinned */ + pinned?: (string|null); + + /** Table column_list_authoritative */ + column_list_authoritative?: (boolean|null); + + /** Table source */ + source?: (string|null); + } + + /** Represents a Table. */ + class Table implements ITable { + + /** + * Constructs a new Table. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.ITable); + + /** Table type. */ + public type: string; + + /** Table column_vindexes. */ + public column_vindexes: vschema.IColumnVindex[]; + + /** Table auto_increment. */ + public auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns. */ + public columns: vschema.IColumn[]; + + /** Table pinned. */ + public pinned: string; + + /** Table column_list_authoritative. */ + public column_list_authoritative: boolean; + + /** Table source. */ + public source: string; + + /** + * Creates a new Table instance using the specified properties. + * @param [properties] Properties to set + * @returns Table instance + */ + public static create(properties?: vschema.ITable): vschema.Table; + + /** + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Table message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; + + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; + + /** + * Verifies a Table message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Table + */ + public static fromObject(object: { [k: string]: any }): vschema.Table; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @param message Table + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Table to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Table + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ColumnVindex. */ + interface IColumnVindex { + + /** ColumnVindex column */ + column?: (string|null); + + /** ColumnVindex name */ + name?: (string|null); + + /** ColumnVindex columns */ + columns?: (string[]|null); + } + + /** Represents a ColumnVindex. */ + class ColumnVindex implements IColumnVindex { + + /** + * Constructs a new ColumnVindex. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IColumnVindex); + + /** ColumnVindex column. */ + public column: string; + + /** ColumnVindex name. */ + public name: string; + + /** ColumnVindex columns. */ + public columns: string[]; + + /** + * Creates a new ColumnVindex instance using the specified properties. + * @param [properties] Properties to set + * @returns ColumnVindex instance + */ + public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; + + /** + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ColumnVindex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ColumnVindex; + + /** + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ColumnVindex; + + /** + * Verifies a ColumnVindex message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ColumnVindex + */ + public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; + + /** + * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. + * @param message ColumnVindex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ColumnVindex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ColumnVindex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoIncrement. */ + interface IAutoIncrement { + + /** AutoIncrement column */ + column?: (string|null); + + /** AutoIncrement sequence */ + sequence?: (string|null); + } + + /** Represents an AutoIncrement. */ + class AutoIncrement implements IAutoIncrement { + + /** + * Constructs a new AutoIncrement. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IAutoIncrement); + + /** AutoIncrement column. */ + public column: string; + + /** AutoIncrement sequence. */ + public sequence: string; + + /** + * Creates a new AutoIncrement instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoIncrement instance + */ + public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; + + /** + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.AutoIncrement; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.AutoIncrement; + + /** + * Verifies an AutoIncrement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoIncrement + */ + public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; + + /** + * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. + * @param message AutoIncrement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoIncrement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoIncrement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Column. */ + interface IColumn { + + /** Column name */ + name?: (string|null); + + /** Column type */ + type?: (query.Type|null); + + /** Column invisible */ + invisible?: (boolean|null); + + /** Column default */ + "default"?: (string|null); + + /** Column collation_name */ + collation_name?: (string|null); + + /** Column size */ + size?: (number|null); + + /** Column scale */ + scale?: (number|null); + + /** Column nullable */ + nullable?: (boolean|null); + + /** Column values */ + values?: (string[]|null); + } + + /** Represents a Column. */ + class Column implements IColumn { + + /** + * Constructs a new Column. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IColumn); + + /** Column name. */ + public name: string; + + /** Column type. */ + public type: query.Type; + + /** Column invisible. */ + public invisible: boolean; + + /** Column default. */ + public default: string; + + /** Column collation_name. */ + public collation_name: string; + + /** Column size. */ + public size: number; + + /** Column scale. */ + public scale: number; + + /** Column nullable. */ + public nullable?: (boolean|null); + + /** Column values. */ + public values: string[]; + + /** Column _nullable. */ + public _nullable?: "nullable"; + + /** + * Creates a new Column instance using the specified properties. + * @param [properties] Properties to set + * @returns Column instance + */ + public static create(properties?: vschema.IColumn): vschema.Column; + + /** + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Column message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; + + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; + + /** + * Verifies a Column message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Column + */ + public static fromObject(object: { [k: string]: any }): vschema.Column; + + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Column to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Column + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SrvVSchema. */ + interface ISrvVSchema { + + /** SrvVSchema keyspaces */ + keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); + + /** SrvVSchema routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + + /** SrvVSchema shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** SrvVSchema keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** SrvVSchema mirror_rules */ + mirror_rules?: (vschema.IMirrorRules|null); + } + + /** Represents a SrvVSchema. */ + class SrvVSchema implements ISrvVSchema { + + /** + * Constructs a new SrvVSchema. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.ISrvVSchema); + + /** SrvVSchema keyspaces. */ + public keyspaces: { [k: string]: vschema.IKeyspace }; + + /** SrvVSchema routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** SrvVSchema shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** SrvVSchema keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** SrvVSchema mirror_rules. */ + public mirror_rules?: (vschema.IMirrorRules|null); + + /** + * Creates a new SrvVSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns SrvVSchema instance + */ + public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; + + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.SrvVSchema; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.SrvVSchema; + + /** + * Verifies a SrvVSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SrvVSchema + */ + public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; + + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @param message SrvVSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SrvVSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SrvVSchema + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardRoutingRules. */ + interface IShardRoutingRules { + + /** ShardRoutingRules rules */ + rules?: (vschema.IShardRoutingRule[]|null); + } + + /** Represents a ShardRoutingRules. */ + class ShardRoutingRules implements IShardRoutingRules { + + /** + * Constructs a new ShardRoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IShardRoutingRules); + + /** ShardRoutingRules rules. */ + public rules: vschema.IShardRoutingRule[]; + + /** + * Creates a new ShardRoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardRoutingRules instance + */ + public static create(properties?: vschema.IShardRoutingRules): vschema.ShardRoutingRules; + + /** + * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @param message ShardRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @param message ShardRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRules; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRules; + + /** + * Verifies a ShardRoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardRoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRules; + + /** + * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. + * @param message ShardRoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ShardRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardRoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardRoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardRoutingRule. */ + interface IShardRoutingRule { + + /** ShardRoutingRule from_keyspace */ + from_keyspace?: (string|null); + + /** ShardRoutingRule to_keyspace */ + to_keyspace?: (string|null); + + /** ShardRoutingRule shard */ + shard?: (string|null); + } + + /** Represents a ShardRoutingRule. */ + class ShardRoutingRule implements IShardRoutingRule { + + /** + * Constructs a new ShardRoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IShardRoutingRule); + + /** ShardRoutingRule from_keyspace. */ + public from_keyspace: string; + + /** ShardRoutingRule to_keyspace. */ + public to_keyspace: string; + + /** ShardRoutingRule shard. */ + public shard: string; + + /** + * Creates a new ShardRoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardRoutingRule instance + */ + public static create(properties?: vschema.IShardRoutingRule): vschema.ShardRoutingRule; + + /** + * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @param message ShardRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @param message ShardRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRule; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRule; + + /** + * Verifies a ShardRoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardRoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRule; + + /** + * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * @param message ShardRoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ShardRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardRoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardRoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KeyspaceRoutingRules. */ + interface IKeyspaceRoutingRules { + + /** KeyspaceRoutingRules rules */ + rules?: (vschema.IKeyspaceRoutingRule[]|null); + } + + /** Represents a KeyspaceRoutingRules. */ + class KeyspaceRoutingRules implements IKeyspaceRoutingRules { + + /** + * Constructs a new KeyspaceRoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspaceRoutingRules); + + /** KeyspaceRoutingRules rules. */ + public rules: vschema.IKeyspaceRoutingRule[]; + + /** + * Creates a new KeyspaceRoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyspaceRoutingRules instance + */ + public static create(properties?: vschema.IKeyspaceRoutingRules): vschema.KeyspaceRoutingRules; + + /** + * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * @param message KeyspaceRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * @param message KeyspaceRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyspaceRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRules; + + /** + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyspaceRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRules; + + /** + * Verifies a KeyspaceRoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyspaceRoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyspaceRoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRules; + + /** + * Creates a plain object from a KeyspaceRoutingRules message. Also converts values to other types if specified. + * @param message KeyspaceRoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.KeyspaceRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyspaceRoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyspaceRoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KeyspaceRoutingRule. */ + interface IKeyspaceRoutingRule { + + /** KeyspaceRoutingRule from_keyspace */ + from_keyspace?: (string|null); + + /** KeyspaceRoutingRule to_keyspace */ + to_keyspace?: (string|null); + } + + /** Represents a KeyspaceRoutingRule. */ + class KeyspaceRoutingRule implements IKeyspaceRoutingRule { + + /** + * Constructs a new KeyspaceRoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspaceRoutingRule); + + /** KeyspaceRoutingRule from_keyspace. */ + public from_keyspace: string; + + /** KeyspaceRoutingRule to_keyspace. */ + public to_keyspace: string; + + /** + * Creates a new KeyspaceRoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyspaceRoutingRule instance + */ + public static create(properties?: vschema.IKeyspaceRoutingRule): vschema.KeyspaceRoutingRule; + + /** + * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * @param message KeyspaceRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * @param message KeyspaceRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyspaceRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRule; + + /** + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyspaceRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRule; + + /** + * Verifies a KeyspaceRoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyspaceRoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyspaceRoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRule; + + /** + * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. + * @param message KeyspaceRoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.KeyspaceRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyspaceRoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyspaceRoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MirrorRules. */ + interface IMirrorRules { + + /** MirrorRules rules */ + rules?: (vschema.IMirrorRule[]|null); + } + + /** Represents a MirrorRules. */ + class MirrorRules implements IMirrorRules { + + /** + * Constructs a new MirrorRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMirrorRules); + + /** MirrorRules rules. */ + public rules: vschema.IMirrorRule[]; + + /** + * Creates a new MirrorRules instance using the specified properties. + * @param [properties] Properties to set + * @returns MirrorRules instance + */ + public static create(properties?: vschema.IMirrorRules): vschema.MirrorRules; + + /** + * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @param message MirrorRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @param message MirrorRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MirrorRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRules; + + /** + * Decodes a MirrorRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRules; + + /** + * Verifies a MirrorRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MirrorRules + */ + public static fromObject(object: { [k: string]: any }): vschema.MirrorRules; + + /** + * Creates a plain object from a MirrorRules message. Also converts values to other types if specified. + * @param message MirrorRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MirrorRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MirrorRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MirrorRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MirrorRule. */ + interface IMirrorRule { + + /** MirrorRule from_table */ + from_table?: (string|null); + + /** MirrorRule to_table */ + to_table?: (string|null); + + /** MirrorRule percent */ + percent?: (number|null); + } + + /** Represents a MirrorRule. */ + class MirrorRule implements IMirrorRule { + + /** + * Constructs a new MirrorRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMirrorRule); + + /** MirrorRule from_table. */ + public from_table: string; + + /** MirrorRule to_table. */ + public to_table: string; + + /** MirrorRule percent. */ + public percent: number; + + /** + * Creates a new MirrorRule instance using the specified properties. + * @param [properties] Properties to set + * @returns MirrorRule instance + */ + public static create(properties?: vschema.IMirrorRule): vschema.MirrorRule; + + /** + * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @param message MirrorRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @param message MirrorRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MirrorRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRule; + + /** + * Decodes a MirrorRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRule; + + /** + * Verifies a MirrorRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MirrorRule + */ + public static fromObject(object: { [k: string]: any }): vschema.MirrorRule; + + /** + * Creates a plain object from a MirrorRule message. Also converts values to other types if specified. + * @param message MirrorRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MirrorRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MirrorRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MirrorRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace vtctldata. */ +export namespace vtctldata { + + /** Properties of an ExecuteVtctlCommandRequest. */ + interface IExecuteVtctlCommandRequest { + + /** ExecuteVtctlCommandRequest args */ + args?: (string[]|null); + + /** ExecuteVtctlCommandRequest action_timeout */ + action_timeout?: (number|Long|null); + } + + /** Represents an ExecuteVtctlCommandRequest. */ + class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { + + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); + + /** ExecuteVtctlCommandRequest args. */ + public args: string[]; + + /** ExecuteVtctlCommandRequest action_timeout. */ + public action_timeout: (number|Long); + + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandRequest instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Verifies an ExecuteVtctlCommandRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteVtctlCommandRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteVtctlCommandResponse. */ + interface IExecuteVtctlCommandResponse { + + /** ExecuteVtctlCommandResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents an ExecuteVtctlCommandResponse. */ + class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { + + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); + + /** ExecuteVtctlCommandResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandResponse instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteVtctlCommandResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MaterializationIntent enum. */ + enum MaterializationIntent { + CUSTOM = 0, + MOVETABLES = 1, + CREATELOOKUPINDEX = 2 + } + + /** Properties of a TableMaterializeSettings. */ + interface ITableMaterializeSettings { + + /** TableMaterializeSettings target_table */ + target_table?: (string|null); + + /** TableMaterializeSettings source_expression */ + source_expression?: (string|null); + + /** TableMaterializeSettings create_ddl */ + create_ddl?: (string|null); + } + + /** Represents a TableMaterializeSettings. */ + class TableMaterializeSettings implements ITableMaterializeSettings { + + /** + * Constructs a new TableMaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITableMaterializeSettings); + + /** TableMaterializeSettings target_table. */ + public target_table: string; + + /** TableMaterializeSettings source_expression. */ + public source_expression: string; + + /** TableMaterializeSettings create_ddl. */ + public create_ddl: string; + + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns TableMaterializeSettings instance + */ + public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; + + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; + + /** + * Verifies a TableMaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableMaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; + + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @param message TableMaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableMaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TableMaterializeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeSettings. */ + interface IMaterializeSettings { + + /** MaterializeSettings workflow */ + workflow?: (string|null); + + /** MaterializeSettings source_keyspace */ + source_keyspace?: (string|null); + + /** MaterializeSettings target_keyspace */ + target_keyspace?: (string|null); + + /** MaterializeSettings stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MaterializeSettings table_settings */ + table_settings?: (vtctldata.ITableMaterializeSettings[]|null); + + /** MaterializeSettings cell */ + cell?: (string|null); + + /** MaterializeSettings tablet_types */ + tablet_types?: (string|null); + + /** MaterializeSettings external_cluster */ + external_cluster?: (string|null); + + /** MaterializeSettings materialization_intent */ + materialization_intent?: (vtctldata.MaterializationIntent|null); + + /** MaterializeSettings source_time_zone */ + source_time_zone?: (string|null); + + /** MaterializeSettings target_time_zone */ + target_time_zone?: (string|null); + + /** MaterializeSettings source_shards */ + source_shards?: (string[]|null); + + /** MaterializeSettings on_ddl */ + on_ddl?: (string|null); + + /** MaterializeSettings defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MaterializeSettings tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MaterializeSettings atomic_copy */ + atomic_copy?: (boolean|null); + + /** MaterializeSettings workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** MaterializeSettings reference_tables */ + reference_tables?: (string[]|null); + } + + /** Represents a MaterializeSettings. */ + class MaterializeSettings implements IMaterializeSettings { + + /** + * Constructs a new MaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeSettings); + + /** MaterializeSettings workflow. */ + public workflow: string; + + /** MaterializeSettings source_keyspace. */ + public source_keyspace: string; + + /** MaterializeSettings target_keyspace. */ + public target_keyspace: string; + + /** MaterializeSettings stop_after_copy. */ + public stop_after_copy: boolean; + + /** MaterializeSettings table_settings. */ + public table_settings: vtctldata.ITableMaterializeSettings[]; + + /** MaterializeSettings cell. */ + public cell: string; + + /** MaterializeSettings tablet_types. */ + public tablet_types: string; + + /** MaterializeSettings external_cluster. */ + public external_cluster: string; + + /** MaterializeSettings materialization_intent. */ + public materialization_intent: vtctldata.MaterializationIntent; + + /** MaterializeSettings source_time_zone. */ + public source_time_zone: string; + + /** MaterializeSettings target_time_zone. */ + public target_time_zone: string; + + /** MaterializeSettings source_shards. */ + public source_shards: string[]; + + /** MaterializeSettings on_ddl. */ + public on_ddl: string; + + /** MaterializeSettings defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MaterializeSettings tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MaterializeSettings atomic_copy. */ + public atomic_copy: boolean; + + /** MaterializeSettings workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** MaterializeSettings reference_tables. */ + public reference_tables: string[]; + + /** + * Creates a new MaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeSettings instance + */ + public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; + + /** + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; + + /** + * Verifies a MaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; + + /** + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * @param message MaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Keyspace. */ + interface IKeyspace { + + /** Keyspace name */ + name?: (string|null); + + /** Keyspace keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { + + /** + * Constructs a new Keyspace. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IKeyspace); + + /** Keyspace name. */ + public name: string; + + /** Keyspace keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new Keyspace instance using the specified properties. + * @param [properties] Properties to set + * @returns Keyspace instance + */ + public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; + + /** + * Verifies a Keyspace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Keyspace + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Keyspace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Keyspace + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** QueryOrdering enum. */ + enum QueryOrdering { + NONE = 0, + ASCENDING = 1, + DESCENDING = 2 + } + + /** Properties of a SchemaMigration. */ + interface ISchemaMigration { + + /** SchemaMigration uuid */ + uuid?: (string|null); + + /** SchemaMigration keyspace */ + keyspace?: (string|null); + + /** SchemaMigration shard */ + shard?: (string|null); + + /** SchemaMigration schema */ + schema?: (string|null); + + /** SchemaMigration table */ + table?: (string|null); + + /** SchemaMigration migration_statement */ + migration_statement?: (string|null); + + /** SchemaMigration strategy */ + strategy?: (vtctldata.SchemaMigration.Strategy|null); + + /** SchemaMigration options */ + options?: (string|null); + + /** SchemaMigration added_at */ + added_at?: (vttime.ITime|null); + + /** SchemaMigration requested_at */ + requested_at?: (vttime.ITime|null); + + /** SchemaMigration ready_at */ + ready_at?: (vttime.ITime|null); + + /** SchemaMigration started_at */ + started_at?: (vttime.ITime|null); + + /** SchemaMigration liveness_timestamp */ + liveness_timestamp?: (vttime.ITime|null); + + /** SchemaMigration completed_at */ + completed_at?: (vttime.ITime|null); + + /** SchemaMigration cleaned_up_at */ + cleaned_up_at?: (vttime.ITime|null); + + /** SchemaMigration status */ + status?: (vtctldata.SchemaMigration.Status|null); + + /** SchemaMigration log_path */ + log_path?: (string|null); + + /** SchemaMigration artifacts */ + artifacts?: (string|null); + + /** SchemaMigration retries */ + retries?: (number|Long|null); + + /** SchemaMigration tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** SchemaMigration tablet_failure */ + tablet_failure?: (boolean|null); + + /** SchemaMigration progress */ + progress?: (number|null); + + /** SchemaMigration migration_context */ + migration_context?: (string|null); + + /** SchemaMigration ddl_action */ + ddl_action?: (string|null); + + /** SchemaMigration message */ + message?: (string|null); + + /** SchemaMigration eta_seconds */ + eta_seconds?: (number|Long|null); + + /** SchemaMigration rows_copied */ + rows_copied?: (number|Long|null); + + /** SchemaMigration table_rows */ + table_rows?: (number|Long|null); + + /** SchemaMigration added_unique_keys */ + added_unique_keys?: (number|null); + + /** SchemaMigration removed_unique_keys */ + removed_unique_keys?: (number|null); + + /** SchemaMigration log_file */ + log_file?: (string|null); + + /** SchemaMigration artifact_retention */ + artifact_retention?: (vttime.IDuration|null); + + /** SchemaMigration postpone_completion */ + postpone_completion?: (boolean|null); + + /** SchemaMigration removed_unique_key_names */ + removed_unique_key_names?: (string|null); + + /** SchemaMigration dropped_no_default_column_names */ + dropped_no_default_column_names?: (string|null); + + /** SchemaMigration expanded_column_names */ + expanded_column_names?: (string|null); + + /** SchemaMigration revertible_notes */ + revertible_notes?: (string|null); + + /** SchemaMigration allow_concurrent */ + allow_concurrent?: (boolean|null); + + /** SchemaMigration reverted_uuid */ + reverted_uuid?: (string|null); + + /** SchemaMigration is_view */ + is_view?: (boolean|null); + + /** SchemaMigration ready_to_complete */ + ready_to_complete?: (boolean|null); + + /** SchemaMigration vitess_liveness_indicator */ + vitess_liveness_indicator?: (number|Long|null); + + /** SchemaMigration user_throttle_ratio */ + user_throttle_ratio?: (number|null); + + /** SchemaMigration special_plan */ + special_plan?: (string|null); + + /** SchemaMigration last_throttled_at */ + last_throttled_at?: (vttime.ITime|null); + + /** SchemaMigration component_throttled */ + component_throttled?: (string|null); + + /** SchemaMigration cancelled_at */ + cancelled_at?: (vttime.ITime|null); + + /** SchemaMigration postpone_launch */ + postpone_launch?: (boolean|null); + + /** SchemaMigration stage */ + stage?: (string|null); + + /** SchemaMigration cutover_attempts */ + cutover_attempts?: (number|null); + + /** SchemaMigration is_immediate_operation */ + is_immediate_operation?: (boolean|null); + + /** SchemaMigration reviewed_at */ + reviewed_at?: (vttime.ITime|null); + + /** SchemaMigration ready_to_complete_at */ + ready_to_complete_at?: (vttime.ITime|null); + + /** SchemaMigration removed_foreign_key_names */ + removed_foreign_key_names?: (string|null); + } + + /** Represents a SchemaMigration. */ + class SchemaMigration implements ISchemaMigration { + + /** + * Constructs a new SchemaMigration. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISchemaMigration); + + /** SchemaMigration uuid. */ + public uuid: string; + + /** SchemaMigration keyspace. */ + public keyspace: string; + + /** SchemaMigration shard. */ + public shard: string; + + /** SchemaMigration schema. */ + public schema: string; + + /** SchemaMigration table. */ + public table: string; + + /** SchemaMigration migration_statement. */ + public migration_statement: string; + + /** SchemaMigration strategy. */ + public strategy: vtctldata.SchemaMigration.Strategy; + + /** SchemaMigration options. */ + public options: string; + + /** SchemaMigration added_at. */ + public added_at?: (vttime.ITime|null); + + /** SchemaMigration requested_at. */ + public requested_at?: (vttime.ITime|null); + + /** SchemaMigration ready_at. */ + public ready_at?: (vttime.ITime|null); + + /** SchemaMigration started_at. */ + public started_at?: (vttime.ITime|null); + + /** SchemaMigration liveness_timestamp. */ + public liveness_timestamp?: (vttime.ITime|null); + + /** SchemaMigration completed_at. */ + public completed_at?: (vttime.ITime|null); + + /** SchemaMigration cleaned_up_at. */ + public cleaned_up_at?: (vttime.ITime|null); + + /** SchemaMigration status. */ + public status: vtctldata.SchemaMigration.Status; + + /** SchemaMigration log_path. */ + public log_path: string; + + /** SchemaMigration artifacts. */ + public artifacts: string; + + /** SchemaMigration retries. */ + public retries: (number|Long); + + /** SchemaMigration tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** SchemaMigration tablet_failure. */ + public tablet_failure: boolean; + + /** SchemaMigration progress. */ + public progress: number; + + /** SchemaMigration migration_context. */ + public migration_context: string; + + /** SchemaMigration ddl_action. */ + public ddl_action: string; + + /** SchemaMigration message. */ + public message: string; + + /** SchemaMigration eta_seconds. */ + public eta_seconds: (number|Long); + + /** SchemaMigration rows_copied. */ + public rows_copied: (number|Long); + + /** SchemaMigration table_rows. */ + public table_rows: (number|Long); + + /** SchemaMigration added_unique_keys. */ + public added_unique_keys: number; + + /** SchemaMigration removed_unique_keys. */ + public removed_unique_keys: number; + + /** SchemaMigration log_file. */ + public log_file: string; + + /** SchemaMigration artifact_retention. */ + public artifact_retention?: (vttime.IDuration|null); + + /** SchemaMigration postpone_completion. */ + public postpone_completion: boolean; + + /** SchemaMigration removed_unique_key_names. */ + public removed_unique_key_names: string; + + /** SchemaMigration dropped_no_default_column_names. */ + public dropped_no_default_column_names: string; + + /** SchemaMigration expanded_column_names. */ + public expanded_column_names: string; + + /** SchemaMigration revertible_notes. */ + public revertible_notes: string; + + /** SchemaMigration allow_concurrent. */ + public allow_concurrent: boolean; + + /** SchemaMigration reverted_uuid. */ + public reverted_uuid: string; + + /** SchemaMigration is_view. */ + public is_view: boolean; + + /** SchemaMigration ready_to_complete. */ + public ready_to_complete: boolean; + + /** SchemaMigration vitess_liveness_indicator. */ + public vitess_liveness_indicator: (number|Long); + + /** SchemaMigration user_throttle_ratio. */ + public user_throttle_ratio: number; + + /** SchemaMigration special_plan. */ + public special_plan: string; + + /** SchemaMigration last_throttled_at. */ + public last_throttled_at?: (vttime.ITime|null); + + /** SchemaMigration component_throttled. */ + public component_throttled: string; + + /** SchemaMigration cancelled_at. */ + public cancelled_at?: (vttime.ITime|null); + + /** SchemaMigration postpone_launch. */ + public postpone_launch: boolean; + + /** SchemaMigration stage. */ + public stage: string; + + /** SchemaMigration cutover_attempts. */ + public cutover_attempts: number; + + /** SchemaMigration is_immediate_operation. */ + public is_immediate_operation: boolean; + + /** SchemaMigration reviewed_at. */ + public reviewed_at?: (vttime.ITime|null); + + /** SchemaMigration ready_to_complete_at. */ + public ready_to_complete_at?: (vttime.ITime|null); + + /** SchemaMigration removed_foreign_key_names. */ + public removed_foreign_key_names: string; + + /** + * Creates a new SchemaMigration instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaMigration instance + */ + public static create(properties?: vtctldata.ISchemaMigration): vtctldata.SchemaMigration; + + /** + * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * @param message SchemaMigration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * @param message SchemaMigration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaMigration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaMigration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SchemaMigration; + + /** + * Decodes a SchemaMigration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SchemaMigration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SchemaMigration; + + /** + * Verifies a SchemaMigration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SchemaMigration + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SchemaMigration; + + /** + * Creates a plain object from a SchemaMigration message. Also converts values to other types if specified. + * @param message SchemaMigration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SchemaMigration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SchemaMigration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SchemaMigration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SchemaMigration { + + /** Strategy enum. */ + enum Strategy { + VITESS = 0, + ONLINE = 0, + GHOST = 1, + PTOSC = 2, + DIRECT = 3, + MYSQL = 4 + } + + /** Status enum. */ + enum Status { + UNKNOWN = 0, + REQUESTED = 1, + CANCELLED = 2, + QUEUED = 3, + READY = 4, + RUNNING = 5, + COMPLETE = 6, + FAILED = 7 + } + } + + /** Properties of a Shard. */ + interface IShard { + + /** Shard keyspace */ + keyspace?: (string|null); + + /** Shard name */ + name?: (string|null); + + /** Shard shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a Shard. */ + class Shard implements IShard { + + /** + * Constructs a new Shard. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShard); + + /** Shard keyspace. */ + public keyspace: string; + + /** Shard name. */ + public name: string; + + /** Shard shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new Shard instance using the specified properties. + * @param [properties] Properties to set + * @returns Shard instance + */ + public static create(properties?: vtctldata.IShard): vtctldata.Shard; + + /** + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Shard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; + + /** + * Decodes a Shard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; + + /** + * Verifies a Shard message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Shard + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Shard; + + /** + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @param message Shard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Shard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Shard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowOptions. */ + interface IWorkflowOptions { + + /** WorkflowOptions tenant_id */ + tenant_id?: (string|null); + + /** WorkflowOptions strip_sharded_auto_increment */ + strip_sharded_auto_increment?: (boolean|null); + + /** WorkflowOptions shards */ + shards?: (string[]|null); + + /** WorkflowOptions config */ + config?: ({ [k: string]: string }|null); + } + + /** Represents a WorkflowOptions. */ + class WorkflowOptions implements IWorkflowOptions { + + /** + * Constructs a new WorkflowOptions. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowOptions); + + /** WorkflowOptions tenant_id. */ + public tenant_id: string; + + /** WorkflowOptions strip_sharded_auto_increment. */ + public strip_sharded_auto_increment: boolean; + + /** WorkflowOptions shards. */ + public shards: string[]; + + /** WorkflowOptions config. */ + public config: { [k: string]: string }; + + /** + * Creates a new WorkflowOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowOptions instance + */ + public static create(properties?: vtctldata.IWorkflowOptions): vtctldata.WorkflowOptions; + + /** + * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @param message WorkflowOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @param message WorkflowOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowOptions; + + /** + * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowOptions; + + /** + * Verifies a WorkflowOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowOptions + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowOptions; + + /** + * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. + * @param message WorkflowOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow name */ + name?: (string|null); + + /** Workflow source */ + source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target */ + target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag */ + max_v_replication_lag?: (number|Long|null); + + /** Workflow shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); + + /** Workflow workflow_type */ + workflow_type?: (string|null); + + /** Workflow workflow_sub_type */ + workflow_sub_type?: (string|null); + + /** Workflow max_v_replication_transaction_lag */ + max_v_replication_transaction_lag?: (number|Long|null); + + /** Workflow defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** Workflow options */ + options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflow); + + /** Workflow name. */ + public name: string; + + /** Workflow source. */ + public source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target. */ + public target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag. */ + public max_v_replication_lag: (number|Long); + + /** Workflow shard_streams. */ + public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; + + /** Workflow workflow_type. */ + public workflow_type: string; + + /** Workflow workflow_sub_type. */ + public workflow_sub_type: string; + + /** Workflow max_v_replication_transaction_lag. */ + public max_v_replication_transaction_lag: (number|Long); + + /** Workflow defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** Workflow options. */ + public options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; + + /** + * Decodes a Workflow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Workflow + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; + + /** + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @param message Workflow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Workflow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Workflow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Workflow { + + /** Properties of a ReplicationLocation. */ + interface IReplicationLocation { + + /** ReplicationLocation keyspace */ + keyspace?: (string|null); + + /** ReplicationLocation shards */ + shards?: (string[]|null); + } + + /** Represents a ReplicationLocation. */ + class ReplicationLocation implements IReplicationLocation { + + /** + * Constructs a new ReplicationLocation. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IReplicationLocation); + + /** ReplicationLocation keyspace. */ + public keyspace: string; + + /** ReplicationLocation shards. */ + public shards: string[]; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicationLocation instance + */ + public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; + + /** + * Verifies a ReplicationLocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicationLocation + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @param message ReplicationLocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicationLocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReplicationLocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStream. */ + interface IShardStream { + + /** ShardStream streams */ + streams?: (vtctldata.Workflow.IStream[]|null); + + /** ShardStream tablet_controls */ + tablet_controls?: (topodata.Shard.ITabletControl[]|null); + + /** ShardStream is_primary_serving */ + is_primary_serving?: (boolean|null); + } + + /** Represents a ShardStream. */ + class ShardStream implements IShardStream { + + /** + * Constructs a new ShardStream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IShardStream); + + /** ShardStream streams. */ + public streams: vtctldata.Workflow.IStream[]; + + /** ShardStream tablet_controls. */ + public tablet_controls: topodata.Shard.ITabletControl[]; + + /** ShardStream is_primary_serving. */ + public is_primary_serving: boolean; + + /** + * Creates a new ShardStream instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStream instance + */ + public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; + + /** + * Verifies a ShardStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @param message ShardStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Stream. */ + interface IStream { + + /** Stream id */ + id?: (number|Long|null); + + /** Stream shard */ + shard?: (string|null); + + /** Stream tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source */ + binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position */ + position?: (string|null); + + /** Stream stop_position */ + stop_position?: (string|null); + + /** Stream state */ + state?: (string|null); + + /** Stream db_name */ + db_name?: (string|null); + + /** Stream transaction_timestamp */ + transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated */ + time_updated?: (vttime.ITime|null); + + /** Stream message */ + message?: (string|null); + + /** Stream copy_states */ + copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); + + /** Stream logs */ + logs?: (vtctldata.Workflow.Stream.ILog[]|null); + + /** Stream log_fetch_error */ + log_fetch_error?: (string|null); + + /** Stream tags */ + tags?: (string[]|null); + + /** Stream rows_copied */ + rows_copied?: (number|Long|null); + + /** Stream throttler_status */ + throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); + + /** Stream tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** Stream tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** Stream cells */ + cells?: (string[]|null); + } + + /** Represents a Stream. */ + class Stream implements IStream { + + /** + * Constructs a new Stream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IStream); + + /** Stream id. */ + public id: (number|Long); + + /** Stream shard. */ + public shard: string; + + /** Stream tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source. */ + public binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position. */ + public position: string; + + /** Stream stop_position. */ + public stop_position: string; + + /** Stream state. */ + public state: string; + + /** Stream db_name. */ + public db_name: string; + + /** Stream transaction_timestamp. */ + public transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated. */ + public time_updated?: (vttime.ITime|null); + + /** Stream message. */ + public message: string; + + /** Stream copy_states. */ + public copy_states: vtctldata.Workflow.Stream.ICopyState[]; + + /** Stream logs. */ + public logs: vtctldata.Workflow.Stream.ILog[]; + + /** Stream log_fetch_error. */ + public log_fetch_error: string; + + /** Stream tags. */ + public tags: string[]; + + /** Stream rows_copied. */ + public rows_copied: (number|Long); + + /** Stream throttler_status. */ + public throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); + + /** Stream tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** Stream tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** Stream cells. */ + public cells: string[]; + + /** + * Creates a new Stream instance using the specified properties. + * @param [properties] Properties to set + * @returns Stream instance + */ + public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; + + /** + * Verifies a Stream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Stream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @param message Stream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Stream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Stream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Stream { + + /** Properties of a CopyState. */ + interface ICopyState { + + /** CopyState table */ + table?: (string|null); + + /** CopyState last_pk */ + last_pk?: (string|null); + + /** CopyState stream_id */ + stream_id?: (number|Long|null); + } + + /** Represents a CopyState. */ + class CopyState implements ICopyState { + + /** + * Constructs a new CopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ICopyState); + + /** CopyState table. */ + public table: string; + + /** CopyState last_pk. */ + public last_pk: string; + + /** CopyState stream_id. */ + public stream_id: (number|Long); + + /** + * Creates a new CopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyState instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; + + /** + * Verifies a CopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @param message CopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Log. */ + interface ILog { + + /** Log id */ + id?: (number|Long|null); + + /** Log stream_id */ + stream_id?: (number|Long|null); + + /** Log type */ + type?: (string|null); + + /** Log state */ + state?: (string|null); + + /** Log created_at */ + created_at?: (vttime.ITime|null); + + /** Log updated_at */ + updated_at?: (vttime.ITime|null); + + /** Log message */ + message?: (string|null); + + /** Log count */ + count?: (number|Long|null); + } + + /** Represents a Log. */ + class Log implements ILog { + + /** + * Constructs a new Log. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ILog); + + /** Log id. */ + public id: (number|Long); + + /** Log stream_id. */ + public stream_id: (number|Long); + + /** Log type. */ + public type: string; + + /** Log state. */ + public state: string; + + /** Log created_at. */ + public created_at?: (vttime.ITime|null); + + /** Log updated_at. */ + public updated_at?: (vttime.ITime|null); + + /** Log message. */ + public message: string; + + /** Log count. */ + public count: (number|Long); + + /** + * Creates a new Log instance using the specified properties. + * @param [properties] Properties to set + * @returns Log instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ILog): vtctldata.Workflow.Stream.Log; + + /** + * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @param message Log message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @param message Log message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Log message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.Log; + + /** + * Decodes a Log message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.Log; + + /** + * Verifies a Log message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Log message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Log + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.Log; + + /** + * Creates a plain object from a Log message. Also converts values to other types if specified. + * @param message Log + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.Log, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Log to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Log + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ThrottlerStatus. */ + interface IThrottlerStatus { + + /** ThrottlerStatus component_throttled */ + component_throttled?: (string|null); + + /** ThrottlerStatus time_throttled */ + time_throttled?: (vttime.ITime|null); + } + + /** Represents a ThrottlerStatus. */ + class ThrottlerStatus implements IThrottlerStatus { + + /** + * Constructs a new ThrottlerStatus. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.IThrottlerStatus); + + /** ThrottlerStatus component_throttled. */ + public component_throttled: string; + + /** ThrottlerStatus time_throttled. */ + public time_throttled?: (vttime.ITime|null); + + /** + * Creates a new ThrottlerStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns ThrottlerStatus instance + */ + public static create(properties?: vtctldata.Workflow.Stream.IThrottlerStatus): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @param message ThrottlerStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @param message ThrottlerStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Verifies a ThrottlerStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThrottlerStatus + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. + * @param message ThrottlerStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.ThrottlerStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ThrottlerStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ThrottlerStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of an AddCellInfoRequest. */ + interface IAddCellInfoRequest { + + /** AddCellInfoRequest name */ + name?: (string|null); + + /** AddCellInfoRequest cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an AddCellInfoRequest. */ + class AddCellInfoRequest implements IAddCellInfoRequest { + + /** + * Constructs a new AddCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellInfoRequest); + + /** AddCellInfoRequest name. */ + public name: string; + + /** AddCellInfoRequest cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new AddCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellInfoRequest instance + */ + public static create(properties?: vtctldata.IAddCellInfoRequest): vtctldata.AddCellInfoRequest; + + /** + * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @param message AddCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @param message AddCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoRequest; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoRequest; + + /** + * Verifies an AddCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoRequest; + + /** + * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * @param message AddCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellInfoResponse. */ + interface IAddCellInfoResponse { + } + + /** Represents an AddCellInfoResponse. */ + class AddCellInfoResponse implements IAddCellInfoResponse { + + /** + * Constructs a new AddCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellInfoResponse); + + /** + * Creates a new AddCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellInfoResponse instance + */ + public static create(properties?: vtctldata.IAddCellInfoResponse): vtctldata.AddCellInfoResponse; + + /** + * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @param message AddCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @param message AddCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoResponse; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoResponse; + + /** + * Verifies an AddCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoResponse; + + /** + * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * @param message AddCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellsAliasRequest. */ + interface IAddCellsAliasRequest { + + /** AddCellsAliasRequest name */ + name?: (string|null); + + /** AddCellsAliasRequest cells */ + cells?: (string[]|null); + } + + /** Represents an AddCellsAliasRequest. */ + class AddCellsAliasRequest implements IAddCellsAliasRequest { + + /** + * Constructs a new AddCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellsAliasRequest); + + /** AddCellsAliasRequest name. */ + public name: string; + + /** AddCellsAliasRequest cells. */ + public cells: string[]; + + /** + * Creates a new AddCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IAddCellsAliasRequest): vtctldata.AddCellsAliasRequest; + + /** + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @param message AddCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @param message AddCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasRequest; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasRequest; + + /** + * Verifies an AddCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasRequest; + + /** + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * @param message AddCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellsAliasResponse. */ + interface IAddCellsAliasResponse { + } + + /** Represents an AddCellsAliasResponse. */ + class AddCellsAliasResponse implements IAddCellsAliasResponse { + + /** + * Constructs a new AddCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellsAliasResponse); + + /** + * Creates a new AddCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IAddCellsAliasResponse): vtctldata.AddCellsAliasResponse; + + /** + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @param message AddCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @param message AddCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasResponse; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasResponse; + + /** + * Verifies an AddCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasResponse; + + /** + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * @param message AddCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyKeyspaceRoutingRulesRequest. */ + interface IApplyKeyspaceRoutingRulesRequest { + + /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** ApplyKeyspaceRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyKeyspaceRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyKeyspaceRoutingRulesRequest. */ + class ApplyKeyspaceRoutingRulesRequest implements IApplyKeyspaceRoutingRulesRequest { + + /** + * Constructs a new ApplyKeyspaceRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest); + + /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** ApplyKeyspaceRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyKeyspaceRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyKeyspaceRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Verifies an ApplyKeyspaceRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyKeyspaceRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyKeyspaceRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyKeyspaceRoutingRulesResponse. */ + interface IApplyKeyspaceRoutingRulesResponse { + + /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + } + + /** Represents an ApplyKeyspaceRoutingRulesResponse. */ + class ApplyKeyspaceRoutingRulesResponse implements IApplyKeyspaceRoutingRulesResponse { + + /** + * Constructs a new ApplyKeyspaceRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse); + + /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** + * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyKeyspaceRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Verifies an ApplyKeyspaceRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyKeyspaceRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyKeyspaceRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyRoutingRulesRequest. */ + interface IApplyRoutingRulesRequest { + + /** ApplyRoutingRulesRequest routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + + /** ApplyRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyRoutingRulesRequest. */ + class ApplyRoutingRulesRequest implements IApplyRoutingRulesRequest { + + /** + * Constructs a new ApplyRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyRoutingRulesRequest); + + /** ApplyRoutingRulesRequest routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** ApplyRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyRoutingRulesRequest): vtctldata.ApplyRoutingRulesRequest; + + /** + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @param message ApplyRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @param message ApplyRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesRequest; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesRequest; + + /** + * Verifies an ApplyRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyRoutingRulesResponse. */ + interface IApplyRoutingRulesResponse { + } + + /** Represents an ApplyRoutingRulesResponse. */ + class ApplyRoutingRulesResponse implements IApplyRoutingRulesResponse { + + /** + * Constructs a new ApplyRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyRoutingRulesResponse); + + /** + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyRoutingRulesResponse): vtctldata.ApplyRoutingRulesResponse; + + /** + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * @param message ApplyRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * @param message ApplyRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesResponse; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesResponse; + + /** + * Verifies an ApplyRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyShardRoutingRulesRequest. */ + interface IApplyShardRoutingRulesRequest { + + /** ApplyShardRoutingRulesRequest shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** ApplyShardRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyShardRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyShardRoutingRulesRequest. */ + class ApplyShardRoutingRulesRequest implements IApplyShardRoutingRulesRequest { + + /** + * Constructs a new ApplyShardRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyShardRoutingRulesRequest); + + /** ApplyShardRoutingRulesRequest shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** ApplyShardRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyShardRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyShardRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyShardRoutingRulesRequest): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @param message ApplyShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @param message ApplyShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Verifies an ApplyShardRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyShardRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyShardRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyShardRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyShardRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyShardRoutingRulesResponse. */ + interface IApplyShardRoutingRulesResponse { + } + + /** Represents an ApplyShardRoutingRulesResponse. */ + class ApplyShardRoutingRulesResponse implements IApplyShardRoutingRulesResponse { + + /** + * Constructs a new ApplyShardRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyShardRoutingRulesResponse); + + /** + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyShardRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyShardRoutingRulesResponse): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @param message ApplyShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @param message ApplyShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Verifies an ApplyShardRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyShardRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyShardRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyShardRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyShardRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplySchemaRequest. */ + interface IApplySchemaRequest { + + /** ApplySchemaRequest keyspace */ + keyspace?: (string|null); + + /** ApplySchemaRequest sql */ + sql?: (string[]|null); + + /** ApplySchemaRequest ddl_strategy */ + ddl_strategy?: (string|null); + + /** ApplySchemaRequest uuid_list */ + uuid_list?: (string[]|null); + + /** ApplySchemaRequest migration_context */ + migration_context?: (string|null); + + /** ApplySchemaRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** ApplySchemaRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); + + /** ApplySchemaRequest batch_size */ + batch_size?: (number|Long|null); + } + + /** Represents an ApplySchemaRequest. */ + class ApplySchemaRequest implements IApplySchemaRequest { + + /** + * Constructs a new ApplySchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplySchemaRequest); + + /** ApplySchemaRequest keyspace. */ + public keyspace: string; + + /** ApplySchemaRequest sql. */ + public sql: string[]; + + /** ApplySchemaRequest ddl_strategy. */ + public ddl_strategy: string; + + /** ApplySchemaRequest uuid_list. */ + public uuid_list: string[]; + + /** ApplySchemaRequest migration_context. */ + public migration_context: string; + + /** ApplySchemaRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** ApplySchemaRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); + + /** ApplySchemaRequest batch_size. */ + public batch_size: (number|Long); + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplySchemaRequest instance + */ + public static create(properties?: vtctldata.IApplySchemaRequest): vtctldata.ApplySchemaRequest; + + /** + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @param message ApplySchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @param message ApplySchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplySchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaRequest; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplySchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaRequest; + + /** + * Verifies an ApplySchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplySchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaRequest; + + /** + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * @param message ApplySchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplySchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplySchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplySchemaResponse. */ + interface IApplySchemaResponse { + + /** ApplySchemaResponse uuid_list */ + uuid_list?: (string[]|null); + + /** ApplySchemaResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents an ApplySchemaResponse. */ + class ApplySchemaResponse implements IApplySchemaResponse { + + /** + * Constructs a new ApplySchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplySchemaResponse); + + /** ApplySchemaResponse uuid_list. */ + public uuid_list: string[]; + + /** ApplySchemaResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplySchemaResponse instance + */ + public static create(properties?: vtctldata.IApplySchemaResponse): vtctldata.ApplySchemaResponse; + + /** + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @param message ApplySchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @param message ApplySchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplySchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaResponse; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplySchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaResponse; + + /** + * Verifies an ApplySchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplySchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaResponse; + + /** + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * @param message ApplySchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplySchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplySchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyVSchemaRequest. */ + interface IApplyVSchemaRequest { + + /** ApplyVSchemaRequest keyspace */ + keyspace?: (string|null); + + /** ApplyVSchemaRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyVSchemaRequest dry_run */ + dry_run?: (boolean|null); + + /** ApplyVSchemaRequest cells */ + cells?: (string[]|null); + + /** ApplyVSchemaRequest v_schema */ + v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaRequest sql */ + sql?: (string|null); + + /** ApplyVSchemaRequest strict */ + strict?: (boolean|null); + } + + /** Represents an ApplyVSchemaRequest. */ + class ApplyVSchemaRequest implements IApplyVSchemaRequest { + + /** + * Constructs a new ApplyVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyVSchemaRequest); + + /** ApplyVSchemaRequest keyspace. */ + public keyspace: string; + + /** ApplyVSchemaRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyVSchemaRequest dry_run. */ + public dry_run: boolean; + + /** ApplyVSchemaRequest cells. */ + public cells: string[]; + + /** ApplyVSchemaRequest v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaRequest sql. */ + public sql: string; + + /** ApplyVSchemaRequest strict. */ + public strict: boolean; + + /** + * Creates a new ApplyVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyVSchemaRequest instance + */ + public static create(properties?: vtctldata.IApplyVSchemaRequest): vtctldata.ApplyVSchemaRequest; + + /** + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @param message ApplyVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @param message ApplyVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaRequest; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaRequest; + + /** + * Verifies an ApplyVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaRequest; + + /** + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * @param message ApplyVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyVSchemaResponse. */ + interface IApplyVSchemaResponse { + + /** ApplyVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaResponse unknown_vindex_params */ + unknown_vindex_params?: ({ [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }|null); + } + + /** Represents an ApplyVSchemaResponse. */ + class ApplyVSchemaResponse implements IApplyVSchemaResponse { + + /** + * Constructs a new ApplyVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyVSchemaResponse); + + /** ApplyVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaResponse unknown_vindex_params. */ + public unknown_vindex_params: { [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }; + + /** + * Creates a new ApplyVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyVSchemaResponse instance + */ + public static create(properties?: vtctldata.IApplyVSchemaResponse): vtctldata.ApplyVSchemaResponse; + + /** + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @param message ApplyVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @param message ApplyVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse; + + /** + * Verifies an ApplyVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse; + + /** + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * @param message ApplyVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ApplyVSchemaResponse { + + /** Properties of a ParamList. */ + interface IParamList { + + /** ParamList params */ + params?: (string[]|null); + } + + /** Represents a ParamList. */ + class ParamList implements IParamList { + + /** + * Constructs a new ParamList. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ApplyVSchemaResponse.IParamList); + + /** ParamList params. */ + public params: string[]; + + /** + * Creates a new ParamList instance using the specified properties. + * @param [properties] Properties to set + * @returns ParamList instance + */ + public static create(properties?: vtctldata.ApplyVSchemaResponse.IParamList): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @param message ParamList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @param message ParamList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParamList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Decodes a ParamList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Verifies a ParamList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParamList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParamList + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Creates a plain object from a ParamList message. Also converts values to other types if specified. + * @param message ParamList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaResponse.ParamList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParamList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ParamList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a BackupRequest. */ + interface IBackupRequest { + + /** BackupRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupRequest allow_primary */ + allow_primary?: (boolean|null); + + /** BackupRequest concurrency */ + concurrency?: (number|null); + + /** BackupRequest incremental_from_pos */ + incremental_from_pos?: (string|null); + + /** BackupRequest upgrade_safe */ + upgrade_safe?: (boolean|null); + + /** BackupRequest backup_engine */ + backup_engine?: (string|null); + } + + /** Represents a BackupRequest. */ + class BackupRequest implements IBackupRequest { + + /** + * Constructs a new BackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupRequest); + + /** BackupRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupRequest allow_primary. */ + public allow_primary: boolean; + + /** BackupRequest concurrency. */ + public concurrency: number; + + /** BackupRequest incremental_from_pos. */ + public incremental_from_pos: string; + + /** BackupRequest upgrade_safe. */ + public upgrade_safe: boolean; + + /** BackupRequest backup_engine. */ + public backup_engine?: (string|null); + + /** BackupRequest _backup_engine. */ + public _backup_engine?: "backup_engine"; + + /** + * Creates a new BackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupRequest instance + */ + public static create(properties?: vtctldata.IBackupRequest): vtctldata.BackupRequest; + + /** + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @param message BackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @param message BackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupRequest; + + /** + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupRequest; + + /** + * Verifies a BackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupRequest; + + /** + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * @param message BackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BackupResponse. */ + interface IBackupResponse { + + /** BackupResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupResponse keyspace */ + keyspace?: (string|null); + + /** BackupResponse shard */ + shard?: (string|null); + + /** BackupResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents a BackupResponse. */ + class BackupResponse implements IBackupResponse { + + /** + * Constructs a new BackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupResponse); + + /** BackupResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupResponse keyspace. */ + public keyspace: string; + + /** BackupResponse shard. */ + public shard: string; + + /** BackupResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new BackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupResponse instance + */ + public static create(properties?: vtctldata.IBackupResponse): vtctldata.BackupResponse; + + /** + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @param message BackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @param message BackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupResponse; + + /** + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupResponse; + + /** + * Verifies a BackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupResponse; + + /** + * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * @param message BackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BackupShardRequest. */ + interface IBackupShardRequest { + + /** BackupShardRequest keyspace */ + keyspace?: (string|null); + + /** BackupShardRequest shard */ + shard?: (string|null); + + /** BackupShardRequest allow_primary */ + allow_primary?: (boolean|null); + + /** BackupShardRequest concurrency */ + concurrency?: (number|null); + + /** BackupShardRequest upgrade_safe */ + upgrade_safe?: (boolean|null); + + /** BackupShardRequest incremental_from_pos */ + incremental_from_pos?: (string|null); + } + + /** Represents a BackupShardRequest. */ + class BackupShardRequest implements IBackupShardRequest { + + /** + * Constructs a new BackupShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupShardRequest); + + /** BackupShardRequest keyspace. */ + public keyspace: string; + + /** BackupShardRequest shard. */ + public shard: string; + + /** BackupShardRequest allow_primary. */ + public allow_primary: boolean; + + /** BackupShardRequest concurrency. */ + public concurrency: number; + + /** BackupShardRequest upgrade_safe. */ + public upgrade_safe: boolean; + + /** BackupShardRequest incremental_from_pos. */ + public incremental_from_pos: string; + + /** + * Creates a new BackupShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupShardRequest instance + */ + public static create(properties?: vtctldata.IBackupShardRequest): vtctldata.BackupShardRequest; + + /** + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @param message BackupShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @param message BackupShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupShardRequest; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupShardRequest; + + /** + * Verifies a BackupShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupShardRequest; + + /** + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * @param message BackupShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelSchemaMigrationRequest. */ + interface ICancelSchemaMigrationRequest { + + /** CancelSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CancelSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CancelSchemaMigrationRequest. */ + class CancelSchemaMigrationRequest implements ICancelSchemaMigrationRequest { + + /** + * Constructs a new CancelSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICancelSchemaMigrationRequest); + + /** CancelSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CancelSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CancelSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICancelSchemaMigrationRequest): vtctldata.CancelSchemaMigrationRequest; + + /** + * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @param message CancelSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @param message CancelSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationRequest; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationRequest; + + /** + * Verifies a CancelSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationRequest; + + /** + * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CancelSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CancelSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelSchemaMigrationResponse. */ + interface ICancelSchemaMigrationResponse { + + /** CancelSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CancelSchemaMigrationResponse. */ + class CancelSchemaMigrationResponse implements ICancelSchemaMigrationResponse { + + /** + * Constructs a new CancelSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICancelSchemaMigrationResponse); + + /** CancelSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CancelSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICancelSchemaMigrationResponse): vtctldata.CancelSchemaMigrationResponse; + + /** + * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @param message CancelSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @param message CancelSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationResponse; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationResponse; + + /** + * Verifies a CancelSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationResponse; + + /** + * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CancelSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CancelSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTagsRequest. */ + interface IChangeTabletTagsRequest { + + /** ChangeTabletTagsRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTabletTagsRequest. */ + class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { + + /** + * Constructs a new ChangeTabletTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsRequest); + + /** ChangeTabletTagsRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTabletTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; + + /** + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsRequest; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsRequest; + + /** + * Verifies a ChangeTabletTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; + + /** + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTagsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTagsResponse. */ + interface IChangeTabletTagsResponse { + + /** ChangeTabletTagsResponse before_tags */ + before_tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsResponse after_tags */ + after_tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTabletTagsResponse. */ + class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { + + /** + * Constructs a new ChangeTabletTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsResponse); + + /** ChangeTabletTagsResponse before_tags. */ + public before_tags: { [k: string]: string }; + + /** ChangeTabletTagsResponse after_tags. */ + public after_tags: { [k: string]: string }; + + /** + * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; + + /** + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsResponse; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsResponse; + + /** + * Verifies a ChangeTabletTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; + + /** + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTagsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTypeRequest. */ + interface IChangeTabletTypeRequest { + + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); + + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + + /** + * Constructs a new ChangeTabletTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeRequest); + + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; + + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; + + /** + * Verifies a ChangeTabletTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTypeResponse. */ + interface IChangeTabletTypeResponse { + + /** ChangeTabletTypeResponse before_tablet */ + before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet */ + after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run */ + was_dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + + /** + * Constructs a new ChangeTabletTypeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeResponse); + + /** ChangeTabletTypeResponse before_tablet. */ + public before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet. */ + public after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run. */ + public was_dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; + + /** + * Verifies a ChangeTabletTypeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTypeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTypeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CheckThrottlerRequest. */ + interface ICheckThrottlerRequest { + + /** CheckThrottlerRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerRequest app_name */ + app_name?: (string|null); + + /** CheckThrottlerRequest scope */ + scope?: (string|null); + + /** CheckThrottlerRequest skip_request_heartbeats */ + skip_request_heartbeats?: (boolean|null); + + /** CheckThrottlerRequest ok_if_not_exists */ + ok_if_not_exists?: (boolean|null); + } + + /** Represents a CheckThrottlerRequest. */ + class CheckThrottlerRequest implements ICheckThrottlerRequest { + + /** + * Constructs a new CheckThrottlerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICheckThrottlerRequest); + + /** CheckThrottlerRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerRequest app_name. */ + public app_name: string; + + /** CheckThrottlerRequest scope. */ + public scope: string; + + /** CheckThrottlerRequest skip_request_heartbeats. */ + public skip_request_heartbeats: boolean; + + /** CheckThrottlerRequest ok_if_not_exists. */ + public ok_if_not_exists: boolean; + + /** + * Creates a new CheckThrottlerRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckThrottlerRequest instance + */ + public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; + + /** + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * @param message CheckThrottlerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * @param message CheckThrottlerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckThrottlerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerRequest; + + /** + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckThrottlerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerRequest; + + /** + * Verifies a CheckThrottlerRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckThrottlerRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; + + /** + * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. + * @param message CheckThrottlerRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckThrottlerRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CheckThrottlerRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CheckThrottlerResponse. */ + interface ICheckThrottlerResponse { + + /** CheckThrottlerResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check */ + Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); + } + + /** Represents a CheckThrottlerResponse. */ + class CheckThrottlerResponse implements ICheckThrottlerResponse { + + /** + * Constructs a new CheckThrottlerResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICheckThrottlerResponse); + + /** CheckThrottlerResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check. */ + public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); + + /** + * Creates a new CheckThrottlerResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckThrottlerResponse instance + */ + public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; + + /** + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * @param message CheckThrottlerResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * @param message CheckThrottlerResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckThrottlerResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerResponse; + + /** + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckThrottlerResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerResponse; + + /** + * Verifies a CheckThrottlerResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckThrottlerResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; + + /** + * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. + * @param message CheckThrottlerResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckThrottlerResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CheckThrottlerResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CleanupSchemaMigrationRequest. */ + interface ICleanupSchemaMigrationRequest { + + /** CleanupSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CleanupSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CleanupSchemaMigrationRequest. */ + class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { + + /** + * Constructs a new CleanupSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); + + /** CleanupSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CleanupSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CleanupSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * @param message CleanupSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * @param message CleanupSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CleanupSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CleanupSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Verifies a CleanupSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CleanupSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CleanupSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CleanupSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CleanupSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CleanupSchemaMigrationResponse. */ + interface ICleanupSchemaMigrationResponse { + + /** CleanupSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CleanupSchemaMigrationResponse. */ + class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { + + /** + * Constructs a new CleanupSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); + + /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CleanupSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * @param message CleanupSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * @param message CleanupSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CleanupSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CleanupSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Verifies a CleanupSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CleanupSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CleanupSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CleanupSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CleanupSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompleteSchemaMigrationRequest. */ + interface ICompleteSchemaMigrationRequest { + + /** CompleteSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CompleteSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CompleteSchemaMigrationRequest. */ + class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { + + /** + * Constructs a new CompleteSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); + + /** CompleteSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CompleteSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * @param message CompleteSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * @param message CompleteSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Verifies a CompleteSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CompleteSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompleteSchemaMigrationResponse. */ + interface ICompleteSchemaMigrationResponse { + + /** CompleteSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CompleteSchemaMigrationResponse. */ + class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { + + /** + * Constructs a new CompleteSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); + + /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * @param message CompleteSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * @param message CompleteSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Verifies a CompleteSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CompleteSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateKeyspaceRequest. */ + interface ICreateKeyspaceRequest { + + /** CreateKeyspaceRequest name */ + name?: (string|null); + + /** CreateKeyspaceRequest force */ + force?: (boolean|null); + + /** CreateKeyspaceRequest allow_empty_v_schema */ + allow_empty_v_schema?: (boolean|null); + + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); + + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); + + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); + + /** CreateKeyspaceRequest durability_policy */ + durability_policy?: (string|null); + + /** CreateKeyspaceRequest sidecar_db_name */ + sidecar_db_name?: (string|null); + } + + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + + /** + * Constructs a new CreateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceRequest); + + /** CreateKeyspaceRequest name. */ + public name: string; + + /** CreateKeyspaceRequest force. */ + public force: boolean; + + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; + + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; + + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; + + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); + + /** CreateKeyspaceRequest durability_policy. */ + public durability_policy: string; + + /** CreateKeyspaceRequest sidecar_db_name. */ + public sidecar_db_name: string; + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; + + /** + * Verifies a CreateKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + + /** + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * @param message CreateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { + + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + + /** + * Constructs a new CreateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceResponse); + + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new CreateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + + /** + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; + + /** + * Verifies a CreateKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + + /** + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * @param message CreateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { + + /** CreateShardRequest keyspace */ + keyspace?: (string|null); + + /** CreateShardRequest shard_name */ + shard_name?: (string|null); + + /** CreateShardRequest force */ + force?: (boolean|null); + + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); + } + + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { + + /** + * Constructs a new CreateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardRequest); + + /** CreateShardRequest keyspace. */ + public keyspace: string; + + /** CreateShardRequest shard_name. */ + public shard_name: string; + + /** CreateShardRequest force. */ + public force: boolean; + + /** CreateShardRequest include_parent. */ + public include_parent: boolean; + + /** + * Creates a new CreateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardRequest instance + */ + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + + /** + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; + + /** + * Verifies a CreateShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + + /** + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * @param message CreateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { + + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); + } + + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { + + /** + * Constructs a new CreateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardResponse); + + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; + + /** + * Creates a new CreateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardResponse instance + */ + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + + /** + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; + + /** + * Verifies a CreateShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + + /** + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * @param message CreateShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellInfoRequest. */ + interface IDeleteCellInfoRequest { + + /** DeleteCellInfoRequest name */ + name?: (string|null); + + /** DeleteCellInfoRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteCellInfoRequest. */ + class DeleteCellInfoRequest implements IDeleteCellInfoRequest { + + /** + * Constructs a new DeleteCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellInfoRequest); + + /** DeleteCellInfoRequest name. */ + public name: string; + + /** DeleteCellInfoRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellInfoRequest instance + */ + public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; + + /** + * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * @param message DeleteCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * @param message DeleteCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoRequest; + + /** + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoRequest; + + /** + * Verifies a DeleteCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; + + /** + * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. + * @param message DeleteCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellInfoResponse. */ + interface IDeleteCellInfoResponse { + } + + /** Represents a DeleteCellInfoResponse. */ + class DeleteCellInfoResponse implements IDeleteCellInfoResponse { + + /** + * Constructs a new DeleteCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellInfoResponse); + + /** + * Creates a new DeleteCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellInfoResponse instance + */ + public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; + + /** + * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * @param message DeleteCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * @param message DeleteCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoResponse; + + /** + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoResponse; + + /** + * Verifies a DeleteCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; + + /** + * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. + * @param message DeleteCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellsAliasRequest. */ + interface IDeleteCellsAliasRequest { + + /** DeleteCellsAliasRequest name */ + name?: (string|null); + } + + /** Represents a DeleteCellsAliasRequest. */ + class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { + + /** + * Constructs a new DeleteCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellsAliasRequest); + + /** DeleteCellsAliasRequest name. */ + public name: string; + + /** + * Creates a new DeleteCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IDeleteCellsAliasRequest): vtctldata.DeleteCellsAliasRequest; + + /** + * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * @param message DeleteCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * @param message DeleteCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasRequest; + + /** + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasRequest; + + /** + * Verifies a DeleteCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasRequest; + + /** + * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. + * @param message DeleteCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellsAliasResponse. */ + interface IDeleteCellsAliasResponse { + } + + /** Represents a DeleteCellsAliasResponse. */ + class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { + + /** + * Constructs a new DeleteCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellsAliasResponse); + + /** + * Creates a new DeleteCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IDeleteCellsAliasResponse): vtctldata.DeleteCellsAliasResponse; + + /** + * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * @param message DeleteCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * @param message DeleteCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasResponse; + + /** + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasResponse; + + /** + * Verifies a DeleteCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; + + /** + * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. + * @param message DeleteCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { + + /** DeleteKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); + + /** DeleteKeyspaceRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + + /** + * Constructs a new DeleteKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + + /** DeleteKeyspaceRequest keyspace. */ + public keyspace: string; + + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; + + /** DeleteKeyspaceRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + + /** + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; + + /** + * Verifies a DeleteKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + + /** + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * @param message DeleteKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { + } + + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + + /** + * Constructs a new DeleteKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + + /** + * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + + /** + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; + + /** + * Verifies a DeleteKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + + /** + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * @param message DeleteKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteShardsRequest. */ + interface IDeleteShardsRequest { + + /** DeleteShardsRequest shards */ + shards?: (vtctldata.IShard[]|null); + + /** DeleteShardsRequest recursive */ + recursive?: (boolean|null); + + /** DeleteShardsRequest even_if_serving */ + even_if_serving?: (boolean|null); + + /** DeleteShardsRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { + + /** + * Constructs a new DeleteShardsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsRequest); + + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; + + /** DeleteShardsRequest recursive. */ + public recursive: boolean; + + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; + + /** DeleteShardsRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteShardsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsRequest instance + */ + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + + /** + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; + + /** + * Verifies a DeleteShardsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + + /** + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * @param message DeleteShardsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteShardsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { + } + + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { + + /** + * Constructs a new DeleteShardsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsResponse); + + /** + * Creates a new DeleteShardsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsResponse instance + */ + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + + /** + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; + + /** + * Verifies a DeleteShardsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + + /** + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * @param message DeleteShardsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteShardsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSrvVSchemaRequest. */ + interface IDeleteSrvVSchemaRequest { + + /** DeleteSrvVSchemaRequest cell */ + cell?: (string|null); + } + + /** Represents a DeleteSrvVSchemaRequest. */ + class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { + + /** + * Constructs a new DeleteSrvVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); + + /** DeleteSrvVSchemaRequest cell. */ + public cell: string; + + /** + * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSrvVSchemaRequest instance + */ + public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * @param message DeleteSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * @param message DeleteSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Verifies a DeleteSrvVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSrvVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. + * @param message DeleteSrvVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSrvVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSrvVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSrvVSchemaResponse. */ + interface IDeleteSrvVSchemaResponse { + } + + /** Represents a DeleteSrvVSchemaResponse. */ + class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { + + /** + * Constructs a new DeleteSrvVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); + + /** + * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSrvVSchemaResponse instance + */ + public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * @param message DeleteSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * @param message DeleteSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Verifies a DeleteSrvVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSrvVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. + * @param message DeleteSrvVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSrvVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSrvVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { + + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); + } + + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { + + /** + * Constructs a new DeleteTabletsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsRequest); + + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; + + /** + * Creates a new DeleteTabletsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsRequest instance + */ + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + + /** + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; + + /** + * Verifies a DeleteTabletsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + + /** + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * @param message DeleteTabletsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTabletsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { + } + + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { + + /** + * Constructs a new DeleteTabletsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsResponse); + + /** + * Creates a new DeleteTabletsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsResponse instance + */ + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + + /** + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; + + /** + * Verifies a DeleteTabletsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + + /** + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * @param message DeleteTabletsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTabletsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EmergencyReparentShardRequest. */ + interface IEmergencyReparentShardRequest { + + /** EmergencyReparentShardRequest keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardRequest shard */ + shard?: (string|null); + + /** EmergencyReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardRequest ignore_replicas */ + ignore_replicas?: (topodata.ITabletAlias[]|null); + + /** EmergencyReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** EmergencyReparentShardRequest prevent_cross_cell_promotion */ + prevent_cross_cell_promotion?: (boolean|null); + + /** EmergencyReparentShardRequest wait_for_all_tablets */ + wait_for_all_tablets?: (boolean|null); + } + + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + + /** + * Constructs a new EmergencyReparentShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); + + /** EmergencyReparentShardRequest keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardRequest shard. */ + public shard: string; + + /** EmergencyReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardRequest ignore_replicas. */ + public ignore_replicas: topodata.ITabletAlias[]; + + /** EmergencyReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** EmergencyReparentShardRequest prevent_cross_cell_promotion. */ + public prevent_cross_cell_promotion: boolean; + + /** EmergencyReparentShardRequest wait_for_all_tablets. */ + public wait_for_all_tablets: boolean; + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardRequest instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + + /** + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; + + /** + * Verifies an EmergencyReparentShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + + /** + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * @param message EmergencyReparentShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmergencyReparentShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { + + /** EmergencyReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardResponse shard */ + shard?: (string|null); + + /** EmergencyReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + + /** + * Constructs a new EmergencyReparentShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + + /** EmergencyReparentShardResponse keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardResponse shard. */ + public shard: string; + + /** EmergencyReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardResponse instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + + /** + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; + + /** + * Verifies an EmergencyReparentShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + + /** + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * @param message EmergencyReparentShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmergencyReparentShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsAppRequest. */ + interface IExecuteFetchAsAppRequest { + + /** ExecuteFetchAsAppRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsAppRequest query */ + query?: (string|null); + + /** ExecuteFetchAsAppRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsAppRequest use_pool */ + use_pool?: (boolean|null); + } + + /** Represents an ExecuteFetchAsAppRequest. */ + class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { + + /** + * Constructs a new ExecuteFetchAsAppRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsAppRequest); + + /** ExecuteFetchAsAppRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsAppRequest query. */ + public query: string; + + /** ExecuteFetchAsAppRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsAppRequest use_pool. */ + public use_pool: boolean; + + /** + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsAppRequest instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * @param message ExecuteFetchAsAppRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * @param message ExecuteFetchAsAppRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsAppRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsAppRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Verifies an ExecuteFetchAsAppRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsAppRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAppRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsAppRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsAppRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsAppResponse. */ + interface IExecuteFetchAsAppResponse { + + /** ExecuteFetchAsAppResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteFetchAsAppResponse. */ + class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { + + /** + * Constructs a new ExecuteFetchAsAppResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); + + /** ExecuteFetchAsAppResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsAppResponse instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * @param message ExecuteFetchAsAppResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * @param message ExecuteFetchAsAppResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsAppResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsAppResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Verifies an ExecuteFetchAsAppResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsAppResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAppResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsAppResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsAppResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsDBARequest. */ + interface IExecuteFetchAsDBARequest { + + /** ExecuteFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsDBARequest query */ + query?: (string|null); + + /** ExecuteFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); + } + + /** Represents an ExecuteFetchAsDBARequest. */ + class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { + + /** + * Constructs a new ExecuteFetchAsDBARequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsDBARequest); + + /** ExecuteFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsDBARequest query. */ + public query: string; + + /** ExecuteFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; + + /** + * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsDBARequest instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Verifies an ExecuteFetchAsDBARequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsDBARequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. + * @param message ExecuteFetchAsDBARequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsDBARequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsDBARequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsDBAResponse. */ + interface IExecuteFetchAsDBAResponse { + + /** ExecuteFetchAsDBAResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteFetchAsDBAResponse. */ + class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { + + /** + * Constructs a new ExecuteFetchAsDBAResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); + + /** ExecuteFetchAsDBAResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsDBAResponse instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Verifies an ExecuteFetchAsDBAResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsDBAResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. + * @param message ExecuteFetchAsDBAResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsDBAResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsDBAResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteHookRequest. */ + interface IExecuteHookRequest { + + /** ExecuteHookRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteHookRequest tablet_hook_request */ + tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); + } + + /** Represents an ExecuteHookRequest. */ + class ExecuteHookRequest implements IExecuteHookRequest { + + /** + * Constructs a new ExecuteHookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteHookRequest); + + /** ExecuteHookRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteHookRequest tablet_hook_request. */ + public tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); + + /** + * Creates a new ExecuteHookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteHookRequest instance + */ + public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; + + /** + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * @param message ExecuteHookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * @param message ExecuteHookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteHookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookRequest; + + /** + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteHookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookRequest; + + /** + * Verifies an ExecuteHookRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteHookRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; + + /** + * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. + * @param message ExecuteHookRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteHookRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteHookRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteHookResponse. */ + interface IExecuteHookResponse { + + /** ExecuteHookResponse hook_result */ + hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + } + + /** Represents an ExecuteHookResponse. */ + class ExecuteHookResponse implements IExecuteHookResponse { + + /** + * Constructs a new ExecuteHookResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteHookResponse); + + /** ExecuteHookResponse hook_result. */ + public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + + /** + * Creates a new ExecuteHookResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteHookResponse instance + */ + public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; + + /** + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * @param message ExecuteHookResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * @param message ExecuteHookResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteHookResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookResponse; + + /** + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteHookResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookResponse; + + /** + * Verifies an ExecuteHookResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteHookResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; + + /** + * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. + * @param message ExecuteHookResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteHookResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteHookResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteMultiFetchAsDBARequest. */ + interface IExecuteMultiFetchAsDBARequest { + + /** ExecuteMultiFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteMultiFetchAsDBARequest sql */ + sql?: (string|null); + + /** ExecuteMultiFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteMultiFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteMultiFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); + } + + /** Represents an ExecuteMultiFetchAsDBARequest. */ + class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { + + /** + * Constructs a new ExecuteMultiFetchAsDBARequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBARequest); + + /** ExecuteMultiFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteMultiFetchAsDBARequest sql. */ + public sql: string; + + /** ExecuteMultiFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteMultiFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteMultiFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; + + /** + * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteMultiFetchAsDBARequest instance + */ + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteMultiFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteMultiFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Verifies an ExecuteMultiFetchAsDBARequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteMultiFetchAsDBARequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. + * @param message ExecuteMultiFetchAsDBARequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteMultiFetchAsDBARequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteMultiFetchAsDBARequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteMultiFetchAsDBAResponse. */ + interface IExecuteMultiFetchAsDBAResponse { + + /** ExecuteMultiFetchAsDBAResponse results */ + results?: (query.IQueryResult[]|null); + } + + /** Represents an ExecuteMultiFetchAsDBAResponse. */ + class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { + + /** + * Constructs a new ExecuteMultiFetchAsDBAResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); + + /** ExecuteMultiFetchAsDBAResponse results. */ + public results: query.IQueryResult[]; + + /** + * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteMultiFetchAsDBAResponse instance + */ + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteMultiFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteMultiFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Verifies an ExecuteMultiFetchAsDBAResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteMultiFetchAsDBAResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. + * @param message ExecuteMultiFetchAsDBAResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteMultiFetchAsDBAResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteMultiFetchAsDBAResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FindAllShardsInKeyspaceRequest. */ + interface IFindAllShardsInKeyspaceRequest { + + /** FindAllShardsInKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a FindAllShardsInKeyspaceRequest. */ + class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + + /** + * Constructs a new FindAllShardsInKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); + + /** FindAllShardsInKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Verifies a FindAllShardsInKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FindAllShardsInKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FindAllShardsInKeyspaceResponse. */ + interface IFindAllShardsInKeyspaceResponse { + + /** FindAllShardsInKeyspaceResponse shards */ + shards?: ({ [k: string]: vtctldata.IShard }|null); + } + + /** Represents a FindAllShardsInKeyspaceResponse. */ + class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + + /** + * Constructs a new FindAllShardsInKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + + /** FindAllShardsInKeyspaceResponse shards. */ + public shards: { [k: string]: vtctldata.IShard }; + + /** + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Verifies a FindAllShardsInKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FindAllShardsInKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ForceCutOverSchemaMigrationRequest. */ + interface IForceCutOverSchemaMigrationRequest { + + /** ForceCutOverSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** ForceCutOverSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a ForceCutOverSchemaMigrationRequest. */ + class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { + + /** + * Constructs a new ForceCutOverSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); + + /** ForceCutOverSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** ForceCutOverSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ForceCutOverSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ForceCutOverSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ForceCutOverSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Verifies a ForceCutOverSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ForceCutOverSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message ForceCutOverSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ForceCutOverSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ForceCutOverSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ForceCutOverSchemaMigrationResponse. */ + interface IForceCutOverSchemaMigrationResponse { + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a ForceCutOverSchemaMigrationResponse. */ + class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { + + /** + * Constructs a new ForceCutOverSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ForceCutOverSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ForceCutOverSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ForceCutOverSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Verifies a ForceCutOverSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ForceCutOverSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message ForceCutOverSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ForceCutOverSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ForceCutOverSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { + + /** GetBackupsRequest keyspace */ + keyspace?: (string|null); + + /** GetBackupsRequest shard */ + shard?: (string|null); + + /** GetBackupsRequest limit */ + limit?: (number|null); + + /** GetBackupsRequest detailed */ + detailed?: (boolean|null); + + /** GetBackupsRequest detailed_limit */ + detailed_limit?: (number|null); + } + + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { + + /** + * Constructs a new GetBackupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsRequest); + + /** GetBackupsRequest keyspace. */ + public keyspace: string; + + /** GetBackupsRequest shard. */ + public shard: string; + + /** GetBackupsRequest limit. */ + public limit: number; + + /** GetBackupsRequest detailed. */ + public detailed: boolean; + + /** GetBackupsRequest detailed_limit. */ + public detailed_limit: number; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsRequest instance + */ + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + + /** + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; + + /** + * Verifies a GetBackupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + + /** + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * @param message GetBackupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetBackupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { + + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); + } + + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { + + /** + * Constructs a new GetBackupsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsResponse); + + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; + + /** + * Creates a new GetBackupsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsResponse instance + */ + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + + /** + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; + + /** + * Verifies a GetBackupsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + + /** + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * @param message GetBackupsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetBackupsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { + + /** GetCellInfoRequest cell */ + cell?: (string|null); + } + + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { + + /** + * Constructs a new GetCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoRequest); + + /** GetCellInfoRequest cell. */ + public cell: string; + + /** + * Creates a new GetCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + + /** + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; + + /** + * Verifies a GetCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + + /** + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * @param message GetCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { + + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { + + /** + * Constructs a new GetCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoResponse); + + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new GetCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + + /** + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; + + /** + * Verifies a GetCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + + /** + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * @param message GetCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { + } + + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + + /** + * Constructs a new GetCellInfoNamesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + + /** + * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + + /** + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; + + /** + * Verifies a GetCellInfoNamesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + + /** + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * @param message GetCellInfoNamesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoNamesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { + + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); + } + + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + + /** + * Constructs a new GetCellInfoNamesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + + /** GetCellInfoNamesResponse names. */ + public names: string[]; + + /** + * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + + /** + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; + + /** + * Verifies a GetCellInfoNamesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + + /** + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * @param message GetCellInfoNamesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoNamesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { + } + + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + + /** + * Constructs a new GetCellsAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesRequest); + + /** + * Creates a new GetCellsAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesRequest instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + + /** + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; + + /** + * Verifies a GetCellsAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + + /** + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * @param message GetCellsAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellsAliasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { + + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + } + + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + + /** + * Constructs a new GetCellsAliasesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesResponse); + + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; + + /** + * Creates a new GetCellsAliasesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesResponse instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + + /** + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; + + /** + * Verifies a GetCellsAliasesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + + /** + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. + * @param message GetCellsAliasesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellsAliasesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFullStatusRequest. */ + interface IGetFullStatusRequest { + + /** GetFullStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetFullStatusRequest. */ + class GetFullStatusRequest implements IGetFullStatusRequest { + + /** + * Constructs a new GetFullStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetFullStatusRequest); + + /** GetFullStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetFullStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFullStatusRequest instance + */ + public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; + + /** + * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * @param message GetFullStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * @param message GetFullStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFullStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFullStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusRequest; + + /** + * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFullStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusRequest; + + /** + * Verifies a GetFullStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFullStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; + + /** + * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. + * @param message GetFullStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFullStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFullStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFullStatusResponse. */ + interface IGetFullStatusResponse { + + /** GetFullStatusResponse status */ + status?: (replicationdata.IFullStatus|null); + } + + /** Represents a GetFullStatusResponse. */ + class GetFullStatusResponse implements IGetFullStatusResponse { + + /** + * Constructs a new GetFullStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetFullStatusResponse); + + /** GetFullStatusResponse status. */ + public status?: (replicationdata.IFullStatus|null); + + /** + * Creates a new GetFullStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFullStatusResponse instance + */ + public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; + + /** + * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * @param message GetFullStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * @param message GetFullStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFullStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFullStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusResponse; + + /** + * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFullStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusResponse; + + /** + * Verifies a GetFullStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFullStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; + + /** + * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. + * @param message GetFullStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFullStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFullStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { + } + + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { + + /** + * Constructs a new GetKeyspacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspacesRequest); + + /** + * Creates a new GetKeyspacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspacesRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + + /** + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; + + /** + * Verifies a GetKeyspacesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspacesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + + /** + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetKeyspacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspacesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { + + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); + } + + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { + + /** + * Constructs a new GetKeyspacesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspacesResponse); + + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; + + /** + * Creates a new GetKeyspacesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspacesResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + + /** + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; + + /** + * Verifies a GetKeyspacesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspacesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + + /** + * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. + * @param message GetKeyspacesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspacesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspacesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { + + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { + + /** + * Constructs a new GetKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRequest); + + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new GetKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + + /** + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; + + /** + * Verifies a GetKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + + /** + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * @param message GetKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { + + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { + + /** + * Constructs a new GetKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceResponse); + + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new GetKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + + /** + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; + + /** + * Verifies a GetKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + + /** + * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. + * @param message GetKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPermissionsRequest. */ + interface IGetPermissionsRequest { + + /** GetPermissionsRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetPermissionsRequest. */ + class GetPermissionsRequest implements IGetPermissionsRequest { + + /** + * Constructs a new GetPermissionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetPermissionsRequest); + + /** GetPermissionsRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetPermissionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPermissionsRequest instance + */ + public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; + + /** + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * @param message GetPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * @param message GetPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPermissionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsRequest; + + /** + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPermissionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsRequest; + + /** + * Verifies a GetPermissionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPermissionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; + + /** + * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. + * @param message GetPermissionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPermissionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPermissionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPermissionsResponse. */ + interface IGetPermissionsResponse { + + /** GetPermissionsResponse permissions */ + permissions?: (tabletmanagerdata.IPermissions|null); + } + + /** Represents a GetPermissionsResponse. */ + class GetPermissionsResponse implements IGetPermissionsResponse { + + /** + * Constructs a new GetPermissionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetPermissionsResponse); + + /** GetPermissionsResponse permissions. */ + public permissions?: (tabletmanagerdata.IPermissions|null); + + /** + * Creates a new GetPermissionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPermissionsResponse instance + */ + public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; + + /** + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * @param message GetPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * @param message GetPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPermissionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsResponse; + + /** + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPermissionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsResponse; + + /** + * Verifies a GetPermissionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPermissionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; + + /** + * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. + * @param message GetPermissionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPermissionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPermissionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRoutingRulesRequest. */ + interface IGetKeyspaceRoutingRulesRequest { + } + + /** Represents a GetKeyspaceRoutingRulesRequest. */ + class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { + + /** + * Constructs a new GetKeyspaceRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); + + /** + * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Verifies a GetKeyspaceRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetKeyspaceRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRoutingRulesResponse. */ + interface IGetKeyspaceRoutingRulesResponse { + + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + } + + /** Represents a GetKeyspaceRoutingRulesResponse. */ + class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { + + /** + * Constructs a new GetKeyspaceRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); + + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** + * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Verifies a GetKeyspaceRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetKeyspaceRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRoutingRulesRequest. */ + interface IGetRoutingRulesRequest { + } + + /** Represents a GetRoutingRulesRequest. */ + class GetRoutingRulesRequest implements IGetRoutingRulesRequest { + + /** + * Constructs a new GetRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetRoutingRulesRequest); + + /** + * Creates a new GetRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; + + /** + * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * @param message GetRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * @param message GetRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesRequest; + + /** + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesRequest; + + /** + * Verifies a GetRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; + + /** + * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRoutingRulesResponse. */ + interface IGetRoutingRulesResponse { + + /** GetRoutingRulesResponse routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + } + + /** Represents a GetRoutingRulesResponse. */ + class GetRoutingRulesResponse implements IGetRoutingRulesResponse { + + /** + * Constructs a new GetRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetRoutingRulesResponse); + + /** GetRoutingRulesResponse routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** + * Creates a new GetRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; + + /** + * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * @param message GetRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * @param message GetRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesResponse; + + /** + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesResponse; + + /** + * Verifies a GetRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; + + /** + * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest table_names_only */ + table_names_only?: (boolean|null); + + /** GetSchemaRequest table_sizes_only */ + table_sizes_only?: (boolean|null); + + /** GetSchemaRequest table_schema_only */ + table_schema_only?: (boolean|null); + } + + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { + + /** + * Constructs a new GetSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaRequest); + + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest table_names_only. */ + public table_names_only: boolean; + + /** GetSchemaRequest table_sizes_only. */ + public table_sizes_only: boolean; + + /** GetSchemaRequest table_schema_only. */ + public table_schema_only: boolean; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; + + /** + * Verifies a GetSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); + } + + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { + + /** + * Constructs a new GetSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaResponse); + + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); + + /** + * Creates a new GetSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + + /** + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; + + /** + * Verifies a GetSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + + /** + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * @param message GetSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaMigrationsRequest. */ + interface IGetSchemaMigrationsRequest { + + /** GetSchemaMigrationsRequest keyspace */ + keyspace?: (string|null); + + /** GetSchemaMigrationsRequest uuid */ + uuid?: (string|null); + + /** GetSchemaMigrationsRequest migration_context */ + migration_context?: (string|null); + + /** GetSchemaMigrationsRequest status */ + status?: (vtctldata.SchemaMigration.Status|null); + + /** GetSchemaMigrationsRequest recent */ + recent?: (vttime.IDuration|null); + + /** GetSchemaMigrationsRequest order */ + order?: (vtctldata.QueryOrdering|null); + + /** GetSchemaMigrationsRequest limit */ + limit?: (number|Long|null); + + /** GetSchemaMigrationsRequest skip */ + skip?: (number|Long|null); + } + + /** Represents a GetSchemaMigrationsRequest. */ + class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { + + /** + * Constructs a new GetSchemaMigrationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaMigrationsRequest); + + /** GetSchemaMigrationsRequest keyspace. */ + public keyspace: string; + + /** GetSchemaMigrationsRequest uuid. */ + public uuid: string; + + /** GetSchemaMigrationsRequest migration_context. */ + public migration_context: string; + + /** GetSchemaMigrationsRequest status. */ + public status: vtctldata.SchemaMigration.Status; + + /** GetSchemaMigrationsRequest recent. */ + public recent?: (vttime.IDuration|null); + + /** GetSchemaMigrationsRequest order. */ + public order: vtctldata.QueryOrdering; + + /** GetSchemaMigrationsRequest limit. */ + public limit: (number|Long); + + /** GetSchemaMigrationsRequest skip. */ + public skip: (number|Long); + + /** + * Creates a new GetSchemaMigrationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaMigrationsRequest instance + */ + public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; + + /** + * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * @param message GetSchemaMigrationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * @param message GetSchemaMigrationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaMigrationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsRequest; + + /** + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaMigrationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsRequest; + + /** + * Verifies a GetSchemaMigrationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaMigrationsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; + + /** + * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. + * @param message GetSchemaMigrationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaMigrationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaMigrationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaMigrationsResponse. */ + interface IGetSchemaMigrationsResponse { + + /** GetSchemaMigrationsResponse migrations */ + migrations?: (vtctldata.ISchemaMigration[]|null); + } + + /** Represents a GetSchemaMigrationsResponse. */ + class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { + + /** + * Constructs a new GetSchemaMigrationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); + + /** GetSchemaMigrationsResponse migrations. */ + public migrations: vtctldata.ISchemaMigration[]; + + /** + * Creates a new GetSchemaMigrationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaMigrationsResponse instance + */ + public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; + + /** + * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * @param message GetSchemaMigrationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * @param message GetSchemaMigrationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaMigrationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsResponse; + + /** + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaMigrationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsResponse; + + /** + * Verifies a GetSchemaMigrationsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaMigrationsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; + + /** + * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. + * @param message GetSchemaMigrationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaMigrationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaMigrationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardReplicationRequest. */ + interface IGetShardReplicationRequest { + + /** GetShardReplicationRequest keyspace */ + keyspace?: (string|null); + + /** GetShardReplicationRequest shard */ + shard?: (string|null); + + /** GetShardReplicationRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetShardReplicationRequest. */ + class GetShardReplicationRequest implements IGetShardReplicationRequest { + + /** + * Constructs a new GetShardReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardReplicationRequest); + + /** GetShardReplicationRequest keyspace. */ + public keyspace: string; + + /** GetShardReplicationRequest shard. */ + public shard: string; + + /** GetShardReplicationRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetShardReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardReplicationRequest instance + */ + public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; + + /** + * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * @param message GetShardReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * @param message GetShardReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationRequest; + + /** + * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationRequest; + + /** + * Verifies a GetShardReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; + + /** + * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. + * @param message GetShardReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardReplicationResponse. */ + interface IGetShardReplicationResponse { + + /** GetShardReplicationResponse shard_replication_by_cell */ + shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); + } + + /** Represents a GetShardReplicationResponse. */ + class GetShardReplicationResponse implements IGetShardReplicationResponse { + + /** + * Constructs a new GetShardReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardReplicationResponse); + + /** GetShardReplicationResponse shard_replication_by_cell. */ + public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; + + /** + * Creates a new GetShardReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardReplicationResponse instance + */ + public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; + + /** + * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * @param message GetShardReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * @param message GetShardReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationResponse; + + /** + * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationResponse; + + /** + * Verifies a GetShardReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; + + /** + * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. + * @param message GetShardReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { + + /** GetShardRequest keyspace */ + keyspace?: (string|null); + + /** GetShardRequest shard_name */ + shard_name?: (string|null); + } + + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { + + /** + * Constructs a new GetShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRequest); + + /** GetShardRequest keyspace. */ + public keyspace: string; + + /** GetShardRequest shard_name. */ + public shard_name: string; + + /** + * Creates a new GetShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRequest instance + */ + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + + /** + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; + + /** + * Verifies a GetShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + + /** + * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. + * @param message GetShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { + + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); + } + + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { + + /** + * Constructs a new GetShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardResponse); + + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** + * Creates a new GetShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardResponse instance + */ + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + + /** + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; + + /** + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; + + /** + * Verifies a GetShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + + /** + * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. + * @param message GetShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRoutingRulesRequest. */ + interface IGetShardRoutingRulesRequest { + } + + /** Represents a GetShardRoutingRulesRequest. */ + class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { + + /** + * Constructs a new GetShardRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); + + /** + * Creates a new GetShardRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; + + /** + * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * @param message GetShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * @param message GetShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesRequest; + + /** + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesRequest; + + /** + * Verifies a GetShardRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; + + /** + * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetShardRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRoutingRulesResponse. */ + interface IGetShardRoutingRulesResponse { + + /** GetShardRoutingRulesResponse shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + } + + /** Represents a GetShardRoutingRulesResponse. */ + class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { + + /** + * Constructs a new GetShardRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); + + /** GetShardRoutingRulesResponse shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** + * Creates a new GetShardRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; + + /** + * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * @param message GetShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * @param message GetShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesResponse; + + /** + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesResponse; + + /** + * Verifies a GetShardRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; + + /** + * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetShardRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspaceNamesRequest. */ + interface IGetSrvKeyspaceNamesRequest { + + /** GetSrvKeyspaceNamesRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvKeyspaceNamesRequest. */ + class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { + + /** + * Constructs a new GetSrvKeyspaceNamesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); + + /** GetSrvKeyspaceNamesRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspaceNamesRequest instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * @param message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * @param message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspaceNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspaceNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Verifies a GetSrvKeyspaceNamesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspaceNamesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. + * @param message GetSrvKeyspaceNamesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspaceNamesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspaceNamesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspaceNamesResponse. */ + interface IGetSrvKeyspaceNamesResponse { + + /** GetSrvKeyspaceNamesResponse names */ + names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); + } + + /** Represents a GetSrvKeyspaceNamesResponse. */ + class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { + + /** + * Constructs a new GetSrvKeyspaceNamesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); + + /** GetSrvKeyspaceNamesResponse names. */ + public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; + + /** + * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspaceNamesResponse instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * @param message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * @param message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspaceNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspaceNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Verifies a GetSrvKeyspaceNamesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspaceNamesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. + * @param message GetSrvKeyspaceNamesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspaceNamesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspaceNamesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GetSrvKeyspaceNamesResponse { + + /** Properties of a NameList. */ + interface INameList { + + /** NameList names */ + names?: (string[]|null); + } + + /** Represents a NameList. */ + class NameList implements INameList { + + /** + * Constructs a new NameList. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList); + + /** NameList names. */ + public names: string[]; + + /** + * Creates a new NameList instance using the specified properties. + * @param [properties] Properties to set + * @returns NameList instance + */ + public static create(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @param message NameList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @param message NameList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NameList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Decodes a NameList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Verifies a NameList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NameList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NameList + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Creates a plain object from a NameList message. Also converts values to other types if specified. + * @param message NameList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse.NameList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NameList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NameList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GetSrvKeyspacesRequest. */ + interface IGetSrvKeyspacesRequest { + + /** GetSrvKeyspacesRequest keyspace */ + keyspace?: (string|null); + + /** GetSrvKeyspacesRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvKeyspacesRequest. */ + class GetSrvKeyspacesRequest implements IGetSrvKeyspacesRequest { + + /** + * Constructs a new GetSrvKeyspacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); + + /** GetSrvKeyspacesRequest keyspace. */ + public keyspace: string; + + /** GetSrvKeyspacesRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvKeyspacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspacesRequest instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; + + /** + * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * @param message GetSrvKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * @param message GetSrvKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesRequest; + + /** + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesRequest; + + /** + * Verifies a GetSrvKeyspacesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspacesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; + + /** + * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetSrvKeyspacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspacesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspacesResponse. */ + interface IGetSrvKeyspacesResponse { + + /** GetSrvKeyspacesResponse srv_keyspaces */ + srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); + } + + /** Represents a GetSrvKeyspacesResponse. */ + class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { + + /** + * Constructs a new GetSrvKeyspacesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); + + /** GetSrvKeyspacesResponse srv_keyspaces. */ + public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; + + /** + * Creates a new GetSrvKeyspacesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspacesResponse instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; + + /** + * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * @param message GetSrvKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * @param message GetSrvKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesResponse; + + /** + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesResponse; + + /** + * Verifies a GetSrvKeyspacesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspacesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; + + /** + * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. + * @param message GetSrvKeyspacesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspacesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspacesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateThrottlerConfigRequest. */ + interface IUpdateThrottlerConfigRequest { + + /** UpdateThrottlerConfigRequest keyspace */ + keyspace?: (string|null); + + /** UpdateThrottlerConfigRequest enable */ + enable?: (boolean|null); + + /** UpdateThrottlerConfigRequest disable */ + disable?: (boolean|null); + + /** UpdateThrottlerConfigRequest threshold */ + threshold?: (number|null); + + /** UpdateThrottlerConfigRequest custom_query */ + custom_query?: (string|null); + + /** UpdateThrottlerConfigRequest custom_query_set */ + custom_query_set?: (boolean|null); + + /** UpdateThrottlerConfigRequest check_as_check_self */ + check_as_check_self?: (boolean|null); + + /** UpdateThrottlerConfigRequest check_as_check_shard */ + check_as_check_shard?: (boolean|null); + + /** UpdateThrottlerConfigRequest throttled_app */ + throttled_app?: (topodata.IThrottledAppRule|null); + + /** UpdateThrottlerConfigRequest metric_name */ + metric_name?: (string|null); + + /** UpdateThrottlerConfigRequest app_name */ + app_name?: (string|null); + + /** UpdateThrottlerConfigRequest app_checked_metrics */ + app_checked_metrics?: (string[]|null); + } + + /** Represents an UpdateThrottlerConfigRequest. */ + class UpdateThrottlerConfigRequest implements IUpdateThrottlerConfigRequest { + + /** + * Constructs a new UpdateThrottlerConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); + + /** UpdateThrottlerConfigRequest keyspace. */ + public keyspace: string; + + /** UpdateThrottlerConfigRequest enable. */ + public enable: boolean; + + /** UpdateThrottlerConfigRequest disable. */ + public disable: boolean; + + /** UpdateThrottlerConfigRequest threshold. */ + public threshold: number; + + /** UpdateThrottlerConfigRequest custom_query. */ + public custom_query: string; + + /** UpdateThrottlerConfigRequest custom_query_set. */ + public custom_query_set: boolean; + + /** UpdateThrottlerConfigRequest check_as_check_self. */ + public check_as_check_self: boolean; + + /** UpdateThrottlerConfigRequest check_as_check_shard. */ + public check_as_check_shard: boolean; + + /** UpdateThrottlerConfigRequest throttled_app. */ + public throttled_app?: (topodata.IThrottledAppRule|null); + + /** UpdateThrottlerConfigRequest metric_name. */ + public metric_name: string; + + /** UpdateThrottlerConfigRequest app_name. */ + public app_name: string; + + /** UpdateThrottlerConfigRequest app_checked_metrics. */ + public app_checked_metrics: string[]; + + /** + * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateThrottlerConfigRequest instance + */ + public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * @param message UpdateThrottlerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * @param message UpdateThrottlerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateThrottlerConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateThrottlerConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Verifies an UpdateThrottlerConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateThrottlerConfigRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. + * @param message UpdateThrottlerConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateThrottlerConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateThrottlerConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateThrottlerConfigResponse. */ + interface IUpdateThrottlerConfigResponse { + } + + /** Represents an UpdateThrottlerConfigResponse. */ + class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { + + /** + * Constructs a new UpdateThrottlerConfigResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); + + /** + * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateThrottlerConfigResponse instance + */ + public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * @param message UpdateThrottlerConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * @param message UpdateThrottlerConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateThrottlerConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateThrottlerConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Verifies an UpdateThrottlerConfigResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateThrottlerConfigResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. + * @param message UpdateThrottlerConfigResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateThrottlerConfigResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateThrottlerConfigResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { + + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); + } + + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + + /** + * Constructs a new GetSrvVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + + /** GetSrvVSchemaRequest cell. */ + public cell: string; + + /** + * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + + /** + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; + + /** + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; + + /** + * Verifies a GetSrvVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + + /** + * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. + * @param message GetSrvVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { + + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); + } + + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + + /** + * Constructs a new GetSrvVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); + + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); + + /** + * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + + /** + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; + + /** + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; + + /** + * Verifies a GetSrvVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + + /** + * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. + * @param message GetSrvVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemasRequest. */ + interface IGetSrvVSchemasRequest { + + /** GetSrvVSchemasRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvVSchemasRequest. */ + class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { + + /** + * Constructs a new GetSrvVSchemasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemasRequest); + + /** GetSrvVSchemasRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvVSchemasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemasRequest instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; + + /** + * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * @param message GetSrvVSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * @param message GetSrvVSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasRequest; + + /** + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasRequest; + + /** + * Verifies a GetSrvVSchemasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; + + /** + * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. + * @param message GetSrvVSchemasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemasResponse. */ + interface IGetSrvVSchemasResponse { + + /** GetSrvVSchemasResponse srv_v_schemas */ + srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); + } + + /** Represents a GetSrvVSchemasResponse. */ + class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { + + /** + * Constructs a new GetSrvVSchemasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemasResponse); + + /** GetSrvVSchemasResponse srv_v_schemas. */ + public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; + + /** + * Creates a new GetSrvVSchemasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemasResponse instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; + + /** + * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * @param message GetSrvVSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * @param message GetSrvVSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasResponse; + + /** + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasResponse; + + /** + * Verifies a GetSrvVSchemasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; + + /** + * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. + * @param message GetSrvVSchemasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { + + /** GetTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { + + /** + * Constructs a new GetTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletRequest); + + /** GetTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletRequest instance + */ + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + + /** + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; + + /** + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; + + /** + * Verifies a GetTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + + /** + * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. + * @param message GetTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { + + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); + } + + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { + + /** + * Constructs a new GetTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletResponse); + + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); + + /** + * Creates a new GetTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletResponse instance + */ + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + + /** + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; + + /** + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; + + /** + * Verifies a GetTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + + /** + * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. + * @param message GetTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { + + /** GetTabletsRequest keyspace */ + keyspace?: (string|null); + + /** GetTabletsRequest shard */ + shard?: (string|null); + + /** GetTabletsRequest cells */ + cells?: (string[]|null); + + /** GetTabletsRequest strict */ + strict?: (boolean|null); + + /** GetTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** GetTabletsRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); + } + + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { + + /** + * Constructs a new GetTabletsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletsRequest); + + /** GetTabletsRequest keyspace. */ + public keyspace: string; + + /** GetTabletsRequest shard. */ + public shard: string; + + /** GetTabletsRequest cells. */ + public cells: string[]; + + /** GetTabletsRequest strict. */ + public strict: boolean; + + /** GetTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** GetTabletsRequest tablet_type. */ + public tablet_type: topodata.TabletType; + + /** + * Creates a new GetTabletsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletsRequest instance + */ + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + + /** + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; + + /** + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; + + /** + * Verifies a GetTabletsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + + /** + * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. + * @param message GetTabletsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { + + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); + } + + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { + + /** + * Constructs a new GetTabletsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletsResponse); + + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; + + /** + * Creates a new GetTabletsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletsResponse instance + */ + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + + /** + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; + + /** + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; + + /** + * Verifies a GetTabletsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + + /** + * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. + * @param message GetTabletsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetThrottlerStatusRequest. */ + interface IGetThrottlerStatusRequest { + + /** GetThrottlerStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetThrottlerStatusRequest. */ + class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { + + /** + * Constructs a new GetThrottlerStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetThrottlerStatusRequest); + + /** GetThrottlerStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetThrottlerStatusRequest instance + */ + public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; + + /** + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * @param message GetThrottlerStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * @param message GetThrottlerStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetThrottlerStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusRequest; + + /** + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetThrottlerStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusRequest; + + /** + * Verifies a GetThrottlerStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetThrottlerStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; + + /** + * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. + * @param message GetThrottlerStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetThrottlerStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetThrottlerStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetThrottlerStatusResponse. */ + interface IGetThrottlerStatusResponse { + + /** GetThrottlerStatusResponse status */ + status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); + } + + /** Represents a GetThrottlerStatusResponse. */ + class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { + + /** + * Constructs a new GetThrottlerStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetThrottlerStatusResponse); + + /** GetThrottlerStatusResponse status. */ + public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); + + /** + * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetThrottlerStatusResponse instance + */ + public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; + + /** + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * @param message GetThrottlerStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * @param message GetThrottlerStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetThrottlerStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusResponse; + + /** + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetThrottlerStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusResponse; + + /** + * Verifies a GetThrottlerStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetThrottlerStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; + + /** + * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. + * @param message GetThrottlerStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetThrottlerStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetThrottlerStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTopologyPathRequest. */ + interface IGetTopologyPathRequest { + + /** GetTopologyPathRequest path */ + path?: (string|null); + + /** GetTopologyPathRequest version */ + version?: (number|Long|null); + + /** GetTopologyPathRequest as_json */ + as_json?: (boolean|null); + } + + /** Represents a GetTopologyPathRequest. */ + class GetTopologyPathRequest implements IGetTopologyPathRequest { + + /** + * Constructs a new GetTopologyPathRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTopologyPathRequest); + + /** GetTopologyPathRequest path. */ + public path: string; + + /** GetTopologyPathRequest version. */ + public version: (number|Long); + + /** GetTopologyPathRequest as_json. */ + public as_json: boolean; + + /** + * Creates a new GetTopologyPathRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTopologyPathRequest instance + */ + public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; + + /** + * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * @param message GetTopologyPathRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * @param message GetTopologyPathRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTopologyPathRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTopologyPathRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathRequest; + + /** + * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTopologyPathRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathRequest; + + /** + * Verifies a GetTopologyPathRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTopologyPathRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; + + /** + * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. + * @param message GetTopologyPathRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTopologyPathRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTopologyPathRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTopologyPathResponse. */ + interface IGetTopologyPathResponse { + + /** GetTopologyPathResponse cell */ + cell?: (vtctldata.ITopologyCell|null); + } + + /** Represents a GetTopologyPathResponse. */ + class GetTopologyPathResponse implements IGetTopologyPathResponse { + + /** + * Constructs a new GetTopologyPathResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTopologyPathResponse); + + /** GetTopologyPathResponse cell. */ + public cell?: (vtctldata.ITopologyCell|null); + + /** + * Creates a new GetTopologyPathResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTopologyPathResponse instance + */ + public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; + + /** + * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * @param message GetTopologyPathResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * @param message GetTopologyPathResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTopologyPathResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTopologyPathResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathResponse; + + /** + * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTopologyPathResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathResponse; + + /** + * Verifies a GetTopologyPathResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTopologyPathResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; + + /** + * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. + * @param message GetTopologyPathResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTopologyPathResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTopologyPathResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TopologyCell. */ + interface ITopologyCell { + + /** TopologyCell name */ + name?: (string|null); + + /** TopologyCell path */ + path?: (string|null); + + /** TopologyCell data */ + data?: (string|null); + + /** TopologyCell children */ + children?: (string[]|null); + + /** TopologyCell version */ + version?: (number|Long|null); + } + + /** Represents a TopologyCell. */ + class TopologyCell implements ITopologyCell { + + /** + * Constructs a new TopologyCell. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITopologyCell); + + /** TopologyCell name. */ + public name: string; + + /** TopologyCell path. */ + public path: string; + + /** TopologyCell data. */ + public data: string; + + /** TopologyCell children. */ + public children: string[]; + + /** TopologyCell version. */ + public version: (number|Long); + + /** + * Creates a new TopologyCell instance using the specified properties. + * @param [properties] Properties to set + * @returns TopologyCell instance + */ + public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; + + /** + * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * @param message TopologyCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * @param message TopologyCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TopologyCell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TopologyCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TopologyCell; + + /** + * Decodes a TopologyCell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TopologyCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TopologyCell; + + /** + * Verifies a TopologyCell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TopologyCell + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; + + /** + * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. + * @param message TopologyCell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TopologyCell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TopologyCell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetUnresolvedTransactionsRequest. */ + interface IGetUnresolvedTransactionsRequest { + + /** GetUnresolvedTransactionsRequest keyspace */ + keyspace?: (string|null); + + /** GetUnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); + } + + /** Represents a GetUnresolvedTransactionsRequest. */ + class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { + + /** + * Constructs a new GetUnresolvedTransactionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); + + /** GetUnresolvedTransactionsRequest keyspace. */ + public keyspace: string; + + /** GetUnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); + + /** + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUnresolvedTransactionsRequest instance + */ + public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Verifies a GetUnresolvedTransactionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUnresolvedTransactionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. + * @param message GetUnresolvedTransactionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetUnresolvedTransactionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetUnresolvedTransactionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetUnresolvedTransactionsResponse. */ + interface IGetUnresolvedTransactionsResponse { + + /** GetUnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); + } + + /** Represents a GetUnresolvedTransactionsResponse. */ + class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { + + /** + * Constructs a new GetUnresolvedTransactionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); + + /** GetUnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; + + /** + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUnresolvedTransactionsResponse instance + */ + public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Verifies a GetUnresolvedTransactionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUnresolvedTransactionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. + * @param message GetUnresolvedTransactionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetUnresolvedTransactionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetUnresolvedTransactionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { + + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); + + /** ConcludeTransactionRequest participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { + + /** + * Constructs a new ConcludeTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IConcludeTransactionRequest); + + /** ConcludeTransactionRequest dtid. */ + public dtid: string; + + /** ConcludeTransactionRequest participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionRequest instance + */ + public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; + + /** + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionRequest; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionRequest; + + /** + * Verifies a ConcludeTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; + + /** + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * @param message ConcludeTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { + } + + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { + + /** + * Constructs a new ConcludeTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IConcludeTransactionResponse); + + /** + * Creates a new ConcludeTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionResponse instance + */ + public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; + + /** + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionResponse; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionResponse; + + /** + * Verifies a ConcludeTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; + + /** + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * @param message ConcludeTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { + + /** GetVSchemaRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { + + /** + * Constructs a new GetVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVSchemaRequest); + + /** GetVSchemaRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new GetVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + + /** + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; + + /** + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; + + /** + * Verifies a GetVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + + /** + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * @param message GetVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { + + /** GetVersionRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { + + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVersionRequest); + + /** GetVersionRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionRequest instance + */ + public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionRequest; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionRequest; + + /** + * Verifies a GetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; + + /** + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionResponse. */ + interface IGetVersionResponse { + + /** GetVersionResponse version */ + version?: (string|null); + } + + /** Represents a GetVersionResponse. */ + class GetVersionResponse implements IGetVersionResponse { + + /** + * Constructs a new GetVersionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVersionResponse); + + /** GetVersionResponse version. */ + public version: string; + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionResponse instance + */ + public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionResponse; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionResponse; + + /** + * Verifies a GetVersionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; + + /** + * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. + * @param message GetVersionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { + + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); + } + + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { + + /** + * Constructs a new GetVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVSchemaResponse); + + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** + * Creates a new GetVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + + /** + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; + + /** + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; + + /** + * Verifies a GetVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + + /** + * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. + * @param message GetVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetWorkflowsRequest. */ + interface IGetWorkflowsRequest { + + /** GetWorkflowsRequest keyspace */ + keyspace?: (string|null); + + /** GetWorkflowsRequest active_only */ + active_only?: (boolean|null); + + /** GetWorkflowsRequest name_only */ + name_only?: (boolean|null); + + /** GetWorkflowsRequest workflow */ + workflow?: (string|null); + + /** GetWorkflowsRequest include_logs */ + include_logs?: (boolean|null); + + /** GetWorkflowsRequest shards */ + shards?: (string[]|null); + } + + /** Represents a GetWorkflowsRequest. */ + class GetWorkflowsRequest implements IGetWorkflowsRequest { + + /** + * Constructs a new GetWorkflowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetWorkflowsRequest); + + /** GetWorkflowsRequest keyspace. */ + public keyspace: string; + + /** GetWorkflowsRequest active_only. */ + public active_only: boolean; + + /** GetWorkflowsRequest name_only. */ + public name_only: boolean; + + /** GetWorkflowsRequest workflow. */ + public workflow: string; + + /** GetWorkflowsRequest include_logs. */ + public include_logs: boolean; + + /** GetWorkflowsRequest shards. */ + public shards: string[]; + + /** + * Creates a new GetWorkflowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWorkflowsRequest instance + */ + public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; + + /** + * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * @param message GetWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * @param message GetWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetWorkflowsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWorkflowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; + + /** + * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWorkflowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; + + /** + * Verifies a GetWorkflowsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWorkflowsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; + + /** + * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. + * @param message GetWorkflowsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWorkflowsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetWorkflowsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetWorkflowsResponse. */ + interface IGetWorkflowsResponse { + + /** GetWorkflowsResponse workflows */ + workflows?: (vtctldata.IWorkflow[]|null); + } + + /** Represents a GetWorkflowsResponse. */ + class GetWorkflowsResponse implements IGetWorkflowsResponse { + + /** + * Constructs a new GetWorkflowsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetWorkflowsResponse); + + /** GetWorkflowsResponse workflows. */ + public workflows: vtctldata.IWorkflow[]; + + /** + * Creates a new GetWorkflowsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWorkflowsResponse instance + */ + public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; + + /** + * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * @param message GetWorkflowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * @param message GetWorkflowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetWorkflowsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; + + /** + * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; + + /** + * Verifies a GetWorkflowsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWorkflowsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; + + /** + * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. + * @param message GetWorkflowsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWorkflowsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetWorkflowsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { + + /** InitShardPrimaryRequest keyspace */ + keyspace?: (string|null); + + /** InitShardPrimaryRequest shard */ + shard?: (string|null); + + /** InitShardPrimaryRequest primary_elect_tablet_alias */ + primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force */ + force?: (boolean|null); + + /** InitShardPrimaryRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + } + + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + + /** + * Constructs a new InitShardPrimaryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IInitShardPrimaryRequest); + + /** InitShardPrimaryRequest keyspace. */ + public keyspace: string; + + /** InitShardPrimaryRequest shard. */ + public shard: string; + + /** InitShardPrimaryRequest primary_elect_tablet_alias. */ + public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force. */ + public force: boolean; + + /** InitShardPrimaryRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** + * Creates a new InitShardPrimaryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InitShardPrimaryRequest instance + */ + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + + /** + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InitShardPrimaryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; + + /** + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InitShardPrimaryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; + + /** + * Verifies an InitShardPrimaryRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InitShardPrimaryRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + + /** + * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. + * @param message InitShardPrimaryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InitShardPrimaryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InitShardPrimaryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { + + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + + /** + * Constructs a new InitShardPrimaryResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IInitShardPrimaryResponse); + + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new InitShardPrimaryResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns InitShardPrimaryResponse instance + */ + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + + /** + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InitShardPrimaryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; + + /** + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InitShardPrimaryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; + + /** + * Verifies an InitShardPrimaryResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InitShardPrimaryResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + + /** + * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. + * @param message InitShardPrimaryResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InitShardPrimaryResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InitShardPrimaryResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LaunchSchemaMigrationRequest. */ + interface ILaunchSchemaMigrationRequest { + + /** LaunchSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** LaunchSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a LaunchSchemaMigrationRequest. */ + class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { + + /** + * Constructs a new LaunchSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); + + /** LaunchSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** LaunchSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * @param message LaunchSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * @param message LaunchSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LaunchSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Verifies a LaunchSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LaunchSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message LaunchSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LaunchSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LaunchSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LaunchSchemaMigrationResponse. */ + interface ILaunchSchemaMigrationResponse { + + /** LaunchSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a LaunchSchemaMigrationResponse. */ + class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { + + /** + * Constructs a new LaunchSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); + + /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * @param message LaunchSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * @param message LaunchSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LaunchSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Verifies a LaunchSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LaunchSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message LaunchSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LaunchSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LaunchSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexCreateRequest. */ + interface ILookupVindexCreateRequest { + + /** LookupVindexCreateRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexCreateRequest workflow */ + workflow?: (string|null); + + /** LookupVindexCreateRequest cells */ + cells?: (string[]|null); + + /** LookupVindexCreateRequest vindex */ + vindex?: (vschema.IKeyspace|null); + + /** LookupVindexCreateRequest continue_after_copy_with_owner */ + continue_after_copy_with_owner?: (boolean|null); + + /** LookupVindexCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** LookupVindexCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + } + + /** Represents a LookupVindexCreateRequest. */ + class LookupVindexCreateRequest implements ILookupVindexCreateRequest { + + /** + * Constructs a new LookupVindexCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexCreateRequest); + + /** LookupVindexCreateRequest keyspace. */ + public keyspace: string; + + /** LookupVindexCreateRequest workflow. */ + public workflow: string; + + /** LookupVindexCreateRequest cells. */ + public cells: string[]; + + /** LookupVindexCreateRequest vindex. */ + public vindex?: (vschema.IKeyspace|null); + + /** LookupVindexCreateRequest continue_after_copy_with_owner. */ + public continue_after_copy_with_owner: boolean; + + /** LookupVindexCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** LookupVindexCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** + * Creates a new LookupVindexCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexCreateRequest instance + */ + public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; + + /** + * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * @param message LookupVindexCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * @param message LookupVindexCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateRequest; + + /** + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateRequest; + + /** + * Verifies a LookupVindexCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; + + /** + * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. + * @param message LookupVindexCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexCreateResponse. */ + interface ILookupVindexCreateResponse { + } + + /** Represents a LookupVindexCreateResponse. */ + class LookupVindexCreateResponse implements ILookupVindexCreateResponse { + + /** + * Constructs a new LookupVindexCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexCreateResponse); + + /** + * Creates a new LookupVindexCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexCreateResponse instance + */ + public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; + + /** + * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * @param message LookupVindexCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * @param message LookupVindexCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateResponse; + + /** + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateResponse; + + /** + * Verifies a LookupVindexCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; + + /** + * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. + * @param message LookupVindexCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexExternalizeRequest. */ + interface ILookupVindexExternalizeRequest { + + /** LookupVindexExternalizeRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexExternalizeRequest name */ + name?: (string|null); + + /** LookupVindexExternalizeRequest table_keyspace */ + table_keyspace?: (string|null); + } + + /** Represents a LookupVindexExternalizeRequest. */ + class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { + + /** + * Constructs a new LookupVindexExternalizeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexExternalizeRequest); + + /** LookupVindexExternalizeRequest keyspace. */ + public keyspace: string; + + /** LookupVindexExternalizeRequest name. */ + public name: string; + + /** LookupVindexExternalizeRequest table_keyspace. */ + public table_keyspace: string; + + /** + * Creates a new LookupVindexExternalizeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexExternalizeRequest instance + */ + public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; + + /** + * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * @param message LookupVindexExternalizeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * @param message LookupVindexExternalizeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexExternalizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeRequest; + + /** + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexExternalizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeRequest; + + /** + * Verifies a LookupVindexExternalizeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexExternalizeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; + + /** + * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. + * @param message LookupVindexExternalizeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexExternalizeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexExternalizeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexExternalizeResponse. */ + interface ILookupVindexExternalizeResponse { + + /** LookupVindexExternalizeResponse workflow_deleted */ + workflow_deleted?: (boolean|null); + } + + /** Represents a LookupVindexExternalizeResponse. */ + class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { + + /** + * Constructs a new LookupVindexExternalizeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); + + /** LookupVindexExternalizeResponse workflow_deleted. */ + public workflow_deleted: boolean; + + /** + * Creates a new LookupVindexExternalizeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexExternalizeResponse instance + */ + public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; + + /** + * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * @param message LookupVindexExternalizeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * @param message LookupVindexExternalizeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexExternalizeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeResponse; + + /** + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexExternalizeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeResponse; + + /** + * Verifies a LookupVindexExternalizeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexExternalizeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; + + /** + * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. + * @param message LookupVindexExternalizeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexExternalizeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexExternalizeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeCreateRequest. */ + interface IMaterializeCreateRequest { + + /** MaterializeCreateRequest settings */ + settings?: (vtctldata.IMaterializeSettings|null); + } + + /** Represents a MaterializeCreateRequest. */ + class MaterializeCreateRequest implements IMaterializeCreateRequest { + + /** + * Constructs a new MaterializeCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeCreateRequest); + + /** MaterializeCreateRequest settings. */ + public settings?: (vtctldata.IMaterializeSettings|null); + + /** + * Creates a new MaterializeCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeCreateRequest instance + */ + public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; + + /** + * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * @param message MaterializeCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * @param message MaterializeCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateRequest; + + /** + * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateRequest; + + /** + * Verifies a MaterializeCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; + + /** + * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. + * @param message MaterializeCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeCreateResponse. */ + interface IMaterializeCreateResponse { + } + + /** Represents a MaterializeCreateResponse. */ + class MaterializeCreateResponse implements IMaterializeCreateResponse { + + /** + * Constructs a new MaterializeCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeCreateResponse); + + /** + * Creates a new MaterializeCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeCreateResponse instance + */ + public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; + + /** + * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * @param message MaterializeCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * @param message MaterializeCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateResponse; + + /** + * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateResponse; + + /** + * Verifies a MaterializeCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; + + /** + * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. + * @param message MaterializeCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCreateRequest. */ + interface IMigrateCreateRequest { + + /** MigrateCreateRequest workflow */ + workflow?: (string|null); + + /** MigrateCreateRequest source_keyspace */ + source_keyspace?: (string|null); + + /** MigrateCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MigrateCreateRequest mount_name */ + mount_name?: (string|null); + + /** MigrateCreateRequest cells */ + cells?: (string[]|null); + + /** MigrateCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** MigrateCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MigrateCreateRequest all_tables */ + all_tables?: (boolean|null); + + /** MigrateCreateRequest include_tables */ + include_tables?: (string[]|null); + + /** MigrateCreateRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** MigrateCreateRequest source_time_zone */ + source_time_zone?: (string|null); + + /** MigrateCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** MigrateCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MigrateCreateRequest drop_foreign_keys */ + drop_foreign_keys?: (boolean|null); + + /** MigrateCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MigrateCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** MigrateCreateRequest no_routing_rules */ + no_routing_rules?: (boolean|null); + } + + /** Represents a MigrateCreateRequest. */ + class MigrateCreateRequest implements IMigrateCreateRequest { + + /** + * Constructs a new MigrateCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCreateRequest); + + /** MigrateCreateRequest workflow. */ + public workflow: string; + + /** MigrateCreateRequest source_keyspace. */ + public source_keyspace: string; + + /** MigrateCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** MigrateCreateRequest mount_name. */ + public mount_name: string; + + /** MigrateCreateRequest cells. */ + public cells: string[]; + + /** MigrateCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** MigrateCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MigrateCreateRequest all_tables. */ + public all_tables: boolean; + + /** MigrateCreateRequest include_tables. */ + public include_tables: string[]; + + /** MigrateCreateRequest exclude_tables. */ + public exclude_tables: string[]; + + /** MigrateCreateRequest source_time_zone. */ + public source_time_zone: string; + + /** MigrateCreateRequest on_ddl. */ + public on_ddl: string; + + /** MigrateCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** MigrateCreateRequest drop_foreign_keys. */ + public drop_foreign_keys: boolean; + + /** MigrateCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MigrateCreateRequest auto_start. */ + public auto_start: boolean; + + /** MigrateCreateRequest no_routing_rules. */ + public no_routing_rules: boolean; + + /** + * Creates a new MigrateCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCreateRequest instance + */ + public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; + + /** + * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * @param message MigrateCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * @param message MigrateCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCreateRequest; + + /** + * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCreateRequest; + + /** + * Verifies a MigrateCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; + + /** + * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. + * @param message MigrateCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCompleteRequest. */ + interface IMigrateCompleteRequest { + + /** MigrateCompleteRequest workflow */ + workflow?: (string|null); + + /** MigrateCompleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MigrateCompleteRequest keep_data */ + keep_data?: (boolean|null); + + /** MigrateCompleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** MigrateCompleteRequest rename_tables */ + rename_tables?: (boolean|null); + + /** MigrateCompleteRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a MigrateCompleteRequest. */ + class MigrateCompleteRequest implements IMigrateCompleteRequest { + + /** + * Constructs a new MigrateCompleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCompleteRequest); + + /** MigrateCompleteRequest workflow. */ + public workflow: string; + + /** MigrateCompleteRequest target_keyspace. */ + public target_keyspace: string; + + /** MigrateCompleteRequest keep_data. */ + public keep_data: boolean; + + /** MigrateCompleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** MigrateCompleteRequest rename_tables. */ + public rename_tables: boolean; + + /** MigrateCompleteRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new MigrateCompleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCompleteRequest instance + */ + public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; + + /** + * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * @param message MigrateCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * @param message MigrateCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCompleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteRequest; + + /** + * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteRequest; + + /** + * Verifies a MigrateCompleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCompleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; + + /** + * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. + * @param message MigrateCompleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCompleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCompleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCompleteResponse. */ + interface IMigrateCompleteResponse { + + /** MigrateCompleteResponse summary */ + summary?: (string|null); + + /** MigrateCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a MigrateCompleteResponse. */ + class MigrateCompleteResponse implements IMigrateCompleteResponse { + + /** + * Constructs a new MigrateCompleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCompleteResponse); + + /** MigrateCompleteResponse summary. */ + public summary: string; + + /** MigrateCompleteResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new MigrateCompleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCompleteResponse instance + */ + public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; + + /** + * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * @param message MigrateCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * @param message MigrateCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCompleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteResponse; + + /** + * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteResponse; + + /** + * Verifies a MigrateCompleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCompleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; + + /** + * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. + * @param message MigrateCompleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCompleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCompleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountRegisterRequest. */ + interface IMountRegisterRequest { + + /** MountRegisterRequest topo_type */ + topo_type?: (string|null); + + /** MountRegisterRequest topo_server */ + topo_server?: (string|null); + + /** MountRegisterRequest topo_root */ + topo_root?: (string|null); + + /** MountRegisterRequest name */ + name?: (string|null); + } + + /** Represents a MountRegisterRequest. */ + class MountRegisterRequest implements IMountRegisterRequest { + + /** + * Constructs a new MountRegisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountRegisterRequest); + + /** MountRegisterRequest topo_type. */ + public topo_type: string; + + /** MountRegisterRequest topo_server. */ + public topo_server: string; + + /** MountRegisterRequest topo_root. */ + public topo_root: string; + + /** MountRegisterRequest name. */ + public name: string; + + /** + * Creates a new MountRegisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountRegisterRequest instance + */ + public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; + + /** + * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * @param message MountRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * @param message MountRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountRegisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterRequest; + + /** + * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterRequest; + + /** + * Verifies a MountRegisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountRegisterRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; + + /** + * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. + * @param message MountRegisterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountRegisterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountRegisterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountRegisterResponse. */ + interface IMountRegisterResponse { + } + + /** Represents a MountRegisterResponse. */ + class MountRegisterResponse implements IMountRegisterResponse { + + /** + * Constructs a new MountRegisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountRegisterResponse); + + /** + * Creates a new MountRegisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountRegisterResponse instance + */ + public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; + + /** + * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * @param message MountRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * @param message MountRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountRegisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterResponse; + + /** + * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterResponse; + + /** + * Verifies a MountRegisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountRegisterResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; + + /** + * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. + * @param message MountRegisterResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountRegisterResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountRegisterResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountUnregisterRequest. */ + interface IMountUnregisterRequest { + + /** MountUnregisterRequest name */ + name?: (string|null); + } + + /** Represents a MountUnregisterRequest. */ + class MountUnregisterRequest implements IMountUnregisterRequest { + + /** + * Constructs a new MountUnregisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountUnregisterRequest); + + /** MountUnregisterRequest name. */ + public name: string; + + /** + * Creates a new MountUnregisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountUnregisterRequest instance + */ + public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; + + /** + * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * @param message MountUnregisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * @param message MountUnregisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountUnregisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountUnregisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterRequest; + + /** + * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountUnregisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterRequest; + + /** + * Verifies a MountUnregisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountUnregisterRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; + + /** + * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. + * @param message MountUnregisterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountUnregisterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountUnregisterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountUnregisterResponse. */ + interface IMountUnregisterResponse { + } + + /** Represents a MountUnregisterResponse. */ + class MountUnregisterResponse implements IMountUnregisterResponse { + + /** + * Constructs a new MountUnregisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountUnregisterResponse); + + /** + * Creates a new MountUnregisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountUnregisterResponse instance + */ + public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; + + /** + * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * @param message MountUnregisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * @param message MountUnregisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountUnregisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountUnregisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterResponse; + + /** + * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountUnregisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterResponse; + + /** + * Verifies a MountUnregisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountUnregisterResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; + + /** + * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. + * @param message MountUnregisterResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountUnregisterResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountUnregisterResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountShowRequest. */ + interface IMountShowRequest { + + /** MountShowRequest name */ + name?: (string|null); + } + + /** Represents a MountShowRequest. */ + class MountShowRequest implements IMountShowRequest { + + /** + * Constructs a new MountShowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountShowRequest); + + /** MountShowRequest name. */ + public name: string; + + /** + * Creates a new MountShowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountShowRequest instance + */ + public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; + + /** + * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * @param message MountShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * @param message MountShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountShowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowRequest; + + /** + * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowRequest; + + /** + * Verifies a MountShowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountShowRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; + + /** + * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. + * @param message MountShowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountShowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountShowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountShowResponse. */ + interface IMountShowResponse { + + /** MountShowResponse topo_type */ + topo_type?: (string|null); + + /** MountShowResponse topo_server */ + topo_server?: (string|null); + + /** MountShowResponse topo_root */ + topo_root?: (string|null); + + /** MountShowResponse name */ + name?: (string|null); + } + + /** Represents a MountShowResponse. */ + class MountShowResponse implements IMountShowResponse { + + /** + * Constructs a new MountShowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountShowResponse); + + /** MountShowResponse topo_type. */ + public topo_type: string; + + /** MountShowResponse topo_server. */ + public topo_server: string; + + /** MountShowResponse topo_root. */ + public topo_root: string; + + /** MountShowResponse name. */ + public name: string; + + /** + * Creates a new MountShowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountShowResponse instance + */ + public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; + + /** + * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * @param message MountShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * @param message MountShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountShowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowResponse; + + /** + * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowResponse; + + /** + * Verifies a MountShowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountShowResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; + + /** + * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. + * @param message MountShowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountShowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountShowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountListRequest. */ + interface IMountListRequest { + } + + /** Represents a MountListRequest. */ + class MountListRequest implements IMountListRequest { + + /** + * Constructs a new MountListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountListRequest); + + /** + * Creates a new MountListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountListRequest instance + */ + public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; + + /** + * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * @param message MountListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * @param message MountListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListRequest; + + /** + * Decodes a MountListRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListRequest; + + /** + * Verifies a MountListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountListRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; + + /** + * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. + * @param message MountListRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountListRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountListRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountListResponse. */ + interface IMountListResponse { + + /** MountListResponse names */ + names?: (string[]|null); + } + + /** Represents a MountListResponse. */ + class MountListResponse implements IMountListResponse { + + /** + * Constructs a new MountListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountListResponse); + + /** MountListResponse names. */ + public names: string[]; + + /** + * Creates a new MountListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountListResponse instance + */ + public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; + + /** + * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * @param message MountListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * @param message MountListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListResponse; + + /** + * Decodes a MountListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListResponse; + + /** + * Verifies a MountListResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountListResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; + + /** + * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. + * @param message MountListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCreateRequest. */ + interface IMoveTablesCreateRequest { + + /** MoveTablesCreateRequest workflow */ + workflow?: (string|null); + + /** MoveTablesCreateRequest source_keyspace */ + source_keyspace?: (string|null); + + /** MoveTablesCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MoveTablesCreateRequest cells */ + cells?: (string[]|null); + + /** MoveTablesCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** MoveTablesCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MoveTablesCreateRequest source_shards */ + source_shards?: (string[]|null); + + /** MoveTablesCreateRequest all_tables */ + all_tables?: (boolean|null); + + /** MoveTablesCreateRequest include_tables */ + include_tables?: (string[]|null); + + /** MoveTablesCreateRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** MoveTablesCreateRequest external_cluster_name */ + external_cluster_name?: (string|null); + + /** MoveTablesCreateRequest source_time_zone */ + source_time_zone?: (string|null); + + /** MoveTablesCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** MoveTablesCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MoveTablesCreateRequest drop_foreign_keys */ + drop_foreign_keys?: (boolean|null); + + /** MoveTablesCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MoveTablesCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** MoveTablesCreateRequest no_routing_rules */ + no_routing_rules?: (boolean|null); + + /** MoveTablesCreateRequest atomic_copy */ + atomic_copy?: (boolean|null); + + /** MoveTablesCreateRequest workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a MoveTablesCreateRequest. */ + class MoveTablesCreateRequest implements IMoveTablesCreateRequest { + + /** + * Constructs a new MoveTablesCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCreateRequest); + + /** MoveTablesCreateRequest workflow. */ + public workflow: string; + + /** MoveTablesCreateRequest source_keyspace. */ + public source_keyspace: string; + + /** MoveTablesCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** MoveTablesCreateRequest cells. */ + public cells: string[]; + + /** MoveTablesCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** MoveTablesCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MoveTablesCreateRequest source_shards. */ + public source_shards: string[]; + + /** MoveTablesCreateRequest all_tables. */ + public all_tables: boolean; + + /** MoveTablesCreateRequest include_tables. */ + public include_tables: string[]; + + /** MoveTablesCreateRequest exclude_tables. */ + public exclude_tables: string[]; + + /** MoveTablesCreateRequest external_cluster_name. */ + public external_cluster_name: string; + + /** MoveTablesCreateRequest source_time_zone. */ + public source_time_zone: string; + + /** MoveTablesCreateRequest on_ddl. */ + public on_ddl: string; + + /** MoveTablesCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** MoveTablesCreateRequest drop_foreign_keys. */ + public drop_foreign_keys: boolean; + + /** MoveTablesCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MoveTablesCreateRequest auto_start. */ + public auto_start: boolean; + + /** MoveTablesCreateRequest no_routing_rules. */ + public no_routing_rules: boolean; + + /** MoveTablesCreateRequest atomic_copy. */ + public atomic_copy: boolean; + + /** MoveTablesCreateRequest workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new MoveTablesCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCreateRequest instance + */ + public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; + + /** + * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * @param message MoveTablesCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * @param message MoveTablesCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateRequest; + + /** + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateRequest; + + /** + * Verifies a MoveTablesCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; + + /** + * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. + * @param message MoveTablesCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCreateResponse. */ + interface IMoveTablesCreateResponse { + + /** MoveTablesCreateResponse summary */ + summary?: (string|null); + + /** MoveTablesCreateResponse details */ + details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); + } + + /** Represents a MoveTablesCreateResponse. */ + class MoveTablesCreateResponse implements IMoveTablesCreateResponse { + + /** + * Constructs a new MoveTablesCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCreateResponse); + + /** MoveTablesCreateResponse summary. */ + public summary: string; + + /** MoveTablesCreateResponse details. */ + public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; + + /** + * Creates a new MoveTablesCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCreateResponse instance + */ + public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; + + /** + * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * @param message MoveTablesCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * @param message MoveTablesCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse; + + /** + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse; + + /** + * Verifies a MoveTablesCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; + + /** + * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. + * @param message MoveTablesCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MoveTablesCreateResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo created */ + created?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo created. */ + public created: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a MoveTablesCompleteRequest. */ + interface IMoveTablesCompleteRequest { + + /** MoveTablesCompleteRequest workflow */ + workflow?: (string|null); + + /** MoveTablesCompleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MoveTablesCompleteRequest keep_data */ + keep_data?: (boolean|null); + + /** MoveTablesCompleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** MoveTablesCompleteRequest rename_tables */ + rename_tables?: (boolean|null); + + /** MoveTablesCompleteRequest dry_run */ + dry_run?: (boolean|null); + + /** MoveTablesCompleteRequest shards */ + shards?: (string[]|null); + } + + /** Represents a MoveTablesCompleteRequest. */ + class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { + + /** + * Constructs a new MoveTablesCompleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCompleteRequest); + + /** MoveTablesCompleteRequest workflow. */ + public workflow: string; + + /** MoveTablesCompleteRequest target_keyspace. */ + public target_keyspace: string; + + /** MoveTablesCompleteRequest keep_data. */ + public keep_data: boolean; + + /** MoveTablesCompleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** MoveTablesCompleteRequest rename_tables. */ + public rename_tables: boolean; + + /** MoveTablesCompleteRequest dry_run. */ + public dry_run: boolean; + + /** MoveTablesCompleteRequest shards. */ + public shards: string[]; + + /** + * Creates a new MoveTablesCompleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCompleteRequest instance + */ + public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; + + /** + * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * @param message MoveTablesCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * @param message MoveTablesCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteRequest; + + /** + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteRequest; + + /** + * Verifies a MoveTablesCompleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCompleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; + + /** + * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. + * @param message MoveTablesCompleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCompleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCompleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCompleteResponse. */ + interface IMoveTablesCompleteResponse { + + /** MoveTablesCompleteResponse summary */ + summary?: (string|null); + + /** MoveTablesCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a MoveTablesCompleteResponse. */ + class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { + + /** + * Constructs a new MoveTablesCompleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCompleteResponse); + + /** MoveTablesCompleteResponse summary. */ + public summary: string; + + /** MoveTablesCompleteResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new MoveTablesCompleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCompleteResponse instance + */ + public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; + + /** + * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * @param message MoveTablesCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * @param message MoveTablesCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteResponse; + + /** + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteResponse; + + /** + * Verifies a MoveTablesCompleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCompleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; + + /** + * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. + * @param message MoveTablesCompleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCompleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCompleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PingTabletRequest. */ + interface IPingTabletRequest { + + /** PingTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a PingTabletRequest. */ + class PingTabletRequest implements IPingTabletRequest { + + /** + * Constructs a new PingTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPingTabletRequest); + + /** PingTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new PingTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PingTabletRequest instance + */ + public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; + + /** + * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * @param message PingTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * @param message PingTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PingTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PingTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletRequest; + + /** + * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PingTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletRequest; + + /** + * Verifies a PingTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PingTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; + + /** + * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. + * @param message PingTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PingTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PingTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PingTabletResponse. */ + interface IPingTabletResponse { + } + + /** Represents a PingTabletResponse. */ + class PingTabletResponse implements IPingTabletResponse { + + /** + * Constructs a new PingTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPingTabletResponse); + + /** + * Creates a new PingTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PingTabletResponse instance + */ + public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; + + /** + * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * @param message PingTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * @param message PingTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PingTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PingTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletResponse; + + /** + * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PingTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletResponse; + + /** + * Verifies a PingTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PingTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; + + /** + * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. + * @param message PingTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PingTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PingTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { + + /** PlannedReparentShardRequest keyspace */ + keyspace?: (string|null); + + /** PlannedReparentShardRequest shard */ + shard?: (string|null); + + /** PlannedReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary */ + avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest tolerable_replication_lag */ + tolerable_replication_lag?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest allow_cross_cell_promotion */ + allow_cross_cell_promotion?: (boolean|null); + } + + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { + + /** + * Constructs a new PlannedReparentShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPlannedReparentShardRequest); + + /** PlannedReparentShardRequest keyspace. */ + public keyspace: string; + + /** PlannedReparentShardRequest shard. */ + public shard: string; + + /** PlannedReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary. */ + public avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest tolerable_replication_lag. */ + public tolerable_replication_lag?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest allow_cross_cell_promotion. */ + public allow_cross_cell_promotion: boolean; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PlannedReparentShardRequest instance + */ + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; + + /** + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlannedReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; + + /** + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlannedReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; + + /** + * Verifies a PlannedReparentShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlannedReparentShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; + + /** + * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. + * @param message PlannedReparentShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlannedReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PlannedReparentShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { + + /** PlannedReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** PlannedReparentShardResponse shard */ + shard?: (string|null); + + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { + + /** + * Constructs a new PlannedReparentShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPlannedReparentShardResponse); + + /** PlannedReparentShardResponse keyspace. */ + public keyspace: string; + + /** PlannedReparentShardResponse shard. */ + public shard: string; + + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new PlannedReparentShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PlannedReparentShardResponse instance + */ + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; + + /** + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlannedReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; + + /** + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlannedReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; + + /** + * Verifies a PlannedReparentShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlannedReparentShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; + + /** + * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. + * @param message PlannedReparentShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlannedReparentShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PlannedReparentShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildKeyspaceGraphRequest. */ + interface IRebuildKeyspaceGraphRequest { + + /** RebuildKeyspaceGraphRequest keyspace */ + keyspace?: (string|null); + + /** RebuildKeyspaceGraphRequest cells */ + cells?: (string[]|null); + + /** RebuildKeyspaceGraphRequest allow_partial */ + allow_partial?: (boolean|null); + } + + /** Represents a RebuildKeyspaceGraphRequest. */ + class RebuildKeyspaceGraphRequest implements IRebuildKeyspaceGraphRequest { + + /** + * Constructs a new RebuildKeyspaceGraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); + + /** RebuildKeyspaceGraphRequest keyspace. */ + public keyspace: string; + + /** RebuildKeyspaceGraphRequest cells. */ + public cells: string[]; + + /** RebuildKeyspaceGraphRequest allow_partial. */ + public allow_partial: boolean; + + /** + * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildKeyspaceGraphRequest instance + */ + public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * @param message RebuildKeyspaceGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * @param message RebuildKeyspaceGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildKeyspaceGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildKeyspaceGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Verifies a RebuildKeyspaceGraphRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildKeyspaceGraphRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. + * @param message RebuildKeyspaceGraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildKeyspaceGraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildKeyspaceGraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildKeyspaceGraphResponse. */ + interface IRebuildKeyspaceGraphResponse { + } + + /** Represents a RebuildKeyspaceGraphResponse. */ + class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { + + /** + * Constructs a new RebuildKeyspaceGraphResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); + + /** + * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildKeyspaceGraphResponse instance + */ + public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * @param message RebuildKeyspaceGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * @param message RebuildKeyspaceGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildKeyspaceGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildKeyspaceGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Verifies a RebuildKeyspaceGraphResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildKeyspaceGraphResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. + * @param message RebuildKeyspaceGraphResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildKeyspaceGraphResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildKeyspaceGraphResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildVSchemaGraphRequest. */ + interface IRebuildVSchemaGraphRequest { + + /** RebuildVSchemaGraphRequest cells */ + cells?: (string[]|null); + } + + /** Represents a RebuildVSchemaGraphRequest. */ + class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { + + /** + * Constructs a new RebuildVSchemaGraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); + + /** RebuildVSchemaGraphRequest cells. */ + public cells: string[]; + + /** + * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildVSchemaGraphRequest instance + */ + public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * @param message RebuildVSchemaGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * @param message RebuildVSchemaGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildVSchemaGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildVSchemaGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Verifies a RebuildVSchemaGraphRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildVSchemaGraphRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. + * @param message RebuildVSchemaGraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildVSchemaGraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildVSchemaGraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildVSchemaGraphResponse. */ + interface IRebuildVSchemaGraphResponse { + } + + /** Represents a RebuildVSchemaGraphResponse. */ + class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { + + /** + * Constructs a new RebuildVSchemaGraphResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); + + /** + * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildVSchemaGraphResponse instance + */ + public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @param message RebuildVSchemaGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @param message RebuildVSchemaGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Verifies a RebuildVSchemaGraphResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildVSchemaGraphResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. + * @param message RebuildVSchemaGraphResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildVSchemaGraphResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildVSchemaGraphResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateRequest. */ + interface IRefreshStateRequest { + + /** RefreshStateRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a RefreshStateRequest. */ + class RefreshStateRequest implements IRefreshStateRequest { + + /** + * Constructs a new RefreshStateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateRequest); + + /** RefreshStateRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new RefreshStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateRequest instance + */ + public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; + + /** + * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * @param message RefreshStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * @param message RefreshStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateRequest; + + /** + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateRequest; + + /** + * Verifies a RefreshStateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; + + /** + * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. + * @param message RefreshStateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateResponse. */ + interface IRefreshStateResponse { + } + + /** Represents a RefreshStateResponse. */ + class RefreshStateResponse implements IRefreshStateResponse { + + /** + * Constructs a new RefreshStateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateResponse); + + /** + * Creates a new RefreshStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateResponse instance + */ + public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; + + /** + * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * @param message RefreshStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * @param message RefreshStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateResponse; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateResponse; + + /** + * Verifies a RefreshStateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; + + /** + * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. + * @param message RefreshStateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateByShardRequest. */ + interface IRefreshStateByShardRequest { + + /** RefreshStateByShardRequest keyspace */ + keyspace?: (string|null); + + /** RefreshStateByShardRequest shard */ + shard?: (string|null); + + /** RefreshStateByShardRequest cells */ + cells?: (string[]|null); + } + + /** Represents a RefreshStateByShardRequest. */ + class RefreshStateByShardRequest implements IRefreshStateByShardRequest { + + /** + * Constructs a new RefreshStateByShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateByShardRequest); + + /** RefreshStateByShardRequest keyspace. */ + public keyspace: string; + + /** RefreshStateByShardRequest shard. */ + public shard: string; + + /** RefreshStateByShardRequest cells. */ + public cells: string[]; + + /** + * Creates a new RefreshStateByShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateByShardRequest instance + */ + public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; + + /** + * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * @param message RefreshStateByShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * @param message RefreshStateByShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateByShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardRequest; + + /** + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateByShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardRequest; + + /** + * Verifies a RefreshStateByShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateByShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; + + /** + * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. + * @param message RefreshStateByShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateByShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateByShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateByShardResponse. */ + interface IRefreshStateByShardResponse { + + /** RefreshStateByShardResponse is_partial_refresh */ + is_partial_refresh?: (boolean|null); + + /** RefreshStateByShardResponse partial_refresh_details */ + partial_refresh_details?: (string|null); + } + + /** Represents a RefreshStateByShardResponse. */ + class RefreshStateByShardResponse implements IRefreshStateByShardResponse { + + /** + * Constructs a new RefreshStateByShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateByShardResponse); + + /** RefreshStateByShardResponse is_partial_refresh. */ + public is_partial_refresh: boolean; + + /** RefreshStateByShardResponse partial_refresh_details. */ + public partial_refresh_details: string; + + /** + * Creates a new RefreshStateByShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateByShardResponse instance + */ + public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; + + /** + * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * @param message RefreshStateByShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * @param message RefreshStateByShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateByShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardResponse; + + /** + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateByShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardResponse; + + /** + * Verifies a RefreshStateByShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateByShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; + + /** + * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. + * @param message RefreshStateByShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateByShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateByShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaRequest. */ + interface IReloadSchemaRequest { + + /** ReloadSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReloadSchemaRequest. */ + class ReloadSchemaRequest implements IReloadSchemaRequest { + + /** + * Constructs a new ReloadSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaRequest); + + /** ReloadSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReloadSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; + + /** + * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * @param message ReloadSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * @param message ReloadSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaRequest; + + /** + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaRequest; + + /** + * Verifies a ReloadSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; + + /** + * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaResponse. */ + interface IReloadSchemaResponse { + } + + /** Represents a ReloadSchemaResponse. */ + class ReloadSchemaResponse implements IReloadSchemaResponse { + + /** + * Constructs a new ReloadSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaResponse); + + /** + * Creates a new ReloadSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; + + /** + * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * @param message ReloadSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * @param message ReloadSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaResponse; + + /** + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaResponse; + + /** + * Verifies a ReloadSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; + + /** + * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaKeyspaceRequest. */ + interface IReloadSchemaKeyspaceRequest { + + /** ReloadSchemaKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ReloadSchemaKeyspaceRequest wait_position */ + wait_position?: (string|null); + + /** ReloadSchemaKeyspaceRequest include_primary */ + include_primary?: (boolean|null); + + /** ReloadSchemaKeyspaceRequest concurrency */ + concurrency?: (number|null); + } + + /** Represents a ReloadSchemaKeyspaceRequest. */ + class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { + + /** + * Constructs a new ReloadSchemaKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaKeyspaceRequest); + + /** ReloadSchemaKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ReloadSchemaKeyspaceRequest wait_position. */ + public wait_position: string; + + /** ReloadSchemaKeyspaceRequest include_primary. */ + public include_primary: boolean; + + /** ReloadSchemaKeyspaceRequest concurrency. */ + public concurrency: number; + + /** + * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * @param message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * @param message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Verifies a ReloadSchemaKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaKeyspaceResponse. */ + interface IReloadSchemaKeyspaceResponse { + + /** ReloadSchemaKeyspaceResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a ReloadSchemaKeyspaceResponse. */ + class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { + + /** + * Constructs a new ReloadSchemaKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); + + /** ReloadSchemaKeyspaceResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * @param message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * @param message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Verifies a ReloadSchemaKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaShardRequest. */ + interface IReloadSchemaShardRequest { + + /** ReloadSchemaShardRequest keyspace */ + keyspace?: (string|null); + + /** ReloadSchemaShardRequest shard */ + shard?: (string|null); + + /** ReloadSchemaShardRequest wait_position */ + wait_position?: (string|null); + + /** ReloadSchemaShardRequest include_primary */ + include_primary?: (boolean|null); + + /** ReloadSchemaShardRequest concurrency */ + concurrency?: (number|null); + } + + /** Represents a ReloadSchemaShardRequest. */ + class ReloadSchemaShardRequest implements IReloadSchemaShardRequest { + + /** + * Constructs a new ReloadSchemaShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaShardRequest); + + /** ReloadSchemaShardRequest keyspace. */ + public keyspace: string; + + /** ReloadSchemaShardRequest shard. */ + public shard: string; + + /** ReloadSchemaShardRequest wait_position. */ + public wait_position: string; + + /** ReloadSchemaShardRequest include_primary. */ + public include_primary: boolean; + + /** ReloadSchemaShardRequest concurrency. */ + public concurrency: number; + + /** + * Creates a new ReloadSchemaShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaShardRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; + + /** + * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * @param message ReloadSchemaShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * @param message ReloadSchemaShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardRequest; + + /** + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardRequest; + + /** + * Verifies a ReloadSchemaShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; + + /** + * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaShardResponse. */ + interface IReloadSchemaShardResponse { + + /** ReloadSchemaShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a ReloadSchemaShardResponse. */ + class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { + + /** + * Constructs a new ReloadSchemaShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaShardResponse); + + /** ReloadSchemaShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new ReloadSchemaShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaShardResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; + + /** + * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * @param message ReloadSchemaShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * @param message ReloadSchemaShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardResponse; + + /** + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardResponse; + + /** + * Verifies a ReloadSchemaShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; + + /** + * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveBackupRequest. */ + interface IRemoveBackupRequest { + + /** RemoveBackupRequest keyspace */ + keyspace?: (string|null); + + /** RemoveBackupRequest shard */ + shard?: (string|null); + + /** RemoveBackupRequest name */ + name?: (string|null); + } + + /** Represents a RemoveBackupRequest. */ + class RemoveBackupRequest implements IRemoveBackupRequest { + + /** + * Constructs a new RemoveBackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveBackupRequest); + + /** RemoveBackupRequest keyspace. */ + public keyspace: string; + + /** RemoveBackupRequest shard. */ + public shard: string; + + /** RemoveBackupRequest name. */ + public name: string; + + /** + * Creates a new RemoveBackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveBackupRequest instance + */ + public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; + + /** + * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * @param message RemoveBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * @param message RemoveBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveBackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupRequest; + + /** + * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupRequest; + + /** + * Verifies a RemoveBackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveBackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; + + /** + * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. + * @param message RemoveBackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveBackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveBackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveBackupResponse. */ + interface IRemoveBackupResponse { + } + + /** Represents a RemoveBackupResponse. */ + class RemoveBackupResponse implements IRemoveBackupResponse { + + /** + * Constructs a new RemoveBackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveBackupResponse); + + /** + * Creates a new RemoveBackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveBackupResponse instance + */ + public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; + + /** + * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * @param message RemoveBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * @param message RemoveBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveBackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupResponse; + + /** + * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupResponse; + + /** + * Verifies a RemoveBackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveBackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; + + /** + * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. + * @param message RemoveBackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveBackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveBackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { + + /** RemoveKeyspaceCellRequest keyspace */ + keyspace?: (string|null); + + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); + + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); + + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); + } + + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + + /** + * Constructs a new RemoveKeyspaceCellRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); + + /** RemoveKeyspaceCellRequest keyspace. */ + public keyspace: string; + + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; + + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; + + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; + + /** + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveKeyspaceCellRequest instance + */ + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Verifies a RemoveKeyspaceCellRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveKeyspaceCellRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveKeyspaceCellRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveKeyspaceCellRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { + } + + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + + /** + * Constructs a new RemoveKeyspaceCellResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + + /** + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveKeyspaceCellResponse instance + */ + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveKeyspaceCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveKeyspaceCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Verifies a RemoveKeyspaceCellResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveKeyspaceCellResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveKeyspaceCellResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveKeyspaceCellResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { + + /** RemoveShardCellRequest keyspace */ + keyspace?: (string|null); + + /** RemoveShardCellRequest shard_name */ + shard_name?: (string|null); + + /** RemoveShardCellRequest cell */ + cell?: (string|null); + + /** RemoveShardCellRequest force */ + force?: (boolean|null); + + /** RemoveShardCellRequest recursive */ + recursive?: (boolean|null); + } + + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { + + /** + * Constructs a new RemoveShardCellRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveShardCellRequest); + + /** RemoveShardCellRequest keyspace. */ + public keyspace: string; + + /** RemoveShardCellRequest shard_name. */ + public shard_name: string; + + /** RemoveShardCellRequest cell. */ + public cell: string; + + /** RemoveShardCellRequest force. */ + public force: boolean; + + /** RemoveShardCellRequest recursive. */ + public recursive: boolean; + + /** + * Creates a new RemoveShardCellRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveShardCellRequest instance + */ + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + + /** + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveShardCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; + + /** + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveShardCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; + + /** + * Verifies a RemoveShardCellRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveShardCellRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + + /** + * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. + * @param message RemoveShardCellRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveShardCellRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveShardCellRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { + } + + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { + + /** + * Constructs a new RemoveShardCellResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveShardCellResponse); + + /** + * Creates a new RemoveShardCellResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveShardCellResponse instance + */ + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + + /** + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveShardCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; + + /** + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveShardCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; + + /** + * Verifies a RemoveShardCellResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveShardCellResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + + /** + * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. + * @param message RemoveShardCellResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveShardCellResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveShardCellResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { + + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); + } + + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { + + /** + * Constructs a new ReparentTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReparentTabletRequest); + + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReparentTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReparentTabletRequest instance + */ + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; + + /** + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReparentTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; + + /** + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReparentTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; + + /** + * Verifies a ReparentTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReparentTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; + + /** + * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. + * @param message ReparentTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReparentTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReparentTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { + + /** ReparentTabletResponse keyspace */ + keyspace?: (string|null); + + /** ReparentTabletResponse shard */ + shard?: (string|null); + + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); + } + + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { + + /** + * Constructs a new ReparentTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReparentTabletResponse); + + /** ReparentTabletResponse keyspace. */ + public keyspace: string; + + /** ReparentTabletResponse shard. */ + public shard: string; + + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReparentTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReparentTabletResponse instance + */ + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; + + /** + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReparentTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; + + /** + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReparentTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; + + /** + * Verifies a ReparentTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReparentTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; + + /** + * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. + * @param message ReparentTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReparentTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReparentTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReshardCreateRequest. */ + interface IReshardCreateRequest { + + /** ReshardCreateRequest workflow */ + workflow?: (string|null); + + /** ReshardCreateRequest keyspace */ + keyspace?: (string|null); + + /** ReshardCreateRequest source_shards */ + source_shards?: (string[]|null); + + /** ReshardCreateRequest target_shards */ + target_shards?: (string[]|null); + + /** ReshardCreateRequest cells */ + cells?: (string[]|null); + + /** ReshardCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** ReshardCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** ReshardCreateRequest skip_schema_copy */ + skip_schema_copy?: (boolean|null); + + /** ReshardCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** ReshardCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** ReshardCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** ReshardCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** ReshardCreateRequest workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a ReshardCreateRequest. */ + class ReshardCreateRequest implements IReshardCreateRequest { + + /** + * Constructs a new ReshardCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReshardCreateRequest); + + /** ReshardCreateRequest workflow. */ + public workflow: string; + + /** ReshardCreateRequest keyspace. */ + public keyspace: string; + + /** ReshardCreateRequest source_shards. */ + public source_shards: string[]; + + /** ReshardCreateRequest target_shards. */ + public target_shards: string[]; + + /** ReshardCreateRequest cells. */ + public cells: string[]; + + /** ReshardCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** ReshardCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** ReshardCreateRequest skip_schema_copy. */ + public skip_schema_copy: boolean; + + /** ReshardCreateRequest on_ddl. */ + public on_ddl: string; + + /** ReshardCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** ReshardCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** ReshardCreateRequest auto_start. */ + public auto_start: boolean; + + /** ReshardCreateRequest workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new ReshardCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReshardCreateRequest instance + */ + public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; + + /** + * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * @param message ReshardCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * @param message ReshardCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReshardCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReshardCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReshardCreateRequest; + + /** + * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReshardCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReshardCreateRequest; + + /** + * Verifies a ReshardCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReshardCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; + + /** + * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. + * @param message ReshardCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReshardCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReshardCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestoreFromBackupRequest. */ + interface IRestoreFromBackupRequest { + + /** RestoreFromBackupRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupRequest backup_time */ + backup_time?: (vttime.ITime|null); + + /** RestoreFromBackupRequest restore_to_pos */ + restore_to_pos?: (string|null); + + /** RestoreFromBackupRequest dry_run */ + dry_run?: (boolean|null); + + /** RestoreFromBackupRequest restore_to_timestamp */ + restore_to_timestamp?: (vttime.ITime|null); + + /** RestoreFromBackupRequest allowed_backup_engines */ + allowed_backup_engines?: (string[]|null); + } + + /** Represents a RestoreFromBackupRequest. */ + class RestoreFromBackupRequest implements IRestoreFromBackupRequest { + + /** + * Constructs a new RestoreFromBackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRestoreFromBackupRequest); + + /** RestoreFromBackupRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupRequest backup_time. */ + public backup_time?: (vttime.ITime|null); + + /** RestoreFromBackupRequest restore_to_pos. */ + public restore_to_pos: string; + + /** RestoreFromBackupRequest dry_run. */ + public dry_run: boolean; + + /** RestoreFromBackupRequest restore_to_timestamp. */ + public restore_to_timestamp?: (vttime.ITime|null); + + /** RestoreFromBackupRequest allowed_backup_engines. */ + public allowed_backup_engines: string[]; + + /** + * Creates a new RestoreFromBackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreFromBackupRequest instance + */ + public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; + + /** + * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * @param message RestoreFromBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * @param message RestoreFromBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreFromBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupRequest; + + /** + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RestoreFromBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupRequest; + + /** + * Verifies a RestoreFromBackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreFromBackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; + + /** + * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. + * @param message RestoreFromBackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestoreFromBackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RestoreFromBackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestoreFromBackupResponse. */ + interface IRestoreFromBackupResponse { + + /** RestoreFromBackupResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupResponse keyspace */ + keyspace?: (string|null); + + /** RestoreFromBackupResponse shard */ + shard?: (string|null); + + /** RestoreFromBackupResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents a RestoreFromBackupResponse. */ + class RestoreFromBackupResponse implements IRestoreFromBackupResponse { + + /** + * Constructs a new RestoreFromBackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRestoreFromBackupResponse); + + /** RestoreFromBackupResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupResponse keyspace. */ + public keyspace: string; + + /** RestoreFromBackupResponse shard. */ + public shard: string; + + /** RestoreFromBackupResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new RestoreFromBackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreFromBackupResponse instance + */ + public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; + + /** + * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * @param message RestoreFromBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * @param message RestoreFromBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreFromBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupResponse; + + /** + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RestoreFromBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupResponse; + + /** + * Verifies a RestoreFromBackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreFromBackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; + + /** + * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. + * @param message RestoreFromBackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestoreFromBackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RestoreFromBackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RetrySchemaMigrationRequest. */ + interface IRetrySchemaMigrationRequest { + + /** RetrySchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** RetrySchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a RetrySchemaMigrationRequest. */ + class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { + + /** + * Constructs a new RetrySchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); + + /** RetrySchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** RetrySchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new RetrySchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RetrySchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; + + /** + * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * @param message RetrySchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * @param message RetrySchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetrySchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationRequest; + + /** + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RetrySchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationRequest; + + /** + * Verifies a RetrySchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RetrySchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; + + /** + * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. + * @param message RetrySchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RetrySchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RetrySchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RetrySchemaMigrationResponse. */ + interface IRetrySchemaMigrationResponse { + + /** RetrySchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a RetrySchemaMigrationResponse. */ + class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { + + /** + * Constructs a new RetrySchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); + + /** RetrySchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new RetrySchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RetrySchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; + + /** + * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * @param message RetrySchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * @param message RetrySchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetrySchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationResponse; + + /** + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RetrySchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationResponse; + + /** + * Verifies a RetrySchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RetrySchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; + + /** + * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. + * @param message RetrySchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RetrySchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RetrySchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RunHealthCheckRequest. */ + interface IRunHealthCheckRequest { + + /** RunHealthCheckRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a RunHealthCheckRequest. */ + class RunHealthCheckRequest implements IRunHealthCheckRequest { + + /** + * Constructs a new RunHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRunHealthCheckRequest); + + /** RunHealthCheckRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new RunHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckRequest instance + */ + public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; + + /** + * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * @param message RunHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * @param message RunHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckRequest; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckRequest; + + /** + * Verifies a RunHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; + + /** + * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. + * @param message RunHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RunHealthCheckResponse. */ + interface IRunHealthCheckResponse { + } + + /** Represents a RunHealthCheckResponse. */ + class RunHealthCheckResponse implements IRunHealthCheckResponse { + + /** + * Constructs a new RunHealthCheckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRunHealthCheckResponse); + + /** + * Creates a new RunHealthCheckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckResponse instance + */ + public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; + + /** + * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * @param message RunHealthCheckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * @param message RunHealthCheckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunHealthCheckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckResponse; + + /** + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunHealthCheckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckResponse; + + /** + * Verifies a RunHealthCheckResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunHealthCheckResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; + + /** + * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. + * @param message RunHealthCheckResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunHealthCheckResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunHealthCheckResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceDurabilityPolicyRequest. */ + interface ISetKeyspaceDurabilityPolicyRequest { + + /** SetKeyspaceDurabilityPolicyRequest keyspace */ + keyspace?: (string|null); + + /** SetKeyspaceDurabilityPolicyRequest durability_policy */ + durability_policy?: (string|null); + } + + /** Represents a SetKeyspaceDurabilityPolicyRequest. */ + class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { + + /** + * Constructs a new SetKeyspaceDurabilityPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); + + /** SetKeyspaceDurabilityPolicyRequest keyspace. */ + public keyspace: string; + + /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ + public durability_policy: string; + + /** + * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceDurabilityPolicyRequest instance + */ + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceDurabilityPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceDurabilityPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Verifies a SetKeyspaceDurabilityPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceDurabilityPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. + * @param message SetKeyspaceDurabilityPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceDurabilityPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceDurabilityPolicyResponse. */ + interface ISetKeyspaceDurabilityPolicyResponse { + + /** SetKeyspaceDurabilityPolicyResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a SetKeyspaceDurabilityPolicyResponse. */ + class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { + + /** + * Constructs a new SetKeyspaceDurabilityPolicyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); + + /** SetKeyspaceDurabilityPolicyResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceDurabilityPolicyResponse instance + */ + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceDurabilityPolicyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceDurabilityPolicyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Verifies a SetKeyspaceDurabilityPolicyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceDurabilityPolicyResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. + * @param message SetKeyspaceDurabilityPolicyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceDurabilityPolicyResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceShardingInfoRequest. */ + interface ISetKeyspaceShardingInfoRequest { + + /** SetKeyspaceShardingInfoRequest keyspace */ + keyspace?: (string|null); + + /** SetKeyspaceShardingInfoRequest force */ + force?: (boolean|null); + } + + /** Represents a SetKeyspaceShardingInfoRequest. */ + class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { + + /** + * Constructs a new SetKeyspaceShardingInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); + + /** SetKeyspaceShardingInfoRequest keyspace. */ + public keyspace: string; + + /** SetKeyspaceShardingInfoRequest force. */ + public force: boolean; + + /** + * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceShardingInfoRequest instance + */ + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * @param message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * @param message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceShardingInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceShardingInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Verifies a SetKeyspaceShardingInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceShardingInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. + * @param message SetKeyspaceShardingInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceShardingInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceShardingInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceShardingInfoResponse. */ + interface ISetKeyspaceShardingInfoResponse { + + /** SetKeyspaceShardingInfoResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a SetKeyspaceShardingInfoResponse. */ + class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { + + /** + * Constructs a new SetKeyspaceShardingInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); + + /** SetKeyspaceShardingInfoResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceShardingInfoResponse instance + */ + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * @param message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * @param message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceShardingInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceShardingInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Verifies a SetKeyspaceShardingInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceShardingInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. + * @param message SetKeyspaceShardingInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceShardingInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceShardingInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardIsPrimaryServingRequest. */ + interface ISetShardIsPrimaryServingRequest { + + /** SetShardIsPrimaryServingRequest keyspace */ + keyspace?: (string|null); + + /** SetShardIsPrimaryServingRequest shard */ + shard?: (string|null); + + /** SetShardIsPrimaryServingRequest is_serving */ + is_serving?: (boolean|null); + } + + /** Represents a SetShardIsPrimaryServingRequest. */ + class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { + + /** + * Constructs a new SetShardIsPrimaryServingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); + + /** SetShardIsPrimaryServingRequest keyspace. */ + public keyspace: string; + + /** SetShardIsPrimaryServingRequest shard. */ + public shard: string; + + /** SetShardIsPrimaryServingRequest is_serving. */ + public is_serving: boolean; + + /** + * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardIsPrimaryServingRequest instance + */ + public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * @param message SetShardIsPrimaryServingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * @param message SetShardIsPrimaryServingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardIsPrimaryServingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardIsPrimaryServingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Verifies a SetShardIsPrimaryServingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardIsPrimaryServingRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. + * @param message SetShardIsPrimaryServingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardIsPrimaryServingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardIsPrimaryServingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardIsPrimaryServingResponse. */ + interface ISetShardIsPrimaryServingResponse { + + /** SetShardIsPrimaryServingResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SetShardIsPrimaryServingResponse. */ + class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { + + /** + * Constructs a new SetShardIsPrimaryServingResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); + + /** SetShardIsPrimaryServingResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardIsPrimaryServingResponse instance + */ + public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * @param message SetShardIsPrimaryServingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * @param message SetShardIsPrimaryServingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardIsPrimaryServingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardIsPrimaryServingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Verifies a SetShardIsPrimaryServingResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardIsPrimaryServingResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. + * @param message SetShardIsPrimaryServingResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardIsPrimaryServingResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardIsPrimaryServingResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardTabletControlRequest. */ + interface ISetShardTabletControlRequest { + + /** SetShardTabletControlRequest keyspace */ + keyspace?: (string|null); + + /** SetShardTabletControlRequest shard */ + shard?: (string|null); + + /** SetShardTabletControlRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** SetShardTabletControlRequest cells */ + cells?: (string[]|null); + + /** SetShardTabletControlRequest denied_tables */ + denied_tables?: (string[]|null); + + /** SetShardTabletControlRequest disable_query_service */ + disable_query_service?: (boolean|null); + + /** SetShardTabletControlRequest remove */ + remove?: (boolean|null); + } + + /** Represents a SetShardTabletControlRequest. */ + class SetShardTabletControlRequest implements ISetShardTabletControlRequest { + + /** + * Constructs a new SetShardTabletControlRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardTabletControlRequest); + + /** SetShardTabletControlRequest keyspace. */ + public keyspace: string; + + /** SetShardTabletControlRequest shard. */ + public shard: string; + + /** SetShardTabletControlRequest tablet_type. */ + public tablet_type: topodata.TabletType; + + /** SetShardTabletControlRequest cells. */ + public cells: string[]; + + /** SetShardTabletControlRequest denied_tables. */ + public denied_tables: string[]; + + /** SetShardTabletControlRequest disable_query_service. */ + public disable_query_service: boolean; + + /** SetShardTabletControlRequest remove. */ + public remove: boolean; + + /** + * Creates a new SetShardTabletControlRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardTabletControlRequest instance + */ + public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; + + /** + * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * @param message SetShardTabletControlRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * @param message SetShardTabletControlRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardTabletControlRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlRequest; + + /** + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardTabletControlRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlRequest; + + /** + * Verifies a SetShardTabletControlRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardTabletControlRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; + + /** + * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. + * @param message SetShardTabletControlRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardTabletControlRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardTabletControlRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardTabletControlResponse. */ + interface ISetShardTabletControlResponse { + + /** SetShardTabletControlResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SetShardTabletControlResponse. */ + class SetShardTabletControlResponse implements ISetShardTabletControlResponse { + + /** + * Constructs a new SetShardTabletControlResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardTabletControlResponse); + + /** SetShardTabletControlResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SetShardTabletControlResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardTabletControlResponse instance + */ + public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; + + /** + * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * @param message SetShardTabletControlResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * @param message SetShardTabletControlResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardTabletControlResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlResponse; + + /** + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardTabletControlResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlResponse; + + /** + * Verifies a SetShardTabletControlResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardTabletControlResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; + + /** + * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. + * @param message SetShardTabletControlResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardTabletControlResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardTabletControlResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetWritableRequest. */ + interface ISetWritableRequest { + + /** SetWritableRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable */ + writable?: (boolean|null); + } + + /** Represents a SetWritableRequest. */ + class SetWritableRequest implements ISetWritableRequest { + + /** + * Constructs a new SetWritableRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetWritableRequest); + + /** SetWritableRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable. */ + public writable: boolean; + + /** + * Creates a new SetWritableRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetWritableRequest instance + */ + public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; + + /** + * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * @param message SetWritableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * @param message SetWritableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetWritableRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetWritableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableRequest; + + /** + * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetWritableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableRequest; + + /** + * Verifies a SetWritableRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetWritableRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; + + /** + * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. + * @param message SetWritableRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetWritableRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetWritableRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetWritableResponse. */ + interface ISetWritableResponse { + } + + /** Represents a SetWritableResponse. */ + class SetWritableResponse implements ISetWritableResponse { + + /** + * Constructs a new SetWritableResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetWritableResponse); + + /** + * Creates a new SetWritableResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetWritableResponse instance + */ + public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; + + /** + * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * @param message SetWritableResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * @param message SetWritableResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetWritableResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetWritableResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableResponse; + + /** + * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetWritableResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableResponse; + + /** + * Verifies a SetWritableResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetWritableResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; + + /** + * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. + * @param message SetWritableResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetWritableResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetWritableResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationAddRequest. */ + interface IShardReplicationAddRequest { + + /** ShardReplicationAddRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationAddRequest shard */ + shard?: (string|null); + + /** ShardReplicationAddRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ShardReplicationAddRequest. */ + class ShardReplicationAddRequest implements IShardReplicationAddRequest { + + /** + * Constructs a new ShardReplicationAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationAddRequest); + + /** ShardReplicationAddRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationAddRequest shard. */ + public shard: string; + + /** ShardReplicationAddRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ShardReplicationAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationAddRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; + + /** + * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * @param message ShardReplicationAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * @param message ShardReplicationAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddRequest; + + /** + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddRequest; + + /** + * Verifies a ShardReplicationAddRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationAddRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; + + /** + * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. + * @param message ShardReplicationAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationAddResponse. */ + interface IShardReplicationAddResponse { + } + + /** Represents a ShardReplicationAddResponse. */ + class ShardReplicationAddResponse implements IShardReplicationAddResponse { + + /** + * Constructs a new ShardReplicationAddResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationAddResponse); + + /** + * Creates a new ShardReplicationAddResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationAddResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; + + /** + * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * @param message ShardReplicationAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * @param message ShardReplicationAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddResponse; + + /** + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddResponse; + + /** + * Verifies a ShardReplicationAddResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationAddResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; + + /** + * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. + * @param message ShardReplicationAddResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationAddResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationAddResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationFixRequest. */ + interface IShardReplicationFixRequest { + + /** ShardReplicationFixRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationFixRequest shard */ + shard?: (string|null); + + /** ShardReplicationFixRequest cell */ + cell?: (string|null); + } + + /** Represents a ShardReplicationFixRequest. */ + class ShardReplicationFixRequest implements IShardReplicationFixRequest { + + /** + * Constructs a new ShardReplicationFixRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationFixRequest); + + /** ShardReplicationFixRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationFixRequest shard. */ + public shard: string; + + /** ShardReplicationFixRequest cell. */ + public cell: string; + + /** + * Creates a new ShardReplicationFixRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationFixRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; + + /** + * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * @param message ShardReplicationFixRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * @param message ShardReplicationFixRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationFixRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixRequest; + + /** + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationFixRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixRequest; + + /** + * Verifies a ShardReplicationFixRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationFixRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; + + /** + * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. + * @param message ShardReplicationFixRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationFixRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationFixRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationFixResponse. */ + interface IShardReplicationFixResponse { + + /** ShardReplicationFixResponse error */ + error?: (topodata.IShardReplicationError|null); + } + + /** Represents a ShardReplicationFixResponse. */ + class ShardReplicationFixResponse implements IShardReplicationFixResponse { + + /** + * Constructs a new ShardReplicationFixResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationFixResponse); + + /** ShardReplicationFixResponse error. */ + public error?: (topodata.IShardReplicationError|null); + + /** + * Creates a new ShardReplicationFixResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationFixResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; + + /** + * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * @param message ShardReplicationFixResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * @param message ShardReplicationFixResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationFixResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixResponse; + + /** + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationFixResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixResponse; + + /** + * Verifies a ShardReplicationFixResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationFixResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; + + /** + * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. + * @param message ShardReplicationFixResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationFixResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationFixResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationPositionsRequest. */ + interface IShardReplicationPositionsRequest { + + /** ShardReplicationPositionsRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationPositionsRequest shard */ + shard?: (string|null); + } + + /** Represents a ShardReplicationPositionsRequest. */ + class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { + + /** + * Constructs a new ShardReplicationPositionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationPositionsRequest); + + /** ShardReplicationPositionsRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationPositionsRequest shard. */ + public shard: string; + + /** + * Creates a new ShardReplicationPositionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationPositionsRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; + + /** + * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * @param message ShardReplicationPositionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * @param message ShardReplicationPositionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationPositionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsRequest; + + /** + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationPositionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsRequest; + + /** + * Verifies a ShardReplicationPositionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationPositionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; + + /** + * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. + * @param message ShardReplicationPositionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationPositionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationPositionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationPositionsResponse. */ + interface IShardReplicationPositionsResponse { + + /** ShardReplicationPositionsResponse replication_statuses */ + replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); + + /** ShardReplicationPositionsResponse tablet_map */ + tablet_map?: ({ [k: string]: topodata.ITablet }|null); + } + + /** Represents a ShardReplicationPositionsResponse. */ + class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { + + /** + * Constructs a new ShardReplicationPositionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationPositionsResponse); + + /** ShardReplicationPositionsResponse replication_statuses. */ + public replication_statuses: { [k: string]: replicationdata.IStatus }; + + /** ShardReplicationPositionsResponse tablet_map. */ + public tablet_map: { [k: string]: topodata.ITablet }; + + /** + * Creates a new ShardReplicationPositionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationPositionsResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; + + /** + * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * @param message ShardReplicationPositionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * @param message ShardReplicationPositionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationPositionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsResponse; + + /** + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationPositionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsResponse; + + /** + * Verifies a ShardReplicationPositionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationPositionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; + + /** + * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. + * @param message ShardReplicationPositionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationPositionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationPositionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationRemoveRequest. */ + interface IShardReplicationRemoveRequest { + + /** ShardReplicationRemoveRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationRemoveRequest shard */ + shard?: (string|null); + + /** ShardReplicationRemoveRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ShardReplicationRemoveRequest. */ + class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { + + /** + * Constructs a new ShardReplicationRemoveRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationRemoveRequest); + + /** ShardReplicationRemoveRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationRemoveRequest shard. */ + public shard: string; + + /** ShardReplicationRemoveRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ShardReplicationRemoveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationRemoveRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; + + /** + * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * @param message ShardReplicationRemoveRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * @param message ShardReplicationRemoveRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationRemoveRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveRequest; + + /** + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationRemoveRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveRequest; + + /** + * Verifies a ShardReplicationRemoveRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationRemoveRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; + + /** + * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. + * @param message ShardReplicationRemoveRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationRemoveRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationRemoveRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationRemoveResponse. */ + interface IShardReplicationRemoveResponse { + } + + /** Represents a ShardReplicationRemoveResponse. */ + class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { + + /** + * Constructs a new ShardReplicationRemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationRemoveResponse); + + /** + * Creates a new ShardReplicationRemoveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationRemoveResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; + + /** + * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @param message ShardReplicationRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @param message ShardReplicationRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveResponse; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveResponse; + + /** + * Verifies a ShardReplicationRemoveResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationRemoveResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; + + /** + * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. + * @param message ShardReplicationRemoveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationRemoveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationRemoveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SleepTabletRequest. */ + interface ISleepTabletRequest { + + /** SleepTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** SleepTabletRequest duration */ + duration?: (vttime.IDuration|null); + } + + /** Represents a SleepTabletRequest. */ + class SleepTabletRequest implements ISleepTabletRequest { + + /** + * Constructs a new SleepTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISleepTabletRequest); + + /** SleepTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** SleepTabletRequest duration. */ + public duration?: (vttime.IDuration|null); + + /** + * Creates a new SleepTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepTabletRequest instance + */ + public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; + + /** + * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * @param message SleepTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * @param message SleepTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletRequest; + + /** + * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SleepTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletRequest; + + /** + * Verifies a SleepTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SleepTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; + + /** + * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. + * @param message SleepTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SleepTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SleepTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SleepTabletResponse. */ + interface ISleepTabletResponse { + } + + /** Represents a SleepTabletResponse. */ + class SleepTabletResponse implements ISleepTabletResponse { + + /** + * Constructs a new SleepTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISleepTabletResponse); + + /** + * Creates a new SleepTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepTabletResponse instance + */ + public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; + + /** + * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @param message SleepTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @param message SleepTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletResponse; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletResponse; + + /** + * Verifies a SleepTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SleepTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; + + /** + * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. + * @param message SleepTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SleepTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SleepTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardAddRequest. */ + interface ISourceShardAddRequest { + + /** SourceShardAddRequest keyspace */ + keyspace?: (string|null); + + /** SourceShardAddRequest shard */ + shard?: (string|null); + + /** SourceShardAddRequest uid */ + uid?: (number|null); + + /** SourceShardAddRequest source_keyspace */ + source_keyspace?: (string|null); + + /** SourceShardAddRequest source_shard */ + source_shard?: (string|null); + + /** SourceShardAddRequest key_range */ + key_range?: (topodata.IKeyRange|null); + + /** SourceShardAddRequest tables */ + tables?: (string[]|null); + } + + /** Represents a SourceShardAddRequest. */ + class SourceShardAddRequest implements ISourceShardAddRequest { + + /** + * Constructs a new SourceShardAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardAddRequest); + + /** SourceShardAddRequest keyspace. */ + public keyspace: string; + + /** SourceShardAddRequest shard. */ + public shard: string; + + /** SourceShardAddRequest uid. */ + public uid: number; + + /** SourceShardAddRequest source_keyspace. */ + public source_keyspace: string; + + /** SourceShardAddRequest source_shard. */ + public source_shard: string; + + /** SourceShardAddRequest key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** SourceShardAddRequest tables. */ + public tables: string[]; + + /** + * Creates a new SourceShardAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardAddRequest instance + */ + public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; + + /** + * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * @param message SourceShardAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * @param message SourceShardAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddRequest; + + /** + * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddRequest; + + /** + * Verifies a SourceShardAddRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardAddRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; + + /** + * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. + * @param message SourceShardAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardAddResponse. */ + interface ISourceShardAddResponse { + + /** SourceShardAddResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SourceShardAddResponse. */ + class SourceShardAddResponse implements ISourceShardAddResponse { + + /** + * Constructs a new SourceShardAddResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardAddResponse); + + /** SourceShardAddResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SourceShardAddResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardAddResponse instance + */ + public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; + + /** + * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * @param message SourceShardAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * @param message SourceShardAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardAddResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddResponse; + + /** + * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddResponse; + + /** + * Verifies a SourceShardAddResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardAddResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; + + /** + * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. + * @param message SourceShardAddResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardAddResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardAddResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardDeleteRequest. */ + interface ISourceShardDeleteRequest { + + /** SourceShardDeleteRequest keyspace */ + keyspace?: (string|null); + + /** SourceShardDeleteRequest shard */ + shard?: (string|null); + + /** SourceShardDeleteRequest uid */ + uid?: (number|null); + } + + /** Represents a SourceShardDeleteRequest. */ + class SourceShardDeleteRequest implements ISourceShardDeleteRequest { + + /** + * Constructs a new SourceShardDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardDeleteRequest); + + /** SourceShardDeleteRequest keyspace. */ + public keyspace: string; + + /** SourceShardDeleteRequest shard. */ + public shard: string; + + /** SourceShardDeleteRequest uid. */ + public uid: number; + + /** + * Creates a new SourceShardDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardDeleteRequest instance + */ + public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; + + /** + * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * @param message SourceShardDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * @param message SourceShardDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteRequest; + + /** + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteRequest; + + /** + * Verifies a SourceShardDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; + + /** + * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. + * @param message SourceShardDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardDeleteResponse. */ + interface ISourceShardDeleteResponse { + + /** SourceShardDeleteResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SourceShardDeleteResponse. */ + class SourceShardDeleteResponse implements ISourceShardDeleteResponse { + + /** + * Constructs a new SourceShardDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardDeleteResponse); + + /** SourceShardDeleteResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SourceShardDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardDeleteResponse instance + */ + public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; + + /** + * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * @param message SourceShardDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * @param message SourceShardDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteResponse; + + /** + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteResponse; + + /** + * Verifies a SourceShardDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; + + /** + * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. + * @param message SourceShardDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartReplicationRequest. */ + interface IStartReplicationRequest { + + /** StartReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StartReplicationRequest. */ + class StartReplicationRequest implements IStartReplicationRequest { + + /** + * Constructs a new StartReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStartReplicationRequest); + + /** StartReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StartReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartReplicationRequest instance + */ + public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; + + /** + * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * @param message StartReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * @param message StartReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationRequest; + + /** + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationRequest; + + /** + * Verifies a StartReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; + + /** + * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. + * @param message StartReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartReplicationResponse. */ + interface IStartReplicationResponse { + } + + /** Represents a StartReplicationResponse. */ + class StartReplicationResponse implements IStartReplicationResponse { + + /** + * Constructs a new StartReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStartReplicationResponse); + + /** + * Creates a new StartReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StartReplicationResponse instance + */ + public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; + + /** + * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * @param message StartReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * @param message StartReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationResponse; + + /** + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationResponse; + + /** + * Verifies a StartReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; + + /** + * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. + * @param message StartReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationRequest. */ + interface IStopReplicationRequest { + + /** StopReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StopReplicationRequest. */ + class StopReplicationRequest implements IStopReplicationRequest { + + /** + * Constructs a new StopReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStopReplicationRequest); + + /** StopReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StopReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationRequest instance + */ + public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; + + /** + * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. + * @param message StopReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. + * @param message StopReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationRequest; + + /** + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationRequest; + + /** + * Verifies a StopReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; + + /** + * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. + * @param message StopReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationResponse. */ + interface IStopReplicationResponse { + } + + /** Represents a StopReplicationResponse. */ + class StopReplicationResponse implements IStopReplicationResponse { + + /** + * Constructs a new StopReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStopReplicationResponse); + + /** + * Creates a new StopReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationResponse instance + */ + public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; + + /** + * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * @param message StopReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * @param message StopReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationResponse; + + /** + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationResponse; + + /** + * Verifies a StopReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; + + /** + * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. + * @param message StopReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { + + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); + } + + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { + + /** + * Constructs a new TabletExternallyReparentedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); + + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletExternallyReparentedRequest instance + */ + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; + + /** + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletExternallyReparentedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; + + /** + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletExternallyReparentedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; + + /** + * Verifies a TabletExternallyReparentedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletExternallyReparentedRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; + + /** + * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletExternallyReparentedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletExternallyReparentedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { + + /** TabletExternallyReparentedResponse keyspace */ + keyspace?: (string|null); + + /** TabletExternallyReparentedResponse shard */ + shard?: (string|null); + + /** TabletExternallyReparentedResponse new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary */ + old_primary?: (topodata.ITabletAlias|null); + } + + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { + + /** + * Constructs a new TabletExternallyReparentedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); + + /** TabletExternallyReparentedResponse keyspace. */ + public keyspace: string; + + /** TabletExternallyReparentedResponse shard. */ + public shard: string; + + /** TabletExternallyReparentedResponse new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary. */ + public old_primary?: (topodata.ITabletAlias|null); + + /** + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletExternallyReparentedResponse instance + */ + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; + + /** + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletExternallyReparentedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; + + /** + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletExternallyReparentedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; + + /** + * Verifies a TabletExternallyReparentedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletExternallyReparentedResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; + + /** + * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletExternallyReparentedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletExternallyReparentedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellInfoRequest. */ + interface IUpdateCellInfoRequest { + + /** UpdateCellInfoRequest name */ + name?: (string|null); + + /** UpdateCellInfoRequest cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an UpdateCellInfoRequest. */ + class UpdateCellInfoRequest implements IUpdateCellInfoRequest { + + /** + * Constructs a new UpdateCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellInfoRequest); + + /** UpdateCellInfoRequest name. */ + public name: string; + + /** UpdateCellInfoRequest cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new UpdateCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellInfoRequest instance + */ + public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; + + /** + * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * @param message UpdateCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * @param message UpdateCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoRequest; + + /** + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoRequest; + + /** + * Verifies an UpdateCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; + + /** + * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. + * @param message UpdateCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellInfoResponse. */ + interface IUpdateCellInfoResponse { + + /** UpdateCellInfoResponse name */ + name?: (string|null); + + /** UpdateCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an UpdateCellInfoResponse. */ + class UpdateCellInfoResponse implements IUpdateCellInfoResponse { + + /** + * Constructs a new UpdateCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellInfoResponse); + + /** UpdateCellInfoResponse name. */ + public name: string; + + /** UpdateCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new UpdateCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellInfoResponse instance + */ + public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; + + /** + * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * @param message UpdateCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * @param message UpdateCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoResponse; + + /** + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoResponse; + + /** + * Verifies an UpdateCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; + + /** + * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. + * @param message UpdateCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellsAliasRequest. */ + interface IUpdateCellsAliasRequest { + + /** UpdateCellsAliasRequest name */ + name?: (string|null); + + /** UpdateCellsAliasRequest cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); + } + + /** Represents an UpdateCellsAliasRequest. */ + class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { + + /** + * Constructs a new UpdateCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellsAliasRequest); + + /** UpdateCellsAliasRequest name. */ + public name: string; + + /** UpdateCellsAliasRequest cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); + + /** + * Creates a new UpdateCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; + + /** + * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * @param message UpdateCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * @param message UpdateCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasRequest; + + /** + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasRequest; + + /** + * Verifies an UpdateCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; + + /** + * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. + * @param message UpdateCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellsAliasResponse. */ + interface IUpdateCellsAliasResponse { + + /** UpdateCellsAliasResponse name */ + name?: (string|null); + + /** UpdateCellsAliasResponse cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); + } + + /** Represents an UpdateCellsAliasResponse. */ + class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { + + /** + * Constructs a new UpdateCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellsAliasResponse); + + /** UpdateCellsAliasResponse name. */ + public name: string; + + /** UpdateCellsAliasResponse cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); + + /** + * Creates a new UpdateCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; + + /** + * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * @param message UpdateCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * @param message UpdateCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasResponse; + + /** + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasResponse; + + /** + * Verifies an UpdateCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; + + /** + * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. + * @param message UpdateCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateRequest. */ + interface IValidateRequest { + + /** ValidateRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateRequest. */ + class ValidateRequest implements IValidateRequest { + + /** + * Constructs a new ValidateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateRequest); + + /** ValidateRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateRequest instance + */ + public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; + + /** + * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * @param message ValidateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * @param message ValidateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateRequest; + + /** + * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateRequest; + + /** + * Verifies a ValidateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; + + /** + * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. + * @param message ValidateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateResponse. */ + interface IValidateResponse { + + /** ValidateResponse results */ + results?: (string[]|null); + + /** ValidateResponse results_by_keyspace */ + results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); + } + + /** Represents a ValidateResponse. */ + class ValidateResponse implements IValidateResponse { + + /** + * Constructs a new ValidateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateResponse); + + /** ValidateResponse results. */ + public results: string[]; + + /** ValidateResponse results_by_keyspace. */ + public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; + + /** + * Creates a new ValidateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateResponse instance + */ + public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; + + /** + * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * @param message ValidateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * @param message ValidateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateResponse; + + /** + * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateResponse; + + /** + * Verifies a ValidateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; + + /** + * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. + * @param message ValidateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateKeyspaceRequest. */ + interface IValidateKeyspaceRequest { + + /** ValidateKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ValidateKeyspaceRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateKeyspaceRequest. */ + class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { + + /** + * Constructs a new ValidateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateKeyspaceRequest); + + /** ValidateKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ValidateKeyspaceRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; + + /** + * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * @param message ValidateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * @param message ValidateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceRequest; + + /** + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceRequest; + + /** + * Verifies a ValidateKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; + + /** + * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateKeyspaceResponse. */ + interface IValidateKeyspaceResponse { + + /** ValidateKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateKeyspaceResponse. */ + class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { + + /** + * Constructs a new ValidateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateKeyspaceResponse); + + /** ValidateKeyspaceResponse results. */ + public results: string[]; + + /** ValidateKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; + + /** + * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * @param message ValidateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * @param message ValidateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceResponse; + + /** + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceResponse; + + /** + * Verifies a ValidateKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; + + /** + * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateSchemaKeyspaceRequest. */ + interface IValidateSchemaKeyspaceRequest { + + /** ValidateSchemaKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ValidateSchemaKeyspaceRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** ValidateSchemaKeyspaceRequest include_views */ + include_views?: (boolean|null); + + /** ValidateSchemaKeyspaceRequest skip_no_primary */ + skip_no_primary?: (boolean|null); + + /** ValidateSchemaKeyspaceRequest include_vschema */ + include_vschema?: (boolean|null); + } + + /** Represents a ValidateSchemaKeyspaceRequest. */ + class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { + + /** + * Constructs a new ValidateSchemaKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateSchemaKeyspaceRequest); + + /** ValidateSchemaKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ValidateSchemaKeyspaceRequest exclude_tables. */ + public exclude_tables: string[]; + + /** ValidateSchemaKeyspaceRequest include_views. */ + public include_views: boolean; + + /** ValidateSchemaKeyspaceRequest skip_no_primary. */ + public skip_no_primary: boolean; + + /** ValidateSchemaKeyspaceRequest include_vschema. */ + public include_vschema: boolean; + + /** + * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateSchemaKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * @param message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * @param message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Verifies a ValidateSchemaKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateSchemaKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateSchemaKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateSchemaKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateSchemaKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateSchemaKeyspaceResponse. */ + interface IValidateSchemaKeyspaceResponse { + + /** ValidateSchemaKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateSchemaKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateSchemaKeyspaceResponse. */ + class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { + + /** + * Constructs a new ValidateSchemaKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); + + /** ValidateSchemaKeyspaceResponse results. */ + public results: string[]; + + /** ValidateSchemaKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateSchemaKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * @param message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * @param message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Verifies a ValidateSchemaKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateSchemaKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateSchemaKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateSchemaKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateSchemaKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateShardRequest. */ + interface IValidateShardRequest { + + /** ValidateShardRequest keyspace */ + keyspace?: (string|null); + + /** ValidateShardRequest shard */ + shard?: (string|null); + + /** ValidateShardRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateShardRequest. */ + class ValidateShardRequest implements IValidateShardRequest { + + /** + * Constructs a new ValidateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateShardRequest); + + /** ValidateShardRequest keyspace. */ + public keyspace: string; + + /** ValidateShardRequest shard. */ + public shard: string; + + /** ValidateShardRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateShardRequest instance + */ + public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; + + /** + * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * @param message ValidateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * @param message ValidateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardRequest; + + /** + * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardRequest; + + /** + * Verifies a ValidateShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; + + /** + * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. + * @param message ValidateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateShardResponse. */ + interface IValidateShardResponse { + + /** ValidateShardResponse results */ + results?: (string[]|null); + } + + /** Represents a ValidateShardResponse. */ + class ValidateShardResponse implements IValidateShardResponse { + + /** + * Constructs a new ValidateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateShardResponse); + + /** ValidateShardResponse results. */ + public results: string[]; + + /** + * Creates a new ValidateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateShardResponse instance + */ + public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; + + /** + * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * @param message ValidateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * @param message ValidateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardResponse; + + /** + * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardResponse; + + /** + * Verifies a ValidateShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; + + /** + * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. + * @param message ValidateShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionKeyspaceRequest. */ + interface IValidateVersionKeyspaceRequest { + + /** ValidateVersionKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a ValidateVersionKeyspaceRequest. */ + class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { + + /** + * Constructs a new ValidateVersionKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); + + /** ValidateVersionKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * @param message ValidateVersionKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * @param message ValidateVersionKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Verifies a ValidateVersionKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateVersionKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionKeyspaceResponse. */ + interface IValidateVersionKeyspaceResponse { + + /** ValidateVersionKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateVersionKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateVersionKeyspaceResponse. */ + class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { + + /** + * Constructs a new ValidateVersionKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionKeyspaceResponse); + + /** ValidateVersionKeyspaceResponse results. */ + public results: string[]; + + /** ValidateVersionKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * @param message ValidateVersionKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * @param message ValidateVersionKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Verifies a ValidateVersionKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateVersionKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionShardRequest. */ + interface IValidateVersionShardRequest { + + /** ValidateVersionShardRequest keyspace */ + keyspace?: (string|null); + + /** ValidateVersionShardRequest shard */ + shard?: (string|null); + } + + /** Represents a ValidateVersionShardRequest. */ + class ValidateVersionShardRequest implements IValidateVersionShardRequest { + + /** + * Constructs a new ValidateVersionShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionShardRequest); + + /** ValidateVersionShardRequest keyspace. */ + public keyspace: string; + + /** ValidateVersionShardRequest shard. */ + public shard: string; + + /** + * Creates a new ValidateVersionShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionShardRequest instance + */ + public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; + + /** + * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * @param message ValidateVersionShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * @param message ValidateVersionShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardRequest; + + /** + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardRequest; + + /** + * Verifies a ValidateVersionShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; + + /** + * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. + * @param message ValidateVersionShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionShardResponse. */ + interface IValidateVersionShardResponse { + + /** ValidateVersionShardResponse results */ + results?: (string[]|null); + } + + /** Represents a ValidateVersionShardResponse. */ + class ValidateVersionShardResponse implements IValidateVersionShardResponse { + + /** + * Constructs a new ValidateVersionShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionShardResponse); + + /** ValidateVersionShardResponse results. */ + public results: string[]; + + /** + * Creates a new ValidateVersionShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionShardResponse instance + */ + public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; + + /** + * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * @param message ValidateVersionShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * @param message ValidateVersionShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardResponse; + + /** + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardResponse; + + /** + * Verifies a ValidateVersionShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; + + /** + * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. + * @param message ValidateVersionShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVSchemaRequest. */ + interface IValidateVSchemaRequest { + + /** ValidateVSchemaRequest keyspace */ + keyspace?: (string|null); + + /** ValidateVSchemaRequest shards */ + shards?: (string[]|null); + + /** ValidateVSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** ValidateVSchemaRequest include_views */ + include_views?: (boolean|null); + } + + /** Represents a ValidateVSchemaRequest. */ + class ValidateVSchemaRequest implements IValidateVSchemaRequest { + + /** + * Constructs a new ValidateVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVSchemaRequest); + + /** ValidateVSchemaRequest keyspace. */ + public keyspace: string; + + /** ValidateVSchemaRequest shards. */ + public shards: string[]; + + /** ValidateVSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** ValidateVSchemaRequest include_views. */ + public include_views: boolean; + + /** + * Creates a new ValidateVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVSchemaRequest instance + */ + public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; + + /** + * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * @param message ValidateVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * @param message ValidateVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaRequest; + + /** + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaRequest; + + /** + * Verifies a ValidateVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; + + /** + * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. + * @param message ValidateVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVSchemaResponse. */ + interface IValidateVSchemaResponse { + + /** ValidateVSchemaResponse results */ + results?: (string[]|null); + + /** ValidateVSchemaResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateVSchemaResponse. */ + class ValidateVSchemaResponse implements IValidateVSchemaResponse { + + /** + * Constructs a new ValidateVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVSchemaResponse); + + /** ValidateVSchemaResponse results. */ + public results: string[]; + + /** ValidateVSchemaResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVSchemaResponse instance + */ + public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; + + /** + * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * @param message ValidateVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * @param message ValidateVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaResponse; + + /** + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaResponse; + + /** + * Verifies a ValidateVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; + + /** + * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. + * @param message ValidateVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffCreateRequest. */ + interface IVDiffCreateRequest { + + /** VDiffCreateRequest workflow */ + workflow?: (string|null); + + /** VDiffCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffCreateRequest uuid */ + uuid?: (string|null); + + /** VDiffCreateRequest source_cells */ + source_cells?: (string[]|null); + + /** VDiffCreateRequest target_cells */ + target_cells?: (string[]|null); + + /** VDiffCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** VDiffCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** VDiffCreateRequest tables */ + tables?: (string[]|null); + + /** VDiffCreateRequest limit */ + limit?: (number|Long|null); + + /** VDiffCreateRequest filtered_replication_wait_time */ + filtered_replication_wait_time?: (vttime.IDuration|null); + + /** VDiffCreateRequest debug_query */ + debug_query?: (boolean|null); + + /** VDiffCreateRequest only_p_ks */ + only_p_ks?: (boolean|null); + + /** VDiffCreateRequest update_table_stats */ + update_table_stats?: (boolean|null); + + /** VDiffCreateRequest max_extra_rows_to_compare */ + max_extra_rows_to_compare?: (number|Long|null); + + /** VDiffCreateRequest wait */ + wait?: (boolean|null); + + /** VDiffCreateRequest wait_update_interval */ + wait_update_interval?: (vttime.IDuration|null); + + /** VDiffCreateRequest auto_retry */ + auto_retry?: (boolean|null); + + /** VDiffCreateRequest verbose */ + verbose?: (boolean|null); + + /** VDiffCreateRequest max_report_sample_rows */ + max_report_sample_rows?: (number|Long|null); + + /** VDiffCreateRequest max_diff_duration */ + max_diff_duration?: (vttime.IDuration|null); + + /** VDiffCreateRequest row_diff_column_truncate_at */ + row_diff_column_truncate_at?: (number|Long|null); + + /** VDiffCreateRequest auto_start */ + auto_start?: (boolean|null); + } + + /** Represents a VDiffCreateRequest. */ + class VDiffCreateRequest implements IVDiffCreateRequest { + + /** + * Constructs a new VDiffCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffCreateRequest); + + /** VDiffCreateRequest workflow. */ + public workflow: string; + + /** VDiffCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffCreateRequest uuid. */ + public uuid: string; + + /** VDiffCreateRequest source_cells. */ + public source_cells: string[]; + + /** VDiffCreateRequest target_cells. */ + public target_cells: string[]; + + /** VDiffCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** VDiffCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** VDiffCreateRequest tables. */ + public tables: string[]; + + /** VDiffCreateRequest limit. */ + public limit: (number|Long); + + /** VDiffCreateRequest filtered_replication_wait_time. */ + public filtered_replication_wait_time?: (vttime.IDuration|null); + + /** VDiffCreateRequest debug_query. */ + public debug_query: boolean; + + /** VDiffCreateRequest only_p_ks. */ + public only_p_ks: boolean; + + /** VDiffCreateRequest update_table_stats. */ + public update_table_stats: boolean; + + /** VDiffCreateRequest max_extra_rows_to_compare. */ + public max_extra_rows_to_compare: (number|Long); + + /** VDiffCreateRequest wait. */ + public wait: boolean; + + /** VDiffCreateRequest wait_update_interval. */ + public wait_update_interval?: (vttime.IDuration|null); + + /** VDiffCreateRequest auto_retry. */ + public auto_retry: boolean; + + /** VDiffCreateRequest verbose. */ + public verbose: boolean; + + /** VDiffCreateRequest max_report_sample_rows. */ + public max_report_sample_rows: (number|Long); + + /** VDiffCreateRequest max_diff_duration. */ + public max_diff_duration?: (vttime.IDuration|null); + + /** VDiffCreateRequest row_diff_column_truncate_at. */ + public row_diff_column_truncate_at: (number|Long); + + /** VDiffCreateRequest auto_start. */ + public auto_start?: (boolean|null); + + /** VDiffCreateRequest _auto_start. */ + public _auto_start?: "auto_start"; + + /** + * Creates a new VDiffCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffCreateRequest instance + */ + public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; + + /** + * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * @param message VDiffCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * @param message VDiffCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateRequest; + + /** + * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateRequest; + + /** + * Verifies a VDiffCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; + + /** + * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. + * @param message VDiffCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffCreateResponse. */ + interface IVDiffCreateResponse { + + /** VDiffCreateResponse UUID */ + UUID?: (string|null); + } + + /** Represents a VDiffCreateResponse. */ + class VDiffCreateResponse implements IVDiffCreateResponse { + + /** + * Constructs a new VDiffCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffCreateResponse); + + /** VDiffCreateResponse UUID. */ + public UUID: string; + + /** + * Creates a new VDiffCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffCreateResponse instance + */ + public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; + + /** + * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * @param message VDiffCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * @param message VDiffCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateResponse; + + /** + * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateResponse; + + /** + * Verifies a VDiffCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; + + /** + * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. + * @param message VDiffCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffDeleteRequest. */ + interface IVDiffDeleteRequest { + + /** VDiffDeleteRequest workflow */ + workflow?: (string|null); + + /** VDiffDeleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffDeleteRequest arg */ + arg?: (string|null); + } + + /** Represents a VDiffDeleteRequest. */ + class VDiffDeleteRequest implements IVDiffDeleteRequest { + + /** + * Constructs a new VDiffDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffDeleteRequest); + + /** VDiffDeleteRequest workflow. */ + public workflow: string; + + /** VDiffDeleteRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffDeleteRequest arg. */ + public arg: string; + + /** + * Creates a new VDiffDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffDeleteRequest instance + */ + public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; + + /** + * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * @param message VDiffDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * @param message VDiffDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteRequest; + + /** + * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteRequest; + + /** + * Verifies a VDiffDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; + + /** + * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. + * @param message VDiffDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffDeleteResponse. */ + interface IVDiffDeleteResponse { + } + + /** Represents a VDiffDeleteResponse. */ + class VDiffDeleteResponse implements IVDiffDeleteResponse { + + /** + * Constructs a new VDiffDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffDeleteResponse); + + /** + * Creates a new VDiffDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffDeleteResponse instance + */ + public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; + + /** + * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * @param message VDiffDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * @param message VDiffDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteResponse; + + /** + * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteResponse; + + /** + * Verifies a VDiffDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; + + /** + * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. + * @param message VDiffDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffResumeRequest. */ + interface IVDiffResumeRequest { + + /** VDiffResumeRequest workflow */ + workflow?: (string|null); + + /** VDiffResumeRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffResumeRequest uuid */ + uuid?: (string|null); + + /** VDiffResumeRequest target_shards */ + target_shards?: (string[]|null); + } + + /** Represents a VDiffResumeRequest. */ + class VDiffResumeRequest implements IVDiffResumeRequest { + + /** + * Constructs a new VDiffResumeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffResumeRequest); + + /** VDiffResumeRequest workflow. */ + public workflow: string; + + /** VDiffResumeRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffResumeRequest uuid. */ + public uuid: string; + + /** VDiffResumeRequest target_shards. */ + public target_shards: string[]; + + /** + * Creates a new VDiffResumeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffResumeRequest instance + */ + public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; + + /** + * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * @param message VDiffResumeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * @param message VDiffResumeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffResumeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffResumeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeRequest; + + /** + * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffResumeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeRequest; + + /** + * Verifies a VDiffResumeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffResumeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; + + /** + * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. + * @param message VDiffResumeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffResumeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffResumeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffResumeResponse. */ + interface IVDiffResumeResponse { + } + + /** Represents a VDiffResumeResponse. */ + class VDiffResumeResponse implements IVDiffResumeResponse { + + /** + * Constructs a new VDiffResumeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffResumeResponse); + + /** + * Creates a new VDiffResumeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffResumeResponse instance + */ + public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; + + /** + * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * @param message VDiffResumeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * @param message VDiffResumeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffResumeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffResumeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeResponse; + + /** + * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffResumeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeResponse; + + /** + * Verifies a VDiffResumeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffResumeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; + + /** + * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. + * @param message VDiffResumeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffResumeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffResumeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffShowRequest. */ + interface IVDiffShowRequest { + + /** VDiffShowRequest workflow */ + workflow?: (string|null); + + /** VDiffShowRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffShowRequest arg */ + arg?: (string|null); + } + + /** Represents a VDiffShowRequest. */ + class VDiffShowRequest implements IVDiffShowRequest { + + /** + * Constructs a new VDiffShowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffShowRequest); + + /** VDiffShowRequest workflow. */ + public workflow: string; + + /** VDiffShowRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffShowRequest arg. */ + public arg: string; + + /** + * Creates a new VDiffShowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffShowRequest instance + */ + public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; + + /** + * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * @param message VDiffShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * @param message VDiffShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffShowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowRequest; + + /** + * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowRequest; + + /** + * Verifies a VDiffShowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffShowRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; + + /** + * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. + * @param message VDiffShowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffShowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffShowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffShowResponse. */ + interface IVDiffShowResponse { + + /** VDiffShowResponse tablet_responses */ + tablet_responses?: ({ [k: string]: tabletmanagerdata.IVDiffResponse }|null); + } + + /** Represents a VDiffShowResponse. */ + class VDiffShowResponse implements IVDiffShowResponse { + + /** + * Constructs a new VDiffShowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffShowResponse); + + /** VDiffShowResponse tablet_responses. */ + public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; + + /** + * Creates a new VDiffShowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffShowResponse instance + */ + public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; + + /** + * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * @param message VDiffShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * @param message VDiffShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffShowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowResponse; + + /** + * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowResponse; + + /** + * Verifies a VDiffShowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffShowResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; + + /** + * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. + * @param message VDiffShowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffShowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffShowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffStopRequest. */ + interface IVDiffStopRequest { + + /** VDiffStopRequest workflow */ + workflow?: (string|null); + + /** VDiffStopRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffStopRequest uuid */ + uuid?: (string|null); + + /** VDiffStopRequest target_shards */ + target_shards?: (string[]|null); + } + + /** Represents a VDiffStopRequest. */ + class VDiffStopRequest implements IVDiffStopRequest { + + /** + * Constructs a new VDiffStopRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffStopRequest); + + /** VDiffStopRequest workflow. */ + public workflow: string; + + /** VDiffStopRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffStopRequest uuid. */ + public uuid: string; + + /** VDiffStopRequest target_shards. */ + public target_shards: string[]; + + /** + * Creates a new VDiffStopRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffStopRequest instance + */ + public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; + + /** + * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * @param message VDiffStopRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * @param message VDiffStopRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffStopRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffStopRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopRequest; + + /** + * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffStopRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopRequest; + + /** + * Verifies a VDiffStopRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffStopRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; + + /** + * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. + * @param message VDiffStopRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffStopRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffStopRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffStopResponse. */ + interface IVDiffStopResponse { + } + + /** Represents a VDiffStopResponse. */ + class VDiffStopResponse implements IVDiffStopResponse { + + /** + * Constructs a new VDiffStopResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffStopResponse); + + /** + * Creates a new VDiffStopResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffStopResponse instance + */ + public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; + + /** + * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * @param message VDiffStopResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * @param message VDiffStopResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffStopResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffStopResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopResponse; + + /** + * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffStopResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopResponse; + + /** + * Verifies a VDiffStopResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffStopResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; + + /** + * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. + * @param message VDiffStopResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffStopResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffStopResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowDeleteRequest. */ + interface IWorkflowDeleteRequest { + + /** WorkflowDeleteRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowDeleteRequest workflow */ + workflow?: (string|null); + + /** WorkflowDeleteRequest keep_data */ + keep_data?: (boolean|null); + + /** WorkflowDeleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** WorkflowDeleteRequest shards */ + shards?: (string[]|null); + } + + /** Represents a WorkflowDeleteRequest. */ + class WorkflowDeleteRequest implements IWorkflowDeleteRequest { + + /** + * Constructs a new WorkflowDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowDeleteRequest); + + /** WorkflowDeleteRequest keyspace. */ + public keyspace: string; + + /** WorkflowDeleteRequest workflow. */ + public workflow: string; + + /** WorkflowDeleteRequest keep_data. */ + public keep_data: boolean; + + /** WorkflowDeleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** WorkflowDeleteRequest shards. */ + public shards: string[]; + + /** + * Creates a new WorkflowDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowDeleteRequest instance + */ + public static create(properties?: vtctldata.IWorkflowDeleteRequest): vtctldata.WorkflowDeleteRequest; + + /** + * Encodes the specified WorkflowDeleteRequest message. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. + * @param message WorkflowDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. + * @param message WorkflowDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteRequest; + + /** + * Decodes a WorkflowDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteRequest; + + /** + * Verifies a WorkflowDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteRequest; + + /** + * Creates a plain object from a WorkflowDeleteRequest message. Also converts values to other types if specified. + * @param message WorkflowDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowDeleteResponse. */ + interface IWorkflowDeleteResponse { + + /** WorkflowDeleteResponse summary */ + summary?: (string|null); + + /** WorkflowDeleteResponse details */ + details?: (vtctldata.WorkflowDeleteResponse.ITabletInfo[]|null); + } + + /** Represents a WorkflowDeleteResponse. */ + class WorkflowDeleteResponse implements IWorkflowDeleteResponse { + + /** + * Constructs a new WorkflowDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowDeleteResponse); + + /** WorkflowDeleteResponse summary. */ + public summary: string; + + /** WorkflowDeleteResponse details. */ + public details: vtctldata.WorkflowDeleteResponse.ITabletInfo[]; + + /** + * Creates a new WorkflowDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowDeleteResponse instance + */ + public static create(properties?: vtctldata.IWorkflowDeleteResponse): vtctldata.WorkflowDeleteResponse; + + /** + * Encodes the specified WorkflowDeleteResponse message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. + * @param message WorkflowDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. + * @param message WorkflowDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse; + + /** + * Decodes a WorkflowDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse; + + /** + * Verifies a WorkflowDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse; + + /** + * Creates a plain object from a WorkflowDeleteResponse message. Also converts values to other types if specified. + * @param message WorkflowDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowDeleteResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo deleted */ + deleted?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo deleted. */ + public deleted: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a WorkflowStatusRequest. */ + interface IWorkflowStatusRequest { + + /** WorkflowStatusRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowStatusRequest workflow */ + workflow?: (string|null); + + /** WorkflowStatusRequest shards */ + shards?: (string[]|null); + } + + /** Represents a WorkflowStatusRequest. */ + class WorkflowStatusRequest implements IWorkflowStatusRequest { + + /** + * Constructs a new WorkflowStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowStatusRequest); + + /** WorkflowStatusRequest keyspace. */ + public keyspace: string; + + /** WorkflowStatusRequest workflow. */ + public workflow: string; + + /** WorkflowStatusRequest shards. */ + public shards: string[]; + + /** + * Creates a new WorkflowStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowStatusRequest instance + */ + public static create(properties?: vtctldata.IWorkflowStatusRequest): vtctldata.WorkflowStatusRequest; + + /** + * Encodes the specified WorkflowStatusRequest message. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. + * @param message WorkflowStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowStatusRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. + * @param message WorkflowStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusRequest; + + /** + * Decodes a WorkflowStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusRequest; + + /** + * Verifies a WorkflowStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusRequest; + + /** + * Creates a plain object from a WorkflowStatusRequest message. Also converts values to other types if specified. + * @param message WorkflowStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowStatusResponse. */ + interface IWorkflowStatusResponse { + + /** WorkflowStatusResponse table_copy_state */ + table_copy_state?: ({ [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }|null); + + /** WorkflowStatusResponse shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }|null); + + /** WorkflowStatusResponse traffic_state */ + traffic_state?: (string|null); + } + + /** Represents a WorkflowStatusResponse. */ + class WorkflowStatusResponse implements IWorkflowStatusResponse { + + /** + * Constructs a new WorkflowStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowStatusResponse); + + /** WorkflowStatusResponse table_copy_state. */ + public table_copy_state: { [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }; + + /** WorkflowStatusResponse shard_streams. */ + public shard_streams: { [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }; + + /** WorkflowStatusResponse traffic_state. */ + public traffic_state: string; + + /** + * Creates a new WorkflowStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowStatusResponse instance + */ + public static create(properties?: vtctldata.IWorkflowStatusResponse): vtctldata.WorkflowStatusResponse; + + /** + * Encodes the specified WorkflowStatusResponse message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. + * @param message WorkflowStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowStatusResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. + * @param message WorkflowStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse; + + /** + * Decodes a WorkflowStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse; + + /** + * Verifies a WorkflowStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse; + + /** + * Creates a plain object from a WorkflowStatusResponse message. Also converts values to other types if specified. + * @param message WorkflowStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowStatusResponse { + + /** Properties of a TableCopyState. */ + interface ITableCopyState { + + /** TableCopyState rows_copied */ + rows_copied?: (number|Long|null); + + /** TableCopyState rows_total */ + rows_total?: (number|Long|null); + + /** TableCopyState rows_percentage */ + rows_percentage?: (number|null); + + /** TableCopyState bytes_copied */ + bytes_copied?: (number|Long|null); + + /** TableCopyState bytes_total */ + bytes_total?: (number|Long|null); + + /** TableCopyState bytes_percentage */ + bytes_percentage?: (number|null); + } + + /** Represents a TableCopyState. */ + class TableCopyState implements ITableCopyState { + + /** + * Constructs a new TableCopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState); + + /** TableCopyState rows_copied. */ + public rows_copied: (number|Long); + + /** TableCopyState rows_total. */ + public rows_total: (number|Long); + + /** TableCopyState rows_percentage. */ + public rows_percentage: number; + + /** TableCopyState bytes_copied. */ + public bytes_copied: (number|Long); + + /** TableCopyState bytes_total. */ + public bytes_total: (number|Long); + + /** TableCopyState bytes_percentage. */ + public bytes_percentage: number; + + /** + * Creates a new TableCopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns TableCopyState instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Encodes the specified TableCopyState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. + * @param message TableCopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableCopyState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. + * @param message TableCopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableCopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableCopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Decodes a TableCopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableCopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Verifies a TableCopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableCopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableCopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Creates a plain object from a TableCopyState message. Also converts values to other types if specified. + * @param message TableCopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.TableCopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableCopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TableCopyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStreamState. */ + interface IShardStreamState { + + /** ShardStreamState id */ + id?: (number|null); + + /** ShardStreamState tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** ShardStreamState source_shard */ + source_shard?: (string|null); + + /** ShardStreamState position */ + position?: (string|null); + + /** ShardStreamState status */ + status?: (string|null); + + /** ShardStreamState info */ + info?: (string|null); + } + + /** Represents a ShardStreamState. */ + class ShardStreamState implements IShardStreamState { + + /** + * Constructs a new ShardStreamState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState); + + /** ShardStreamState id. */ + public id: number; + + /** ShardStreamState tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** ShardStreamState source_shard. */ + public source_shard: string; + + /** ShardStreamState position. */ + public position: string; + + /** ShardStreamState status. */ + public status: string; + + /** ShardStreamState info. */ + public info: string; + + /** + * Creates a new ShardStreamState instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStreamState instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Encodes the specified ShardStreamState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. + * @param message ShardStreamState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStreamState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. + * @param message ShardStreamState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStreamState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStreamState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Decodes a ShardStreamState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStreamState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Verifies a ShardStreamState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStreamState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStreamState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified. + * @param message ShardStreamState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreamState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStreamState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStreamState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStreams. */ + interface IShardStreams { + + /** ShardStreams streams */ + streams?: (vtctldata.WorkflowStatusResponse.IShardStreamState[]|null); + } + + /** Represents a ShardStreams. */ + class ShardStreams implements IShardStreams { + + /** + * Constructs a new ShardStreams. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreams); + + /** ShardStreams streams. */ + public streams: vtctldata.WorkflowStatusResponse.IShardStreamState[]; + + /** + * Creates a new ShardStreams instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStreams instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreams): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. + * @param message ShardStreams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. + * @param message ShardStreams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStreams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStreams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Decodes a ShardStreams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStreams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Verifies a ShardStreams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStreams + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Creates a plain object from a ShardStreams message. Also converts values to other types if specified. + * @param message ShardStreams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStreams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStreams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a WorkflowSwitchTrafficRequest. */ + interface IWorkflowSwitchTrafficRequest { + + /** WorkflowSwitchTrafficRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowSwitchTrafficRequest workflow */ + workflow?: (string|null); + + /** WorkflowSwitchTrafficRequest cells */ + cells?: (string[]|null); + + /** WorkflowSwitchTrafficRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** WorkflowSwitchTrafficRequest max_replication_lag_allowed */ + max_replication_lag_allowed?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest enable_reverse_replication */ + enable_reverse_replication?: (boolean|null); + + /** WorkflowSwitchTrafficRequest direction */ + direction?: (number|null); + + /** WorkflowSwitchTrafficRequest timeout */ + timeout?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest dry_run */ + dry_run?: (boolean|null); + + /** WorkflowSwitchTrafficRequest initialize_target_sequences */ + initialize_target_sequences?: (boolean|null); + + /** WorkflowSwitchTrafficRequest shards */ + shards?: (string[]|null); + + /** WorkflowSwitchTrafficRequest force */ + force?: (boolean|null); + } + + /** Represents a WorkflowSwitchTrafficRequest. */ + class WorkflowSwitchTrafficRequest implements IWorkflowSwitchTrafficRequest { + + /** + * Constructs a new WorkflowSwitchTrafficRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowSwitchTrafficRequest); + + /** WorkflowSwitchTrafficRequest keyspace. */ + public keyspace: string; + + /** WorkflowSwitchTrafficRequest workflow. */ + public workflow: string; + + /** WorkflowSwitchTrafficRequest cells. */ + public cells: string[]; + + /** WorkflowSwitchTrafficRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** WorkflowSwitchTrafficRequest max_replication_lag_allowed. */ + public max_replication_lag_allowed?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest enable_reverse_replication. */ + public enable_reverse_replication: boolean; + + /** WorkflowSwitchTrafficRequest direction. */ + public direction: number; + + /** WorkflowSwitchTrafficRequest timeout. */ + public timeout?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest dry_run. */ + public dry_run: boolean; + + /** WorkflowSwitchTrafficRequest initialize_target_sequences. */ + public initialize_target_sequences: boolean; + + /** WorkflowSwitchTrafficRequest shards. */ + public shards: string[]; + + /** WorkflowSwitchTrafficRequest force. */ + public force: boolean; + + /** + * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSwitchTrafficRequest instance + */ + public static create(properties?: vtctldata.IWorkflowSwitchTrafficRequest): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. + * @param message WorkflowSwitchTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. + * @param message WorkflowSwitchTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSwitchTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowSwitchTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Verifies a WorkflowSwitchTrafficRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowSwitchTrafficRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Creates a plain object from a WorkflowSwitchTrafficRequest message. Also converts values to other types if specified. + * @param message WorkflowSwitchTrafficRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowSwitchTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowSwitchTrafficRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowSwitchTrafficRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowSwitchTrafficResponse. */ + interface IWorkflowSwitchTrafficResponse { + + /** WorkflowSwitchTrafficResponse summary */ + summary?: (string|null); + + /** WorkflowSwitchTrafficResponse start_state */ + start_state?: (string|null); + + /** WorkflowSwitchTrafficResponse current_state */ + current_state?: (string|null); + + /** WorkflowSwitchTrafficResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a WorkflowSwitchTrafficResponse. */ + class WorkflowSwitchTrafficResponse implements IWorkflowSwitchTrafficResponse { + + /** + * Constructs a new WorkflowSwitchTrafficResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowSwitchTrafficResponse); + + /** WorkflowSwitchTrafficResponse summary. */ + public summary: string; + + /** WorkflowSwitchTrafficResponse start_state. */ + public start_state: string; + + /** WorkflowSwitchTrafficResponse current_state. */ + public current_state: string; + + /** WorkflowSwitchTrafficResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSwitchTrafficResponse instance + */ + public static create(properties?: vtctldata.IWorkflowSwitchTrafficResponse): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. + * @param message WorkflowSwitchTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. + * @param message WorkflowSwitchTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSwitchTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowSwitchTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Verifies a WorkflowSwitchTrafficResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowSwitchTrafficResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified. + * @param message WorkflowSwitchTrafficResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowSwitchTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowSwitchTrafficResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowSwitchTrafficResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowUpdateRequest. */ + interface IWorkflowUpdateRequest { + + /** WorkflowUpdateRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowUpdateRequest tablet_request */ + tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); + } + + /** Represents a WorkflowUpdateRequest. */ + class WorkflowUpdateRequest implements IWorkflowUpdateRequest { + + /** + * Constructs a new WorkflowUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowUpdateRequest); + + /** WorkflowUpdateRequest keyspace. */ + public keyspace: string; + + /** WorkflowUpdateRequest tablet_request. */ + public tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); + + /** + * Creates a new WorkflowUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowUpdateRequest instance + */ + public static create(properties?: vtctldata.IWorkflowUpdateRequest): vtctldata.WorkflowUpdateRequest; + + /** + * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. + * @param message WorkflowUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. + * @param message WorkflowUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateRequest; + + /** + * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateRequest; + + /** + * Verifies a WorkflowUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowUpdateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateRequest; + + /** + * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified. + * @param message WorkflowUpdateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowUpdateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowUpdateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowUpdateResponse. */ + interface IWorkflowUpdateResponse { + + /** WorkflowUpdateResponse summary */ + summary?: (string|null); + + /** WorkflowUpdateResponse details */ + details?: (vtctldata.WorkflowUpdateResponse.ITabletInfo[]|null); + } + + /** Represents a WorkflowUpdateResponse. */ + class WorkflowUpdateResponse implements IWorkflowUpdateResponse { + + /** + * Constructs a new WorkflowUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowUpdateResponse); + + /** WorkflowUpdateResponse summary. */ + public summary: string; + + /** WorkflowUpdateResponse details. */ + public details: vtctldata.WorkflowUpdateResponse.ITabletInfo[]; + + /** + * Creates a new WorkflowUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowUpdateResponse instance + */ + public static create(properties?: vtctldata.IWorkflowUpdateResponse): vtctldata.WorkflowUpdateResponse; + + /** + * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. + * @param message WorkflowUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. + * @param message WorkflowUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse; + + /** + * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse; + + /** + * Verifies a WorkflowUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowUpdateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse; + + /** + * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified. + * @param message WorkflowUpdateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowUpdateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowUpdateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowUpdateResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo changed */ + changed?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo changed. */ + public changed: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GetMirrorRulesRequest. */ + interface IGetMirrorRulesRequest { + } + + /** Represents a GetMirrorRulesRequest. */ + class GetMirrorRulesRequest implements IGetMirrorRulesRequest { + + /** + * Constructs a new GetMirrorRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetMirrorRulesRequest); + + /** + * Creates a new GetMirrorRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMirrorRulesRequest instance + */ + public static create(properties?: vtctldata.IGetMirrorRulesRequest): vtctldata.GetMirrorRulesRequest; + + /** + * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. + * @param message GetMirrorRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. + * @param message GetMirrorRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMirrorRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMirrorRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesRequest; + + /** + * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMirrorRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesRequest; + + /** + * Verifies a GetMirrorRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMirrorRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesRequest; + + /** + * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified. + * @param message GetMirrorRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetMirrorRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMirrorRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMirrorRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetMirrorRulesResponse. */ + interface IGetMirrorRulesResponse { + + /** GetMirrorRulesResponse mirror_rules */ + mirror_rules?: (vschema.IMirrorRules|null); + } + + /** Represents a GetMirrorRulesResponse. */ + class GetMirrorRulesResponse implements IGetMirrorRulesResponse { + + /** + * Constructs a new GetMirrorRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetMirrorRulesResponse); + + /** GetMirrorRulesResponse mirror_rules. */ + public mirror_rules?: (vschema.IMirrorRules|null); + + /** + * Creates a new GetMirrorRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMirrorRulesResponse instance + */ + public static create(properties?: vtctldata.IGetMirrorRulesResponse): vtctldata.GetMirrorRulesResponse; + + /** + * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. + * @param message GetMirrorRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. + * @param message GetMirrorRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMirrorRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMirrorRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesResponse; + + /** + * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMirrorRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesResponse; + + /** + * Verifies a GetMirrorRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMirrorRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesResponse; + + /** + * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified. + * @param message GetMirrorRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetMirrorRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMirrorRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMirrorRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowMirrorTrafficRequest. */ + interface IWorkflowMirrorTrafficRequest { + + /** WorkflowMirrorTrafficRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowMirrorTrafficRequest workflow */ + workflow?: (string|null); + + /** WorkflowMirrorTrafficRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** WorkflowMirrorTrafficRequest percent */ + percent?: (number|null); + } + + /** Represents a WorkflowMirrorTrafficRequest. */ + class WorkflowMirrorTrafficRequest implements IWorkflowMirrorTrafficRequest { + + /** + * Constructs a new WorkflowMirrorTrafficRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowMirrorTrafficRequest); + + /** WorkflowMirrorTrafficRequest keyspace. */ + public keyspace: string; + + /** WorkflowMirrorTrafficRequest workflow. */ + public workflow: string; + + /** WorkflowMirrorTrafficRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** WorkflowMirrorTrafficRequest percent. */ + public percent: number; + + /** + * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMirrorTrafficRequest instance + */ + public static create(properties?: vtctldata.IWorkflowMirrorTrafficRequest): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. + * @param message WorkflowMirrorTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. + * @param message WorkflowMirrorTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMirrorTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowMirrorTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Verifies a WorkflowMirrorTrafficRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowMirrorTrafficRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified. + * @param message WorkflowMirrorTrafficRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowMirrorTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowMirrorTrafficRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowMirrorTrafficRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowMirrorTrafficResponse. */ + interface IWorkflowMirrorTrafficResponse { + + /** WorkflowMirrorTrafficResponse summary */ + summary?: (string|null); + + /** WorkflowMirrorTrafficResponse start_state */ + start_state?: (string|null); + + /** WorkflowMirrorTrafficResponse current_state */ + current_state?: (string|null); + } + + /** Represents a WorkflowMirrorTrafficResponse. */ + class WorkflowMirrorTrafficResponse implements IWorkflowMirrorTrafficResponse { + + /** + * Constructs a new WorkflowMirrorTrafficResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowMirrorTrafficResponse); + + /** WorkflowMirrorTrafficResponse summary. */ + public summary: string; + + /** WorkflowMirrorTrafficResponse start_state. */ + public start_state: string; + + /** WorkflowMirrorTrafficResponse current_state. */ + public current_state: string; + + /** + * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMirrorTrafficResponse instance + */ + public static create(properties?: vtctldata.IWorkflowMirrorTrafficResponse): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. + * @param message WorkflowMirrorTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. + * @param message WorkflowMirrorTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMirrorTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowMirrorTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Verifies a WorkflowMirrorTrafficResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowMirrorTrafficResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified. + * @param message WorkflowMirrorTrafficResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowMirrorTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowMirrorTrafficResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowMirrorTrafficResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; +>>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) } } diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 87ba1d2efd8..5eafaf2788b 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -55299,155 +55299,267 @@ $root.tabletmanagerdata = (function() { return VDiffOptions; })(); - return tabletmanagerdata; -})(); - -$root.query = (function() { - - /** - * Namespace query. - * @exports query - * @namespace - */ - var query = {}; - - query.Target = (function() { +<<<<<<< HEAD +======= + tabletmanagerdata.UpdateVReplicationWorkflowRequest = (function() { /** - * Properties of a Target. - * @memberof query - * @interface ITarget - * @property {string|null} [keyspace] Target keyspace - * @property {string|null} [shard] Target shard - * @property {topodata.TabletType|null} [tablet_type] Target tablet_type - * @property {string|null} [cell] Target cell + * Properties of an UpdateVReplicationWorkflowRequest. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowRequest + * @property {string|null} [workflow] UpdateVReplicationWorkflowRequest workflow + * @property {Array.|null} [cells] UpdateVReplicationWorkflowRequest cells + * @property {Array.|null} [tablet_types] UpdateVReplicationWorkflowRequest tablet_types + * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] UpdateVReplicationWorkflowRequest tablet_selection_preference + * @property {binlogdata.OnDDLAction|null} [on_ddl] UpdateVReplicationWorkflowRequest on_ddl + * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowRequest state + * @property {Object.|null} [config_overrides] UpdateVReplicationWorkflowRequest config_overrides */ /** - * Constructs a new Target. - * @memberof query - * @classdesc Represents a Target. - * @implements ITarget + * Constructs a new UpdateVReplicationWorkflowRequest. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowRequest. + * @implements IUpdateVReplicationWorkflowRequest * @constructor - * @param {query.ITarget=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set */ - function Target(properties) { + function UpdateVReplicationWorkflowRequest(properties) { + this.cells = []; + this.tablet_types = []; + this.config_overrides = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * Target keyspace. - * @member {string} keyspace - * @memberof query.Target + * UpdateVReplicationWorkflowRequest workflow. + * @member {string} workflow + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - Target.prototype.keyspace = ""; + UpdateVReplicationWorkflowRequest.prototype.workflow = ""; /** - * Target shard. - * @member {string} shard - * @memberof query.Target + * UpdateVReplicationWorkflowRequest cells. + * @member {Array.} cells + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - Target.prototype.shard = ""; + UpdateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; /** - * Target tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof query.Target + * UpdateVReplicationWorkflowRequest tablet_types. + * @member {Array.} tablet_types + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - Target.prototype.tablet_type = 0; + UpdateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; /** - * Target cell. - * @member {string} cell - * @memberof query.Target + * UpdateVReplicationWorkflowRequest tablet_selection_preference. + * @member {tabletmanagerdata.TabletSelectionPreference|null|undefined} tablet_selection_preference + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance */ - Target.prototype.cell = ""; + UpdateVReplicationWorkflowRequest.prototype.tablet_selection_preference = null; /** - * Creates a new Target instance using the specified properties. + * UpdateVReplicationWorkflowRequest on_ddl. + * @member {binlogdata.OnDDLAction|null|undefined} on_ddl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + UpdateVReplicationWorkflowRequest.prototype.on_ddl = null; + + /** + * UpdateVReplicationWorkflowRequest state. + * @member {binlogdata.VReplicationWorkflowState|null|undefined} state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + UpdateVReplicationWorkflowRequest.prototype.state = null; + + /** + * UpdateVReplicationWorkflowRequest config_overrides. + * @member {Object.} config_overrides + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + UpdateVReplicationWorkflowRequest.prototype.config_overrides = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * UpdateVReplicationWorkflowRequest _tablet_selection_preference. + * @member {"tablet_selection_preference"|undefined} _tablet_selection_preference + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_tablet_selection_preference", { + get: $util.oneOfGetter($oneOfFields = ["tablet_selection_preference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateVReplicationWorkflowRequest _on_ddl. + * @member {"on_ddl"|undefined} _on_ddl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_on_ddl", { + get: $util.oneOfGetter($oneOfFields = ["on_ddl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateVReplicationWorkflowRequest _state. + * @member {"state"|undefined} _state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. * @function create - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {query.ITarget=} [properties] Properties to set - * @returns {query.Target} Target instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest instance */ - Target.create = function create(properties) { - return new Target(properties); + UpdateVReplicationWorkflowRequest.create = function create(properties) { + return new UpdateVReplicationWorkflowRequest(properties); }; /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. * @function encode - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encode = function encode(message, writer) { + UpdateVReplicationWorkflowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.cells != null && message.cells.length) + for (let i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.tablet_types != null && message.tablet_types.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.tablet_types.length; ++i) + writer.int32(message.tablet_types[i]); + writer.ldelim(); + } + if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tablet_selection_preference); + if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.on_ddl); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) + for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. * @function decode - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Target} Target + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decode = function decode(reader, length) { + UpdateVReplicationWorkflowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.tablet_type = reader.int32(); - break; - case 4: - message.cell = reader.string(); - break; + case 1: { + message.workflow = reader.string(); + break; + } + case 2: { + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + } + case 3: { + if (!(message.tablet_types && message.tablet_types.length)) + message.tablet_types = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.tablet_types.push(reader.int32()); + } else + message.tablet_types.push(reader.int32()); + break; + } + case 4: { + message.tablet_selection_preference = reader.int32(); + break; + } + case 5: { + message.on_ddl = reader.int32(); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 8: { + if (message.config_overrides === $util.emptyObject) + message.config_overrides = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.config_overrides[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -55457,285 +55569,463 @@ $root.query = (function() { }; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Target} Target + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Target message. + * Verifies an UpdateVReplicationWorkflowRequest message. * @function verify - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Target.verify = function verify(message) { + UpdateVReplicationWorkflowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - switch (message.tablet_type) { + let properties = {}; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (let i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { + if (!Array.isArray(message.tablet_types)) + return "tablet_types: array expected"; + for (let i = 0; i < message.tablet_types.length; ++i) + switch (message.tablet_types[i]) { + default: + return "tablet_types: enum value[] expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { + properties._tablet_selection_preference = 1; + switch (message.tablet_selection_preference) { default: - return "tablet_type: enum value expected"; + return "tablet_selection_preference: enum value expected"; case 0: case 1: + case 3: + break; + } + } + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { + properties._on_ddl = 1; + switch (message.on_ddl) { + default: + return "on_ddl: enum value expected"; + case 0: case 1: case 2: case 3: + break; + } + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: case 3: case 4: case 5: case 6: - case 7: - case 8: break; } - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + } + if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { + if (!$util.isObject(message.config_overrides)) + return "config_overrides: object expected"; + let key = Object.keys(message.config_overrides); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.config_overrides[key[i]])) + return "config_overrides: string{k:string} expected"; + } return null; }; /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static * @param {Object.} object Plain object - * @returns {query.Target} Target + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest */ - Target.fromObject = function fromObject(object) { - if (object instanceof $root.query.Target) + UpdateVReplicationWorkflowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest) return object; - var message = new $root.query.Target(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - switch (object.tablet_type) { - case "UNKNOWN": - case 0: - message.tablet_type = 0; - break; - case "PRIMARY": - case 1: - message.tablet_type = 1; - break; - case "MASTER": - case 1: - message.tablet_type = 1; - break; - case "REPLICA": - case 2: - message.tablet_type = 2; - break; - case "RDONLY": - case 3: - message.tablet_type = 3; - break; - case "BATCH": - case 3: - message.tablet_type = 3; - break; - case "SPARE": - case 4: - message.tablet_type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_type = 5; + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.cells: array expected"); + message.cells = []; + for (let i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.tablet_types) { + if (!Array.isArray(object.tablet_types)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.tablet_types: array expected"); + message.tablet_types = []; + for (let i = 0; i < object.tablet_types.length; ++i) + switch (object.tablet_types[i]) { + default: + if (typeof object.tablet_types[i] === "number") { + message.tablet_types[i] = object.tablet_types[i]; + break; + } + case "UNKNOWN": + case 0: + message.tablet_types[i] = 0; + break; + case "PRIMARY": + case 1: + message.tablet_types[i] = 1; + break; + case "MASTER": + case 1: + message.tablet_types[i] = 1; + break; + case "REPLICA": + case 2: + message.tablet_types[i] = 2; + break; + case "RDONLY": + case 3: + message.tablet_types[i] = 3; + break; + case "BATCH": + case 3: + message.tablet_types[i] = 3; + break; + case "SPARE": + case 4: + message.tablet_types[i] = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_types[i] = 5; + break; + case "BACKUP": + case 6: + message.tablet_types[i] = 6; + break; + case "RESTORE": + case 7: + message.tablet_types[i] = 7; + break; + case "DRAINED": + case 8: + message.tablet_types[i] = 8; + break; + } + } + switch (object.tablet_selection_preference) { + default: + if (typeof object.tablet_selection_preference === "number") { + message.tablet_selection_preference = object.tablet_selection_preference; + break; + } break; - case "BACKUP": - case 6: - message.tablet_type = 6; + case "ANY": + case 0: + message.tablet_selection_preference = 0; break; - case "RESTORE": - case 7: - message.tablet_type = 7; + case "INORDER": + case 1: + message.tablet_selection_preference = 1; break; - case "DRAINED": - case 8: - message.tablet_type = 8; + case "UNKNOWN": + case 3: + message.tablet_selection_preference = 3; break; } - if (object.cell != null) - message.cell = String(object.cell); + switch (object.on_ddl) { + default: + if (typeof object.on_ddl === "number") { + message.on_ddl = object.on_ddl; + break; + } + break; + case "IGNORE": + case 0: + message.on_ddl = 0; + break; + case "STOP": + case 1: + message.on_ddl = 1; + break; + case "EXEC": + case 2: + message.on_ddl = 2; + break; + case "EXEC_IGNORE": + case 3: + message.on_ddl = 3; + break; + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Init": + case 1: + message.state = 1; + break; + case "Stopped": + case 2: + message.state = 2; + break; + case "Copying": + case 3: + message.state = 3; + break; + case "Running": + case 4: + message.state = 4; + break; + case "Error": + case 5: + message.state = 5; + break; + case "Lagging": + case 6: + message.state = 6; + break; + } + if (object.config_overrides) { + if (typeof object.config_overrides !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.config_overrides: object expected"); + message.config_overrides = {}; + for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) + message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); + } return message; }; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @static - * @param {query.Target} message Target + * @param {tabletmanagerdata.UpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Target.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.cell = ""; + let object = {}; + if (options.arrays || options.defaults) { + object.cells = []; + object.tablet_types = []; + } + if (options.objects || options.defaults) + object.config_overrides = {}; + if (options.defaults) + object.workflow = ""; + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.cells && message.cells.length) { + object.cells = []; + for (let j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.tablet_types && message.tablet_types.length) { + object.tablet_types = []; + for (let j = 0; j < message.tablet_types.length; ++j) + object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; + } + if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { + object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; + if (options.oneofs) + object._tablet_selection_preference = "tablet_selection_preference"; + } + if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { + object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; + if (options.oneofs) + object._on_ddl = "on_ddl"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; + if (options.oneofs) + object._state = "state"; + } + let keys2; + if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { + object.config_overrides = {}; + for (let j = 0; j < keys2.length; ++j) + object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; return object; }; /** - * Converts this Target to JSON. + * Converts this UpdateVReplicationWorkflowRequest to JSON. * @function toJSON - * @memberof query.Target + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest * @instance * @returns {Object.} JSON object */ - Target.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Target; + /** + * Gets the default type url for UpdateVReplicationWorkflowRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowRequest"; + }; + + return UpdateVReplicationWorkflowRequest; })(); - query.VTGateCallerID = (function() { + tabletmanagerdata.UpdateVReplicationWorkflowResponse = (function() { /** - * Properties of a VTGateCallerID. - * @memberof query - * @interface IVTGateCallerID - * @property {string|null} [username] VTGateCallerID username - * @property {Array.|null} [groups] VTGateCallerID groups + * Properties of an UpdateVReplicationWorkflowResponse. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowResponse + * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowResponse result */ /** - * Constructs a new VTGateCallerID. - * @memberof query - * @classdesc Represents a VTGateCallerID. - * @implements IVTGateCallerID + * Constructs a new UpdateVReplicationWorkflowResponse. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowResponse. + * @implements IUpdateVReplicationWorkflowResponse * @constructor - * @param {query.IVTGateCallerID=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set */ - function VTGateCallerID(properties) { - this.groups = []; + function UpdateVReplicationWorkflowResponse(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * VTGateCallerID username. - * @member {string} username - * @memberof query.VTGateCallerID - * @instance - */ - VTGateCallerID.prototype.username = ""; - - /** - * VTGateCallerID groups. - * @member {Array.} groups - * @memberof query.VTGateCallerID + * UpdateVReplicationWorkflowResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @instance */ - VTGateCallerID.prototype.groups = $util.emptyArray; + UpdateVReplicationWorkflowResponse.prototype.result = null; /** - * Creates a new VTGateCallerID instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. * @function create - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {query.IVTGateCallerID=} [properties] Properties to set - * @returns {query.VTGateCallerID} VTGateCallerID instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse instance */ - VTGateCallerID.create = function create(properties) { - return new VTGateCallerID(properties); + UpdateVReplicationWorkflowResponse.create = function create(properties) { + return new UpdateVReplicationWorkflowResponse(properties); }; /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. * @function encode - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encode = function encode(message, writer) { + UpdateVReplicationWorkflowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. * @function decode - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decode = function decode(reader, length) { + UpdateVReplicationWorkflowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.username = reader.string(); - break; - case 2: - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); - break; + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -55745,233 +56035,324 @@ $root.query = (function() { }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTGateCallerID message. + * Verifies an UpdateVReplicationWorkflowResponse message. * @function verify - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTGateCallerID.verify = function verify(message) { + UpdateVReplicationWorkflowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static * @param {Object.} object Plain object - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse */ - VTGateCallerID.fromObject = function fromObject(object) { - if (object instanceof $root.query.VTGateCallerID) + UpdateVReplicationWorkflowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse) return object; - var message = new $root.query.VTGateCallerID(); - if (object.username != null) - message.username = String(object.username); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".query.VTGateCallerID.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @static - * @param {query.VTGateCallerID} message VTGateCallerID + * @param {tabletmanagerdata.UpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTGateCallerID.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.groups = []; + let object = {}; if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; - } + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this VTGateCallerID to JSON. + * Converts this UpdateVReplicationWorkflowResponse to JSON. * @function toJSON - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse * @instance * @returns {Object.} JSON object */ - VTGateCallerID.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VTGateCallerID; + /** + * Gets the default type url for UpdateVReplicationWorkflowResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowResponse"; + }; + + return UpdateVReplicationWorkflowResponse; })(); - query.EventToken = (function() { + tabletmanagerdata.UpdateVReplicationWorkflowsRequest = (function() { /** - * Properties of an EventToken. - * @memberof query - * @interface IEventToken - * @property {number|Long|null} [timestamp] EventToken timestamp - * @property {string|null} [shard] EventToken shard - * @property {string|null} [position] EventToken position + * Properties of an UpdateVReplicationWorkflowsRequest. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowsRequest + * @property {boolean|null} [all_workflows] UpdateVReplicationWorkflowsRequest all_workflows + * @property {Array.|null} [include_workflows] UpdateVReplicationWorkflowsRequest include_workflows + * @property {Array.|null} [exclude_workflows] UpdateVReplicationWorkflowsRequest exclude_workflows + * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowsRequest state + * @property {string|null} [message] UpdateVReplicationWorkflowsRequest message + * @property {string|null} [stop_position] UpdateVReplicationWorkflowsRequest stop_position */ /** - * Constructs a new EventToken. - * @memberof query - * @classdesc Represents an EventToken. - * @implements IEventToken + * Constructs a new UpdateVReplicationWorkflowsRequest. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowsRequest. + * @implements IUpdateVReplicationWorkflowsRequest * @constructor - * @param {query.IEventToken=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set */ - function EventToken(properties) { + function UpdateVReplicationWorkflowsRequest(properties) { + this.include_workflows = []; + this.exclude_workflows = []; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * EventToken timestamp. - * @member {number|Long} timestamp - * @memberof query.EventToken + * UpdateVReplicationWorkflowsRequest all_workflows. + * @member {boolean} all_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateVReplicationWorkflowsRequest.prototype.all_workflows = false; /** - * EventToken shard. - * @member {string} shard - * @memberof query.EventToken + * UpdateVReplicationWorkflowsRequest include_workflows. + * @member {Array.} include_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - EventToken.prototype.shard = ""; + UpdateVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; /** - * EventToken position. - * @member {string} position - * @memberof query.EventToken + * UpdateVReplicationWorkflowsRequest exclude_workflows. + * @member {Array.} exclude_workflows + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance */ - EventToken.prototype.position = ""; + UpdateVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; /** - * Creates a new EventToken instance using the specified properties. + * UpdateVReplicationWorkflowsRequest state. + * @member {binlogdata.VReplicationWorkflowState|null|undefined} state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + UpdateVReplicationWorkflowsRequest.prototype.state = null; + + /** + * UpdateVReplicationWorkflowsRequest message. + * @member {string|null|undefined} message + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + UpdateVReplicationWorkflowsRequest.prototype.message = null; + + /** + * UpdateVReplicationWorkflowsRequest stop_position. + * @member {string|null|undefined} stop_position + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + UpdateVReplicationWorkflowsRequest.prototype.stop_position = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * UpdateVReplicationWorkflowsRequest _state. + * @member {"state"|undefined} _state + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateVReplicationWorkflowsRequest _message. + * @member {"message"|undefined} _message + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_message", { + get: $util.oneOfGetter($oneOfFields = ["message"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateVReplicationWorkflowsRequest _stop_position. + * @member {"stop_position"|undefined} _stop_position + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @instance + */ + Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_stop_position", { + get: $util.oneOfGetter($oneOfFields = ["stop_position"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. * @function create - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {query.IEventToken=} [properties] Properties to set - * @returns {query.EventToken} EventToken instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest instance */ - EventToken.create = function create(properties) { - return new EventToken(properties); + UpdateVReplicationWorkflowsRequest.create = function create(properties) { + return new UpdateVReplicationWorkflowsRequest(properties); }; /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. * @function encode - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encode = function encode(message, writer) { + UpdateVReplicationWorkflowsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); + if (message.all_workflows != null && Object.hasOwnProperty.call(message, "all_workflows")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all_workflows); + if (message.include_workflows != null && message.include_workflows.length) + for (let i = 0; i < message.include_workflows.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); + if (message.exclude_workflows != null && message.exclude_workflows.length) + for (let i = 0; i < message.exclude_workflows.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_workflows[i]); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); return writer; }; /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventToken message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. * @function decode - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.EventToken} EventToken + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventToken.decode = function decode(reader, length) { + UpdateVReplicationWorkflowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.timestamp = reader.int64(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.position = reader.string(); - break; + case 1: { + message.all_workflows = reader.bool(); + break; + } + case 2: { + if (!(message.include_workflows && message.include_workflows.length)) + message.include_workflows = []; + message.include_workflows.push(reader.string()); + break; + } + case 3: { + if (!(message.exclude_workflows && message.exclude_workflows.length)) + message.exclude_workflows = []; + message.exclude_workflows.push(reader.string()); + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 5: { + message.message = reader.string(); + break; + } + case 6: { + message.stop_position = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -55981,383 +56362,323 @@ $root.query = (function() { }; /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.EventToken} EventToken + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventToken.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventToken message. + * Verifies an UpdateVReplicationWorkflowsRequest message. * @function verify - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventToken.verify = function verify(message) { + UpdateVReplicationWorkflowsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; + let properties = {}; + if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) + if (typeof message.all_workflows !== "boolean") + return "all_workflows: boolean expected"; + if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { + if (!Array.isArray(message.include_workflows)) + return "include_workflows: array expected"; + for (let i = 0; i < message.include_workflows.length; ++i) + if (!$util.isString(message.include_workflows[i])) + return "include_workflows: string[] expected"; + } + if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { + if (!Array.isArray(message.exclude_workflows)) + return "exclude_workflows: array expected"; + for (let i = 0; i < message.exclude_workflows.length; ++i) + if (!$util.isString(message.exclude_workflows[i])) + return "exclude_workflows: string[] expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + } + if (message.message != null && message.hasOwnProperty("message")) { + properties._message = 1; + if (!$util.isString(message.message)) + return "message: string expected"; + } + if (message.stop_position != null && message.hasOwnProperty("stop_position")) { + properties._stop_position = 1; + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; + } return null; }; /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static * @param {Object.} object Plain object - * @returns {query.EventToken} EventToken + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest */ - EventToken.fromObject = function fromObject(object) { - if (object instanceof $root.query.EventToken) + UpdateVReplicationWorkflowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest) return object; - var message = new $root.query.EventToken(); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.position != null) - message.position = String(object.position); + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); + if (object.all_workflows != null) + message.all_workflows = Boolean(object.all_workflows); + if (object.include_workflows) { + if (!Array.isArray(object.include_workflows)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.include_workflows: array expected"); + message.include_workflows = []; + for (let i = 0; i < object.include_workflows.length; ++i) + message.include_workflows[i] = String(object.include_workflows[i]); + } + if (object.exclude_workflows) { + if (!Array.isArray(object.exclude_workflows)) + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.exclude_workflows: array expected"); + message.exclude_workflows = []; + for (let i = 0; i < object.exclude_workflows.length; ++i) + message.exclude_workflows[i] = String(object.exclude_workflows[i]); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "Unknown": + case 0: + message.state = 0; + break; + case "Init": + case 1: + message.state = 1; + break; + case "Stopped": + case 2: + message.state = 2; + break; + case "Copying": + case 3: + message.state = 3; + break; + case "Running": + case 4: + message.state = 4; + break; + case "Error": + case 5: + message.state = 5; + break; + case "Lagging": + case 6: + message.state = 6; + break; + } + if (object.message != null) + message.message = String(object.message); + if (object.stop_position != null) + message.stop_position = String(object.stop_position); return message; }; /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @static - * @param {query.EventToken} message EventToken + * @param {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventToken.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.shard = ""; - object.position = ""; + let object = {}; + if (options.arrays || options.defaults) { + object.include_workflows = []; + object.exclude_workflows = []; + } + if (options.defaults) + object.all_workflows = false; + if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) + object.all_workflows = message.all_workflows; + if (message.include_workflows && message.include_workflows.length) { + object.include_workflows = []; + for (let j = 0; j < message.include_workflows.length; ++j) + object.include_workflows[j] = message.include_workflows[j]; + } + if (message.exclude_workflows && message.exclude_workflows.length) { + object.exclude_workflows = []; + for (let j = 0; j < message.exclude_workflows.length; ++j) + object.exclude_workflows[j] = message.exclude_workflows[j]; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.message != null && message.hasOwnProperty("message")) { + object.message = message.message; + if (options.oneofs) + object._message = "message"; + } + if (message.stop_position != null && message.hasOwnProperty("stop_position")) { + object.stop_position = message.stop_position; + if (options.oneofs) + object._stop_position = "stop_position"; } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; return object; }; /** - * Converts this EventToken to JSON. + * Converts this UpdateVReplicationWorkflowsRequest to JSON. * @function toJSON - * @memberof query.EventToken + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest * @instance * @returns {Object.} JSON object */ - EventToken.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EventToken; + /** + * Gets the default type url for UpdateVReplicationWorkflowsRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsRequest"; + }; + + return UpdateVReplicationWorkflowsRequest; })(); - /** - * MySqlFlag enum. - * @name query.MySqlFlag - * @enum {number} - * @property {number} EMPTY=0 EMPTY value - * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value - * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value - * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value - * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value - * @property {number} BLOB_FLAG=16 BLOB_FLAG value - * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value - * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value - * @property {number} BINARY_FLAG=128 BINARY_FLAG value - * @property {number} ENUM_FLAG=256 ENUM_FLAG value - * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value - * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value - * @property {number} SET_FLAG=2048 SET_FLAG value - * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value - * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value - * @property {number} NUM_FLAG=32768 NUM_FLAG value - * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value - * @property {number} GROUP_FLAG=32768 GROUP_FLAG value - * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value - * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value - */ - query.MySqlFlag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EMPTY"] = 0; - values[valuesById[1] = "NOT_NULL_FLAG"] = 1; - values[valuesById[2] = "PRI_KEY_FLAG"] = 2; - values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; - values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; - values[valuesById[16] = "BLOB_FLAG"] = 16; - values[valuesById[32] = "UNSIGNED_FLAG"] = 32; - values[valuesById[64] = "ZEROFILL_FLAG"] = 64; - values[valuesById[128] = "BINARY_FLAG"] = 128; - values[valuesById[256] = "ENUM_FLAG"] = 256; - values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; - values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; - values[valuesById[2048] = "SET_FLAG"] = 2048; - values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; - values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; - values[valuesById[32768] = "NUM_FLAG"] = 32768; - values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; - values["GROUP_FLAG"] = 32768; - values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; - values[valuesById[131072] = "BINCMP_FLAG"] = 131072; - return values; - })(); - - /** - * Flag enum. - * @name query.Flag - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} ISINTEGRAL=256 ISINTEGRAL value - * @property {number} ISUNSIGNED=512 ISUNSIGNED value - * @property {number} ISFLOAT=1024 ISFLOAT value - * @property {number} ISQUOTED=2048 ISQUOTED value - * @property {number} ISTEXT=4096 ISTEXT value - * @property {number} ISBINARY=8192 ISBINARY value - */ - query.Flag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[256] = "ISINTEGRAL"] = 256; - values[valuesById[512] = "ISUNSIGNED"] = 512; - values[valuesById[1024] = "ISFLOAT"] = 1024; - values[valuesById[2048] = "ISQUOTED"] = 2048; - values[valuesById[4096] = "ISTEXT"] = 4096; - values[valuesById[8192] = "ISBINARY"] = 8192; - return values; - })(); - - /** - * Type enum. - * @name query.Type - * @enum {number} - * @property {number} NULL_TYPE=0 NULL_TYPE value - * @property {number} INT8=257 INT8 value - * @property {number} UINT8=770 UINT8 value - * @property {number} INT16=259 INT16 value - * @property {number} UINT16=772 UINT16 value - * @property {number} INT24=261 INT24 value - * @property {number} UINT24=774 UINT24 value - * @property {number} INT32=263 INT32 value - * @property {number} UINT32=776 UINT32 value - * @property {number} INT64=265 INT64 value - * @property {number} UINT64=778 UINT64 value - * @property {number} FLOAT32=1035 FLOAT32 value - * @property {number} FLOAT64=1036 FLOAT64 value - * @property {number} TIMESTAMP=2061 TIMESTAMP value - * @property {number} DATE=2062 DATE value - * @property {number} TIME=2063 TIME value - * @property {number} DATETIME=2064 DATETIME value - * @property {number} YEAR=785 YEAR value - * @property {number} DECIMAL=18 DECIMAL value - * @property {number} TEXT=6163 TEXT value - * @property {number} BLOB=10260 BLOB value - * @property {number} VARCHAR=6165 VARCHAR value - * @property {number} VARBINARY=10262 VARBINARY value - * @property {number} CHAR=6167 CHAR value - * @property {number} BINARY=10264 BINARY value - * @property {number} BIT=2073 BIT value - * @property {number} ENUM=2074 ENUM value - * @property {number} SET=2075 SET value - * @property {number} TUPLE=28 TUPLE value - * @property {number} GEOMETRY=2077 GEOMETRY value - * @property {number} JSON=2078 JSON value - * @property {number} EXPRESSION=31 EXPRESSION value - * @property {number} HEXNUM=4128 HEXNUM value - * @property {number} HEXVAL=4129 HEXVAL value - * @property {number} BITNUM=4130 BITNUM value - */ - query.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_TYPE"] = 0; - values[valuesById[257] = "INT8"] = 257; - values[valuesById[770] = "UINT8"] = 770; - values[valuesById[259] = "INT16"] = 259; - values[valuesById[772] = "UINT16"] = 772; - values[valuesById[261] = "INT24"] = 261; - values[valuesById[774] = "UINT24"] = 774; - values[valuesById[263] = "INT32"] = 263; - values[valuesById[776] = "UINT32"] = 776; - values[valuesById[265] = "INT64"] = 265; - values[valuesById[778] = "UINT64"] = 778; - values[valuesById[1035] = "FLOAT32"] = 1035; - values[valuesById[1036] = "FLOAT64"] = 1036; - values[valuesById[2061] = "TIMESTAMP"] = 2061; - values[valuesById[2062] = "DATE"] = 2062; - values[valuesById[2063] = "TIME"] = 2063; - values[valuesById[2064] = "DATETIME"] = 2064; - values[valuesById[785] = "YEAR"] = 785; - values[valuesById[18] = "DECIMAL"] = 18; - values[valuesById[6163] = "TEXT"] = 6163; - values[valuesById[10260] = "BLOB"] = 10260; - values[valuesById[6165] = "VARCHAR"] = 6165; - values[valuesById[10262] = "VARBINARY"] = 10262; - values[valuesById[6167] = "CHAR"] = 6167; - values[valuesById[10264] = "BINARY"] = 10264; - values[valuesById[2073] = "BIT"] = 2073; - values[valuesById[2074] = "ENUM"] = 2074; - values[valuesById[2075] = "SET"] = 2075; - values[valuesById[28] = "TUPLE"] = 28; - values[valuesById[2077] = "GEOMETRY"] = 2077; - values[valuesById[2078] = "JSON"] = 2078; - values[valuesById[31] = "EXPRESSION"] = 31; - values[valuesById[4128] = "HEXNUM"] = 4128; - values[valuesById[4129] = "HEXVAL"] = 4129; - values[valuesById[4130] = "BITNUM"] = 4130; - return values; - })(); - - query.Value = (function() { + tabletmanagerdata.UpdateVReplicationWorkflowsResponse = (function() { /** - * Properties of a Value. - * @memberof query - * @interface IValue - * @property {query.Type|null} [type] Value type - * @property {Uint8Array|null} [value] Value value + * Properties of an UpdateVReplicationWorkflowsResponse. + * @memberof tabletmanagerdata + * @interface IUpdateVReplicationWorkflowsResponse + * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowsResponse result */ /** - * Constructs a new Value. - * @memberof query - * @classdesc Represents a Value. - * @implements IValue + * Constructs a new UpdateVReplicationWorkflowsResponse. + * @memberof tabletmanagerdata + * @classdesc Represents an UpdateVReplicationWorkflowsResponse. + * @implements IUpdateVReplicationWorkflowsResponse * @constructor - * @param {query.IValue=} [properties] Properties to set + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set */ - function Value(properties) { + function UpdateVReplicationWorkflowsResponse(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * Value type. - * @member {query.Type} type - * @memberof query.Value - * @instance - */ - Value.prototype.type = 0; - - /** - * Value value. - * @member {Uint8Array} value - * @memberof query.Value + * UpdateVReplicationWorkflowsResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @instance */ - Value.prototype.value = $util.newBuffer([]); + UpdateVReplicationWorkflowsResponse.prototype.result = null; /** - * Creates a new Value instance using the specified properties. + * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. * @function create - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static - * @param {query.IValue=} [properties] Properties to set - * @returns {query.Value} Value instance + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse instance */ - Value.create = function create(properties) { - return new Value(properties); + UpdateVReplicationWorkflowsResponse.create = function create(properties) { + return new UpdateVReplicationWorkflowsResponse(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. * @function encode - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + UpdateVReplicationWorkflowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. * @function decode - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Value} Value + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length) { + UpdateVReplicationWorkflowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.value = reader.bytes(); - break; + case 1: { + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -56367,412 +56688,209 @@ $root.query = (function() { }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Value} Value + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decodeDelimited = function decodeDelimited(reader) { + UpdateVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies an UpdateVReplicationWorkflowsResponse message. * @function verify - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message) { + UpdateVReplicationWorkflowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.result != null && message.hasOwnProperty("result")) { + let error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static * @param {Object.} object Plain object - * @returns {query.Value} Value + * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.query.Value) + UpdateVReplicationWorkflowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse) return object; - var message = new $root.query.Value(); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; + let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; return message; }; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @static - * @param {query.Value} message Value + * @param {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + UpdateVReplicationWorkflowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + let object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this Value to JSON. + * Converts this UpdateVReplicationWorkflowsResponse to JSON. * @function toJSON - * @memberof query.Value + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + UpdateVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Value; + /** + * Gets the default type url for UpdateVReplicationWorkflowsResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsResponse"; + }; + + return UpdateVReplicationWorkflowsResponse; })(); - query.BindVariable = (function() { + tabletmanagerdata.ResetSequencesRequest = (function() { /** - * Properties of a BindVariable. - * @memberof query - * @interface IBindVariable - * @property {query.Type|null} [type] BindVariable type - * @property {Uint8Array|null} [value] BindVariable value - * @property {Array.|null} [values] BindVariable values + * Properties of a ResetSequencesRequest. + * @memberof tabletmanagerdata + * @interface IResetSequencesRequest + * @property {Array.|null} [tables] ResetSequencesRequest tables */ /** - * Constructs a new BindVariable. - * @memberof query - * @classdesc Represents a BindVariable. - * @implements IBindVariable + * Constructs a new ResetSequencesRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ResetSequencesRequest. + * @implements IResetSequencesRequest * @constructor - * @param {query.IBindVariable=} [properties] Properties to set + * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set */ - function BindVariable(properties) { - this.values = []; + function ResetSequencesRequest(properties) { + this.tables = []; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * BindVariable type. - * @member {query.Type} type - * @memberof query.BindVariable - * @instance - */ - BindVariable.prototype.type = 0; - - /** - * BindVariable value. - * @member {Uint8Array} value - * @memberof query.BindVariable - * @instance - */ - BindVariable.prototype.value = $util.newBuffer([]); - - /** - * BindVariable values. - * @member {Array.} values - * @memberof query.BindVariable + * ResetSequencesRequest tables. + * @member {Array.} tables + * @memberof tabletmanagerdata.ResetSequencesRequest * @instance */ - BindVariable.prototype.values = $util.emptyArray; + ResetSequencesRequest.prototype.tables = $util.emptyArray; /** - * Creates a new BindVariable instance using the specified properties. + * Creates a new ResetSequencesRequest instance using the specified properties. * @function create - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static - * @param {query.IBindVariable=} [properties] Properties to set - * @returns {query.BindVariable} BindVariable instance + * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest instance */ - BindVariable.create = function create(properties) { - return new BindVariable(properties); + ResetSequencesRequest.create = function create(properties) { + return new ResetSequencesRequest(properties); }; /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. * @function encode - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encode = function encode(message, writer) { + ResetSequencesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tables != null && message.tables.length) + for (let i = 0; i < message.tables.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); return writer; }; /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encodeDelimited = function encodeDelimited(message, writer) { + ResetSequencesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BindVariable message from the specified reader or buffer. + * Decodes a ResetSequencesRequest message from the specified reader or buffer. * @function decode - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BindVariable} BindVariable + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decode = function decode(reader, length) { + ResetSequencesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesRequest(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.query.Value.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.tables && message.tables.length)) + message.tables = []; + message.tables.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -56782,443 +56900,197 @@ $root.query = (function() { }; /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BindVariable} BindVariable + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decodeDelimited = function decodeDelimited(reader) { + ResetSequencesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BindVariable message. + * Verifies a ResetSequencesRequest message. * @function verify - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindVariable.verify = function verify(message) { + ResetSequencesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.query.Value.verify(message.values[i]); - if (error) - return "values." + error; - } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!Array.isArray(message.tables)) + return "tables: array expected"; + for (let i = 0; i < message.tables.length; ++i) + if (!$util.isString(message.tables[i])) + return "tables: string[] expected"; } return null; }; /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static * @param {Object.} object Plain object - * @returns {query.BindVariable} BindVariable + * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest */ - BindVariable.fromObject = function fromObject(object) { - if (object instanceof $root.query.BindVariable) + ResetSequencesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetSequencesRequest) return object; - var message = new $root.query.BindVariable(); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; - } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".query.BindVariable.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".query.BindVariable.values: object expected"); - message.values[i] = $root.query.Value.fromObject(object.values[i]); - } + let message = new $root.tabletmanagerdata.ResetSequencesRequest(); + if (object.tables) { + if (!Array.isArray(object.tables)) + throw TypeError(".tabletmanagerdata.ResetSequencesRequest.tables: array expected"); + message.tables = []; + for (let i = 0; i < object.tables.length; ++i) + message.tables[i] = String(object.tables[i]); } return message; }; /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @static - * @param {query.BindVariable} message BindVariable + * @param {tabletmanagerdata.ResetSequencesRequest} message ResetSequencesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BindVariable.toObject = function toObject(message, options) { + ResetSequencesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; + let object = {}; if (options.arrays || options.defaults) - object.values = []; - if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.query.Value.toObject(message.values[j], options); + object.tables = []; + if (message.tables && message.tables.length) { + object.tables = []; + for (let j = 0; j < message.tables.length; ++j) + object.tables[j] = message.tables[j]; } return object; }; /** - * Converts this BindVariable to JSON. + * Converts this ResetSequencesRequest to JSON. * @function toJSON - * @memberof query.BindVariable + * @memberof tabletmanagerdata.ResetSequencesRequest * @instance * @returns {Object.} JSON object */ - BindVariable.prototype.toJSON = function toJSON() { + ResetSequencesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BindVariable; + /** + * Gets the default type url for ResetSequencesRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.ResetSequencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResetSequencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesRequest"; + }; + + return ResetSequencesRequest; })(); - query.BoundQuery = (function() { + tabletmanagerdata.ResetSequencesResponse = (function() { /** - * Properties of a BoundQuery. - * @memberof query - * @interface IBoundQuery - * @property {string|null} [sql] BoundQuery sql - * @property {Object.|null} [bind_variables] BoundQuery bind_variables + * Properties of a ResetSequencesResponse. + * @memberof tabletmanagerdata + * @interface IResetSequencesResponse */ /** - * Constructs a new BoundQuery. - * @memberof query - * @classdesc Represents a BoundQuery. - * @implements IBoundQuery + * Constructs a new ResetSequencesResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a ResetSequencesResponse. + * @implements IResetSequencesResponse * @constructor - * @param {query.IBoundQuery=} [properties] Properties to set + * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set */ - function BoundQuery(properties) { - this.bind_variables = {}; + function ResetSequencesResponse(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * BoundQuery sql. - * @member {string} sql - * @memberof query.BoundQuery - * @instance - */ - BoundQuery.prototype.sql = ""; - - /** - * BoundQuery bind_variables. - * @member {Object.} bind_variables - * @memberof query.BoundQuery - * @instance - */ - BoundQuery.prototype.bind_variables = $util.emptyObject; - - /** - * Creates a new BoundQuery instance using the specified properties. + * Creates a new ResetSequencesResponse instance using the specified properties. * @function create - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {query.IBoundQuery=} [properties] Properties to set - * @returns {query.BoundQuery} BoundQuery instance + * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse instance */ - BoundQuery.create = function create(properties) { - return new BoundQuery(properties); + ResetSequencesResponse.create = function create(properties) { + return new ResetSequencesResponse(properties); }; /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. * @function encode - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encode = function encode(message, writer) { + ResetSequencesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); - if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) - for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } return writer; }; /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { + ResetSequencesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoundQuery message from the specified reader or buffer. + * Decodes a ResetSequencesResponse message from the specified reader or buffer. * @function decode - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BoundQuery} BoundQuery + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoundQuery.decode = function decode(reader, length) { + ResetSequencesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesResponse(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.sql = reader.string(); - break; - case 2: - if (message.bind_variables === $util.emptyObject) - message.bind_variables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.query.BindVariable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.bind_variables[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -57228,338 +57100,247 @@ $root.query = (function() { }; /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. + * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BoundQuery} BoundQuery + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoundQuery.decodeDelimited = function decodeDelimited(reader) { + ResetSequencesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BoundQuery message. + * Verifies a ResetSequencesResponse message. * @function verify - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BoundQuery.verify = function verify(message) { + ResetSequencesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; - if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { - if (!$util.isObject(message.bind_variables)) - return "bind_variables: object expected"; - var key = Object.keys(message.bind_variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); - if (error) - return "bind_variables." + error; - } - } return null; }; /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. + * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static * @param {Object.} object Plain object - * @returns {query.BoundQuery} BoundQuery + * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse */ - BoundQuery.fromObject = function fromObject(object) { - if (object instanceof $root.query.BoundQuery) + ResetSequencesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ResetSequencesResponse) return object; - var message = new $root.query.BoundQuery(); - if (object.sql != null) - message.sql = String(object.sql); - if (object.bind_variables) { - if (typeof object.bind_variables !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables = {}; - for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { - if (typeof object.bind_variables[keys[i]] !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); - } - } - return message; + return new $root.tabletmanagerdata.ResetSequencesResponse(); }; /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. + * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @static - * @param {query.BoundQuery} message BoundQuery + * @param {tabletmanagerdata.ResetSequencesResponse} message ResetSequencesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoundQuery.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.bind_variables = {}; - if (options.defaults) - object.sql = ""; - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - var keys2; - if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { - object.bind_variables = {}; - for (var j = 0; j < keys2.length; ++j) - object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); - } - return object; + ResetSequencesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BoundQuery to JSON. + * Converts this ResetSequencesResponse to JSON. * @function toJSON - * @memberof query.BoundQuery + * @memberof tabletmanagerdata.ResetSequencesResponse * @instance * @returns {Object.} JSON object */ - BoundQuery.prototype.toJSON = function toJSON() { + ResetSequencesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BoundQuery; + /** + * Gets the default type url for ResetSequencesResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.ResetSequencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResetSequencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesResponse"; + }; + + return ResetSequencesResponse; })(); - query.ExecuteOptions = (function() { + tabletmanagerdata.CheckThrottlerRequest = (function() { /** - * Properties of an ExecuteOptions. - * @memberof query - * @interface IExecuteOptions - * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields - * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows - * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload - * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit - * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation - * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache - * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version - * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables - * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName - * @property {string|null} [priority] ExecuteOptions priority + * Properties of a CheckThrottlerRequest. + * @memberof tabletmanagerdata + * @interface ICheckThrottlerRequest + * @property {string|null} [app_name] CheckThrottlerRequest app_name + * @property {string|null} [scope] CheckThrottlerRequest scope + * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats + * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists + * @property {boolean|null} [multi_metrics_enabled] CheckThrottlerRequest multi_metrics_enabled */ /** - * Constructs a new ExecuteOptions. - * @memberof query - * @classdesc Represents an ExecuteOptions. - * @implements IExecuteOptions + * Constructs a new CheckThrottlerRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a CheckThrottlerRequest. + * @implements ICheckThrottlerRequest * @constructor - * @param {query.IExecuteOptions=} [properties] Properties to set + * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set */ - function ExecuteOptions(properties) { + function CheckThrottlerRequest(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * ExecuteOptions included_fields. - * @member {query.ExecuteOptions.IncludedFields} included_fields - * @memberof query.ExecuteOptions + * CheckThrottlerRequest app_name. + * @member {string} app_name + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ExecuteOptions.prototype.included_fields = 0; + CheckThrottlerRequest.prototype.app_name = ""; /** - * ExecuteOptions client_found_rows. - * @member {boolean} client_found_rows - * @memberof query.ExecuteOptions + * CheckThrottlerRequest scope. + * @member {string} scope + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ExecuteOptions.prototype.client_found_rows = false; + CheckThrottlerRequest.prototype.scope = ""; /** - * ExecuteOptions workload. - * @member {query.ExecuteOptions.Workload} workload - * @memberof query.ExecuteOptions + * CheckThrottlerRequest skip_request_heartbeats. + * @member {boolean} skip_request_heartbeats + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ExecuteOptions.prototype.workload = 0; + CheckThrottlerRequest.prototype.skip_request_heartbeats = false; /** - * ExecuteOptions sql_select_limit. - * @member {number|Long} sql_select_limit - * @memberof query.ExecuteOptions + * CheckThrottlerRequest ok_if_not_exists. + * @member {boolean} ok_if_not_exists + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CheckThrottlerRequest.prototype.ok_if_not_exists = false; /** - * ExecuteOptions transaction_isolation. - * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation - * @memberof query.ExecuteOptions + * CheckThrottlerRequest multi_metrics_enabled. + * @member {boolean} multi_metrics_enabled + * @memberof tabletmanagerdata.CheckThrottlerRequest * @instance */ - ExecuteOptions.prototype.transaction_isolation = 0; + CheckThrottlerRequest.prototype.multi_metrics_enabled = false; /** - * ExecuteOptions skip_query_plan_cache. - * @member {boolean} skip_query_plan_cache - * @memberof query.ExecuteOptions - * @instance + * Creates a new CheckThrottlerRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @static + * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest instance */ - ExecuteOptions.prototype.skip_query_plan_cache = false; + CheckThrottlerRequest.create = function create(properties) { + return new CheckThrottlerRequest(properties); + }; /** - * ExecuteOptions planner_version. - * @member {query.ExecuteOptions.PlannerVersion} planner_version - * @memberof query.ExecuteOptions - * @instance + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @static + * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.prototype.planner_version = 0; + CheckThrottlerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.app_name); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.scope); + if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skip_request_heartbeats); + if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.ok_if_not_exists); + if (message.multi_metrics_enabled != null && Object.hasOwnProperty.call(message, "multi_metrics_enabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.multi_metrics_enabled); + return writer; + }; /** - * ExecuteOptions has_created_temp_tables. - * @member {boolean} has_created_temp_tables - * @memberof query.ExecuteOptions - * @instance + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @static + * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.prototype.has_created_temp_tables = false; + CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ExecuteOptions WorkloadName. - * @member {string} WorkloadName - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.WorkloadName = ""; - - /** - * ExecuteOptions priority. - * @member {string} priority - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.priority = ""; - - /** - * Creates a new ExecuteOptions instance using the specified properties. - * @function create - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions=} [properties] Properties to set - * @returns {query.ExecuteOptions} ExecuteOptions instance - */ - ExecuteOptions.create = function create(properties) { - return new ExecuteOptions(properties); - }; - - /** - * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @function encode - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.included_fields != null && Object.hasOwnProperty.call(message, "included_fields")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.included_fields); - if (message.client_found_rows != null && Object.hasOwnProperty.call(message, "client_found_rows")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_found_rows); - if (message.workload != null && Object.hasOwnProperty.call(message, "workload")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workload); - if (message.sql_select_limit != null && Object.hasOwnProperty.call(message, "sql_select_limit")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sql_select_limit); - if (message.transaction_isolation != null && Object.hasOwnProperty.call(message, "transaction_isolation")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.transaction_isolation); - if (message.skip_query_plan_cache != null && Object.hasOwnProperty.call(message, "skip_query_plan_cache")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.skip_query_plan_cache); - if (message.planner_version != null && Object.hasOwnProperty.call(message, "planner_version")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.planner_version); - if (message.has_created_temp_tables != null && Object.hasOwnProperty.call(message, "has_created_temp_tables")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.has_created_temp_tables); - if (message.WorkloadName != null && Object.hasOwnProperty.call(message, "WorkloadName")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.WorkloadName); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.priority); - return writer; - }; - - /** - * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof query.ExecuteOptions - * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteOptions + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteOptions.decode = function decode(reader, length) { + CheckThrottlerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerRequest(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.included_fields = reader.int32(); - break; - case 5: - message.client_found_rows = reader.bool(); - break; - case 6: - message.workload = reader.int32(); - break; - case 8: - message.sql_select_limit = reader.int64(); - break; - case 9: - message.transaction_isolation = reader.int32(); - break; - case 10: - message.skip_query_plan_cache = reader.bool(); - break; - case 11: - message.planner_version = reader.int32(); - break; - case 12: - message.has_created_temp_tables = reader.bool(); - break; - case 15: - message.WorkloadName = reader.string(); - break; - case 16: - message.priority = reader.string(); - break; + case 1: { + message.app_name = reader.string(); + break; + } + case 2: { + message.scope = reader.string(); + break; + } + case 3: { + message.skip_request_heartbeats = reader.bool(); + break; + } + case 4: { + message.ok_if_not_exists = reader.bool(); + break; + } + case 5: { + message.multi_metrics_enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -57569,610 +57350,413 @@ $root.query = (function() { }; /** - * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ExecuteOptions + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteOptions.decodeDelimited = function decodeDelimited(reader) { + CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteOptions message. + * Verifies a CheckThrottlerRequest message. * @function verify - * @memberof query.ExecuteOptions + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteOptions.verify = function verify(message) { + CheckThrottlerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.included_fields != null && message.hasOwnProperty("included_fields")) - switch (message.included_fields) { - default: - return "included_fields: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) - if (typeof message.client_found_rows !== "boolean") - return "client_found_rows: boolean expected"; - if (message.workload != null && message.hasOwnProperty("workload")) - switch (message.workload) { - default: - return "workload: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) - if (!$util.isInteger(message.sql_select_limit) && !(message.sql_select_limit && $util.isInteger(message.sql_select_limit.low) && $util.isInteger(message.sql_select_limit.high))) - return "sql_select_limit: integer|Long expected"; - if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) - switch (message.transaction_isolation) { - default: - return "transaction_isolation: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) - if (typeof message.skip_query_plan_cache !== "boolean") - return "skip_query_plan_cache: boolean expected"; - if (message.planner_version != null && message.hasOwnProperty("planner_version")) - switch (message.planner_version) { - default: - return "planner_version: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) - if (typeof message.has_created_temp_tables !== "boolean") - return "has_created_temp_tables: boolean expected"; - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - if (!$util.isString(message.WorkloadName)) - return "WorkloadName: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isString(message.priority)) - return "priority: string expected"; + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + if (!$util.isString(message.scope)) + return "scope: string expected"; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + if (typeof message.skip_request_heartbeats !== "boolean") + return "skip_request_heartbeats: boolean expected"; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + if (typeof message.ok_if_not_exists !== "boolean") + return "ok_if_not_exists: boolean expected"; + if (message.multi_metrics_enabled != null && message.hasOwnProperty("multi_metrics_enabled")) + if (typeof message.multi_metrics_enabled !== "boolean") + return "multi_metrics_enabled: boolean expected"; return null; }; /** - * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ExecuteOptions + * @memberof tabletmanagerdata.CheckThrottlerRequest * @static * @param {Object.} object Plain object - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest */ - ExecuteOptions.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteOptions) + CheckThrottlerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerRequest) return object; - var message = new $root.query.ExecuteOptions(); - switch (object.included_fields) { - case "TYPE_AND_NAME": - case 0: - message.included_fields = 0; - break; - case "TYPE_ONLY": - case 1: - message.included_fields = 1; - break; - case "ALL": - case 2: - message.included_fields = 2; - break; - } - if (object.client_found_rows != null) - message.client_found_rows = Boolean(object.client_found_rows); - switch (object.workload) { - case "UNSPECIFIED": - case 0: - message.workload = 0; - break; - case "OLTP": - case 1: - message.workload = 1; - break; - case "OLAP": - case 2: - message.workload = 2; - break; - case "DBA": - case 3: - message.workload = 3; - break; + let message = new $root.tabletmanagerdata.CheckThrottlerRequest(); + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.scope != null) + message.scope = String(object.scope); + if (object.skip_request_heartbeats != null) + message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); + if (object.ok_if_not_exists != null) + message.ok_if_not_exists = Boolean(object.ok_if_not_exists); + if (object.multi_metrics_enabled != null) + message.multi_metrics_enabled = Boolean(object.multi_metrics_enabled); + return message; + }; + + /** + * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @static + * @param {tabletmanagerdata.CheckThrottlerRequest} message CheckThrottlerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckThrottlerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.app_name = ""; + object.scope = ""; + object.skip_request_heartbeats = false; + object.ok_if_not_exists = false; + object.multi_metrics_enabled = false; + } + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = message.scope; + if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) + object.skip_request_heartbeats = message.skip_request_heartbeats; + if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) + object.ok_if_not_exists = message.ok_if_not_exists; + if (message.multi_metrics_enabled != null && message.hasOwnProperty("multi_metrics_enabled")) + object.multi_metrics_enabled = message.multi_metrics_enabled; + return object; + }; + + /** + * Converts this CheckThrottlerRequest to JSON. + * @function toJSON + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @instance + * @returns {Object.} JSON object + */ + CheckThrottlerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CheckThrottlerRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.CheckThrottlerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (object.sql_select_limit != null) - if ($util.Long) - (message.sql_select_limit = $util.Long.fromValue(object.sql_select_limit)).unsigned = false; - else if (typeof object.sql_select_limit === "string") - message.sql_select_limit = parseInt(object.sql_select_limit, 10); - else if (typeof object.sql_select_limit === "number") - message.sql_select_limit = object.sql_select_limit; - else if (typeof object.sql_select_limit === "object") - message.sql_select_limit = new $util.LongBits(object.sql_select_limit.low >>> 0, object.sql_select_limit.high >>> 0).toNumber(); - switch (object.transaction_isolation) { - case "DEFAULT": - case 0: - message.transaction_isolation = 0; - break; - case "REPEATABLE_READ": - case 1: - message.transaction_isolation = 1; - break; - case "READ_COMMITTED": - case 2: - message.transaction_isolation = 2; - break; - case "READ_UNCOMMITTED": - case 3: - message.transaction_isolation = 3; - break; - case "SERIALIZABLE": - case 4: - message.transaction_isolation = 4; - break; - case "CONSISTENT_SNAPSHOT_READ_ONLY": - case 5: - message.transaction_isolation = 5; - break; - case "AUTOCOMMIT": - case 6: - message.transaction_isolation = 6; - break; - } - if (object.skip_query_plan_cache != null) - message.skip_query_plan_cache = Boolean(object.skip_query_plan_cache); - switch (object.planner_version) { - case "DEFAULT_PLANNER": - case 0: - message.planner_version = 0; - break; - case "V3": - case 1: - message.planner_version = 1; - break; - case "Gen4": - case 2: - message.planner_version = 2; - break; - case "Gen4Greedy": - case 3: - message.planner_version = 3; - break; - case "Gen4Left2Right": - case 4: - message.planner_version = 4; - break; - case "Gen4WithFallback": - case 5: - message.planner_version = 5; - break; - case "Gen4CompareV3": - case 6: - message.planner_version = 6; - break; - } - if (object.has_created_temp_tables != null) - message.has_created_temp_tables = Boolean(object.has_created_temp_tables); - if (object.WorkloadName != null) - message.WorkloadName = String(object.WorkloadName); - if (object.priority != null) - message.priority = String(object.priority); - return message; + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerRequest"; }; + return CheckThrottlerRequest; + })(); + + /** + * CheckThrottlerResponseCode enum. + * @name tabletmanagerdata.CheckThrottlerResponseCode + * @enum {number} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} OK=1 OK value + * @property {number} THRESHOLD_EXCEEDED=2 THRESHOLD_EXCEEDED value + * @property {number} APP_DENIED=3 APP_DENIED value + * @property {number} UNKNOWN_METRIC=4 UNKNOWN_METRIC value + * @property {number} INTERNAL_ERROR=5 INTERNAL_ERROR value + */ + tabletmanagerdata.CheckThrottlerResponseCode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "OK"] = 1; + values[valuesById[2] = "THRESHOLD_EXCEEDED"] = 2; + values[valuesById[3] = "APP_DENIED"] = 3; + values[valuesById[4] = "UNKNOWN_METRIC"] = 4; + values[valuesById[5] = "INTERNAL_ERROR"] = 5; + return values; + })(); + + tabletmanagerdata.CheckThrottlerResponse = (function() { + /** - * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof query.ExecuteOptions - * @static - * @param {query.ExecuteOptions} message ExecuteOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Properties of a CheckThrottlerResponse. + * @memberof tabletmanagerdata + * @interface ICheckThrottlerResponse + * @property {number|null} [status_code] CheckThrottlerResponse status_code + * @property {number|null} [value] CheckThrottlerResponse value + * @property {number|null} [threshold] CheckThrottlerResponse threshold + * @property {string|null} [error] CheckThrottlerResponse error + * @property {string|null} [message] CheckThrottlerResponse message + * @property {boolean|null} [recently_checked] CheckThrottlerResponse recently_checked + * @property {Object.|null} [metrics] CheckThrottlerResponse metrics + * @property {string|null} [app_name] CheckThrottlerResponse app_name + * @property {string|null} [summary] CheckThrottlerResponse summary + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] CheckThrottlerResponse response_code */ - ExecuteOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.included_fields = options.enums === String ? "TYPE_AND_NAME" : 0; - object.client_found_rows = false; - object.workload = options.enums === String ? "UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sql_select_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sql_select_limit = options.longs === String ? "0" : 0; - object.transaction_isolation = options.enums === String ? "DEFAULT" : 0; - object.skip_query_plan_cache = false; - object.planner_version = options.enums === String ? "DEFAULT_PLANNER" : 0; - object.has_created_temp_tables = false; - object.WorkloadName = ""; - object.priority = ""; - } - if (message.included_fields != null && message.hasOwnProperty("included_fields")) - object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] : message.included_fields; - if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) - object.client_found_rows = message.client_found_rows; - if (message.workload != null && message.hasOwnProperty("workload")) - object.workload = options.enums === String ? $root.query.ExecuteOptions.Workload[message.workload] : message.workload; - if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) - if (typeof message.sql_select_limit === "number") - object.sql_select_limit = options.longs === String ? String(message.sql_select_limit) : message.sql_select_limit; - else - object.sql_select_limit = options.longs === String ? $util.Long.prototype.toString.call(message.sql_select_limit) : options.longs === Number ? new $util.LongBits(message.sql_select_limit.low >>> 0, message.sql_select_limit.high >>> 0).toNumber() : message.sql_select_limit; - if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) - object.transaction_isolation = options.enums === String ? $root.query.ExecuteOptions.TransactionIsolation[message.transaction_isolation] : message.transaction_isolation; - if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) - object.skip_query_plan_cache = message.skip_query_plan_cache; - if (message.planner_version != null && message.hasOwnProperty("planner_version")) - object.planner_version = options.enums === String ? $root.query.ExecuteOptions.PlannerVersion[message.planner_version] : message.planner_version; - if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) - object.has_created_temp_tables = message.has_created_temp_tables; - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - object.WorkloadName = message.WorkloadName; - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - return object; - }; /** - * Converts this ExecuteOptions to JSON. - * @function toJSON - * @memberof query.ExecuteOptions + * Constructs a new CheckThrottlerResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a CheckThrottlerResponse. + * @implements ICheckThrottlerResponse + * @constructor + * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set + */ + function CheckThrottlerResponse(properties) { + this.metrics = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckThrottlerResponse status_code. + * @member {number} status_code + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance - * @returns {Object.} JSON object */ - ExecuteOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + CheckThrottlerResponse.prototype.status_code = 0; /** - * IncludedFields enum. - * @name query.ExecuteOptions.IncludedFields - * @enum {number} - * @property {number} TYPE_AND_NAME=0 TYPE_AND_NAME value - * @property {number} TYPE_ONLY=1 TYPE_ONLY value - * @property {number} ALL=2 ALL value + * CheckThrottlerResponse value. + * @member {number} value + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance */ - ExecuteOptions.IncludedFields = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_AND_NAME"] = 0; - values[valuesById[1] = "TYPE_ONLY"] = 1; - values[valuesById[2] = "ALL"] = 2; - return values; - })(); + CheckThrottlerResponse.prototype.value = 0; /** - * Workload enum. - * @name query.ExecuteOptions.Workload - * @enum {number} - * @property {number} UNSPECIFIED=0 UNSPECIFIED value - * @property {number} OLTP=1 OLTP value - * @property {number} OLAP=2 OLAP value - * @property {number} DBA=3 DBA value + * CheckThrottlerResponse threshold. + * @member {number} threshold + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance */ - ExecuteOptions.Workload = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSPECIFIED"] = 0; - values[valuesById[1] = "OLTP"] = 1; - values[valuesById[2] = "OLAP"] = 2; - values[valuesById[3] = "DBA"] = 3; - return values; - })(); + CheckThrottlerResponse.prototype.threshold = 0; /** - * TransactionIsolation enum. - * @name query.ExecuteOptions.TransactionIsolation - * @enum {number} - * @property {number} DEFAULT=0 DEFAULT value - * @property {number} REPEATABLE_READ=1 REPEATABLE_READ value - * @property {number} READ_COMMITTED=2 READ_COMMITTED value - * @property {number} READ_UNCOMMITTED=3 READ_UNCOMMITTED value - * @property {number} SERIALIZABLE=4 SERIALIZABLE value - * @property {number} CONSISTENT_SNAPSHOT_READ_ONLY=5 CONSISTENT_SNAPSHOT_READ_ONLY value - * @property {number} AUTOCOMMIT=6 AUTOCOMMIT value + * CheckThrottlerResponse error. + * @member {string} error + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance */ - ExecuteOptions.TransactionIsolation = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT"] = 0; - values[valuesById[1] = "REPEATABLE_READ"] = 1; - values[valuesById[2] = "READ_COMMITTED"] = 2; - values[valuesById[3] = "READ_UNCOMMITTED"] = 3; - values[valuesById[4] = "SERIALIZABLE"] = 4; - values[valuesById[5] = "CONSISTENT_SNAPSHOT_READ_ONLY"] = 5; - values[valuesById[6] = "AUTOCOMMIT"] = 6; - return values; - })(); + CheckThrottlerResponse.prototype.error = ""; /** - * PlannerVersion enum. - * @name query.ExecuteOptions.PlannerVersion - * @enum {number} - * @property {number} DEFAULT_PLANNER=0 DEFAULT_PLANNER value - * @property {number} V3=1 V3 value - * @property {number} Gen4=2 Gen4 value - * @property {number} Gen4Greedy=3 Gen4Greedy value - * @property {number} Gen4Left2Right=4 Gen4Left2Right value - * @property {number} Gen4WithFallback=5 Gen4WithFallback value - * @property {number} Gen4CompareV3=6 Gen4CompareV3 value + * CheckThrottlerResponse message. + * @member {string} message + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance */ - ExecuteOptions.PlannerVersion = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_PLANNER"] = 0; - values[valuesById[1] = "V3"] = 1; - values[valuesById[2] = "Gen4"] = 2; - values[valuesById[3] = "Gen4Greedy"] = 3; - values[valuesById[4] = "Gen4Left2Right"] = 4; - values[valuesById[5] = "Gen4WithFallback"] = 5; - values[valuesById[6] = "Gen4CompareV3"] = 6; - return values; - })(); + CheckThrottlerResponse.prototype.message = ""; - return ExecuteOptions; - })(); + /** + * CheckThrottlerResponse recently_checked. + * @member {boolean} recently_checked + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.recently_checked = false; - query.Field = (function() { + /** + * CheckThrottlerResponse metrics. + * @member {Object.} metrics + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance + */ + CheckThrottlerResponse.prototype.metrics = $util.emptyObject; /** - * Properties of a Field. - * @memberof query - * @interface IField - * @property {string|null} [name] Field name - * @property {query.Type|null} [type] Field type - * @property {string|null} [table] Field table - * @property {string|null} [org_table] Field org_table - * @property {string|null} [database] Field database - * @property {string|null} [org_name] Field org_name - * @property {number|null} [column_length] Field column_length - * @property {number|null} [charset] Field charset - * @property {number|null} [decimals] Field decimals - * @property {number|null} [flags] Field flags - * @property {string|null} [column_type] Field column_type + * CheckThrottlerResponse app_name. + * @member {string} app_name + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @instance */ + CheckThrottlerResponse.prototype.app_name = ""; /** - * Constructs a new Field. - * @memberof query - * @classdesc Represents a Field. - * @implements IField - * @constructor - * @param {query.IField=} [properties] Properties to set - */ - function Field(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Field name. - * @member {string} name - * @memberof query.Field - * @instance - */ - Field.prototype.name = ""; - - /** - * Field type. - * @member {query.Type} type - * @memberof query.Field - * @instance - */ - Field.prototype.type = 0; - - /** - * Field table. - * @member {string} table - * @memberof query.Field - * @instance - */ - Field.prototype.table = ""; - - /** - * Field org_table. - * @member {string} org_table - * @memberof query.Field - * @instance - */ - Field.prototype.org_table = ""; - - /** - * Field database. - * @member {string} database - * @memberof query.Field - * @instance - */ - Field.prototype.database = ""; - - /** - * Field org_name. - * @member {string} org_name - * @memberof query.Field - * @instance - */ - Field.prototype.org_name = ""; - - /** - * Field column_length. - * @member {number} column_length - * @memberof query.Field - * @instance - */ - Field.prototype.column_length = 0; - - /** - * Field charset. - * @member {number} charset - * @memberof query.Field - * @instance - */ - Field.prototype.charset = 0; - - /** - * Field decimals. - * @member {number} decimals - * @memberof query.Field - * @instance - */ - Field.prototype.decimals = 0; - - /** - * Field flags. - * @member {number} flags - * @memberof query.Field + * CheckThrottlerResponse summary. + * @member {string} summary + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance */ - Field.prototype.flags = 0; + CheckThrottlerResponse.prototype.summary = ""; /** - * Field column_type. - * @member {string} column_type - * @memberof query.Field + * CheckThrottlerResponse response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance */ - Field.prototype.column_type = ""; + CheckThrottlerResponse.prototype.response_code = 0; /** - * Creates a new Field instance using the specified properties. + * Creates a new CheckThrottlerResponse instance using the specified properties. * @function create - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {query.IField=} [properties] Properties to set - * @returns {query.Field} Field instance + * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse instance */ - Field.create = function create(properties) { - return new Field(properties); + CheckThrottlerResponse.create = function create(properties) { + return new CheckThrottlerResponse(properties); }; /** - * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. * @function encode - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {query.IField} message Field message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encode = function encode(message, writer) { + CheckThrottlerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table); - if (message.org_table != null && Object.hasOwnProperty.call(message, "org_table")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org_table); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); - if (message.org_name != null && Object.hasOwnProperty.call(message, "org_name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org_name); - if (message.column_length != null && Object.hasOwnProperty.call(message, "column_length")) - writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.column_length); - if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) - writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.charset); - if (message.decimals != null && Object.hasOwnProperty.call(message, "decimals")) - writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.decimals); - if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) - writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.flags); - if (message.column_type != null && Object.hasOwnProperty.call(message, "column_type")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.column_type); + if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status_code); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.threshold); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); + if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.recently_checked); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.CheckThrottlerResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.app_name); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.summary); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.response_code); return writer; }; /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {query.IField} message Field message or plain object to encode + * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encodeDelimited = function encodeDelimited(message, writer) { + CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Field message from the specified reader or buffer. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer. * @function decode - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Field} Field + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decode = function decode(reader, length) { + CheckThrottlerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - case 3: - message.table = reader.string(); - break; - case 4: - message.org_table = reader.string(); - break; - case 5: - message.database = reader.string(); - break; - case 6: - message.org_name = reader.string(); - break; - case 7: - message.column_length = reader.uint32(); - break; - case 8: - message.charset = reader.uint32(); - break; - case 9: - message.decimals = reader.uint32(); - break; - case 10: - message.flags = reader.uint32(); - break; - case 11: - message.column_type = reader.string(); - break; + case 1: { + message.status_code = reader.int32(); + break; + } + case 2: { + message.value = reader.double(); + break; + } + case 3: { + message.threshold = reader.double(); + break; + } + case 4: { + message.error = reader.string(); + break; + } + case 5: { + message.message = reader.string(); + break; + } + case 6: { + message.recently_checked = reader.bool(); + break; + } + case 7: { + if (message.metrics === $util.emptyObject) + message.metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metrics[key] = value; + break; + } + case 8: { + message.app_name = reader.string(); + break; + } + case 9: { + message.summary = reader.string(); + break; + } + case 10: { + message.response_code = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -58182,469 +57766,721 @@ $root.query = (function() { }; /** - * Decodes a Field message from the specified reader or buffer, length delimited. + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Field} Field + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decodeDelimited = function decodeDelimited(reader) { + CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Field message. + * Verifies a CheckThrottlerResponse message. * @function verify - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Field.verify = function verify(message) { + CheckThrottlerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { + if (message.status_code != null && message.hasOwnProperty("status_code")) + if (!$util.isInteger(message.status_code)) + return "status_code: integer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + if (typeof message.recently_checked !== "boolean") + return "recently_checked: boolean expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!$util.isObject(message.metrics)) + return "metrics: object expected"; + let key = Object.keys(message.metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.verify(message.metrics[key[i]]); + if (error) + return "metrics." + error; + } + } + if (message.app_name != null && message.hasOwnProperty("app_name")) + if (!$util.isString(message.app_name)) + return "app_name: string expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { default: - return "type: enum value expected"; + return "response_code: enum value expected"; case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: + case 1: + case 2: + case 3: + case 4: + case 5: break; } - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.org_table != null && message.hasOwnProperty("org_table")) - if (!$util.isString(message.org_table)) - return "org_table: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.org_name != null && message.hasOwnProperty("org_name")) - if (!$util.isString(message.org_name)) - return "org_name: string expected"; - if (message.column_length != null && message.hasOwnProperty("column_length")) - if (!$util.isInteger(message.column_length)) - return "column_length: integer expected"; - if (message.charset != null && message.hasOwnProperty("charset")) - if (!$util.isInteger(message.charset)) - return "charset: integer expected"; - if (message.decimals != null && message.hasOwnProperty("decimals")) - if (!$util.isInteger(message.decimals)) - return "decimals: integer expected"; - if (message.flags != null && message.hasOwnProperty("flags")) - if (!$util.isInteger(message.flags)) - return "flags: integer expected"; - if (message.column_type != null && message.hasOwnProperty("column_type")) - if (!$util.isString(message.column_type)) - return "column_type: string expected"; return null; }; /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static * @param {Object.} object Plain object - * @returns {query.Field} Field + * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.query.Field) + CheckThrottlerResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse) return object; - var message = new $root.query.Field(); - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; + let message = new $root.tabletmanagerdata.CheckThrottlerResponse(); + if (object.status_code != null) + message.status_code = object.status_code | 0; + if (object.value != null) + message.value = Number(object.value); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.error != null) + message.error = String(object.error); + if (object.message != null) + message.message = String(object.message); + if (object.recently_checked != null) + message.recently_checked = Boolean(object.recently_checked); + if (object.metrics) { + if (typeof object.metrics !== "object") + throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); + message.metrics = {}; + for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { + if (typeof object.metrics[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); + message.metrics[keys[i]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.fromObject(object.metrics[keys[i]]); + } + } + if (object.app_name != null) + message.app_name = String(object.app_name); + if (object.summary != null) + message.summary = String(object.summary); + switch (object.response_code) { + default: + if (typeof object.response_code === "number") { + message.response_code = object.response_code; + break; + } break; - case "GEOMETRY": - case 2077: - message.type = 2077; + case "UNDEFINED": + case 0: + message.response_code = 0; break; - case "JSON": - case 2078: - message.type = 2078; + case "OK": + case 1: + message.response_code = 1; break; - case "EXPRESSION": - case 31: - message.type = 31; + case "THRESHOLD_EXCEEDED": + case 2: + message.response_code = 2; break; - case "HEXNUM": - case 4128: - message.type = 4128; + case "APP_DENIED": + case 3: + message.response_code = 3; break; - case "HEXVAL": - case 4129: - message.type = 4129; + case "UNKNOWN_METRIC": + case 4: + message.response_code = 4; break; - case "BITNUM": - case 4130: - message.type = 4130; + case "INTERNAL_ERROR": + case 5: + message.response_code = 5; break; } - if (object.table != null) - message.table = String(object.table); - if (object.org_table != null) - message.org_table = String(object.org_table); - if (object.database != null) - message.database = String(object.database); - if (object.org_name != null) - message.org_name = String(object.org_name); - if (object.column_length != null) - message.column_length = object.column_length >>> 0; - if (object.charset != null) - message.charset = object.charset >>> 0; - if (object.decimals != null) - message.decimals = object.decimals >>> 0; - if (object.flags != null) - message.flags = object.flags >>> 0; - if (object.column_type != null) - message.column_type = String(object.column_type); return message; }; /** - * Creates a plain object from a Field message. Also converts values to other types if specified. + * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @static - * @param {query.Field} message Field + * @param {tabletmanagerdata.CheckThrottlerResponse} message CheckThrottlerResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Field.toObject = function toObject(message, options) { + CheckThrottlerResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; + let object = {}; + if (options.objects || options.defaults) + object.metrics = {}; if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; - object.table = ""; - object.org_table = ""; - object.database = ""; - object.org_name = ""; - object.column_length = 0; - object.charset = 0; - object.decimals = 0; - object.flags = 0; - object.column_type = ""; + object.status_code = 0; + object.value = 0; + object.threshold = 0; + object.error = ""; + object.message = ""; + object.recently_checked = false; + object.app_name = ""; + object.summary = ""; + object.response_code = options.enums === String ? "UNDEFINED" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.org_table != null && message.hasOwnProperty("org_table")) - object.org_table = message.org_table; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.org_name != null && message.hasOwnProperty("org_name")) - object.org_name = message.org_name; - if (message.column_length != null && message.hasOwnProperty("column_length")) - object.column_length = message.column_length; - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = message.charset; - if (message.decimals != null && message.hasOwnProperty("decimals")) - object.decimals = message.decimals; - if (message.flags != null && message.hasOwnProperty("flags")) - object.flags = message.flags; - if (message.column_type != null && message.hasOwnProperty("column_type")) - object.column_type = message.column_type; + if (message.status_code != null && message.hasOwnProperty("status_code")) + object.status_code = message.status_code; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + object.recently_checked = message.recently_checked; + let keys2; + if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { + object.metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.metrics[keys2[j]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.toObject(message.metrics[keys2[j]], options); + } + if (message.app_name != null && message.hasOwnProperty("app_name")) + object.app_name = message.app_name; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; return object; }; /** - * Converts this Field to JSON. + * Converts this CheckThrottlerResponse to JSON. * @function toJSON - * @memberof query.Field + * @memberof tabletmanagerdata.CheckThrottlerResponse * @instance * @returns {Object.} JSON object */ - Field.prototype.toJSON = function toJSON() { + CheckThrottlerResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Field; + /** + * Gets the default type url for CheckThrottlerResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse"; + }; + + CheckThrottlerResponse.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @interface IMetric + * @property {string|null} [name] Metric name + * @property {number|null} [status_code] Metric status_code + * @property {number|null} [value] Metric value + * @property {number|null} [threshold] Metric threshold + * @property {string|null} [error] Metric error + * @property {string|null} [message] Metric message + * @property {string|null} [scope] Metric scope + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] Metric response_code + */ + + /** + * Constructs a new Metric. + * @memberof tabletmanagerdata.CheckThrottlerResponse + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Metric name. + * @member {string} name + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.name = ""; + + /** + * Metric status_code. + * @member {number} status_code + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.status_code = 0; + + /** + * Metric value. + * @member {number} value + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.value = 0; + + /** + * Metric threshold. + * @member {number} threshold + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.threshold = 0; + + /** + * Metric error. + * @member {string} error + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.error = ""; + + /** + * Metric message. + * @member {string} message + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.message = ""; + + /** + * Metric scope. + * @member {string} scope + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.scope = ""; + + /** + * Metric response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + */ + Metric.prototype.response_code = 0; + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.value); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.error); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.scope); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.response_code); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.status_code = reader.int32(); + break; + } + case 3: { + message.value = reader.double(); + break; + } + case 4: { + message.threshold = reader.double(); + break; + } + case 5: { + message.error = reader.string(); + break; + } + case 6: { + message.message = reader.string(); + break; + } + case 7: { + message.scope = reader.string(); + break; + } + case 8: { + message.response_code = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.status_code != null && message.hasOwnProperty("status_code")) + if (!$util.isInteger(message.status_code)) + return "status_code: integer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (typeof message.threshold !== "number") + return "threshold: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + if (!$util.isString(message.scope)) + return "scope: string expected"; + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { + default: + return "response_code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse.Metric) + return object; + let message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); + if (object.name != null) + message.name = String(object.name); + if (object.status_code != null) + message.status_code = object.status_code | 0; + if (object.value != null) + message.value = Number(object.value); + if (object.threshold != null) + message.threshold = Number(object.threshold); + if (object.error != null) + message.error = String(object.error); + if (object.message != null) + message.message = String(object.message); + if (object.scope != null) + message.scope = String(object.scope); + switch (object.response_code) { + default: + if (typeof object.response_code === "number") { + message.response_code = object.response_code; + break; + } + break; + case "UNDEFINED": + case 0: + message.response_code = 0; + break; + case "OK": + case 1: + message.response_code = 1; + break; + case "THRESHOLD_EXCEEDED": + case 2: + message.response_code = 2; + break; + case "APP_DENIED": + case 3: + message.response_code = 3; + break; + case "UNKNOWN_METRIC": + case 4: + message.response_code = 4; + break; + case "INTERNAL_ERROR": + case 5: + message.response_code = 5; + break; + } + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {tabletmanagerdata.CheckThrottlerResponse.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.status_code = 0; + object.value = 0; + object.threshold = 0; + object.error = ""; + object.message = ""; + object.scope = ""; + object.response_code = options.enums === String ? "UNDEFINED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.status_code != null && message.hasOwnProperty("status_code")) + object.status_code = message.status_code; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = message.scope; + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse.Metric"; + }; + + return Metric; + })(); + + return CheckThrottlerResponse; })(); - query.Row = (function() { + tabletmanagerdata.GetThrottlerStatusRequest = (function() { /** - * Properties of a Row. - * @memberof query - * @interface IRow - * @property {Array.|null} [lengths] Row lengths - * @property {Uint8Array|null} [values] Row values + * Properties of a GetThrottlerStatusRequest. + * @memberof tabletmanagerdata + * @interface IGetThrottlerStatusRequest */ /** - * Constructs a new Row. - * @memberof query - * @classdesc Represents a Row. - * @implements IRow + * Constructs a new GetThrottlerStatusRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a GetThrottlerStatusRequest. + * @implements IGetThrottlerStatusRequest * @constructor - * @param {query.IRow=} [properties] Properties to set + * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set */ - function Row(properties) { - this.lengths = []; + function GetThrottlerStatusRequest(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * Row lengths. - * @member {Array.} lengths - * @memberof query.Row - * @instance - */ - Row.prototype.lengths = $util.emptyArray; - - /** - * Row values. - * @member {Uint8Array} values - * @memberof query.Row - * @instance - */ - Row.prototype.values = $util.newBuffer([]); - - /** - * Creates a new Row instance using the specified properties. + * Creates a new GetThrottlerStatusRequest instance using the specified properties. * @function create - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {query.IRow=} [properties] Properties to set - * @returns {query.Row} Row instance + * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance */ - Row.create = function create(properties) { - return new Row(properties); + GetThrottlerStatusRequest.create = function create(properties) { + return new GetThrottlerStatusRequest(properties); }; /** - * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. * @function encode - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {query.IRow} message Row message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encode = function encode(message, writer) { + GetThrottlerStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.lengths != null && message.lengths.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.lengths.length; ++i) - writer.sint64(message.lengths[i]); - writer.ldelim(); - } - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.values); return writer; }; /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {query.IRow} message Row message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. * @function decode - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Row} Row + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decode = function decode(reader, length) { + GetThrottlerStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusRequest(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.lengths && message.lengths.length)) - message.lengths = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.lengths.push(reader.sint64()); - } else - message.lengths.push(reader.sint64()); - break; - case 2: - message.values = reader.bytes(); - break; default: reader.skipType(tag & 7); break; @@ -58654,302 +58490,576 @@ $root.query = (function() { }; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Row} Row + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Row message. + * Verifies a GetThrottlerStatusRequest message. * @function verify - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Row.verify = function verify(message) { + GetThrottlerStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.lengths != null && message.hasOwnProperty("lengths")) { - if (!Array.isArray(message.lengths)) - return "lengths: array expected"; - for (var i = 0; i < message.lengths.length; ++i) - if (!$util.isInteger(message.lengths[i]) && !(message.lengths[i] && $util.isInteger(message.lengths[i].low) && $util.isInteger(message.lengths[i].high))) - return "lengths: integer|Long[] expected"; - } - if (message.values != null && message.hasOwnProperty("values")) - if (!(message.values && typeof message.values.length === "number" || $util.isString(message.values))) - return "values: buffer expected"; return null; }; /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static * @param {Object.} object Plain object - * @returns {query.Row} Row + * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest */ - Row.fromObject = function fromObject(object) { - if (object instanceof $root.query.Row) + GetThrottlerStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusRequest) return object; - var message = new $root.query.Row(); - if (object.lengths) { - if (!Array.isArray(object.lengths)) - throw TypeError(".query.Row.lengths: array expected"); - message.lengths = []; - for (var i = 0; i < object.lengths.length; ++i) - if ($util.Long) - (message.lengths[i] = $util.Long.fromValue(object.lengths[i])).unsigned = false; - else if (typeof object.lengths[i] === "string") - message.lengths[i] = parseInt(object.lengths[i], 10); - else if (typeof object.lengths[i] === "number") - message.lengths[i] = object.lengths[i]; - else if (typeof object.lengths[i] === "object") - message.lengths[i] = new $util.LongBits(object.lengths[i].low >>> 0, object.lengths[i].high >>> 0).toNumber(); - } - if (object.values != null) - if (typeof object.values === "string") - $util.base64.decode(object.values, message.values = $util.newBuffer($util.base64.length(object.values)), 0); - else if (object.values.length) - message.values = object.values; - return message; + return new $root.tabletmanagerdata.GetThrottlerStatusRequest(); }; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. + * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @static - * @param {query.Row} message Row + * @param {tabletmanagerdata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Row.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.lengths = []; - if (options.defaults) - if (options.bytes === String) - object.values = ""; - else { - object.values = []; - if (options.bytes !== Array) - object.values = $util.newBuffer(object.values); - } - if (message.lengths && message.lengths.length) { - object.lengths = []; - for (var j = 0; j < message.lengths.length; ++j) - if (typeof message.lengths[j] === "number") - object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; - else - object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; - } - if (message.values != null && message.hasOwnProperty("values")) - object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; - return object; + GetThrottlerStatusRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Row to JSON. + * Converts this GetThrottlerStatusRequest to JSON. * @function toJSON - * @memberof query.Row + * @memberof tabletmanagerdata.GetThrottlerStatusRequest * @instance * @returns {Object.} JSON object */ - Row.prototype.toJSON = function toJSON() { + GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Row; - })(); - - query.QueryResult = (function() { - /** - * Properties of a QueryResult. - * @memberof query - * @interface IQueryResult - * @property {Array.|null} [fields] QueryResult fields - * @property {number|Long|null} [rows_affected] QueryResult rows_affected - * @property {number|Long|null} [insert_id] QueryResult insert_id - * @property {Array.|null} [rows] QueryResult rows - * @property {string|null} [info] QueryResult info - * @property {string|null} [session_state_changes] QueryResult session_state_changes + * Gets the default type url for GetThrottlerStatusRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusRequest"; + }; + + return GetThrottlerStatusRequest; + })(); + + tabletmanagerdata.GetThrottlerStatusResponse = (function() { /** - * Constructs a new QueryResult. - * @memberof query - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * Properties of a GetThrottlerStatusResponse. + * @memberof tabletmanagerdata + * @interface IGetThrottlerStatusResponse + * @property {string|null} [tablet_alias] GetThrottlerStatusResponse tablet_alias + * @property {string|null} [keyspace] GetThrottlerStatusResponse keyspace + * @property {string|null} [shard] GetThrottlerStatusResponse shard + * @property {boolean|null} [is_leader] GetThrottlerStatusResponse is_leader + * @property {boolean|null} [is_open] GetThrottlerStatusResponse is_open + * @property {boolean|null} [is_enabled] GetThrottlerStatusResponse is_enabled + * @property {boolean|null} [is_dormant] GetThrottlerStatusResponse is_dormant + * @property {string|null} [lag_metric_query] GetThrottlerStatusResponse lag_metric_query + * @property {string|null} [custom_metric_query] GetThrottlerStatusResponse custom_metric_query + * @property {number|null} [default_threshold] GetThrottlerStatusResponse default_threshold + * @property {string|null} [metric_name_used_as_default] GetThrottlerStatusResponse metric_name_used_as_default + * @property {Object.|null} [aggregated_metrics] GetThrottlerStatusResponse aggregated_metrics + * @property {Object.|null} [metric_thresholds] GetThrottlerStatusResponse metric_thresholds + * @property {Object.|null} [metrics_health] GetThrottlerStatusResponse metrics_health + * @property {Object.|null} [throttled_apps] GetThrottlerStatusResponse throttled_apps + * @property {Object.|null} [app_checked_metrics] GetThrottlerStatusResponse app_checked_metrics + * @property {boolean|null} [recently_checked] GetThrottlerStatusResponse recently_checked + * @property {Object.|null} [recent_apps] GetThrottlerStatusResponse recent_apps + */ + + /** + * Constructs a new GetThrottlerStatusResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a GetThrottlerStatusResponse. + * @implements IGetThrottlerStatusResponse * @constructor - * @param {query.IQueryResult=} [properties] Properties to set + * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set */ - function QueryResult(properties) { - this.fields = []; - this.rows = []; + function GetThrottlerStatusResponse(properties) { + this.aggregated_metrics = {}; + this.metric_thresholds = {}; + this.metrics_health = {}; + this.throttled_apps = {}; + this.app_checked_metrics = {}; + this.recent_apps = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * QueryResult fields. - * @member {Array.} fields - * @memberof query.QueryResult + * GetThrottlerStatusResponse tablet_alias. + * @member {string} tablet_alias + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.fields = $util.emptyArray; + GetThrottlerStatusResponse.prototype.tablet_alias = ""; /** - * QueryResult rows_affected. - * @member {number|Long} rows_affected - * @memberof query.QueryResult + * GetThrottlerStatusResponse keyspace. + * @member {string} keyspace + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetThrottlerStatusResponse.prototype.keyspace = ""; /** - * QueryResult insert_id. - * @member {number|Long} insert_id - * @memberof query.QueryResult + * GetThrottlerStatusResponse shard. + * @member {string} shard + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.insert_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GetThrottlerStatusResponse.prototype.shard = ""; /** - * QueryResult rows. - * @member {Array.} rows - * @memberof query.QueryResult + * GetThrottlerStatusResponse is_leader. + * @member {boolean} is_leader + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.rows = $util.emptyArray; + GetThrottlerStatusResponse.prototype.is_leader = false; /** - * QueryResult info. - * @member {string} info - * @memberof query.QueryResult + * GetThrottlerStatusResponse is_open. + * @member {boolean} is_open + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.info = ""; + GetThrottlerStatusResponse.prototype.is_open = false; /** - * QueryResult session_state_changes. - * @member {string} session_state_changes - * @memberof query.QueryResult + * GetThrottlerStatusResponse is_enabled. + * @member {boolean} is_enabled + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @instance */ - QueryResult.prototype.session_state_changes = ""; + GetThrottlerStatusResponse.prototype.is_enabled = false; /** - * Creates a new QueryResult instance using the specified properties. + * GetThrottlerStatusResponse is_dormant. + * @member {boolean} is_dormant + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.is_dormant = false; + + /** + * GetThrottlerStatusResponse lag_metric_query. + * @member {string} lag_metric_query + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.lag_metric_query = ""; + + /** + * GetThrottlerStatusResponse custom_metric_query. + * @member {string} custom_metric_query + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.custom_metric_query = ""; + + /** + * GetThrottlerStatusResponse default_threshold. + * @member {number} default_threshold + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.default_threshold = 0; + + /** + * GetThrottlerStatusResponse metric_name_used_as_default. + * @member {string} metric_name_used_as_default + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.metric_name_used_as_default = ""; + + /** + * GetThrottlerStatusResponse aggregated_metrics. + * @member {Object.} aggregated_metrics + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.aggregated_metrics = $util.emptyObject; + + /** + * GetThrottlerStatusResponse metric_thresholds. + * @member {Object.} metric_thresholds + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.metric_thresholds = $util.emptyObject; + + /** + * GetThrottlerStatusResponse metrics_health. + * @member {Object.} metrics_health + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.metrics_health = $util.emptyObject; + + /** + * GetThrottlerStatusResponse throttled_apps. + * @member {Object.} throttled_apps + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.throttled_apps = $util.emptyObject; + + /** + * GetThrottlerStatusResponse app_checked_metrics. + * @member {Object.} app_checked_metrics + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.app_checked_metrics = $util.emptyObject; + + /** + * GetThrottlerStatusResponse recently_checked. + * @member {boolean} recently_checked + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.recently_checked = false; + + /** + * GetThrottlerStatusResponse recent_apps. + * @member {Object.} recent_apps + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + */ + GetThrottlerStatusResponse.prototype.recent_apps = $util.emptyObject; + + /** + * Creates a new GetThrottlerStatusResponse instance using the specified properties. * @function create - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {query.IQueryResult=} [properties] Properties to set - * @returns {query.QueryResult} QueryResult instance + * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + GetThrottlerStatusResponse.create = function create(properties) { + return new GetThrottlerStatusResponse(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. * @function encode - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {query.IQueryResult} message QueryResult message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encode = function encode(message, writer) { + GetThrottlerStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rows_affected != null && Object.hasOwnProperty.call(message, "rows_affected")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected); - if (message.insert_id != null && Object.hasOwnProperty.call(message, "insert_id")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.insert_id); - if (message.rows != null && message.rows.length) - for (var i = 0; i < message.rows.length; ++i) - $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.info); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.session_state_changes); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_alias); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.is_leader != null && Object.hasOwnProperty.call(message, "is_leader")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_leader); + if (message.is_open != null && Object.hasOwnProperty.call(message, "is_open")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.is_open); + if (message.is_enabled != null && Object.hasOwnProperty.call(message, "is_enabled")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_enabled); + if (message.is_dormant != null && Object.hasOwnProperty.call(message, "is_dormant")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_dormant); + if (message.lag_metric_query != null && Object.hasOwnProperty.call(message, "lag_metric_query")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.lag_metric_query); + if (message.custom_metric_query != null && Object.hasOwnProperty.call(message, "custom_metric_query")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.custom_metric_query); + if (message.default_threshold != null && Object.hasOwnProperty.call(message, "default_threshold")) + writer.uint32(/* id 10, wireType 1 =*/81).double(message.default_threshold); + if (message.metric_name_used_as_default != null && Object.hasOwnProperty.call(message, "metric_name_used_as_default")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.metric_name_used_as_default); + if (message.aggregated_metrics != null && Object.hasOwnProperty.call(message, "aggregated_metrics")) + for (let keys = Object.keys(message.aggregated_metrics), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.encode(message.aggregated_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) + for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); + if (message.metrics_health != null && Object.hasOwnProperty.call(message, "metrics_health")) + for (let keys = Object.keys(message.metrics_health), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.encode(message.metrics_health[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) + for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) + for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.app_checked_metrics[keys[i]]).ldelim(); + if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.recently_checked); + if (message.recent_apps != null && Object.hasOwnProperty.call(message, "recent_apps")) + for (let keys = Object.keys(message.recent_apps), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.encode(message.recent_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {query.IQueryResult} message QueryResult message or plain object to encode + * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. * @function decode - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.QueryResult} QueryResult + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + GetThrottlerStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - case 2: - message.rows_affected = reader.uint64(); - break; - case 3: - message.insert_id = reader.uint64(); - break; - case 4: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); - break; - case 6: - message.info = reader.string(); - break; - case 7: - message.session_state_changes = reader.string(); - break; + case 1: { + message.tablet_alias = reader.string(); + break; + } + case 2: { + message.keyspace = reader.string(); + break; + } + case 3: { + message.shard = reader.string(); + break; + } + case 4: { + message.is_leader = reader.bool(); + break; + } + case 5: { + message.is_open = reader.bool(); + break; + } + case 6: { + message.is_enabled = reader.bool(); + break; + } + case 7: { + message.is_dormant = reader.bool(); + break; + } + case 8: { + message.lag_metric_query = reader.string(); + break; + } + case 9: { + message.custom_metric_query = reader.string(); + break; + } + case 10: { + message.default_threshold = reader.double(); + break; + } + case 11: { + message.metric_name_used_as_default = reader.string(); + break; + } + case 12: { + if (message.aggregated_metrics === $util.emptyObject) + message.aggregated_metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.aggregated_metrics[key] = value; + break; + } + case 13: { + if (message.metric_thresholds === $util.emptyObject) + message.metric_thresholds = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.double(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metric_thresholds[key] = value; + break; + } + case 14: { + if (message.metrics_health === $util.emptyObject) + message.metrics_health = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metrics_health[key] = value; + break; + } + case 15: { + if (message.throttled_apps === $util.emptyObject) + message.throttled_apps = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.throttled_apps[key] = value; + break; + } + case 16: { + if (message.app_checked_metrics === $util.emptyObject) + message.app_checked_metrics = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.app_checked_metrics[key] = value; + break; + } + case 17: { + message.recently_checked = reader.bool(); + break; + } + case 18: { + if (message.recent_apps === $util.emptyObject) + message.recent_apps = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.recent_apps[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -58959,796 +59069,938 @@ $root.query = (function() { }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.QueryResult} QueryResult + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a GetThrottlerStatusResponse message. * @function verify - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + GetThrottlerStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + if (!$util.isString(message.tablet_alias)) + return "tablet_alias: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.is_leader != null && message.hasOwnProperty("is_leader")) + if (typeof message.is_leader !== "boolean") + return "is_leader: boolean expected"; + if (message.is_open != null && message.hasOwnProperty("is_open")) + if (typeof message.is_open !== "boolean") + return "is_open: boolean expected"; + if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) + if (typeof message.is_enabled !== "boolean") + return "is_enabled: boolean expected"; + if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) + if (typeof message.is_dormant !== "boolean") + return "is_dormant: boolean expected"; + if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) + if (!$util.isString(message.lag_metric_query)) + return "lag_metric_query: string expected"; + if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) + if (!$util.isString(message.custom_metric_query)) + return "custom_metric_query: string expected"; + if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) + if (typeof message.default_threshold !== "number") + return "default_threshold: number expected"; + if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) + if (!$util.isString(message.metric_name_used_as_default)) + return "metric_name_used_as_default: string expected"; + if (message.aggregated_metrics != null && message.hasOwnProperty("aggregated_metrics")) { + if (!$util.isObject(message.aggregated_metrics)) + return "aggregated_metrics: object expected"; + let key = Object.keys(message.aggregated_metrics); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify(message.aggregated_metrics[key[i]]); if (error) - return "fields." + error; + return "aggregated_metrics." + error; + } + } + if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { + if (!$util.isObject(message.metric_thresholds)) + return "metric_thresholds: object expected"; + let key = Object.keys(message.metric_thresholds); + for (let i = 0; i < key.length; ++i) + if (typeof message.metric_thresholds[key[i]] !== "number") + return "metric_thresholds: number{k:string} expected"; + } + if (message.metrics_health != null && message.hasOwnProperty("metrics_health")) { + if (!$util.isObject(message.metrics_health)) + return "metrics_health: object expected"; + let key = Object.keys(message.metrics_health); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify(message.metrics_health[key[i]]); + if (error) + return "metrics_health." + error; } } - if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) - if (!$util.isInteger(message.rows_affected) && !(message.rows_affected && $util.isInteger(message.rows_affected.low) && $util.isInteger(message.rows_affected.high))) - return "rows_affected: integer|Long expected"; - if (message.insert_id != null && message.hasOwnProperty("insert_id")) - if (!$util.isInteger(message.insert_id) && !(message.insert_id && $util.isInteger(message.insert_id.low) && $util.isInteger(message.insert_id.high))) - return "insert_id: integer|Long expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (var i = 0; i < message.rows.length; ++i) { - var error = $root.query.Row.verify(message.rows[i]); + if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { + if (!$util.isObject(message.throttled_apps)) + return "throttled_apps: object expected"; + let key = Object.keys(message.throttled_apps); + for (let i = 0; i < key.length; ++i) { + let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); if (error) - return "rows." + error; + return "throttled_apps." + error; + } + } + if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { + if (!$util.isObject(message.app_checked_metrics)) + return "app_checked_metrics: object expected"; + let key = Object.keys(message.app_checked_metrics); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.app_checked_metrics[key[i]])) + return "app_checked_metrics: string{k:string} expected"; + } + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + if (typeof message.recently_checked !== "boolean") + return "recently_checked: boolean expected"; + if (message.recent_apps != null && message.hasOwnProperty("recent_apps")) { + if (!$util.isObject(message.recent_apps)) + return "recent_apps: object expected"; + let key = Object.keys(message.recent_apps); + for (let i = 0; i < key.length; ++i) { + let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify(message.recent_apps[key[i]]); + if (error) + return "recent_apps." + error; } } - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.QueryResult + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static * @param {Object.} object Plain object - * @returns {query.QueryResult} QueryResult + * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryResult) + GetThrottlerStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse) return object; - var message = new $root.query.QueryResult(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".query.QueryResult.fields: array expected"); - message.fields = []; - for (var i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".query.QueryResult.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); - } + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(); + if (object.tablet_alias != null) + message.tablet_alias = String(object.tablet_alias); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.is_leader != null) + message.is_leader = Boolean(object.is_leader); + if (object.is_open != null) + message.is_open = Boolean(object.is_open); + if (object.is_enabled != null) + message.is_enabled = Boolean(object.is_enabled); + if (object.is_dormant != null) + message.is_dormant = Boolean(object.is_dormant); + if (object.lag_metric_query != null) + message.lag_metric_query = String(object.lag_metric_query); + if (object.custom_metric_query != null) + message.custom_metric_query = String(object.custom_metric_query); + if (object.default_threshold != null) + message.default_threshold = Number(object.default_threshold); + if (object.metric_name_used_as_default != null) + message.metric_name_used_as_default = String(object.metric_name_used_as_default); + if (object.aggregated_metrics) { + if (typeof object.aggregated_metrics !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); + message.aggregated_metrics = {}; + for (let keys = Object.keys(object.aggregated_metrics), i = 0; i < keys.length; ++i) { + if (typeof object.aggregated_metrics[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); + message.aggregated_metrics[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.fromObject(object.aggregated_metrics[keys[i]]); + } + } + if (object.metric_thresholds) { + if (typeof object.metric_thresholds !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metric_thresholds: object expected"); + message.metric_thresholds = {}; + for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) + message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); + } + if (object.metrics_health) { + if (typeof object.metrics_health !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); + message.metrics_health = {}; + for (let keys = Object.keys(object.metrics_health), i = 0; i < keys.length; ++i) { + if (typeof object.metrics_health[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); + message.metrics_health[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.fromObject(object.metrics_health[keys[i]]); + } + } + if (object.throttled_apps) { + if (typeof object.throttled_apps !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); + message.throttled_apps = {}; + for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { + if (typeof object.throttled_apps[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); + message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); + } + } + if (object.app_checked_metrics) { + if (typeof object.app_checked_metrics !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.app_checked_metrics: object expected"); + message.app_checked_metrics = {}; + for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) + message.app_checked_metrics[keys[i]] = String(object.app_checked_metrics[keys[i]]); + } + if (object.recently_checked != null) + message.recently_checked = Boolean(object.recently_checked); + if (object.recent_apps) { + if (typeof object.recent_apps !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); + message.recent_apps = {}; + for (let keys = Object.keys(object.recent_apps), i = 0; i < keys.length; ++i) { + if (typeof object.recent_apps[keys[i]] !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); + message.recent_apps[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.fromObject(object.recent_apps[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetThrottlerStatusResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) { + object.aggregated_metrics = {}; + object.metric_thresholds = {}; + object.metrics_health = {}; + object.throttled_apps = {}; + object.app_checked_metrics = {}; + object.recent_apps = {}; } - if (object.rows_affected != null) - if ($util.Long) - (message.rows_affected = $util.Long.fromValue(object.rows_affected)).unsigned = true; - else if (typeof object.rows_affected === "string") - message.rows_affected = parseInt(object.rows_affected, 10); - else if (typeof object.rows_affected === "number") - message.rows_affected = object.rows_affected; - else if (typeof object.rows_affected === "object") - message.rows_affected = new $util.LongBits(object.rows_affected.low >>> 0, object.rows_affected.high >>> 0).toNumber(true); - if (object.insert_id != null) - if ($util.Long) - (message.insert_id = $util.Long.fromValue(object.insert_id)).unsigned = true; - else if (typeof object.insert_id === "string") - message.insert_id = parseInt(object.insert_id, 10); - else if (typeof object.insert_id === "number") - message.insert_id = object.insert_id; - else if (typeof object.insert_id === "object") - message.insert_id = new $util.LongBits(object.insert_id.low >>> 0, object.insert_id.high >>> 0).toNumber(true); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".query.QueryResult.rows: array expected"); - message.rows = []; - for (var i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".query.QueryResult.rows: object expected"); - message.rows[i] = $root.query.Row.fromObject(object.rows[i]); - } + if (options.defaults) { + object.tablet_alias = ""; + object.keyspace = ""; + object.shard = ""; + object.is_leader = false; + object.is_open = false; + object.is_enabled = false; + object.is_dormant = false; + object.lag_metric_query = ""; + object.custom_metric_query = ""; + object.default_threshold = 0; + object.metric_name_used_as_default = ""; + object.recently_checked = false; } - if (object.info != null) - message.info = String(object.info); - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = message.tablet_alias; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.is_leader != null && message.hasOwnProperty("is_leader")) + object.is_leader = message.is_leader; + if (message.is_open != null && message.hasOwnProperty("is_open")) + object.is_open = message.is_open; + if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) + object.is_enabled = message.is_enabled; + if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) + object.is_dormant = message.is_dormant; + if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) + object.lag_metric_query = message.lag_metric_query; + if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) + object.custom_metric_query = message.custom_metric_query; + if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) + object.default_threshold = options.json && !isFinite(message.default_threshold) ? String(message.default_threshold) : message.default_threshold; + if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) + object.metric_name_used_as_default = message.metric_name_used_as_default; + let keys2; + if (message.aggregated_metrics && (keys2 = Object.keys(message.aggregated_metrics)).length) { + object.aggregated_metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.aggregated_metrics[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.toObject(message.aggregated_metrics[keys2[j]], options); + } + if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { + object.metric_thresholds = {}; + for (let j = 0; j < keys2.length; ++j) + object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; + } + if (message.metrics_health && (keys2 = Object.keys(message.metrics_health)).length) { + object.metrics_health = {}; + for (let j = 0; j < keys2.length; ++j) + object.metrics_health[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.toObject(message.metrics_health[keys2[j]], options); + } + if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { + object.throttled_apps = {}; + for (let j = 0; j < keys2.length; ++j) + object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); + } + if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { + object.app_checked_metrics = {}; + for (let j = 0; j < keys2.length; ++j) + object.app_checked_metrics[keys2[j]] = message.app_checked_metrics[keys2[j]]; + } + if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) + object.recently_checked = message.recently_checked; + if (message.recent_apps && (keys2 = Object.keys(message.recent_apps)).length) { + object.recent_apps = {}; + for (let j = 0; j < keys2.length; ++j) + object.recent_apps[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.toObject(message.recent_apps[keys2[j]], options); + } + return object; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @function toObject - * @memberof query.QueryResult + * Converts this GetThrottlerStatusResponse to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @instance + * @returns {Object.} JSON object + */ + GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetThrottlerStatusResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse * @static - * @param {query.QueryResult} message QueryResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - QueryResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.rows = []; - } - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.rows_affected = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.rows_affected = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.insert_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.insert_id = options.longs === String ? "0" : 0; - object.info = ""; - object.session_state_changes = ""; - } - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); - } - if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) - if (typeof message.rows_affected === "number") - object.rows_affected = options.longs === String ? String(message.rows_affected) : message.rows_affected; - else - object.rows_affected = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected) : options.longs === Number ? new $util.LongBits(message.rows_affected.low >>> 0, message.rows_affected.high >>> 0).toNumber(true) : message.rows_affected; - if (message.insert_id != null && message.hasOwnProperty("insert_id")) - if (typeof message.insert_id === "number") - object.insert_id = options.longs === String ? String(message.insert_id) : message.insert_id; - else - object.insert_id = options.longs === String ? $util.Long.prototype.toString.call(message.insert_id) : options.longs === Number ? new $util.LongBits(message.insert_id.low >>> 0, message.insert_id.high >>> 0).toNumber(true) : message.insert_id; - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; - return object; - }; - - /** - * Converts this QueryResult to JSON. - * @function toJSON - * @memberof query.QueryResult - * @instance - * @returns {Object.} JSON object - */ - QueryResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse"; }; - return QueryResult; - })(); - - query.QueryWarning = (function() { + GetThrottlerStatusResponse.MetricResult = (function() { - /** - * Properties of a QueryWarning. - * @memberof query - * @interface IQueryWarning - * @property {number|null} [code] QueryWarning code - * @property {string|null} [message] QueryWarning message - */ + /** + * Properties of a MetricResult. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IMetricResult + * @property {number|null} [value] MetricResult value + * @property {string|null} [error] MetricResult error + */ - /** - * Constructs a new QueryWarning. - * @memberof query - * @classdesc Represents a QueryWarning. - * @implements IQueryWarning - * @constructor - * @param {query.IQueryWarning=} [properties] Properties to set - */ - function QueryWarning(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new MetricResult. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a MetricResult. + * @implements IMetricResult + * @constructor + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set + */ + function MetricResult(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * QueryWarning code. - * @member {number} code - * @memberof query.QueryWarning - * @instance - */ - QueryWarning.prototype.code = 0; + /** + * MetricResult value. + * @member {number} value + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + */ + MetricResult.prototype.value = 0; - /** - * QueryWarning message. - * @member {string} message - * @memberof query.QueryWarning - * @instance - */ - QueryWarning.prototype.message = ""; + /** + * MetricResult error. + * @member {string} error + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + */ + MetricResult.prototype.error = ""; - /** - * Creates a new QueryWarning instance using the specified properties. - * @function create - * @memberof query.QueryWarning - * @static - * @param {query.IQueryWarning=} [properties] Properties to set - * @returns {query.QueryWarning} QueryWarning instance - */ - QueryWarning.create = function create(properties) { - return new QueryWarning(properties); - }; + /** + * Creates a new MetricResult instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult instance + */ + MetricResult.create = function create(properties) { + return new MetricResult(properties); + }; - /** - * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @function encode - * @memberof query.QueryWarning - * @static - * @param {query.IQueryWarning} message QueryWarning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryWarning.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; + /** + * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); + return writer; + }; - /** - * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @function encodeDelimited - * @memberof query.QueryWarning - * @static - * @param {query.IQueryWarning} message QueryWarning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryWarning message from the specified reader or buffer. - * @function decode - * @memberof query.QueryWarning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.QueryWarning} QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryWarning.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.uint32(); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a MetricResult message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.double(); + break; + } + case 2: { + message.error = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryWarning message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.QueryWarning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.QueryWarning} QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryWarning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MetricResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryWarning message. - * @function verify - * @memberof query.QueryWarning - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryWarning.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; + /** + * Verifies a MetricResult message. + * @function verify + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + return null; + }; - /** - * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.QueryWarning - * @static - * @param {Object.} object Plain object - * @returns {query.QueryWarning} QueryWarning - */ - QueryWarning.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryWarning) + /** + * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult + */ + MetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult) + return object; + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); + if (object.value != null) + message.value = Number(object.value); + if (object.error != null) + message.error = String(object.error); + return message; + }; + + /** + * Creates a plain object from a MetricResult message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} message MetricResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.value = 0; + object.error = ""; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; return object; - var message = new $root.query.QueryWarning(); - if (object.code != null) - message.code = object.code >>> 0; - if (object.message != null) - message.message = String(object.message); - return message; - }; + }; - /** - * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. - * @function toObject - * @memberof query.QueryWarning - * @static - * @param {query.QueryWarning} message QueryWarning - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryWarning.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.code = 0; - object.message = ""; - } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; + /** + * Converts this MetricResult to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @instance + * @returns {Object.} JSON object + */ + MetricResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryWarning to JSON. - * @function toJSON - * @memberof query.QueryWarning - * @instance - * @returns {Object.} JSON object - */ - QueryWarning.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MetricResult + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricResult"; + }; - return QueryWarning; - })(); + return MetricResult; + })(); - query.StreamEvent = (function() { + GetThrottlerStatusResponse.MetricHealth = (function() { - /** - * Properties of a StreamEvent. - * @memberof query - * @interface IStreamEvent - * @property {Array.|null} [statements] StreamEvent statements - * @property {query.IEventToken|null} [event_token] StreamEvent event_token - */ + /** + * Properties of a MetricHealth. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IMetricHealth + * @property {vttime.ITime|null} [last_healthy_at] MetricHealth last_healthy_at + * @property {number|Long|null} [seconds_since_last_healthy] MetricHealth seconds_since_last_healthy + */ - /** - * Constructs a new StreamEvent. - * @memberof query - * @classdesc Represents a StreamEvent. - * @implements IStreamEvent - * @constructor - * @param {query.IStreamEvent=} [properties] Properties to set - */ - function StreamEvent(properties) { - this.statements = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new MetricHealth. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a MetricHealth. + * @implements IMetricHealth + * @constructor + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set + */ + function MetricHealth(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * StreamEvent statements. - * @member {Array.} statements - * @memberof query.StreamEvent - * @instance - */ - StreamEvent.prototype.statements = $util.emptyArray; + /** + * MetricHealth last_healthy_at. + * @member {vttime.ITime|null|undefined} last_healthy_at + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + */ + MetricHealth.prototype.last_healthy_at = null; - /** - * StreamEvent event_token. - * @member {query.IEventToken|null|undefined} event_token - * @memberof query.StreamEvent - * @instance - */ - StreamEvent.prototype.event_token = null; + /** + * MetricHealth seconds_since_last_healthy. + * @member {number|Long} seconds_since_last_healthy + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + */ + MetricHealth.prototype.seconds_since_last_healthy = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Creates a new StreamEvent instance using the specified properties. - * @function create - * @memberof query.StreamEvent - * @static - * @param {query.IStreamEvent=} [properties] Properties to set - * @returns {query.StreamEvent} StreamEvent instance - */ - StreamEvent.create = function create(properties) { - return new StreamEvent(properties); - }; + /** + * Creates a new MetricHealth instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth instance + */ + MetricHealth.create = function create(properties) { + return new MetricHealth(properties); + }; - /** - * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @function encode - * @memberof query.StreamEvent - * @static - * @param {query.IStreamEvent} message StreamEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StreamEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.statements != null && message.statements.length) - for (var i = 0; i < message.statements.length; ++i) - $root.query.StreamEvent.Statement.encode(message.statements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.event_token != null && Object.hasOwnProperty.call(message, "event_token")) - $root.query.EventToken.encode(message.event_token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricHealth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.last_healthy_at != null && Object.hasOwnProperty.call(message, "last_healthy_at")) + $root.vttime.Time.encode(message.last_healthy_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.seconds_since_last_healthy != null && Object.hasOwnProperty.call(message, "seconds_since_last_healthy")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.seconds_since_last_healthy); + return writer; + }; - /** - * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @function encodeDelimited - * @memberof query.StreamEvent - * @static - * @param {query.IStreamEvent} message StreamEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricHealth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a StreamEvent message from the specified reader or buffer. - * @function decode - * @memberof query.StreamEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.StreamEvent} StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StreamEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push($root.query.StreamEvent.Statement.decode(reader, reader.uint32())); - break; - case 2: - message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a MetricHealth message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricHealth.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.last_healthy_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 2: { + message.seconds_since_last_healthy = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a StreamEvent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.StreamEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamEvent} StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StreamEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MetricHealth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricHealth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a StreamEvent message. - * @function verify - * @memberof query.StreamEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StreamEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.statements != null && message.hasOwnProperty("statements")) { - if (!Array.isArray(message.statements)) - return "statements: array expected"; - for (var i = 0; i < message.statements.length; ++i) { - var error = $root.query.StreamEvent.Statement.verify(message.statements[i]); + /** + * Verifies a MetricHealth message. + * @function verify + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricHealth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) { + let error = $root.vttime.Time.verify(message.last_healthy_at); if (error) - return "statements." + error; + return "last_healthy_at." + error; } - } - if (message.event_token != null && message.hasOwnProperty("event_token")) { - var error = $root.query.EventToken.verify(message.event_token); - if (error) - return "event_token." + error; - } - return null; - }; + if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) + if (!$util.isInteger(message.seconds_since_last_healthy) && !(message.seconds_since_last_healthy && $util.isInteger(message.seconds_since_last_healthy.low) && $util.isInteger(message.seconds_since_last_healthy.high))) + return "seconds_since_last_healthy: integer|Long expected"; + return null; + }; - /** - * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.StreamEvent - * @static - * @param {Object.} object Plain object - * @returns {query.StreamEvent} StreamEvent - */ - StreamEvent.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamEvent) - return object; - var message = new $root.query.StreamEvent(); - if (object.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".query.StreamEvent.statements: array expected"); - message.statements = []; - for (var i = 0; i < object.statements.length; ++i) { - if (typeof object.statements[i] !== "object") - throw TypeError(".query.StreamEvent.statements: object expected"); - message.statements[i] = $root.query.StreamEvent.Statement.fromObject(object.statements[i]); + /** + * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth + */ + MetricHealth.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth) + return object; + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); + if (object.last_healthy_at != null) { + if (typeof object.last_healthy_at !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.last_healthy_at: object expected"); + message.last_healthy_at = $root.vttime.Time.fromObject(object.last_healthy_at); } - } - if (object.event_token != null) { - if (typeof object.event_token !== "object") - throw TypeError(".query.StreamEvent.event_token: object expected"); - message.event_token = $root.query.EventToken.fromObject(object.event_token); - } - return message; - }; + if (object.seconds_since_last_healthy != null) + if ($util.Long) + (message.seconds_since_last_healthy = $util.Long.fromValue(object.seconds_since_last_healthy)).unsigned = false; + else if (typeof object.seconds_since_last_healthy === "string") + message.seconds_since_last_healthy = parseInt(object.seconds_since_last_healthy, 10); + else if (typeof object.seconds_since_last_healthy === "number") + message.seconds_since_last_healthy = object.seconds_since_last_healthy; + else if (typeof object.seconds_since_last_healthy === "object") + message.seconds_since_last_healthy = new $util.LongBits(object.seconds_since_last_healthy.low >>> 0, object.seconds_since_last_healthy.high >>> 0).toNumber(); + return message; + }; - /** - * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. - * @function toObject - * @memberof query.StreamEvent - * @static - * @param {query.StreamEvent} message StreamEvent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StreamEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) - object.event_token = null; - if (message.statements && message.statements.length) { - object.statements = []; - for (var j = 0; j < message.statements.length; ++j) - object.statements[j] = $root.query.StreamEvent.Statement.toObject(message.statements[j], options); - } - if (message.event_token != null && message.hasOwnProperty("event_token")) - object.event_token = $root.query.EventToken.toObject(message.event_token, options); - return object; - }; + /** + * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} message MetricHealth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricHealth.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.last_healthy_at = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds_since_last_healthy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds_since_last_healthy = options.longs === String ? "0" : 0; + } + if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) + object.last_healthy_at = $root.vttime.Time.toObject(message.last_healthy_at, options); + if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) + if (typeof message.seconds_since_last_healthy === "number") + object.seconds_since_last_healthy = options.longs === String ? String(message.seconds_since_last_healthy) : message.seconds_since_last_healthy; + else + object.seconds_since_last_healthy = options.longs === String ? $util.Long.prototype.toString.call(message.seconds_since_last_healthy) : options.longs === Number ? new $util.LongBits(message.seconds_since_last_healthy.low >>> 0, message.seconds_since_last_healthy.high >>> 0).toNumber() : message.seconds_since_last_healthy; + return object; + }; - /** - * Converts this StreamEvent to JSON. - * @function toJSON - * @memberof query.StreamEvent - * @instance - * @returns {Object.} JSON object - */ - StreamEvent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this MetricHealth to JSON. + * @function toJSON + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @instance + * @returns {Object.} JSON object + */ + MetricHealth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - StreamEvent.Statement = (function() { + /** + * Gets the default type url for MetricHealth + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth"; + }; + + return MetricHealth; + })(); + + GetThrottlerStatusResponse.RecentApp = (function() { /** - * Properties of a Statement. - * @memberof query.StreamEvent - * @interface IStatement - * @property {query.StreamEvent.Statement.Category|null} [category] Statement category - * @property {string|null} [table_name] Statement table_name - * @property {Array.|null} [primary_key_fields] Statement primary_key_fields - * @property {Array.|null} [primary_key_values] Statement primary_key_values - * @property {Uint8Array|null} [sql] Statement sql + * Properties of a RecentApp. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @interface IRecentApp + * @property {vttime.ITime|null} [checked_at] RecentApp checked_at + * @property {number|null} [status_code] RecentApp status_code + * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] RecentApp response_code */ /** - * Constructs a new Statement. - * @memberof query.StreamEvent - * @classdesc Represents a Statement. - * @implements IStatement + * Constructs a new RecentApp. + * @memberof tabletmanagerdata.GetThrottlerStatusResponse + * @classdesc Represents a RecentApp. + * @implements IRecentApp * @constructor - * @param {query.StreamEvent.IStatement=} [properties] Properties to set + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set */ - function Statement(properties) { - this.primary_key_fields = []; - this.primary_key_values = []; + function RecentApp(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * Statement category. - * @member {query.StreamEvent.Statement.Category} category - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.category = 0; - - /** - * Statement table_name. - * @member {string} table_name - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.table_name = ""; - - /** - * Statement primary_key_fields. - * @member {Array.} primary_key_fields - * @memberof query.StreamEvent.Statement + * RecentApp checked_at. + * @member {vttime.ITime|null|undefined} checked_at + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @instance */ - Statement.prototype.primary_key_fields = $util.emptyArray; + RecentApp.prototype.checked_at = null; /** - * Statement primary_key_values. - * @member {Array.} primary_key_values - * @memberof query.StreamEvent.Statement + * RecentApp status_code. + * @member {number} status_code + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @instance */ - Statement.prototype.primary_key_values = $util.emptyArray; + RecentApp.prototype.status_code = 0; /** - * Statement sql. - * @member {Uint8Array} sql - * @memberof query.StreamEvent.Statement + * RecentApp response_code. + * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @instance */ - Statement.prototype.sql = $util.newBuffer([]); + RecentApp.prototype.response_code = 0; /** - * Creates a new Statement instance using the specified properties. + * Creates a new RecentApp instance using the specified properties. * @function create - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static - * @param {query.StreamEvent.IStatement=} [properties] Properties to set - * @returns {query.StreamEvent.Statement} Statement instance + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp instance */ - Statement.create = function create(properties) { - return new Statement(properties); + RecentApp.create = function create(properties) { + return new RecentApp(properties); }; /** - * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. * @function encode - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static - * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Statement.encode = function encode(message, writer) { + RecentApp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.category != null && Object.hasOwnProperty.call(message, "category")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); - if (message.primary_key_fields != null && message.primary_key_fields.length) - for (var i = 0; i < message.primary_key_fields.length; ++i) - $root.query.Field.encode(message.primary_key_fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.primary_key_values != null && message.primary_key_values.length) - for (var i = 0; i < message.primary_key_values.length; ++i) - $root.query.Row.encode(message.primary_key_values[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.sql); + if (message.checked_at != null && Object.hasOwnProperty.call(message, "checked_at")) + $root.vttime.Time.encode(message.checked_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code); + if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.response_code); return writer; }; /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static - * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Statement.encodeDelimited = function encodeDelimited(message, writer) { + RecentApp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Statement message from the specified reader or buffer. + * Decodes a RecentApp message from the specified reader or buffer. * @function decode - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamEvent.Statement} Statement + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Statement.decode = function decode(reader, length) { + RecentApp.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.category = reader.int32(); - break; - case 2: - message.table_name = reader.string(); - break; - case 3: - if (!(message.primary_key_fields && message.primary_key_fields.length)) - message.primary_key_fields = []; - message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.primary_key_values && message.primary_key_values.length)) - message.primary_key_values = []; - message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); - break; - case 5: - message.sql = reader.bytes(); - break; + case 1: { + message.checked_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + } + case 2: { + message.status_code = reader.int32(); + break; + } + case 3: { + message.response_code = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -59758,383 +60010,547 @@ $root.query = (function() { }; /** - * Decodes a Statement message from the specified reader or buffer, length delimited. + * Decodes a RecentApp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamEvent.Statement} Statement + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Statement.decodeDelimited = function decodeDelimited(reader) { + RecentApp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Statement message. + * Verifies a RecentApp message. * @function verify - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Statement.verify = function verify(message) { + RecentApp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { + if (message.checked_at != null && message.hasOwnProperty("checked_at")) { + let error = $root.vttime.Time.verify(message.checked_at); + if (error) + return "checked_at." + error; + } + if (message.status_code != null && message.hasOwnProperty("status_code")) + if (!$util.isInteger(message.status_code)) + return "status_code: integer expected"; + if (message.response_code != null && message.hasOwnProperty("response_code")) + switch (message.response_code) { default: - return "category: enum value expected"; + return "response_code: enum value expected"; case 0: case 1: case 2: + case 3: + case 4: + case 5: break; } - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.primary_key_fields != null && message.hasOwnProperty("primary_key_fields")) { - if (!Array.isArray(message.primary_key_fields)) - return "primary_key_fields: array expected"; - for (var i = 0; i < message.primary_key_fields.length; ++i) { - var error = $root.query.Field.verify(message.primary_key_fields[i]); - if (error) - return "primary_key_fields." + error; - } - } - if (message.primary_key_values != null && message.hasOwnProperty("primary_key_values")) { - if (!Array.isArray(message.primary_key_values)) - return "primary_key_values: array expected"; - for (var i = 0; i < message.primary_key_values.length; ++i) { - var error = $root.query.Row.verify(message.primary_key_values[i]); - if (error) - return "primary_key_values." + error; - } - } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) - return "sql: buffer expected"; return null; }; /** - * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static * @param {Object.} object Plain object - * @returns {query.StreamEvent.Statement} Statement + * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp */ - Statement.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamEvent.Statement) + RecentApp.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp) return object; - var message = new $root.query.StreamEvent.Statement(); - switch (object.category) { - case "Error": + let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); + if (object.checked_at != null) { + if (typeof object.checked_at !== "object") + throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.checked_at: object expected"); + message.checked_at = $root.vttime.Time.fromObject(object.checked_at); + } + if (object.status_code != null) + message.status_code = object.status_code | 0; + switch (object.response_code) { + default: + if (typeof object.response_code === "number") { + message.response_code = object.response_code; + break; + } + break; + case "UNDEFINED": case 0: - message.category = 0; + message.response_code = 0; break; - case "DML": + case "OK": case 1: - message.category = 1; + message.response_code = 1; break; - case "DDL": + case "THRESHOLD_EXCEEDED": case 2: - message.category = 2; + message.response_code = 2; + break; + case "APP_DENIED": + case 3: + message.response_code = 3; + break; + case "UNKNOWN_METRIC": + case 4: + message.response_code = 4; + break; + case "INTERNAL_ERROR": + case 5: + message.response_code = 5; break; } - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.primary_key_fields) { - if (!Array.isArray(object.primary_key_fields)) - throw TypeError(".query.StreamEvent.Statement.primary_key_fields: array expected"); - message.primary_key_fields = []; - for (var i = 0; i < object.primary_key_fields.length; ++i) { - if (typeof object.primary_key_fields[i] !== "object") - throw TypeError(".query.StreamEvent.Statement.primary_key_fields: object expected"); - message.primary_key_fields[i] = $root.query.Field.fromObject(object.primary_key_fields[i]); - } - } - if (object.primary_key_values) { - if (!Array.isArray(object.primary_key_values)) - throw TypeError(".query.StreamEvent.Statement.primary_key_values: array expected"); - message.primary_key_values = []; - for (var i = 0; i < object.primary_key_values.length; ++i) { - if (typeof object.primary_key_values[i] !== "object") - throw TypeError(".query.StreamEvent.Statement.primary_key_values: object expected"); - message.primary_key_values[i] = $root.query.Row.fromObject(object.primary_key_values[i]); - } - } - if (object.sql != null) - if (typeof object.sql === "string") - $util.base64.decode(object.sql, message.sql = $util.newBuffer($util.base64.length(object.sql)), 0); - else if (object.sql.length) - message.sql = object.sql; return message; }; /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. + * Creates a plain object from a RecentApp message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @static - * @param {query.StreamEvent.Statement} message Statement + * @param {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} message RecentApp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Statement.toObject = function toObject(message, options) { + RecentApp.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.primary_key_fields = []; - object.primary_key_values = []; - } + let object = {}; if (options.defaults) { - object.category = options.enums === String ? "Error" : 0; - object.table_name = ""; - if (options.bytes === String) - object.sql = ""; - else { - object.sql = []; - if (options.bytes !== Array) - object.sql = $util.newBuffer(object.sql); - } - } - if (message.category != null && message.hasOwnProperty("category")) - object.category = options.enums === String ? $root.query.StreamEvent.Statement.Category[message.category] : message.category; - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.primary_key_fields && message.primary_key_fields.length) { - object.primary_key_fields = []; - for (var j = 0; j < message.primary_key_fields.length; ++j) - object.primary_key_fields[j] = $root.query.Field.toObject(message.primary_key_fields[j], options); + object.checked_at = null; + object.status_code = 0; + object.response_code = options.enums === String ? "UNDEFINED" : 0; } - if (message.primary_key_values && message.primary_key_values.length) { - object.primary_key_values = []; - for (var j = 0; j < message.primary_key_values.length; ++j) - object.primary_key_values[j] = $root.query.Row.toObject(message.primary_key_values[j], options); - } - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; + if (message.checked_at != null && message.hasOwnProperty("checked_at")) + object.checked_at = $root.vttime.Time.toObject(message.checked_at, options); + if (message.status_code != null && message.hasOwnProperty("status_code")) + object.status_code = message.status_code; + if (message.response_code != null && message.hasOwnProperty("response_code")) + object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; return object; }; /** - * Converts this Statement to JSON. + * Converts this RecentApp to JSON. * @function toJSON - * @memberof query.StreamEvent.Statement + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp * @instance * @returns {Object.} JSON object */ - Statement.prototype.toJSON = function toJSON() { + RecentApp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Category enum. - * @name query.StreamEvent.Statement.Category - * @enum {number} - * @property {number} Error=0 Error value - * @property {number} DML=1 DML value - * @property {number} DDL=2 DDL value + * Gets the default type url for RecentApp + * @function getTypeUrl + * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - Statement.Category = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Error"] = 0; - values[valuesById[1] = "DML"] = 1; - values[valuesById[2] = "DDL"] = 2; - return values; - })(); + RecentApp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.RecentApp"; + }; - return Statement; + return RecentApp; })(); - return StreamEvent; + return GetThrottlerStatusResponse; })(); - query.ExecuteRequest = (function() { + tabletmanagerdata.ChangeTagsRequest = (function() { /** - * Properties of an ExecuteRequest. - * @memberof query - * @interface IExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ExecuteRequest target - * @property {query.IBoundQuery|null} [query] ExecuteRequest query - * @property {number|Long|null} [transaction_id] ExecuteRequest transaction_id - * @property {query.IExecuteOptions|null} [options] ExecuteRequest options - * @property {number|Long|null} [reserved_id] ExecuteRequest reserved_id + * Properties of a ChangeTagsRequest. + * @memberof tabletmanagerdata + * @interface IChangeTagsRequest + * @property {Object.|null} [tags] ChangeTagsRequest tags + * @property {boolean|null} [replace] ChangeTagsRequest replace */ /** - * Constructs a new ExecuteRequest. - * @memberof query - * @classdesc Represents an ExecuteRequest. - * @implements IExecuteRequest + * Constructs a new ChangeTagsRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsRequest. + * @implements IChangeTagsRequest * @constructor - * @param {query.IExecuteRequest=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set */ - function ExecuteRequest(properties) { + function ChangeTagsRequest(properties) { + this.tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * ExecuteRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ExecuteRequest + * ChangeTagsRequest tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance */ - ExecuteRequest.prototype.effective_caller_id = null; + ChangeTagsRequest.prototype.tags = $util.emptyObject; /** - * ExecuteRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ExecuteRequest + * ChangeTagsRequest replace. + * @member {boolean} replace + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance */ - ExecuteRequest.prototype.immediate_caller_id = null; + ChangeTagsRequest.prototype.replace = false; /** - * ExecuteRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.ExecuteRequest - * @instance + * Creates a new ChangeTagsRequest instance using the specified properties. + * @function create + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest instance */ - ExecuteRequest.prototype.target = null; + ChangeTagsRequest.create = function create(properties) { + return new ChangeTagsRequest(properties); + }; /** - * ExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ExecuteRequest - * @instance + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @function encode + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.prototype.query = null; + ChangeTagsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replace); + return writer; + }; /** - * ExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ExecuteRequest - * @instance + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ChangeTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ExecuteRequest - * @instance + * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * @function decode + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteRequest.prototype.options = null; - - /** - * ExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ExecuteRequest + ChangeTagsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } + case 2: { + message.replace = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChangeTagsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChangeTagsRequest message. + * @function verify + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChangeTagsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + if (message.replace != null && message.hasOwnProperty("replace")) + if (typeof message.replace !== "boolean") + return "replace: boolean expected"; + return null; + }; + + /** + * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {Object.} object Plain object + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + */ + ChangeTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) + return object; + let message = new $root.tabletmanagerdata.ChangeTagsRequest(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); + } + if (object.replace != null) + message.replace = Boolean(object.replace); + return message; + }; + + /** + * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {tabletmanagerdata.ChangeTagsRequest} message ChangeTagsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChangeTagsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; + if (options.defaults) + object.replace = false; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; + return object; + }; + + /** + * Converts this ChangeTagsRequest to JSON. + * @function toJSON + * @memberof tabletmanagerdata.ChangeTagsRequest + * @instance + * @returns {Object.} JSON object + */ + ChangeTagsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ChangeTagsRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; + }; + + return ChangeTagsRequest; + })(); + + tabletmanagerdata.ChangeTagsResponse = (function() { + + /** + * Properties of a ChangeTagsResponse. + * @memberof tabletmanagerdata + * @interface IChangeTagsResponse + * @property {Object.|null} [tags] ChangeTagsResponse tags + */ + + /** + * Constructs a new ChangeTagsResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsResponse. + * @implements IChangeTagsResponse + * @constructor + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + */ + function ChangeTagsResponse(properties) { + this.tags = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ChangeTagsResponse tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance */ - ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ChangeTagsResponse.prototype.tags = $util.emptyObject; /** - * Creates a new ExecuteRequest instance using the specified properties. + * Creates a new ChangeTagsResponse instance using the specified properties. * @function create - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IExecuteRequest=} [properties] Properties to set - * @returns {query.ExecuteRequest} ExecuteRequest instance + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse instance */ - ExecuteRequest.create = function create(properties) { - return new ExecuteRequest(properties); + ChangeTagsResponse.create = function create(properties) { + return new ChangeTagsResponse(properties); }; /** - * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encode - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.encode = function encode(message, writer) { + ChangeTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteRequest message from the specified reader or buffer. + * Decodes a ChangeTagsResponse message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteRequest.decode = function decode(reader, length) { + ChangeTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.transaction_id = reader.int64(); - break; - case 6: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 7: - message.reserved_id = reader.int64(); - break; + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -60144,209 +60560,152 @@ $root.query = (function() { }; /** - * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ChangeTagsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteRequest message. + * Verifies a ChangeTagsResponse message. * @function verify - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteRequest.verify = function verify(message) { + ChangeTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; return null; }; /** - * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} object Plain object - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse */ - ExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteRequest) + ChangeTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) return object; - var message = new $root.query.ExecuteRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + let message = new $root.tabletmanagerdata.ChangeTagsResponse(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".tabletmanagerdata.ChangeTagsResponse.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.ExecuteRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.ExecuteRequest} message ExecuteRequest + * @param {tabletmanagerdata.ChangeTagsResponse} message ChangeTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteRequest.toObject = function toObject(message, options) { + ChangeTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this ExecuteRequest to JSON. + * Converts this ChangeTagsResponse to JSON. * @function toJSON - * @memberof query.ExecuteRequest + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance * @returns {Object.} JSON object */ - ExecuteRequest.prototype.toJSON = function toJSON() { + ChangeTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteRequest; + /** + * Gets the default type url for ChangeTagsResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.ChangeTagsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; + }; + + return ChangeTagsResponse; })(); - query.ExecuteResponse = (function() { +>>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) + return tabletmanagerdata; +})(); + +$root.query = (function() { + + /** + * Namespace query. + * @exports query + * @namespace + */ + var query = {}; + + query.Target = (function() { /** - * Properties of an ExecuteResponse. + * Properties of a Target. * @memberof query - * @interface IExecuteResponse - * @property {query.IQueryResult|null} [result] ExecuteResponse result + * @interface ITarget + * @property {string|null} [keyspace] Target keyspace + * @property {string|null} [shard] Target shard + * @property {topodata.TabletType|null} [tablet_type] Target tablet_type + * @property {string|null} [cell] Target cell */ /** - * Constructs a new ExecuteResponse. + * Constructs a new Target. * @memberof query - * @classdesc Represents an ExecuteResponse. - * @implements IExecuteResponse + * @classdesc Represents a Target. + * @implements ITarget * @constructor - * @param {query.IExecuteResponse=} [properties] Properties to set + * @param {query.ITarget=} [properties] Properties to set */ - function ExecuteResponse(properties) { + function Target(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60354,75 +60713,114 @@ $root.query = (function() { } /** - * ExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ExecuteResponse + * Target keyspace. + * @member {string} keyspace + * @memberof query.Target * @instance */ - ExecuteResponse.prototype.result = null; + Target.prototype.keyspace = ""; /** - * Creates a new ExecuteResponse instance using the specified properties. + * Target shard. + * @member {string} shard + * @memberof query.Target + * @instance + */ + Target.prototype.shard = ""; + + /** + * Target tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof query.Target + * @instance + */ + Target.prototype.tablet_type = 0; + + /** + * Target cell. + * @member {string} cell + * @memberof query.Target + * @instance + */ + Target.prototype.cell = ""; + + /** + * Creates a new Target instance using the specified properties. * @function create - * @memberof query.ExecuteResponse + * @memberof query.Target * @static - * @param {query.IExecuteResponse=} [properties] Properties to set - * @returns {query.ExecuteResponse} ExecuteResponse instance + * @param {query.ITarget=} [properties] Properties to set + * @returns {query.Target} Target instance */ - ExecuteResponse.create = function create(properties) { - return new ExecuteResponse(properties); + Target.create = function create(properties) { + return new Target(properties); }; /** - * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. * @function encode - * @memberof query.ExecuteResponse + * @memberof query.Target * @static - * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteResponse.encode = function encode(message, writer) { + Target.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); return writer; }; /** - * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteResponse + * @memberof query.Target * @static - * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + Target.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteResponse message from the specified reader or buffer. + * Decodes a Target message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteResponse + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteResponse} ExecuteResponse + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteResponse.decode = function decode(reader, length) { + Target.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet_type = reader.int32(); + break; + case 4: + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -60433,113 +60831,192 @@ $root.query = (function() { }; /** - * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a Target message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ExecuteResponse + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteResponse} ExecuteResponse + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + Target.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteResponse message. + * Verifies a Target message. * @function verify - * @memberof query.ExecuteResponse + * @memberof query.Target * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteResponse.verify = function verify(message) { + Target.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; - - /** - * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.ExecuteResponse - * @static - * @param {Object.} object Plain object - * @returns {query.ExecuteResponse} ExecuteResponse - */ - ExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteResponse) - return object; - var message = new $root.query.ExecuteResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + switch (message.tablet_type) { + default: + return "tablet_type: enum value expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + return null; }; /** - * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. + * Creates a Target message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.Target + * @static + * @param {Object.} object Plain object + * @returns {query.Target} Target + */ + Target.fromObject = function fromObject(object) { + if (object instanceof $root.query.Target) + return object; + var message = new $root.query.Target(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + switch (object.tablet_type) { + case "UNKNOWN": + case 0: + message.tablet_type = 0; + break; + case "PRIMARY": + case 1: + message.tablet_type = 1; + break; + case "MASTER": + case 1: + message.tablet_type = 1; + break; + case "REPLICA": + case 2: + message.tablet_type = 2; + break; + case "RDONLY": + case 3: + message.tablet_type = 3; + break; + case "BATCH": + case 3: + message.tablet_type = 3; + break; + case "SPARE": + case 4: + message.tablet_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_type = 5; + break; + case "BACKUP": + case 6: + message.tablet_type = 6; + break; + case "RESTORE": + case 7: + message.tablet_type = 7; + break; + case "DRAINED": + case 8: + message.tablet_type = 8; + break; + } + if (object.cell != null) + message.cell = String(object.cell); + return message; + }; + + /** + * Creates a plain object from a Target message. Also converts values to other types if specified. * @function toObject - * @memberof query.ExecuteResponse + * @memberof query.Target * @static - * @param {query.ExecuteResponse} message ExecuteResponse + * @param {query.Target} message Target * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteResponse.toObject = function toObject(message, options) { + Target.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.cell = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this ExecuteResponse to JSON. + * Converts this Target to JSON. * @function toJSON - * @memberof query.ExecuteResponse + * @memberof query.Target * @instance * @returns {Object.} JSON object */ - ExecuteResponse.prototype.toJSON = function toJSON() { + Target.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteResponse; + return Target; })(); - query.ResultWithError = (function() { + query.VTGateCallerID = (function() { /** - * Properties of a ResultWithError. + * Properties of a VTGateCallerID. * @memberof query - * @interface IResultWithError - * @property {vtrpc.IRPCError|null} [error] ResultWithError error - * @property {query.IQueryResult|null} [result] ResultWithError result + * @interface IVTGateCallerID + * @property {string|null} [username] VTGateCallerID username + * @property {Array.|null} [groups] VTGateCallerID groups */ /** - * Constructs a new ResultWithError. + * Constructs a new VTGateCallerID. * @memberof query - * @classdesc Represents a ResultWithError. - * @implements IResultWithError + * @classdesc Represents a VTGateCallerID. + * @implements IVTGateCallerID * @constructor - * @param {query.IResultWithError=} [properties] Properties to set + * @param {query.IVTGateCallerID=} [properties] Properties to set */ - function ResultWithError(properties) { + function VTGateCallerID(properties) { + this.groups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60547,88 +61024,91 @@ $root.query = (function() { } /** - * ResultWithError error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ResultWithError + * VTGateCallerID username. + * @member {string} username + * @memberof query.VTGateCallerID * @instance */ - ResultWithError.prototype.error = null; + VTGateCallerID.prototype.username = ""; /** - * ResultWithError result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ResultWithError + * VTGateCallerID groups. + * @member {Array.} groups + * @memberof query.VTGateCallerID * @instance */ - ResultWithError.prototype.result = null; + VTGateCallerID.prototype.groups = $util.emptyArray; /** - * Creates a new ResultWithError instance using the specified properties. + * Creates a new VTGateCallerID instance using the specified properties. * @function create - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static - * @param {query.IResultWithError=} [properties] Properties to set - * @returns {query.ResultWithError} ResultWithError instance + * @param {query.IVTGateCallerID=} [properties] Properties to set + * @returns {query.VTGateCallerID} VTGateCallerID instance */ - ResultWithError.create = function create(properties) { - return new ResultWithError(properties); + VTGateCallerID.create = function create(properties) { + return new VTGateCallerID(properties); }; /** - * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encode - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static - * @param {query.IResultWithError} message ResultWithError message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResultWithError.encode = function encode(message, writer) { + VTGateCallerID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); return writer; }; /** - * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encodeDelimited - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static - * @param {query.IResultWithError} message ResultWithError message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { + VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResultWithError message from the specified reader or buffer. + * Decodes a VTGateCallerID message from the specified reader or buffer. * @function decode - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ResultWithError} ResultWithError + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResultWithError.decode = function decode(reader, length) { + VTGateCallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + message.username = reader.string(); break; case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -60639,132 +61119,130 @@ $root.query = (function() { }; /** - * Decodes a ResultWithError message from the specified reader or buffer, length delimited. + * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ResultWithError} ResultWithError + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResultWithError.decodeDelimited = function decodeDelimited(reader) { + VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResultWithError message. + * Verifies a VTGateCallerID message. * @function verify - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResultWithError.verify = function verify(message) { + VTGateCallerID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; } return null; }; /** - * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static * @param {Object.} object Plain object - * @returns {query.ResultWithError} ResultWithError + * @returns {query.VTGateCallerID} VTGateCallerID */ - ResultWithError.fromObject = function fromObject(object) { - if (object instanceof $root.query.ResultWithError) + VTGateCallerID.fromObject = function fromObject(object) { + if (object instanceof $root.query.VTGateCallerID) return object; - var message = new $root.query.ResultWithError(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ResultWithError.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ResultWithError.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); + var message = new $root.query.VTGateCallerID(); + if (object.username != null) + message.username = String(object.username); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".query.VTGateCallerID.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); } return message; }; /** - * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. * @function toObject - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @static - * @param {query.ResultWithError} message ResultWithError + * @param {query.VTGateCallerID} message VTGateCallerID * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResultWithError.toObject = function toObject(message, options) { + VTGateCallerID.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; + if (options.arrays || options.defaults) + object.groups = []; + if (options.defaults) + object.username = ""; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this ResultWithError to JSON. + * Converts this VTGateCallerID to JSON. * @function toJSON - * @memberof query.ResultWithError + * @memberof query.VTGateCallerID * @instance * @returns {Object.} JSON object */ - ResultWithError.prototype.toJSON = function toJSON() { + VTGateCallerID.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResultWithError; + return VTGateCallerID; })(); - query.StreamExecuteRequest = (function() { + query.EventToken = (function() { /** - * Properties of a StreamExecuteRequest. + * Properties of an EventToken. * @memberof query - * @interface IStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] StreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] StreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] StreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] StreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] StreamExecuteRequest options - * @property {number|Long|null} [transaction_id] StreamExecuteRequest transaction_id - * @property {number|Long|null} [reserved_id] StreamExecuteRequest reserved_id + * @interface IEventToken + * @property {number|Long|null} [timestamp] EventToken timestamp + * @property {string|null} [shard] EventToken shard + * @property {string|null} [position] EventToken position */ /** - * Constructs a new StreamExecuteRequest. + * Constructs a new EventToken. * @memberof query - * @classdesc Represents a StreamExecuteRequest. - * @implements IStreamExecuteRequest + * @classdesc Represents an EventToken. + * @implements IEventToken * @constructor - * @param {query.IStreamExecuteRequest=} [properties] Properties to set + * @param {query.IEventToken=} [properties] Properties to set */ - function StreamExecuteRequest(properties) { + function EventToken(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60772,153 +61250,101 @@ $root.query = (function() { } /** - * StreamExecuteRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.effective_caller_id = null; - - /** - * StreamExecuteRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.immediate_caller_id = null; - - /** - * StreamExecuteRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.target = null; - - /** - * StreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.StreamExecuteRequest - * @instance - */ - StreamExecuteRequest.prototype.query = null; - - /** - * StreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.StreamExecuteRequest + * EventToken timestamp. + * @member {number|Long} timestamp + * @memberof query.EventToken * @instance */ - StreamExecuteRequest.prototype.options = null; + EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StreamExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.StreamExecuteRequest + * EventToken shard. + * @member {string} shard + * @memberof query.EventToken * @instance */ - StreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EventToken.prototype.shard = ""; /** - * StreamExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.StreamExecuteRequest + * EventToken position. + * @member {string} position + * @memberof query.EventToken * @instance */ - StreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EventToken.prototype.position = ""; /** - * Creates a new StreamExecuteRequest instance using the specified properties. + * Creates a new EventToken instance using the specified properties. * @function create - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static - * @param {query.IStreamExecuteRequest=} [properties] Properties to set - * @returns {query.StreamExecuteRequest} StreamExecuteRequest instance + * @param {query.IEventToken=} [properties] Properties to set + * @returns {query.EventToken} EventToken instance */ - StreamExecuteRequest.create = function create(properties) { - return new StreamExecuteRequest(properties); + EventToken.create = function create(properties) { + return new EventToken(properties); }; /** - * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encode - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static - * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteRequest.encode = function encode(message, writer) { + EventToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); return writer; }; /** - * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static - * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + EventToken.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer. + * Decodes an EventToken message from the specified reader or buffer. * @function decode - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteRequest.decode = function decode(reader, length) { + EventToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.timestamp = reader.int64(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.shard = reader.string(); break; case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - message.transaction_id = reader.int64(); - break; - case 7: - message.reserved_id = reader.int64(); + message.position = reader.string(); break; default: reader.skipType(tag & 7); @@ -60929,285 +61355,382 @@ $root.query = (function() { }; /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes an EventToken message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + EventToken.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamExecuteRequest message. + * Verifies an EventToken message. * @function verify - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamExecuteRequest.verify = function verify(message) { + EventToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; return null; }; /** - * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.EventToken} EventToken */ - StreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteRequest) + EventToken.fromObject = function fromObject(object) { + if (object instanceof $root.query.EventToken) return object; - var message = new $root.query.StreamExecuteRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.StreamExecuteRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.StreamExecuteRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.StreamExecuteRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.StreamExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.StreamExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.reserved_id != null) + var message = new $root.query.EventToken(); + if (object.timestamp != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.position != null) + message.position = String(object.position); return message; }; /** - * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from an EventToken message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @static - * @param {query.StreamExecuteRequest} message StreamExecuteRequest + * @param {query.EventToken} message EventToken * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteRequest.toObject = function toObject(message, options) { + EventToken.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = null; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.timestamp = options.longs === String ? "0" : 0; + object.shard = ""; + object.position = ""; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; return object; }; /** - * Converts this StreamExecuteRequest to JSON. + * Converts this EventToken to JSON. * @function toJSON - * @memberof query.StreamExecuteRequest + * @memberof query.EventToken * @instance * @returns {Object.} JSON object */ - StreamExecuteRequest.prototype.toJSON = function toJSON() { + EventToken.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamExecuteRequest; + return EventToken; })(); - query.StreamExecuteResponse = (function() { - - /** - * Properties of a StreamExecuteResponse. - * @memberof query - * @interface IStreamExecuteResponse - * @property {query.IQueryResult|null} [result] StreamExecuteResponse result - */ - - /** - * Constructs a new StreamExecuteResponse. - * @memberof query - * @classdesc Represents a StreamExecuteResponse. - * @implements IStreamExecuteResponse - * @constructor - * @param {query.IStreamExecuteResponse=} [properties] Properties to set - */ - function StreamExecuteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StreamExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.StreamExecuteResponse - * @instance - */ - StreamExecuteResponse.prototype.result = null; + /** + * MySqlFlag enum. + * @name query.MySqlFlag + * @enum {number} + * @property {number} EMPTY=0 EMPTY value + * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value + * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value + * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value + * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value + * @property {number} BLOB_FLAG=16 BLOB_FLAG value + * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value + * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value + * @property {number} BINARY_FLAG=128 BINARY_FLAG value + * @property {number} ENUM_FLAG=256 ENUM_FLAG value + * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value + * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value + * @property {number} SET_FLAG=2048 SET_FLAG value + * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value + * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value + * @property {number} NUM_FLAG=32768 NUM_FLAG value + * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value + * @property {number} GROUP_FLAG=32768 GROUP_FLAG value + * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value + * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value + */ + query.MySqlFlag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EMPTY"] = 0; + values[valuesById[1] = "NOT_NULL_FLAG"] = 1; + values[valuesById[2] = "PRI_KEY_FLAG"] = 2; + values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; + values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; + values[valuesById[16] = "BLOB_FLAG"] = 16; + values[valuesById[32] = "UNSIGNED_FLAG"] = 32; + values[valuesById[64] = "ZEROFILL_FLAG"] = 64; + values[valuesById[128] = "BINARY_FLAG"] = 128; + values[valuesById[256] = "ENUM_FLAG"] = 256; + values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; + values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; + values[valuesById[2048] = "SET_FLAG"] = 2048; + values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; + values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; + values[valuesById[32768] = "NUM_FLAG"] = 32768; + values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; + values["GROUP_FLAG"] = 32768; + values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; + values[valuesById[131072] = "BINCMP_FLAG"] = 131072; + return values; + })(); - /** - * Creates a new StreamExecuteResponse instance using the specified properties. - * @function create - * @memberof query.StreamExecuteResponse - * @static - * @param {query.IStreamExecuteResponse=} [properties] Properties to set - * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance - */ - StreamExecuteResponse.create = function create(properties) { - return new StreamExecuteResponse(properties); - }; + /** + * Flag enum. + * @name query.Flag + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} ISINTEGRAL=256 ISINTEGRAL value + * @property {number} ISUNSIGNED=512 ISUNSIGNED value + * @property {number} ISFLOAT=1024 ISFLOAT value + * @property {number} ISQUOTED=2048 ISQUOTED value + * @property {number} ISTEXT=4096 ISTEXT value + * @property {number} ISBINARY=8192 ISBINARY value + */ + query.Flag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[256] = "ISINTEGRAL"] = 256; + values[valuesById[512] = "ISUNSIGNED"] = 512; + values[valuesById[1024] = "ISFLOAT"] = 1024; + values[valuesById[2048] = "ISQUOTED"] = 2048; + values[valuesById[4096] = "ISTEXT"] = 4096; + values[valuesById[8192] = "ISBINARY"] = 8192; + return values; + })(); - /** - * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. - * @function encode - * @memberof query.StreamExecuteResponse - * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + /** + * Type enum. + * @name query.Type + * @enum {number} + * @property {number} NULL_TYPE=0 NULL_TYPE value + * @property {number} INT8=257 INT8 value + * @property {number} UINT8=770 UINT8 value + * @property {number} INT16=259 INT16 value + * @property {number} UINT16=772 UINT16 value + * @property {number} INT24=261 INT24 value + * @property {number} UINT24=774 UINT24 value + * @property {number} INT32=263 INT32 value + * @property {number} UINT32=776 UINT32 value + * @property {number} INT64=265 INT64 value + * @property {number} UINT64=778 UINT64 value + * @property {number} FLOAT32=1035 FLOAT32 value + * @property {number} FLOAT64=1036 FLOAT64 value + * @property {number} TIMESTAMP=2061 TIMESTAMP value + * @property {number} DATE=2062 DATE value + * @property {number} TIME=2063 TIME value + * @property {number} DATETIME=2064 DATETIME value + * @property {number} YEAR=785 YEAR value + * @property {number} DECIMAL=18 DECIMAL value + * @property {number} TEXT=6163 TEXT value + * @property {number} BLOB=10260 BLOB value + * @property {number} VARCHAR=6165 VARCHAR value + * @property {number} VARBINARY=10262 VARBINARY value + * @property {number} CHAR=6167 CHAR value + * @property {number} BINARY=10264 BINARY value + * @property {number} BIT=2073 BIT value + * @property {number} ENUM=2074 ENUM value + * @property {number} SET=2075 SET value + * @property {number} TUPLE=28 TUPLE value + * @property {number} GEOMETRY=2077 GEOMETRY value + * @property {number} JSON=2078 JSON value + * @property {number} EXPRESSION=31 EXPRESSION value + * @property {number} HEXNUM=4128 HEXNUM value + * @property {number} HEXVAL=4129 HEXVAL value + * @property {number} BITNUM=4130 BITNUM value + */ + query.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_TYPE"] = 0; + values[valuesById[257] = "INT8"] = 257; + values[valuesById[770] = "UINT8"] = 770; + values[valuesById[259] = "INT16"] = 259; + values[valuesById[772] = "UINT16"] = 772; + values[valuesById[261] = "INT24"] = 261; + values[valuesById[774] = "UINT24"] = 774; + values[valuesById[263] = "INT32"] = 263; + values[valuesById[776] = "UINT32"] = 776; + values[valuesById[265] = "INT64"] = 265; + values[valuesById[778] = "UINT64"] = 778; + values[valuesById[1035] = "FLOAT32"] = 1035; + values[valuesById[1036] = "FLOAT64"] = 1036; + values[valuesById[2061] = "TIMESTAMP"] = 2061; + values[valuesById[2062] = "DATE"] = 2062; + values[valuesById[2063] = "TIME"] = 2063; + values[valuesById[2064] = "DATETIME"] = 2064; + values[valuesById[785] = "YEAR"] = 785; + values[valuesById[18] = "DECIMAL"] = 18; + values[valuesById[6163] = "TEXT"] = 6163; + values[valuesById[10260] = "BLOB"] = 10260; + values[valuesById[6165] = "VARCHAR"] = 6165; + values[valuesById[10262] = "VARBINARY"] = 10262; + values[valuesById[6167] = "CHAR"] = 6167; + values[valuesById[10264] = "BINARY"] = 10264; + values[valuesById[2073] = "BIT"] = 2073; + values[valuesById[2074] = "ENUM"] = 2074; + values[valuesById[2075] = "SET"] = 2075; + values[valuesById[28] = "TUPLE"] = 28; + values[valuesById[2077] = "GEOMETRY"] = 2077; + values[valuesById[2078] = "JSON"] = 2078; + values[valuesById[31] = "EXPRESSION"] = 31; + values[valuesById[4128] = "HEXNUM"] = 4128; + values[valuesById[4129] = "HEXVAL"] = 4129; + values[valuesById[4130] = "BITNUM"] = 4130; + return values; + })(); + + query.Value = (function() { + + /** + * Properties of a Value. + * @memberof query + * @interface IValue + * @property {query.Type|null} [type] Value type + * @property {Uint8Array|null} [value] Value value + */ + + /** + * Constructs a new Value. + * @memberof query + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {query.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Value type. + * @member {query.Type} type + * @memberof query.Value + * @instance + */ + Value.prototype.type = 0; + + /** + * Value value. + * @member {Uint8Array} value + * @memberof query.Value + * @instance + */ + Value.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof query.Value + * @static + * @param {query.IValue=} [properties] Properties to set + * @returns {query.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * @function encode + * @memberof query.Value + * @static + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteResponse.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + message.type = reader.int32(); + break; + case 2: + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -61218,115 +61741,306 @@ $root.query = (function() { }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamExecuteResponse message. + * Verifies a Value message. * @function verify - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamExecuteResponse.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.Value} Value */ - StreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteResponse) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.query.Value) return object; - var message = new $root.query.StreamExecuteResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.StreamExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; - }; - - /** - * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.StreamExecuteResponse + var message = new $root.query.Value(); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; + }; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof query.Value * @static - * @param {query.StreamExecuteResponse} message StreamExecuteResponse + * @param {query.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteResponse.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this StreamExecuteResponse to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof query.StreamExecuteResponse + * @memberof query.Value * @instance * @returns {Object.} JSON object */ - StreamExecuteResponse.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamExecuteResponse; + return Value; })(); - query.BeginRequest = (function() { + query.BindVariable = (function() { /** - * Properties of a BeginRequest. + * Properties of a BindVariable. * @memberof query - * @interface IBeginRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginRequest target - * @property {query.IExecuteOptions|null} [options] BeginRequest options + * @interface IBindVariable + * @property {query.Type|null} [type] BindVariable type + * @property {Uint8Array|null} [value] BindVariable value + * @property {Array.|null} [values] BindVariable values */ /** - * Constructs a new BeginRequest. + * Constructs a new BindVariable. * @memberof query - * @classdesc Represents a BeginRequest. - * @implements IBeginRequest + * @classdesc Represents a BindVariable. + * @implements IBindVariable * @constructor - * @param {query.IBeginRequest=} [properties] Properties to set + * @param {query.IBindVariable=} [properties] Properties to set */ - function BeginRequest(properties) { + function BindVariable(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61334,114 +62048,104 @@ $root.query = (function() { } /** - * BeginRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginRequest - * @instance - */ - BeginRequest.prototype.effective_caller_id = null; - - /** - * BeginRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginRequest + * BindVariable type. + * @member {query.Type} type + * @memberof query.BindVariable * @instance */ - BeginRequest.prototype.immediate_caller_id = null; + BindVariable.prototype.type = 0; /** - * BeginRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.BeginRequest + * BindVariable value. + * @member {Uint8Array} value + * @memberof query.BindVariable * @instance */ - BeginRequest.prototype.target = null; + BindVariable.prototype.value = $util.newBuffer([]); /** - * BeginRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginRequest + * BindVariable values. + * @member {Array.} values + * @memberof query.BindVariable * @instance */ - BeginRequest.prototype.options = null; + BindVariable.prototype.values = $util.emptyArray; /** - * Creates a new BeginRequest instance using the specified properties. + * Creates a new BindVariable instance using the specified properties. * @function create - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static - * @param {query.IBeginRequest=} [properties] Properties to set - * @returns {query.BeginRequest} BeginRequest instance + * @param {query.IBindVariable=} [properties] Properties to set + * @returns {query.BindVariable} BindVariable instance */ - BeginRequest.create = function create(properties) { - return new BeginRequest(properties); + BindVariable.create = function create(properties) { + return new BindVariable(properties); }; /** - * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encode - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static - * @param {query.IBeginRequest} message BeginRequest message or plain object to encode + * @param {query.IBindVariable} message BindVariable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginRequest.encode = function encode(message, writer) { + BindVariable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static - * @param {query.IBeginRequest} message BeginRequest message or plain object to encode + * @param {query.IBindVariable} message BindVariable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { + BindVariable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginRequest message from the specified reader or buffer. + * Decodes a BindVariable message from the specified reader or buffer. * @function decode - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginRequest} BeginRequest + * @returns {query.BindVariable} BindVariable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginRequest.decode = function decode(reader, length) { + BindVariable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.type = reader.int32(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.value = reader.bytes(); break; case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.query.Value.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -61452,256 +62156,442 @@ $root.query = (function() { }; /** - * Decodes a BeginRequest message from the specified reader or buffer, length delimited. + * Decodes a BindVariable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginRequest} BeginRequest + * @returns {query.BindVariable} BindVariable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginRequest.decodeDelimited = function decodeDelimited(reader) { + BindVariable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginRequest message. + * Verifies a BindVariable message. * @function verify - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginRequest.verify = function verify(message) { + BindVariable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.query.Value.verify(message.values[i]); + if (error) + return "values." + error; + } } return null; }; /** - * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginRequest + * @memberof query.BindVariable * @static * @param {Object.} object Plain object - * @returns {query.BeginRequest} BeginRequest + * @returns {query.BindVariable} BindVariable */ - BeginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginRequest) + BindVariable.fromObject = function fromObject(object) { + if (object instanceof $root.query.BindVariable) return object; - var message = new $root.query.BeginRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.BeginRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof query.BeginRequest - * @static - * @param {query.BeginRequest} message BeginRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BeginRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.options = null; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this BeginRequest to JSON. - * @function toJSON - * @memberof query.BeginRequest - * @instance - * @returns {Object.} JSON object - */ - BeginRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BeginRequest; - })(); - - query.BeginResponse = (function() { - - /** - * Properties of a BeginResponse. - * @memberof query - * @interface IBeginResponse - * @property {number|Long|null} [transaction_id] BeginResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginResponse tablet_alias - * @property {string|null} [session_state_changes] BeginResponse session_state_changes - */ - - /** - * Constructs a new BeginResponse. - * @memberof query - * @classdesc Represents a BeginResponse. - * @implements IBeginResponse - * @constructor - * @param {query.IBeginResponse=} [properties] Properties to set - */ - function BeginResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BeginResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.tablet_alias = null; - - /** - * BeginResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginResponse - * @instance - */ - BeginResponse.prototype.session_state_changes = ""; + var message = new $root.query.BindVariable(); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".query.BindVariable.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".query.BindVariable.values: object expected"); + message.values[i] = $root.query.Value.fromObject(object.values[i]); + } + } + return message; + }; /** - * Creates a new BeginResponse instance using the specified properties. - * @function create - * @memberof query.BeginResponse + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * @function toObject + * @memberof query.BindVariable * @static - * @param {query.IBeginResponse=} [properties] Properties to set - * @returns {query.BeginResponse} BeginResponse instance + * @param {query.BindVariable} message BindVariable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - BeginResponse.create = function create(properties) { - return new BeginResponse(properties); + BindVariable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.query.Value.toObject(message.values[j], options); + } + return object; }; /** - * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @function encode - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse} message BeginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Converts this BindVariable to JSON. + * @function toJSON + * @memberof query.BindVariable + * @instance + * @returns {Object.} JSON object */ - BeginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); - return writer; + BindVariable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return BindVariable; + })(); + + query.BoundQuery = (function() { + /** - * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse} message BeginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Properties of a BoundQuery. + * @memberof query + * @interface IBoundQuery + * @property {string|null} [sql] BoundQuery sql + * @property {Object.|null} [bind_variables] BoundQuery bind_variables */ - BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a BeginResponse message from the specified reader or buffer. - * @function decode - * @memberof query.BeginResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.BeginResponse} BeginResponse + * Constructs a new BoundQuery. + * @memberof query + * @classdesc Represents a BoundQuery. + * @implements IBoundQuery + * @constructor + * @param {query.IBoundQuery=} [properties] Properties to set + */ + function BoundQuery(properties) { + this.bind_variables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BoundQuery sql. + * @member {string} sql + * @memberof query.BoundQuery + * @instance + */ + BoundQuery.prototype.sql = ""; + + /** + * BoundQuery bind_variables. + * @member {Object.} bind_variables + * @memberof query.BoundQuery + * @instance + */ + BoundQuery.prototype.bind_variables = $util.emptyObject; + + /** + * Creates a new BoundQuery instance using the specified properties. + * @function create + * @memberof query.BoundQuery + * @static + * @param {query.IBoundQuery=} [properties] Properties to set + * @returns {query.BoundQuery} BoundQuery instance + */ + BoundQuery.create = function create(properties) { + return new BoundQuery(properties); + }; + + /** + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @function encode + * @memberof query.BoundQuery + * @static + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoundQuery.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); + if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) + for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @function encodeDelimited + * @memberof query.BoundQuery + * @static + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BoundQuery message from the specified reader or buffer. + * @function decode + * @memberof query.BoundQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginResponse.decode = function decode(reader, length) { + BoundQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.transaction_id = reader.int64(); + message.sql = reader.string(); break; case 2: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 3: - message.session_state_changes = reader.string(); + if (message.bind_variables === $util.emptyObject) + message.bind_variables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.query.BindVariable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bind_variables[key] = value; break; default: reader.skipType(tag & 7); @@ -61712,146 +62602,144 @@ $root.query = (function() { }; /** - * Decodes a BeginResponse message from the specified reader or buffer, length delimited. + * Decodes a BoundQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginResponse + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginResponse} BeginResponse + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginResponse.decodeDelimited = function decodeDelimited(reader) { + BoundQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginResponse message. + * Verifies a BoundQuery message. * @function verify - * @memberof query.BeginResponse + * @memberof query.BoundQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginResponse.verify = function verify(message) { + BoundQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { + if (!$util.isObject(message.bind_variables)) + return "bind_variables: object expected"; + var key = Object.keys(message.bind_variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); + if (error) + return "bind_variables." + error; + } } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginResponse + * @memberof query.BoundQuery * @static * @param {Object.} object Plain object - * @returns {query.BeginResponse} BeginResponse + * @returns {query.BoundQuery} BoundQuery */ - BeginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginResponse) + BoundQuery.fromObject = function fromObject(object) { + if (object instanceof $root.query.BoundQuery) return object; - var message = new $root.query.BeginResponse(); - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.query.BoundQuery(); + if (object.sql != null) + message.sql = String(object.sql); + if (object.bind_variables) { + if (typeof object.bind_variables !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables = {}; + for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { + if (typeof object.bind_variables[keys[i]] !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); + } } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. + * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginResponse + * @memberof query.BoundQuery * @static - * @param {query.BeginResponse} message BeginResponse + * @param {query.BoundQuery} message BoundQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginResponse.toObject = function toObject(message, options) { + BoundQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; + if (options.objects || options.defaults) + object.bind_variables = {}; + if (options.defaults) + object.sql = ""; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + var keys2; + if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { + object.bind_variables = {}; + for (var j = 0; j < keys2.length; ++j) + object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this BeginResponse to JSON. + * Converts this BoundQuery to JSON. * @function toJSON - * @memberof query.BeginResponse + * @memberof query.BoundQuery * @instance * @returns {Object.} JSON object */ - BeginResponse.prototype.toJSON = function toJSON() { + BoundQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginResponse; + return BoundQuery; })(); - query.CommitRequest = (function() { + query.ExecuteOptions = (function() { /** - * Properties of a CommitRequest. + * Properties of an ExecuteOptions. * @memberof query - * @interface ICommitRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitRequest immediate_caller_id - * @property {query.ITarget|null} [target] CommitRequest target - * @property {number|Long|null} [transaction_id] CommitRequest transaction_id + * @interface IExecuteOptions + * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields + * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows + * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload + * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit + * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation + * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache + * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version + * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables + * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName + * @property {string|null} [priority] ExecuteOptions priority */ /** - * Constructs a new CommitRequest. + * Constructs a new ExecuteOptions. * @memberof query - * @classdesc Represents a CommitRequest. - * @implements ICommitRequest + * @classdesc Represents an ExecuteOptions. + * @implements IExecuteOptions * @constructor - * @param {query.ICommitRequest=} [properties] Properties to set + * @param {query.IExecuteOptions=} [properties] Properties to set */ - function CommitRequest(properties) { + function ExecuteOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61859,114 +62747,192 @@ $root.query = (function() { } /** - * CommitRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitRequest + * ExecuteOptions included_fields. + * @member {query.ExecuteOptions.IncludedFields} included_fields + * @memberof query.ExecuteOptions * @instance */ - CommitRequest.prototype.effective_caller_id = null; + ExecuteOptions.prototype.included_fields = 0; /** - * CommitRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitRequest + * ExecuteOptions client_found_rows. + * @member {boolean} client_found_rows + * @memberof query.ExecuteOptions * @instance */ - CommitRequest.prototype.immediate_caller_id = null; + ExecuteOptions.prototype.client_found_rows = false; /** - * CommitRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.CommitRequest + * ExecuteOptions workload. + * @member {query.ExecuteOptions.Workload} workload + * @memberof query.ExecuteOptions * @instance */ - CommitRequest.prototype.target = null; + ExecuteOptions.prototype.workload = 0; /** - * CommitRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.CommitRequest + * ExecuteOptions sql_select_limit. + * @member {number|Long} sql_select_limit + * @memberof query.ExecuteOptions * @instance */ - CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CommitRequest instance using the specified properties. + * ExecuteOptions transaction_isolation. + * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.transaction_isolation = 0; + + /** + * ExecuteOptions skip_query_plan_cache. + * @member {boolean} skip_query_plan_cache + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.skip_query_plan_cache = false; + + /** + * ExecuteOptions planner_version. + * @member {query.ExecuteOptions.PlannerVersion} planner_version + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.planner_version = 0; + + /** + * ExecuteOptions has_created_temp_tables. + * @member {boolean} has_created_temp_tables + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.has_created_temp_tables = false; + + /** + * ExecuteOptions WorkloadName. + * @member {string} WorkloadName + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.WorkloadName = ""; + + /** + * ExecuteOptions priority. + * @member {string} priority + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.priority = ""; + + /** + * Creates a new ExecuteOptions instance using the specified properties. * @function create - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static - * @param {query.ICommitRequest=} [properties] Properties to set - * @returns {query.CommitRequest} CommitRequest instance + * @param {query.IExecuteOptions=} [properties] Properties to set + * @returns {query.ExecuteOptions} ExecuteOptions instance */ - CommitRequest.create = function create(properties) { - return new CommitRequest(properties); + ExecuteOptions.create = function create(properties) { + return new ExecuteOptions(properties); }; /** - * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encode - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static - * @param {query.ICommitRequest} message CommitRequest message or plain object to encode + * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitRequest.encode = function encode(message, writer) { + ExecuteOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.included_fields != null && Object.hasOwnProperty.call(message, "included_fields")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.included_fields); + if (message.client_found_rows != null && Object.hasOwnProperty.call(message, "client_found_rows")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_found_rows); + if (message.workload != null && Object.hasOwnProperty.call(message, "workload")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workload); + if (message.sql_select_limit != null && Object.hasOwnProperty.call(message, "sql_select_limit")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sql_select_limit); + if (message.transaction_isolation != null && Object.hasOwnProperty.call(message, "transaction_isolation")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.transaction_isolation); + if (message.skip_query_plan_cache != null && Object.hasOwnProperty.call(message, "skip_query_plan_cache")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.skip_query_plan_cache); + if (message.planner_version != null && Object.hasOwnProperty.call(message, "planner_version")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.planner_version); + if (message.has_created_temp_tables != null && Object.hasOwnProperty.call(message, "has_created_temp_tables")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.has_created_temp_tables); + if (message.WorkloadName != null && Object.hasOwnProperty.call(message, "WorkloadName")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.WorkloadName); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.priority); return writer; }; /** - * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static - * @param {query.ICommitRequest} message CommitRequest message or plain object to encode + * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitRequest message from the specified reader or buffer. + * Decodes an ExecuteOptions message from the specified reader or buffer. * @function decode - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitRequest} CommitRequest + * @returns {query.ExecuteOptions} ExecuteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitRequest.decode = function decode(reader, length) { + ExecuteOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + case 4: + message.included_fields = reader.int32(); break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + case 5: + message.client_found_rows = reader.bool(); break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); + case 6: + message.workload = reader.int32(); break; - case 4: - message.transaction_id = reader.int64(); + case 8: + message.sql_select_limit = reader.int64(); + break; + case 9: + message.transaction_isolation = reader.int32(); + break; + case 10: + message.skip_query_plan_cache = reader.bool(); + break; + case 11: + message.planner_version = reader.int32(); + break; + case 12: + message.has_created_temp_tables = reader.bool(); + break; + case 15: + message.WorkloadName = reader.string(); + break; + case 16: + message.priority = reader.string(); break; default: reader.skipType(tag & 7); @@ -61977,161 +62943,403 @@ $root.query = (function() { }; /** - * Decodes a CommitRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitRequest} CommitRequest + * @returns {query.ExecuteOptions} ExecuteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitRequest message. + * Verifies an ExecuteOptions message. * @function verify - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitRequest.verify = function verify(message) { + ExecuteOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - return null; - }; - - /** - * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.CommitRequest - * @static - * @param {Object.} object Plain object - * @returns {query.CommitRequest} CommitRequest - */ - CommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitRequest) - return object; - var message = new $root.query.CommitRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CommitRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.CommitRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (message.included_fields != null && message.hasOwnProperty("included_fields")) + switch (message.included_fields) { + default: + return "included_fields: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) + if (typeof message.client_found_rows !== "boolean") + return "client_found_rows: boolean expected"; + if (message.workload != null && message.hasOwnProperty("workload")) + switch (message.workload) { + default: + return "workload: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) + if (!$util.isInteger(message.sql_select_limit) && !(message.sql_select_limit && $util.isInteger(message.sql_select_limit.low) && $util.isInteger(message.sql_select_limit.high))) + return "sql_select_limit: integer|Long expected"; + if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) + switch (message.transaction_isolation) { + default: + return "transaction_isolation: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) + if (typeof message.skip_query_plan_cache !== "boolean") + return "skip_query_plan_cache: boolean expected"; + if (message.planner_version != null && message.hasOwnProperty("planner_version")) + switch (message.planner_version) { + default: + return "planner_version: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) + if (typeof message.has_created_temp_tables !== "boolean") + return "has_created_temp_tables: boolean expected"; + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + if (!$util.isString(message.WorkloadName)) + return "WorkloadName: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isString(message.priority)) + return "priority: string expected"; + return null; + }; + + /** + * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.ExecuteOptions + * @static + * @param {Object.} object Plain object + * @returns {query.ExecuteOptions} ExecuteOptions + */ + ExecuteOptions.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteOptions) + return object; + var message = new $root.query.ExecuteOptions(); + switch (object.included_fields) { + case "TYPE_AND_NAME": + case 0: + message.included_fields = 0; + break; + case "TYPE_ONLY": + case 1: + message.included_fields = 1; + break; + case "ALL": + case 2: + message.included_fields = 2; + break; + } + if (object.client_found_rows != null) + message.client_found_rows = Boolean(object.client_found_rows); + switch (object.workload) { + case "UNSPECIFIED": + case 0: + message.workload = 0; + break; + case "OLTP": + case 1: + message.workload = 1; + break; + case "OLAP": + case 2: + message.workload = 2; + break; + case "DBA": + case 3: + message.workload = 3; + break; + } + if (object.sql_select_limit != null) + if ($util.Long) + (message.sql_select_limit = $util.Long.fromValue(object.sql_select_limit)).unsigned = false; + else if (typeof object.sql_select_limit === "string") + message.sql_select_limit = parseInt(object.sql_select_limit, 10); + else if (typeof object.sql_select_limit === "number") + message.sql_select_limit = object.sql_select_limit; + else if (typeof object.sql_select_limit === "object") + message.sql_select_limit = new $util.LongBits(object.sql_select_limit.low >>> 0, object.sql_select_limit.high >>> 0).toNumber(); + switch (object.transaction_isolation) { + case "DEFAULT": + case 0: + message.transaction_isolation = 0; + break; + case "REPEATABLE_READ": + case 1: + message.transaction_isolation = 1; + break; + case "READ_COMMITTED": + case 2: + message.transaction_isolation = 2; + break; + case "READ_UNCOMMITTED": + case 3: + message.transaction_isolation = 3; + break; + case "SERIALIZABLE": + case 4: + message.transaction_isolation = 4; + break; + case "CONSISTENT_SNAPSHOT_READ_ONLY": + case 5: + message.transaction_isolation = 5; + break; + case "AUTOCOMMIT": + case 6: + message.transaction_isolation = 6; + break; + } + if (object.skip_query_plan_cache != null) + message.skip_query_plan_cache = Boolean(object.skip_query_plan_cache); + switch (object.planner_version) { + case "DEFAULT_PLANNER": + case 0: + message.planner_version = 0; + break; + case "V3": + case 1: + message.planner_version = 1; + break; + case "Gen4": + case 2: + message.planner_version = 2; + break; + case "Gen4Greedy": + case 3: + message.planner_version = 3; + break; + case "Gen4Left2Right": + case 4: + message.planner_version = 4; + break; + case "Gen4WithFallback": + case 5: + message.planner_version = 5; + break; + case "Gen4CompareV3": + case 6: + message.planner_version = 6; + break; + } + if (object.has_created_temp_tables != null) + message.has_created_temp_tables = Boolean(object.has_created_temp_tables); + if (object.WorkloadName != null) + message.WorkloadName = String(object.WorkloadName); + if (object.priority != null) + message.priority = String(object.priority); return message; }; /** - * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. * @function toObject - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @static - * @param {query.CommitRequest} message CommitRequest + * @param {query.ExecuteOptions} message ExecuteOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitRequest.toObject = function toObject(message, options) { + ExecuteOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; + object.included_fields = options.enums === String ? "TYPE_AND_NAME" : 0; + object.client_found_rows = false; + object.workload = options.enums === String ? "UNSPECIFIED" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.sql_select_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.transaction_id = options.longs === String ? "0" : 0; + object.sql_select_limit = options.longs === String ? "0" : 0; + object.transaction_isolation = options.enums === String ? "DEFAULT" : 0; + object.skip_query_plan_cache = false; + object.planner_version = options.enums === String ? "DEFAULT_PLANNER" : 0; + object.has_created_temp_tables = false; + object.WorkloadName = ""; + object.priority = ""; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + if (message.included_fields != null && message.hasOwnProperty("included_fields")) + object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] : message.included_fields; + if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) + object.client_found_rows = message.client_found_rows; + if (message.workload != null && message.hasOwnProperty("workload")) + object.workload = options.enums === String ? $root.query.ExecuteOptions.Workload[message.workload] : message.workload; + if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) + if (typeof message.sql_select_limit === "number") + object.sql_select_limit = options.longs === String ? String(message.sql_select_limit) : message.sql_select_limit; else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + object.sql_select_limit = options.longs === String ? $util.Long.prototype.toString.call(message.sql_select_limit) : options.longs === Number ? new $util.LongBits(message.sql_select_limit.low >>> 0, message.sql_select_limit.high >>> 0).toNumber() : message.sql_select_limit; + if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) + object.transaction_isolation = options.enums === String ? $root.query.ExecuteOptions.TransactionIsolation[message.transaction_isolation] : message.transaction_isolation; + if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) + object.skip_query_plan_cache = message.skip_query_plan_cache; + if (message.planner_version != null && message.hasOwnProperty("planner_version")) + object.planner_version = options.enums === String ? $root.query.ExecuteOptions.PlannerVersion[message.planner_version] : message.planner_version; + if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) + object.has_created_temp_tables = message.has_created_temp_tables; + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + object.WorkloadName = message.WorkloadName; + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; return object; }; /** - * Converts this CommitRequest to JSON. + * Converts this ExecuteOptions to JSON. * @function toJSON - * @memberof query.CommitRequest + * @memberof query.ExecuteOptions * @instance * @returns {Object.} JSON object */ - CommitRequest.prototype.toJSON = function toJSON() { + ExecuteOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitRequest; - })(); + /** + * IncludedFields enum. + * @name query.ExecuteOptions.IncludedFields + * @enum {number} + * @property {number} TYPE_AND_NAME=0 TYPE_AND_NAME value + * @property {number} TYPE_ONLY=1 TYPE_ONLY value + * @property {number} ALL=2 ALL value + */ + ExecuteOptions.IncludedFields = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_AND_NAME"] = 0; + values[valuesById[1] = "TYPE_ONLY"] = 1; + values[valuesById[2] = "ALL"] = 2; + return values; + })(); - query.CommitResponse = (function() { + /** + * Workload enum. + * @name query.ExecuteOptions.Workload + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} OLTP=1 OLTP value + * @property {number} OLAP=2 OLAP value + * @property {number} DBA=3 DBA value + */ + ExecuteOptions.Workload = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "OLTP"] = 1; + values[valuesById[2] = "OLAP"] = 2; + values[valuesById[3] = "DBA"] = 3; + return values; + })(); /** - * Properties of a CommitResponse. + * TransactionIsolation enum. + * @name query.ExecuteOptions.TransactionIsolation + * @enum {number} + * @property {number} DEFAULT=0 DEFAULT value + * @property {number} REPEATABLE_READ=1 REPEATABLE_READ value + * @property {number} READ_COMMITTED=2 READ_COMMITTED value + * @property {number} READ_UNCOMMITTED=3 READ_UNCOMMITTED value + * @property {number} SERIALIZABLE=4 SERIALIZABLE value + * @property {number} CONSISTENT_SNAPSHOT_READ_ONLY=5 CONSISTENT_SNAPSHOT_READ_ONLY value + * @property {number} AUTOCOMMIT=6 AUTOCOMMIT value + */ + ExecuteOptions.TransactionIsolation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT"] = 0; + values[valuesById[1] = "REPEATABLE_READ"] = 1; + values[valuesById[2] = "READ_COMMITTED"] = 2; + values[valuesById[3] = "READ_UNCOMMITTED"] = 3; + values[valuesById[4] = "SERIALIZABLE"] = 4; + values[valuesById[5] = "CONSISTENT_SNAPSHOT_READ_ONLY"] = 5; + values[valuesById[6] = "AUTOCOMMIT"] = 6; + return values; + })(); + + /** + * PlannerVersion enum. + * @name query.ExecuteOptions.PlannerVersion + * @enum {number} + * @property {number} DEFAULT_PLANNER=0 DEFAULT_PLANNER value + * @property {number} V3=1 V3 value + * @property {number} Gen4=2 Gen4 value + * @property {number} Gen4Greedy=3 Gen4Greedy value + * @property {number} Gen4Left2Right=4 Gen4Left2Right value + * @property {number} Gen4WithFallback=5 Gen4WithFallback value + * @property {number} Gen4CompareV3=6 Gen4CompareV3 value + */ + ExecuteOptions.PlannerVersion = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT_PLANNER"] = 0; + values[valuesById[1] = "V3"] = 1; + values[valuesById[2] = "Gen4"] = 2; + values[valuesById[3] = "Gen4Greedy"] = 3; + values[valuesById[4] = "Gen4Left2Right"] = 4; + values[valuesById[5] = "Gen4WithFallback"] = 5; + values[valuesById[6] = "Gen4CompareV3"] = 6; + return values; + })(); + + return ExecuteOptions; + })(); + + query.Field = (function() { + + /** + * Properties of a Field. * @memberof query - * @interface ICommitResponse - * @property {number|Long|null} [reserved_id] CommitResponse reserved_id + * @interface IField + * @property {string|null} [name] Field name + * @property {query.Type|null} [type] Field type + * @property {string|null} [table] Field table + * @property {string|null} [org_table] Field org_table + * @property {string|null} [database] Field database + * @property {string|null} [org_name] Field org_name + * @property {number|null} [column_length] Field column_length + * @property {number|null} [charset] Field charset + * @property {number|null} [decimals] Field decimals + * @property {number|null} [flags] Field flags + * @property {string|null} [column_type] Field column_type */ /** - * Constructs a new CommitResponse. + * Constructs a new Field. * @memberof query - * @classdesc Represents a CommitResponse. - * @implements ICommitResponse + * @classdesc Represents a Field. + * @implements IField * @constructor - * @param {query.ICommitResponse=} [properties] Properties to set + * @param {query.IField=} [properties] Properties to set */ - function CommitResponse(properties) { + function Field(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62139,75 +63347,205 @@ $root.query = (function() { } /** - * CommitResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.CommitResponse + * Field name. + * @member {string} name + * @memberof query.Field * @instance */ - CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Field.prototype.name = ""; /** - * Creates a new CommitResponse instance using the specified properties. + * Field type. + * @member {query.Type} type + * @memberof query.Field + * @instance + */ + Field.prototype.type = 0; + + /** + * Field table. + * @member {string} table + * @memberof query.Field + * @instance + */ + Field.prototype.table = ""; + + /** + * Field org_table. + * @member {string} org_table + * @memberof query.Field + * @instance + */ + Field.prototype.org_table = ""; + + /** + * Field database. + * @member {string} database + * @memberof query.Field + * @instance + */ + Field.prototype.database = ""; + + /** + * Field org_name. + * @member {string} org_name + * @memberof query.Field + * @instance + */ + Field.prototype.org_name = ""; + + /** + * Field column_length. + * @member {number} column_length + * @memberof query.Field + * @instance + */ + Field.prototype.column_length = 0; + + /** + * Field charset. + * @member {number} charset + * @memberof query.Field + * @instance + */ + Field.prototype.charset = 0; + + /** + * Field decimals. + * @member {number} decimals + * @memberof query.Field + * @instance + */ + Field.prototype.decimals = 0; + + /** + * Field flags. + * @member {number} flags + * @memberof query.Field + * @instance + */ + Field.prototype.flags = 0; + + /** + * Field column_type. + * @member {string} column_type + * @memberof query.Field + * @instance + */ + Field.prototype.column_type = ""; + + /** + * Creates a new Field instance using the specified properties. * @function create - * @memberof query.CommitResponse + * @memberof query.Field * @static - * @param {query.ICommitResponse=} [properties] Properties to set - * @returns {query.CommitResponse} CommitResponse instance + * @param {query.IField=} [properties] Properties to set + * @returns {query.Field} Field instance */ - CommitResponse.create = function create(properties) { - return new CommitResponse(properties); + Field.create = function create(properties) { + return new Field(properties); }; /** - * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. * @function encode - * @memberof query.CommitResponse + * @memberof query.Field * @static - * @param {query.ICommitResponse} message CommitResponse message or plain object to encode + * @param {query.IField} message Field message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitResponse.encode = function encode(message, writer) { + Field.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table); + if (message.org_table != null && Object.hasOwnProperty.call(message, "org_table")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org_table); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); + if (message.org_name != null && Object.hasOwnProperty.call(message, "org_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org_name); + if (message.column_length != null && Object.hasOwnProperty.call(message, "column_length")) + writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.column_length); + if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) + writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.charset); + if (message.decimals != null && Object.hasOwnProperty.call(message, "decimals")) + writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.decimals); + if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) + writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.flags); + if (message.column_type != null && Object.hasOwnProperty.call(message, "column_type")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.column_type); return writer; }; /** - * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitResponse + * @memberof query.Field * @static - * @param {query.ICommitResponse} message CommitResponse message or plain object to encode + * @param {query.IField} message Field message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + Field.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitResponse message from the specified reader or buffer. + * Decodes a Field message from the specified reader or buffer. * @function decode - * @memberof query.CommitResponse + * @memberof query.Field * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitResponse} CommitResponse + * @returns {query.Field} Field * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitResponse.decode = function decode(reader, length) { + Field.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.reserved_id = reader.int64(); + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + case 3: + message.table = reader.string(); + break; + case 4: + message.org_table = reader.string(); + break; + case 5: + message.database = reader.string(); + break; + case 6: + message.org_name = reader.string(); + break; + case 7: + message.column_length = reader.uint32(); + break; + case 8: + message.charset = reader.uint32(); + break; + case 9: + message.decimals = reader.uint32(); + break; + case 10: + message.flags = reader.uint32(); + break; + case 11: + message.column_type = reader.string(); break; default: reader.skipType(tag & 7); @@ -62218,239 +63556,468 @@ $root.query = (function() { }; /** - * Decodes a CommitResponse message from the specified reader or buffer, length delimited. + * Decodes a Field message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitResponse + * @memberof query.Field * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitResponse} CommitResponse + * @returns {query.Field} Field * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitResponse.decodeDelimited = function decodeDelimited(reader) { + Field.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitResponse message. + * Verifies a Field message. * @function verify - * @memberof query.CommitResponse + * @memberof query.Field * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitResponse.verify = function verify(message) { + Field.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; + } + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.org_table != null && message.hasOwnProperty("org_table")) + if (!$util.isString(message.org_table)) + return "org_table: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.org_name != null && message.hasOwnProperty("org_name")) + if (!$util.isString(message.org_name)) + return "org_name: string expected"; + if (message.column_length != null && message.hasOwnProperty("column_length")) + if (!$util.isInteger(message.column_length)) + return "column_length: integer expected"; + if (message.charset != null && message.hasOwnProperty("charset")) + if (!$util.isInteger(message.charset)) + return "charset: integer expected"; + if (message.decimals != null && message.hasOwnProperty("decimals")) + if (!$util.isInteger(message.decimals)) + return "decimals: integer expected"; + if (message.flags != null && message.hasOwnProperty("flags")) + if (!$util.isInteger(message.flags)) + return "flags: integer expected"; + if (message.column_type != null && message.hasOwnProperty("column_type")) + if (!$util.isString(message.column_type)) + return "column_type: string expected"; return null; }; /** - * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Field message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitResponse + * @memberof query.Field * @static * @param {Object.} object Plain object - * @returns {query.CommitResponse} CommitResponse + * @returns {query.Field} Field */ - CommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitResponse) + Field.fromObject = function fromObject(object) { + if (object instanceof $root.query.Field) return object; - var message = new $root.query.CommitResponse(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.CommitResponse - * @static - * @param {query.CommitResponse} message CommitResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommitResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - return object; - }; - - /** - * Converts this CommitResponse to JSON. - * @function toJSON - * @memberof query.CommitResponse - * @instance - * @returns {Object.} JSON object - */ - CommitResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CommitResponse; - })(); - - query.RollbackRequest = (function() { - - /** - * Properties of a RollbackRequest. - * @memberof query - * @interface IRollbackRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackRequest immediate_caller_id - * @property {query.ITarget|null} [target] RollbackRequest target - * @property {number|Long|null} [transaction_id] RollbackRequest transaction_id - */ - - /** - * Constructs a new RollbackRequest. - * @memberof query - * @classdesc Represents a RollbackRequest. - * @implements IRollbackRequest - * @constructor - * @param {query.IRollbackRequest=} [properties] Properties to set - */ - function RollbackRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RollbackRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackRequest - * @instance - */ - RollbackRequest.prototype.effective_caller_id = null; - - /** - * RollbackRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackRequest - * @instance - */ - RollbackRequest.prototype.immediate_caller_id = null; - - /** - * RollbackRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.RollbackRequest - * @instance - */ - RollbackRequest.prototype.target = null; - - /** - * RollbackRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.RollbackRequest - * @instance - */ - RollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new RollbackRequest instance using the specified properties. - * @function create - * @memberof query.RollbackRequest - * @static - * @param {query.IRollbackRequest=} [properties] Properties to set - * @returns {query.RollbackRequest} RollbackRequest instance - */ - RollbackRequest.create = function create(properties) { - return new RollbackRequest(properties); + var message = new $root.query.Field(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; + } + if (object.table != null) + message.table = String(object.table); + if (object.org_table != null) + message.org_table = String(object.org_table); + if (object.database != null) + message.database = String(object.database); + if (object.org_name != null) + message.org_name = String(object.org_name); + if (object.column_length != null) + message.column_length = object.column_length >>> 0; + if (object.charset != null) + message.charset = object.charset >>> 0; + if (object.decimals != null) + message.decimals = object.decimals >>> 0; + if (object.flags != null) + message.flags = object.flags >>> 0; + if (object.column_type != null) + message.column_type = String(object.column_type); + return message; }; /** - * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @function encode - * @memberof query.RollbackRequest + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @function toObject + * @memberof query.Field * @static - * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * @param {query.Field} message Field + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - RollbackRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - return writer; + Field.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; + object.table = ""; + object.org_table = ""; + object.database = ""; + object.org_name = ""; + object.column_length = 0; + object.charset = 0; + object.decimals = 0; + object.flags = 0; + object.column_type = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.org_table != null && message.hasOwnProperty("org_table")) + object.org_table = message.org_table; + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; + if (message.org_name != null && message.hasOwnProperty("org_name")) + object.org_name = message.org_name; + if (message.column_length != null && message.hasOwnProperty("column_length")) + object.column_length = message.column_length; + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = message.charset; + if (message.decimals != null && message.hasOwnProperty("decimals")) + object.decimals = message.decimals; + if (message.flags != null && message.hasOwnProperty("flags")) + object.flags = message.flags; + if (message.column_type != null && message.hasOwnProperty("column_type")) + object.column_type = message.column_type; + return object; }; /** - * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof query.RollbackRequest - * @static - * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Converts this Field to JSON. + * @function toJSON + * @memberof query.Field + * @instance + * @returns {Object.} JSON object */ - RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); + Field.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return Field; + })(); + + query.Row = (function() { + /** - * Decodes a RollbackRequest message from the specified reader or buffer. - * @function decode - * @memberof query.RollbackRequest - * @static + * Properties of a Row. + * @memberof query + * @interface IRow + * @property {Array.|null} [lengths] Row lengths + * @property {Uint8Array|null} [values] Row values + */ + + /** + * Constructs a new Row. + * @memberof query + * @classdesc Represents a Row. + * @implements IRow + * @constructor + * @param {query.IRow=} [properties] Properties to set + */ + function Row(properties) { + this.lengths = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Row lengths. + * @member {Array.} lengths + * @memberof query.Row + * @instance + */ + Row.prototype.lengths = $util.emptyArray; + + /** + * Row values. + * @member {Uint8Array} values + * @memberof query.Row + * @instance + */ + Row.prototype.values = $util.newBuffer([]); + + /** + * Creates a new Row instance using the specified properties. + * @function create + * @memberof query.Row + * @static + * @param {query.IRow=} [properties] Properties to set + * @returns {query.Row} Row instance + */ + Row.create = function create(properties) { + return new Row(properties); + }; + + /** + * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * @function encode + * @memberof query.Row + * @static + * @param {query.IRow} message Row message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Row.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lengths != null && message.lengths.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.lengths.length; ++i) + writer.sint64(message.lengths[i]); + writer.ldelim(); + } + if (message.values != null && Object.hasOwnProperty.call(message, "values")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.values); + return writer; + }; + + /** + * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * @function encodeDelimited + * @memberof query.Row + * @static + * @param {query.IRow} message Row message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Row.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Row message from the specified reader or buffer. + * @function decode + * @memberof query.Row + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackRequest.decode = function decode(reader, length) { + Row.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + if (!(message.lengths && message.lengths.length)) + message.lengths = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.lengths.push(reader.sint64()); + } else + message.lengths.push(reader.sint64()); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); + message.values = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -62461,161 +64028,154 @@ $root.query = (function() { }; /** - * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. + * Decodes a Row message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackRequest + * @memberof query.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackRequest.decodeDelimited = function decodeDelimited(reader) { + Row.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackRequest message. + * Verifies a Row message. * @function verify - * @memberof query.RollbackRequest + * @memberof query.Row * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackRequest.verify = function verify(message) { + Row.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; + if (message.lengths != null && message.hasOwnProperty("lengths")) { + if (!Array.isArray(message.lengths)) + return "lengths: array expected"; + for (var i = 0; i < message.lengths.length; ++i) + if (!$util.isInteger(message.lengths[i]) && !(message.lengths[i] && $util.isInteger(message.lengths[i].low) && $util.isInteger(message.lengths[i].high))) + return "lengths: integer|Long[] expected"; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; + if (message.values != null && message.hasOwnProperty("values")) + if (!(message.values && typeof message.values.length === "number" || $util.isString(message.values))) + return "values: buffer expected"; return null; }; /** - * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Row message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackRequest + * @memberof query.Row * @static * @param {Object.} object Plain object - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.Row} Row */ - RollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackRequest) + Row.fromObject = function fromObject(object) { + if (object instanceof $root.query.Row) return object; - var message = new $root.query.RollbackRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.RollbackRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.RollbackRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.RollbackRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + var message = new $root.query.Row(); + if (object.lengths) { + if (!Array.isArray(object.lengths)) + throw TypeError(".query.Row.lengths: array expected"); + message.lengths = []; + for (var i = 0; i < object.lengths.length; ++i) + if ($util.Long) + (message.lengths[i] = $util.Long.fromValue(object.lengths[i])).unsigned = false; + else if (typeof object.lengths[i] === "string") + message.lengths[i] = parseInt(object.lengths[i], 10); + else if (typeof object.lengths[i] === "number") + message.lengths[i] = object.lengths[i]; + else if (typeof object.lengths[i] === "object") + message.lengths[i] = new $util.LongBits(object.lengths[i].low >>> 0, object.lengths[i].high >>> 0).toNumber(); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.values != null) + if (typeof object.values === "string") + $util.base64.decode(object.values, message.values = $util.newBuffer($util.base64.length(object.values)), 0); + else if (object.values.length) + message.values = object.values; return message; }; /** - * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. + * Creates a plain object from a Row message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackRequest + * @memberof query.Row * @static - * @param {query.RollbackRequest} message RollbackRequest + * @param {query.Row} message Row * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackRequest.toObject = function toObject(message, options) { + Row.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.lengths = []; + if (options.defaults) + if (options.bytes === String) + object.values = ""; + else { + object.values = []; + if (options.bytes !== Array) + object.values = $util.newBuffer(object.values); + } + if (message.lengths && message.lengths.length) { + object.lengths = []; + for (var j = 0; j < message.lengths.length; ++j) + if (typeof message.lengths[j] === "number") + object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; + else + object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.values != null && message.hasOwnProperty("values")) + object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; return object; }; /** - * Converts this RollbackRequest to JSON. + * Converts this Row to JSON. * @function toJSON - * @memberof query.RollbackRequest + * @memberof query.Row * @instance * @returns {Object.} JSON object */ - RollbackRequest.prototype.toJSON = function toJSON() { + Row.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackRequest; + return Row; })(); - query.RollbackResponse = (function() { + query.QueryResult = (function() { /** - * Properties of a RollbackResponse. + * Properties of a QueryResult. * @memberof query - * @interface IRollbackResponse - * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id + * @interface IQueryResult + * @property {Array.|null} [fields] QueryResult fields + * @property {number|Long|null} [rows_affected] QueryResult rows_affected + * @property {number|Long|null} [insert_id] QueryResult insert_id + * @property {Array.|null} [rows] QueryResult rows + * @property {string|null} [info] QueryResult info + * @property {string|null} [session_state_changes] QueryResult session_state_changes */ /** - * Constructs a new RollbackResponse. + * Constructs a new QueryResult. * @memberof query - * @classdesc Represents a RollbackResponse. - * @implements IRollbackResponse + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {query.IRollbackResponse=} [properties] Properties to set + * @param {query.IQueryResult=} [properties] Properties to set */ - function RollbackResponse(properties) { + function QueryResult(properties) { + this.fields = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62623,75 +64183,146 @@ $root.query = (function() { } /** - * RollbackResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.RollbackResponse + * QueryResult fields. + * @member {Array.} fields + * @memberof query.QueryResult * @instance */ - RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + QueryResult.prototype.fields = $util.emptyArray; /** - * Creates a new RollbackResponse instance using the specified properties. + * QueryResult rows_affected. + * @member {number|Long} rows_affected + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryResult insert_id. + * @member {number|Long} insert_id + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.insert_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryResult rows. + * @member {Array.} rows + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.rows = $util.emptyArray; + + /** + * QueryResult info. + * @member {string} info + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.info = ""; + + /** + * QueryResult session_state_changes. + * @member {string} session_state_changes + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.session_state_changes = ""; + + /** + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static - * @param {query.IRollbackResponse=} [properties] Properties to set - * @returns {query.RollbackResponse} RollbackResponse instance + * @param {query.IQueryResult=} [properties] Properties to set + * @returns {query.QueryResult} QueryResult instance */ - RollbackResponse.create = function create(properties) { - return new RollbackResponse(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encode - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode + * @param {query.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackResponse.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rows_affected != null && Object.hasOwnProperty.call(message, "rows_affected")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected); + if (message.insert_id != null && Object.hasOwnProperty.call(message, "insert_id")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.insert_id); + if (message.rows != null && message.rows.length) + for (var i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.info); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.session_state_changes); return writer; }; /** - * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode + * @param {query.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackResponse message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackResponse.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.reserved_id = reader.int64(); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + case 2: + message.rows_affected = reader.uint64(); + break; + case 3: + message.insert_id = reader.uint64(); + break; + case 4: + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); + break; + case 6: + message.info = reader.string(); + break; + case 7: + message.session_state_changes = reader.string(); break; default: reader.skipType(tag & 7); @@ -62702,125 +64333,213 @@ $root.query = (function() { }; /** - * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackResponse.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackResponse message. + * Verifies a QueryResult message. * @function verify - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackResponse.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } + if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) + if (!$util.isInteger(message.rows_affected) && !(message.rows_affected && $util.isInteger(message.rows_affected.low) && $util.isInteger(message.rows_affected.high))) + return "rows_affected: integer|Long expected"; + if (message.insert_id != null && message.hasOwnProperty("insert_id")) + if (!$util.isInteger(message.insert_id) && !(message.insert_id && $util.isInteger(message.insert_id.low) && $util.isInteger(message.insert_id.high))) + return "insert_id: integer|Long expected"; + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } + } + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @static * @param {Object.} object Plain object - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.QueryResult} QueryResult */ - RollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackResponse) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryResult) return object; - var message = new $root.query.RollbackResponse(); - if (object.reserved_id != null) + var message = new $root.query.QueryResult(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".query.QueryResult.fields: array expected"); + message.fields = []; + for (var i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".query.QueryResult.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); + } + } + if (object.rows_affected != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.RollbackResponse - * @static - * @param {query.RollbackResponse} message RollbackResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RollbackResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + (message.rows_affected = $util.Long.fromValue(object.rows_affected)).unsigned = true; + else if (typeof object.rows_affected === "string") + message.rows_affected = parseInt(object.rows_affected, 10); + else if (typeof object.rows_affected === "number") + message.rows_affected = object.rows_affected; + else if (typeof object.rows_affected === "object") + message.rows_affected = new $util.LongBits(object.rows_affected.low >>> 0, object.rows_affected.high >>> 0).toNumber(true); + if (object.insert_id != null) + if ($util.Long) + (message.insert_id = $util.Long.fromValue(object.insert_id)).unsigned = true; + else if (typeof object.insert_id === "string") + message.insert_id = parseInt(object.insert_id, 10); + else if (typeof object.insert_id === "number") + message.insert_id = object.insert_id; + else if (typeof object.insert_id === "object") + message.insert_id = new $util.LongBits(object.insert_id.low >>> 0, object.insert_id.high >>> 0).toNumber(true); + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".query.QueryResult.rows: array expected"); + message.rows = []; + for (var i = 0; i < object.rows.length; ++i) { + if (typeof object.rows[i] !== "object") + throw TypeError(".query.QueryResult.rows: object expected"); + message.rows[i] = $root.query.Row.fromObject(object.rows[i]); + } + } + if (object.info != null) + message.info = String(object.info); + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; + }; + + /** + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @function toObject + * @memberof query.QueryResult + * @static + * @param {query.QueryResult} message QueryResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.rows_affected = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.rows_affected = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.insert_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.insert_id = options.longs === String ? "0" : 0; + object.info = ""; + object.session_state_changes = ""; + } + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) + if (typeof message.rows_affected === "number") + object.rows_affected = options.longs === String ? String(message.rows_affected) : message.rows_affected; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.rows_affected = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected) : options.longs === Number ? new $util.LongBits(message.rows_affected.low >>> 0, message.rows_affected.high >>> 0).toNumber(true) : message.rows_affected; + if (message.insert_id != null && message.hasOwnProperty("insert_id")) + if (typeof message.insert_id === "number") + object.insert_id = options.longs === String ? String(message.insert_id) : message.insert_id; + else + object.insert_id = options.longs === String ? $util.Long.prototype.toString.call(message.insert_id) : options.longs === Number ? new $util.LongBits(message.insert_id.low >>> 0, message.insert_id.high >>> 0).toNumber(true) : message.insert_id; + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + } + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this RollbackResponse to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof query.RollbackResponse + * @memberof query.QueryResult * @instance * @returns {Object.} JSON object */ - RollbackResponse.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackResponse; + return QueryResult; })(); - query.PrepareRequest = (function() { + query.QueryWarning = (function() { /** - * Properties of a PrepareRequest. + * Properties of a QueryWarning. * @memberof query - * @interface IPrepareRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] PrepareRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] PrepareRequest immediate_caller_id - * @property {query.ITarget|null} [target] PrepareRequest target - * @property {number|Long|null} [transaction_id] PrepareRequest transaction_id - * @property {string|null} [dtid] PrepareRequest dtid + * @interface IQueryWarning + * @property {number|null} [code] QueryWarning code + * @property {string|null} [message] QueryWarning message */ /** - * Constructs a new PrepareRequest. + * Constructs a new QueryWarning. * @memberof query - * @classdesc Represents a PrepareRequest. - * @implements IPrepareRequest + * @classdesc Represents a QueryWarning. + * @implements IQueryWarning * @constructor - * @param {query.IPrepareRequest=} [properties] Properties to set + * @param {query.IQueryWarning=} [properties] Properties to set */ - function PrepareRequest(properties) { + function QueryWarning(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62828,127 +64547,88 @@ $root.query = (function() { } /** - * PrepareRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.effective_caller_id = null; - - /** - * PrepareRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.immediate_caller_id = null; - - /** - * PrepareRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.target = null; - - /** - * PrepareRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.PrepareRequest + * QueryWarning code. + * @member {number} code + * @memberof query.QueryWarning * @instance */ - PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + QueryWarning.prototype.code = 0; /** - * PrepareRequest dtid. - * @member {string} dtid - * @memberof query.PrepareRequest + * QueryWarning message. + * @member {string} message + * @memberof query.QueryWarning * @instance */ - PrepareRequest.prototype.dtid = ""; + QueryWarning.prototype.message = ""; /** - * Creates a new PrepareRequest instance using the specified properties. + * Creates a new QueryWarning instance using the specified properties. * @function create - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static - * @param {query.IPrepareRequest=} [properties] Properties to set - * @returns {query.PrepareRequest} PrepareRequest instance + * @param {query.IQueryWarning=} [properties] Properties to set + * @returns {query.QueryWarning} QueryWarning instance */ - PrepareRequest.create = function create(properties) { - return new PrepareRequest(properties); + QueryWarning.create = function create(properties) { + return new QueryWarning(properties); }; /** - * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. * @function encode - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static - * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareRequest.encode = function encode(message, writer) { + QueryWarning.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static - * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareRequest message from the specified reader or buffer. + * Decodes a QueryWarning message from the specified reader or buffer. * @function decode - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.QueryWarning} QueryWarning * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareRequest.decode = function decode(reader, length) { + QueryWarning.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.code = reader.uint32(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -62959,168 +64639,118 @@ $root.query = (function() { }; /** - * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryWarning message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.QueryWarning} QueryWarning * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareRequest.decodeDelimited = function decodeDelimited(reader) { + QueryWarning.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareRequest message. + * Verifies a QueryWarning message. * @function verify - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareRequest.verify = function verify(message) { + QueryWarning.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static * @param {Object.} object Plain object - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.QueryWarning} QueryWarning */ - PrepareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareRequest) + QueryWarning.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryWarning) return object; - var message = new $root.query.PrepareRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.PrepareRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.PrepareRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); + var message = new $root.query.QueryWarning(); + if (object.code != null) + message.code = object.code >>> 0; + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. * @function toObject - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @static - * @param {query.PrepareRequest} message PrepareRequest + * @param {query.QueryWarning} message QueryWarning * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareRequest.toObject = function toObject(message, options) { + QueryWarning.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; + object.code = 0; + object.message = ""; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this PrepareRequest to JSON. + * Converts this QueryWarning to JSON. * @function toJSON - * @memberof query.PrepareRequest + * @memberof query.QueryWarning * @instance * @returns {Object.} JSON object */ - PrepareRequest.prototype.toJSON = function toJSON() { + QueryWarning.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrepareRequest; + return QueryWarning; })(); - query.PrepareResponse = (function() { + query.StreamEvent = (function() { /** - * Properties of a PrepareResponse. + * Properties of a StreamEvent. * @memberof query - * @interface IPrepareResponse + * @interface IStreamEvent + * @property {Array.|null} [statements] StreamEvent statements + * @property {query.IEventToken|null} [event_token] StreamEvent event_token */ /** - * Constructs a new PrepareResponse. + * Constructs a new StreamEvent. * @memberof query - * @classdesc Represents a PrepareResponse. - * @implements IPrepareResponse + * @classdesc Represents a StreamEvent. + * @implements IStreamEvent * @constructor - * @param {query.IPrepareResponse=} [properties] Properties to set + * @param {query.IStreamEvent=} [properties] Properties to set */ - function PrepareResponse(properties) { + function StreamEvent(properties) { + this.statements = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63128,63 +64758,92 @@ $root.query = (function() { } /** - * Creates a new PrepareResponse instance using the specified properties. + * StreamEvent statements. + * @member {Array.} statements + * @memberof query.StreamEvent + * @instance + */ + StreamEvent.prototype.statements = $util.emptyArray; + + /** + * StreamEvent event_token. + * @member {query.IEventToken|null|undefined} event_token + * @memberof query.StreamEvent + * @instance + */ + StreamEvent.prototype.event_token = null; + + /** + * Creates a new StreamEvent instance using the specified properties. * @function create - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static - * @param {query.IPrepareResponse=} [properties] Properties to set - * @returns {query.PrepareResponse} PrepareResponse instance + * @param {query.IStreamEvent=} [properties] Properties to set + * @returns {query.StreamEvent} StreamEvent instance */ - PrepareResponse.create = function create(properties) { - return new PrepareResponse(properties); + StreamEvent.create = function create(properties) { + return new StreamEvent(properties); }; /** - * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encode - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static - * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode + * @param {query.IStreamEvent} message StreamEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareResponse.encode = function encode(message, writer) { + StreamEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.statements != null && message.statements.length) + for (var i = 0; i < message.statements.length; ++i) + $root.query.StreamEvent.Statement.encode(message.statements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.event_token != null && Object.hasOwnProperty.call(message, "event_token")) + $root.query.EventToken.encode(message.event_token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static - * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode + * @param {query.IStreamEvent} message StreamEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareResponse message from the specified reader or buffer. + * Decodes a StreamEvent message from the specified reader or buffer. * @function decode - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.StreamEvent} StreamEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareResponse.decode = function decode(reader, length) { + StreamEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push($root.query.StreamEvent.Statement.decode(reader, reader.uint32())); + break; + case 2: + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -63194,362 +64853,507 @@ $root.query = (function() { }; /** - * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.StreamEvent} StreamEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareResponse.decodeDelimited = function decodeDelimited(reader) { + StreamEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareResponse message. + * Verifies a StreamEvent message. * @function verify - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareResponse.verify = function verify(message) { + StreamEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (var i = 0; i < message.statements.length; ++i) { + var error = $root.query.StreamEvent.Statement.verify(message.statements[i]); + if (error) + return "statements." + error; + } + } + if (message.event_token != null && message.hasOwnProperty("event_token")) { + var error = $root.query.EventToken.verify(message.event_token); + if (error) + return "event_token." + error; + } return null; }; /** - * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static * @param {Object.} object Plain object - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.StreamEvent} StreamEvent */ - PrepareResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareResponse) + StreamEvent.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamEvent) return object; - return new $root.query.PrepareResponse(); + var message = new $root.query.StreamEvent(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".query.StreamEvent.statements: array expected"); + message.statements = []; + for (var i = 0; i < object.statements.length; ++i) { + if (typeof object.statements[i] !== "object") + throw TypeError(".query.StreamEvent.statements: object expected"); + message.statements[i] = $root.query.StreamEvent.Statement.fromObject(object.statements[i]); + } + } + if (object.event_token != null) { + if (typeof object.event_token !== "object") + throw TypeError(".query.StreamEvent.event_token: object expected"); + message.event_token = $root.query.EventToken.fromObject(object.event_token); + } + return message; }; /** - * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. * @function toObject - * @memberof query.PrepareResponse + * @memberof query.StreamEvent * @static - * @param {query.PrepareResponse} message PrepareResponse + * @param {query.StreamEvent} message StreamEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this PrepareResponse to JSON. - * @function toJSON - * @memberof query.PrepareResponse - * @instance - * @returns {Object.} JSON object - */ - PrepareResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + StreamEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.statements = []; + if (options.defaults) + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (var j = 0; j < message.statements.length; ++j) + object.statements[j] = $root.query.StreamEvent.Statement.toObject(message.statements[j], options); + } + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); + return object; }; - return PrepareResponse; - })(); - - query.CommitPreparedRequest = (function() { - - /** - * Properties of a CommitPreparedRequest. - * @memberof query - * @interface ICommitPreparedRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitPreparedRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitPreparedRequest immediate_caller_id - * @property {query.ITarget|null} [target] CommitPreparedRequest target - * @property {string|null} [dtid] CommitPreparedRequest dtid - */ - - /** - * Constructs a new CommitPreparedRequest. - * @memberof query - * @classdesc Represents a CommitPreparedRequest. - * @implements ICommitPreparedRequest - * @constructor - * @param {query.ICommitPreparedRequest=} [properties] Properties to set - */ - function CommitPreparedRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - /** - * CommitPreparedRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitPreparedRequest + * Converts this StreamEvent to JSON. + * @function toJSON + * @memberof query.StreamEvent * @instance + * @returns {Object.} JSON object */ - CommitPreparedRequest.prototype.effective_caller_id = null; + StreamEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * CommitPreparedRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.immediate_caller_id = null; + StreamEvent.Statement = (function() { - /** - * CommitPreparedRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.target = null; + /** + * Properties of a Statement. + * @memberof query.StreamEvent + * @interface IStatement + * @property {query.StreamEvent.Statement.Category|null} [category] Statement category + * @property {string|null} [table_name] Statement table_name + * @property {Array.|null} [primary_key_fields] Statement primary_key_fields + * @property {Array.|null} [primary_key_values] Statement primary_key_values + * @property {Uint8Array|null} [sql] Statement sql + */ - /** - * CommitPreparedRequest dtid. - * @member {string} dtid - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.dtid = ""; + /** + * Constructs a new Statement. + * @memberof query.StreamEvent + * @classdesc Represents a Statement. + * @implements IStatement + * @constructor + * @param {query.StreamEvent.IStatement=} [properties] Properties to set + */ + function Statement(properties) { + this.primary_key_fields = []; + this.primary_key_values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new CommitPreparedRequest instance using the specified properties. - * @function create - * @memberof query.CommitPreparedRequest - * @static - * @param {query.ICommitPreparedRequest=} [properties] Properties to set - * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance - */ - CommitPreparedRequest.create = function create(properties) { - return new CommitPreparedRequest(properties); - }; + /** + * Statement category. + * @member {query.StreamEvent.Statement.Category} category + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.category = 0; - /** - * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @function encode - * @memberof query.CommitPreparedRequest - * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitPreparedRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); - return writer; - }; + /** + * Statement table_name. + * @member {string} table_name + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.table_name = ""; - /** - * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof query.CommitPreparedRequest - * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Statement primary_key_fields. + * @member {Array.} primary_key_fields + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_fields = $util.emptyArray; - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer. - * @function decode - * @memberof query.CommitPreparedRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.CommitPreparedRequest} CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitPreparedRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.dtid = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Statement primary_key_values. + * @member {Array.} primary_key_values + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_values = $util.emptyArray; - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.CommitPreparedRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedRequest} CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitPreparedRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); - /** - * Verifies a CommitPreparedRequest message. - * @function verify - * @memberof query.CommitPreparedRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CommitPreparedRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; - return null; - }; - - /** - * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.CommitPreparedRequest - * @static - * @param {Object.} object Plain object - * @returns {query.CommitPreparedRequest} CommitPreparedRequest - */ - CommitPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedRequest) - return object; - var message = new $root.query.CommitPreparedRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.CommitPreparedRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.dtid != null) - message.dtid = String(object.dtid); - return message; - }; + /** + * Creates a new Statement instance using the specified properties. + * @function create + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement=} [properties] Properties to set + * @returns {query.StreamEvent.Statement} Statement instance + */ + Statement.create = function create(properties) { + return new Statement(properties); + }; - /** - * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof query.CommitPreparedRequest - * @static - * @param {query.CommitPreparedRequest} message CommitPreparedRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommitPreparedRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - return object; - }; + /** + * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @function encode + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Statement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); + if (message.primary_key_fields != null && message.primary_key_fields.length) + for (var i = 0; i < message.primary_key_fields.length; ++i) + $root.query.Field.encode(message.primary_key_fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.primary_key_values != null && message.primary_key_values.length) + for (var i = 0; i < message.primary_key_values.length; ++i) + $root.query.Row.encode(message.primary_key_values[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.sql); + return writer; + }; - /** - * Converts this CommitPreparedRequest to JSON. - * @function toJSON - * @memberof query.CommitPreparedRequest - * @instance - * @returns {Object.} JSON object - */ - CommitPreparedRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @function encodeDelimited + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Statement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return CommitPreparedRequest; - })(); + /** + * Decodes a Statement message from the specified reader or buffer. + * @function decode + * @memberof query.StreamEvent.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.StreamEvent.Statement} Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Statement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.category = reader.int32(); + break; + case 2: + message.table_name = reader.string(); + break; + case 3: + if (!(message.primary_key_fields && message.primary_key_fields.length)) + message.primary_key_fields = []; + message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.primary_key_values && message.primary_key_values.length)) + message.primary_key_values = []; + message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); + break; + case 5: + message.sql = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - query.CommitPreparedResponse = (function() { + /** + * Decodes a Statement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.StreamEvent.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.StreamEvent.Statement} Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Statement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a CommitPreparedResponse. - * @memberof query - * @interface ICommitPreparedResponse - */ + /** + * Verifies a Statement message. + * @function verify + * @memberof query.StreamEvent.Statement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Statement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.category != null && message.hasOwnProperty("category")) + switch (message.category) { + default: + return "category: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.primary_key_fields != null && message.hasOwnProperty("primary_key_fields")) { + if (!Array.isArray(message.primary_key_fields)) + return "primary_key_fields: array expected"; + for (var i = 0; i < message.primary_key_fields.length; ++i) { + var error = $root.query.Field.verify(message.primary_key_fields[i]); + if (error) + return "primary_key_fields." + error; + } + } + if (message.primary_key_values != null && message.hasOwnProperty("primary_key_values")) { + if (!Array.isArray(message.primary_key_values)) + return "primary_key_values: array expected"; + for (var i = 0; i < message.primary_key_values.length; ++i) { + var error = $root.query.Row.verify(message.primary_key_values[i]); + if (error) + return "primary_key_values." + error; + } + } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) + return "sql: buffer expected"; + return null; + }; - /** - * Constructs a new CommitPreparedResponse. - * @memberof query - * @classdesc Represents a CommitPreparedResponse. - * @implements ICommitPreparedResponse - * @constructor - * @param {query.ICommitPreparedResponse=} [properties] Properties to set - */ - function CommitPreparedResponse(properties) { + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.StreamEvent.Statement + * @static + * @param {Object.} object Plain object + * @returns {query.StreamEvent.Statement} Statement + */ + Statement.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamEvent.Statement) + return object; + var message = new $root.query.StreamEvent.Statement(); + switch (object.category) { + case "Error": + case 0: + message.category = 0; + break; + case "DML": + case 1: + message.category = 1; + break; + case "DDL": + case 2: + message.category = 2; + break; + } + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.primary_key_fields) { + if (!Array.isArray(object.primary_key_fields)) + throw TypeError(".query.StreamEvent.Statement.primary_key_fields: array expected"); + message.primary_key_fields = []; + for (var i = 0; i < object.primary_key_fields.length; ++i) { + if (typeof object.primary_key_fields[i] !== "object") + throw TypeError(".query.StreamEvent.Statement.primary_key_fields: object expected"); + message.primary_key_fields[i] = $root.query.Field.fromObject(object.primary_key_fields[i]); + } + } + if (object.primary_key_values) { + if (!Array.isArray(object.primary_key_values)) + throw TypeError(".query.StreamEvent.Statement.primary_key_values: array expected"); + message.primary_key_values = []; + for (var i = 0; i < object.primary_key_values.length; ++i) { + if (typeof object.primary_key_values[i] !== "object") + throw TypeError(".query.StreamEvent.Statement.primary_key_values: object expected"); + message.primary_key_values[i] = $root.query.Row.fromObject(object.primary_key_values[i]); + } + } + if (object.sql != null) + if (typeof object.sql === "string") + $util.base64.decode(object.sql, message.sql = $util.newBuffer($util.base64.length(object.sql)), 0); + else if (object.sql.length) + message.sql = object.sql; + return message; + }; + + /** + * Creates a plain object from a Statement message. Also converts values to other types if specified. + * @function toObject + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.Statement} message Statement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Statement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.primary_key_fields = []; + object.primary_key_values = []; + } + if (options.defaults) { + object.category = options.enums === String ? "Error" : 0; + object.table_name = ""; + if (options.bytes === String) + object.sql = ""; + else { + object.sql = []; + if (options.bytes !== Array) + object.sql = $util.newBuffer(object.sql); + } + } + if (message.category != null && message.hasOwnProperty("category")) + object.category = options.enums === String ? $root.query.StreamEvent.Statement.Category[message.category] : message.category; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.primary_key_fields && message.primary_key_fields.length) { + object.primary_key_fields = []; + for (var j = 0; j < message.primary_key_fields.length; ++j) + object.primary_key_fields[j] = $root.query.Field.toObject(message.primary_key_fields[j], options); + } + if (message.primary_key_values && message.primary_key_values.length) { + object.primary_key_values = []; + for (var j = 0; j < message.primary_key_values.length; ++j) + object.primary_key_values[j] = $root.query.Row.toObject(message.primary_key_values[j], options); + } + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; + return object; + }; + + /** + * Converts this Statement to JSON. + * @function toJSON + * @memberof query.StreamEvent.Statement + * @instance + * @returns {Object.} JSON object + */ + Statement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Category enum. + * @name query.StreamEvent.Statement.Category + * @enum {number} + * @property {number} Error=0 Error value + * @property {number} DML=1 DML value + * @property {number} DDL=2 DDL value + */ + Statement.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Error"] = 0; + values[valuesById[1] = "DML"] = 1; + values[valuesById[2] = "DDL"] = 2; + return values; + })(); + + return Statement; + })(); + + return StreamEvent; + })(); + + query.ExecuteRequest = (function() { + + /** + * Properties of an ExecuteRequest. + * @memberof query + * @interface IExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ExecuteRequest target + * @property {query.IBoundQuery|null} [query] ExecuteRequest query + * @property {number|Long|null} [transaction_id] ExecuteRequest transaction_id + * @property {query.IExecuteOptions|null} [options] ExecuteRequest options + * @property {number|Long|null} [reserved_id] ExecuteRequest reserved_id + */ + + /** + * Constructs a new ExecuteRequest. + * @memberof query + * @classdesc Represents an ExecuteRequest. + * @implements IExecuteRequest + * @constructor + * @param {query.IExecuteRequest=} [properties] Properties to set + */ + function ExecuteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63557,63 +65361,154 @@ $root.query = (function() { } /** - * Creates a new CommitPreparedResponse instance using the specified properties. + * ExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.effective_caller_id = null; + + /** + * ExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.immediate_caller_id = null; + + /** + * ExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.target = null; + + /** + * ExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.query = null; + + /** + * ExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.options = null; + + /** + * ExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ExecuteRequest + * @instance + */ + ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ExecuteRequest instance using the specified properties. * @function create - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitPreparedResponse=} [properties] Properties to set - * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance + * @param {query.IExecuteRequest=} [properties] Properties to set + * @returns {query.ExecuteRequest} ExecuteRequest instance */ - CommitPreparedResponse.create = function create(properties) { - return new CommitPreparedResponse(properties); + ExecuteRequest.create = function create(properties) { + return new ExecuteRequest(properties); }; /** - * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode + * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedResponse.encode = function encode(message, writer) { + ExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode + * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer. + * Decodes an ExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.ExecuteRequest} ExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedResponse.decode = function decode(reader, length) { + ExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.transaction_id = reader.int64(); + break; + case 6: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 7: + message.reserved_id = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -63623,98 +65518,209 @@ $root.query = (function() { }; /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.ExecuteRequest} ExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitPreparedResponse message. + * Verifies an ExecuteRequest message. * @function verify - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitPreparedResponse.verify = function verify(message) { + ExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.ExecuteRequest} ExecuteRequest */ - CommitPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedResponse) + ExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteRequest) return object; - return new $root.query.CommitPreparedResponse(); + var message = new $root.query.ExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @static - * @param {query.CommitPreparedResponse} message CommitPreparedResponse + * @param {query.ExecuteRequest} message ExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitPreparedResponse.toObject = function toObject() { - return {}; + ExecuteRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + return object; }; /** - * Converts this CommitPreparedResponse to JSON. + * Converts this ExecuteRequest to JSON. * @function toJSON - * @memberof query.CommitPreparedResponse + * @memberof query.ExecuteRequest * @instance * @returns {Object.} JSON object */ - CommitPreparedResponse.prototype.toJSON = function toJSON() { + ExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitPreparedResponse; + return ExecuteRequest; })(); - query.RollbackPreparedRequest = (function() { + query.ExecuteResponse = (function() { /** - * Properties of a RollbackPreparedRequest. + * Properties of an ExecuteResponse. * @memberof query - * @interface IRollbackPreparedRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackPreparedRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackPreparedRequest immediate_caller_id - * @property {query.ITarget|null} [target] RollbackPreparedRequest target - * @property {number|Long|null} [transaction_id] RollbackPreparedRequest transaction_id - * @property {string|null} [dtid] RollbackPreparedRequest dtid + * @interface IExecuteResponse + * @property {query.IQueryResult|null} [result] ExecuteResponse result */ /** - * Constructs a new RollbackPreparedRequest. + * Constructs a new ExecuteResponse. * @memberof query - * @classdesc Represents a RollbackPreparedRequest. - * @implements IRollbackPreparedRequest + * @classdesc Represents an ExecuteResponse. + * @implements IExecuteResponse * @constructor - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @param {query.IExecuteResponse=} [properties] Properties to set */ - function RollbackPreparedRequest(properties) { + function ExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63722,127 +65728,75 @@ $root.query = (function() { } /** - * RollbackPreparedRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackPreparedRequest + * ExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ExecuteResponse * @instance */ - RollbackPreparedRequest.prototype.effective_caller_id = null; + ExecuteResponse.prototype.result = null; /** - * RollbackPreparedRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackPreparedRequest - * @instance + * Creates a new ExecuteResponse instance using the specified properties. + * @function create + * @memberof query.ExecuteResponse + * @static + * @param {query.IExecuteResponse=} [properties] Properties to set + * @returns {query.ExecuteResponse} ExecuteResponse instance */ - RollbackPreparedRequest.prototype.immediate_caller_id = null; + ExecuteResponse.create = function create(properties) { + return new ExecuteResponse(properties); + }; /** - * RollbackPreparedRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.RollbackPreparedRequest - * @instance + * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * @function encode + * @memberof query.ExecuteResponse + * @static + * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - RollbackPreparedRequest.prototype.target = null; + ExecuteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * RollbackPreparedRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RollbackPreparedRequest dtid. - * @member {string} dtid - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.dtid = ""; - - /** - * Creates a new RollbackPreparedRequest instance using the specified properties. - * @function create - * @memberof query.RollbackPreparedRequest - * @static - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance - */ - RollbackPreparedRequest.create = function create(properties) { - return new RollbackPreparedRequest(properties); - }; - - /** - * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. - * @function encode - * @memberof query.RollbackPreparedRequest - * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RollbackPreparedRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); - return writer; - }; - - /** - * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode + * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer. + * Decodes an ExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.ExecuteResponse} ExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedRequest.decode = function decode(reader, length) { + ExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -63853,168 +65807,113 @@ $root.query = (function() { }; /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.ExecuteResponse} ExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackPreparedRequest message. + * Verifies an ExecuteResponse message. * @function verify - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackPreparedRequest.verify = function verify(message) { + ExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "target." + error; + return "result." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.ExecuteResponse} ExecuteResponse */ - RollbackPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedRequest) + ExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteResponse) return object; - var message = new $root.query.RollbackPreparedRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.RollbackPreparedRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + var message = new $root.query.ExecuteResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @static - * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest + * @param {query.ExecuteResponse} message ExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedRequest.toObject = function toObject(message, options) { + ExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this RollbackPreparedRequest to JSON. + * Converts this ExecuteResponse to JSON. * @function toJSON - * @memberof query.RollbackPreparedRequest + * @memberof query.ExecuteResponse * @instance * @returns {Object.} JSON object */ - RollbackPreparedRequest.prototype.toJSON = function toJSON() { + ExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackPreparedRequest; + return ExecuteResponse; })(); - query.RollbackPreparedResponse = (function() { + query.ResultWithError = (function() { /** - * Properties of a RollbackPreparedResponse. + * Properties of a ResultWithError. * @memberof query - * @interface IRollbackPreparedResponse + * @interface IResultWithError + * @property {vtrpc.IRPCError|null} [error] ResultWithError error + * @property {query.IQueryResult|null} [result] ResultWithError result */ /** - * Constructs a new RollbackPreparedResponse. + * Constructs a new ResultWithError. * @memberof query - * @classdesc Represents a RollbackPreparedResponse. - * @implements IRollbackPreparedResponse + * @classdesc Represents a ResultWithError. + * @implements IResultWithError * @constructor - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @param {query.IResultWithError=} [properties] Properties to set */ - function RollbackPreparedResponse(properties) { + function ResultWithError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64022,63 +65921,89 @@ $root.query = (function() { } /** - * Creates a new RollbackPreparedResponse instance using the specified properties. + * ResultWithError error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ResultWithError + * @instance + */ + ResultWithError.prototype.error = null; + + /** + * ResultWithError result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ResultWithError + * @instance + */ + ResultWithError.prototype.result = null; + + /** + * Creates a new ResultWithError instance using the specified properties. * @function create - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance + * @param {query.IResultWithError=} [properties] Properties to set + * @returns {query.ResultWithError} ResultWithError instance */ - RollbackPreparedResponse.create = function create(properties) { - return new RollbackPreparedResponse(properties); + ResultWithError.create = function create(properties) { + return new ResultWithError(properties); }; /** - * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encode - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode + * @param {query.IResultWithError} message ResultWithError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedResponse.encode = function encode(message, writer) { + ResultWithError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode + * @param {query.IResultWithError} message ResultWithError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer. + * Decodes a ResultWithError message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.ResultWithError} ResultWithError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedResponse.decode = function decode(reader, length) { + ResultWithError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + break; + case 2: + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -64088,99 +66013,132 @@ $root.query = (function() { }; /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. + * Decodes a ResultWithError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.ResultWithError} ResultWithError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedResponse.decodeDelimited = function decodeDelimited(reader) { + ResultWithError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackPreparedResponse message. + * Verifies a ResultWithError message. * @function verify - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackPreparedResponse.verify = function verify(message) { + ResultWithError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.ResultWithError} ResultWithError */ - RollbackPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedResponse) + ResultWithError.fromObject = function fromObject(object) { + if (object instanceof $root.query.ResultWithError) return object; - return new $root.query.RollbackPreparedResponse(); + var message = new $root.query.ResultWithError(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ResultWithError.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ResultWithError.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. + * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @static - * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse + * @param {query.ResultWithError} message ResultWithError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedResponse.toObject = function toObject() { - return {}; + ResultWithError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.error = null; + object.result = null; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; }; /** - * Converts this RollbackPreparedResponse to JSON. + * Converts this ResultWithError to JSON. * @function toJSON - * @memberof query.RollbackPreparedResponse + * @memberof query.ResultWithError * @instance * @returns {Object.} JSON object */ - RollbackPreparedResponse.prototype.toJSON = function toJSON() { + ResultWithError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackPreparedResponse; + return ResultWithError; })(); - query.CreateTransactionRequest = (function() { + query.StreamExecuteRequest = (function() { /** - * Properties of a CreateTransactionRequest. + * Properties of a StreamExecuteRequest. * @memberof query - * @interface ICreateTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CreateTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CreateTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] CreateTransactionRequest target - * @property {string|null} [dtid] CreateTransactionRequest dtid - * @property {Array.|null} [participants] CreateTransactionRequest participants + * @interface IStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] StreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] StreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] StreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] StreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] StreamExecuteRequest options + * @property {number|Long|null} [transaction_id] StreamExecuteRequest transaction_id + * @property {number|Long|null} [reserved_id] StreamExecuteRequest reserved_id */ /** - * Constructs a new CreateTransactionRequest. + * Constructs a new StreamExecuteRequest. * @memberof query - * @classdesc Represents a CreateTransactionRequest. - * @implements ICreateTransactionRequest + * @classdesc Represents a StreamExecuteRequest. + * @implements IStreamExecuteRequest * @constructor - * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @param {query.IStreamExecuteRequest=} [properties] Properties to set */ - function CreateTransactionRequest(properties) { - this.participants = []; + function StreamExecuteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64188,67 +66146,83 @@ $root.query = (function() { } /** - * CreateTransactionRequest effective_caller_id. + * StreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @instance */ - CreateTransactionRequest.prototype.effective_caller_id = null; + StreamExecuteRequest.prototype.effective_caller_id = null; /** - * CreateTransactionRequest immediate_caller_id. + * StreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @instance */ - CreateTransactionRequest.prototype.immediate_caller_id = null; + StreamExecuteRequest.prototype.immediate_caller_id = null; /** - * CreateTransactionRequest target. + * StreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @instance */ - CreateTransactionRequest.prototype.target = null; + StreamExecuteRequest.prototype.target = null; /** - * CreateTransactionRequest dtid. - * @member {string} dtid - * @memberof query.CreateTransactionRequest + * StreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.StreamExecuteRequest * @instance */ - CreateTransactionRequest.prototype.dtid = ""; + StreamExecuteRequest.prototype.query = null; /** - * CreateTransactionRequest participants. - * @member {Array.} participants - * @memberof query.CreateTransactionRequest + * StreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.StreamExecuteRequest * @instance */ - CreateTransactionRequest.prototype.participants = $util.emptyArray; + StreamExecuteRequest.prototype.options = null; /** - * Creates a new CreateTransactionRequest instance using the specified properties. + * StreamExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.StreamExecuteRequest + * @instance + */ + StreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * StreamExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.StreamExecuteRequest + * @instance + */ + StreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new StreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.ICreateTransactionRequest=} [properties] Properties to set - * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance + * @param {query.IStreamExecuteRequest=} [properties] Properties to set + * @returns {query.StreamExecuteRequest} StreamExecuteRequest instance */ - CreateTransactionRequest.create = function create(properties) { - return new CreateTransactionRequest(properties); + StreamExecuteRequest.create = function create(properties) { + return new StreamExecuteRequest(properties); }; /** - * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode + * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionRequest.encode = function encode(message, writer) { + StreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -64257,42 +66231,45 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); - if (message.participants != null && message.participants.length) - for (var i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode + * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer. + * Decodes a StreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.StreamExecuteRequest} StreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionRequest.decode = function decode(reader, length) { + StreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -64306,12 +66283,16 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.dtid = reader.string(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + message.transaction_id = reader.int64(); + break; + case 7: + message.reserved_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -64322,30 +66303,30 @@ $root.query = (function() { }; /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.StreamExecuteRequest} StreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + StreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransactionRequest message. + * Verifies a StreamExecuteRequest message. * @function verify - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransactionRequest.verify = function verify(message) { + StreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -64363,83 +66344,112 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (var i = 0; i < message.participants.length; ++i) { - var error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; - } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.StreamExecuteRequest} StreamExecuteRequest */ - CreateTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionRequest) + StreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteRequest) return object; - var message = new $root.query.CreateTransactionRequest(); + var message = new $root.query.StreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CreateTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.StreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CreateTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.StreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.CreateTransactionRequest.target: object expected"); + throw TypeError(".query.StreamExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.dtid != null) - message.dtid = String(object.dtid); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".query.CreateTransactionRequest.participants: array expected"); - message.participants = []; - for (var i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".query.CreateTransactionRequest.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); - } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.StreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.StreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @static - * @param {query.CreateTransactionRequest} message CreateTransactionRequest + * @param {query.StreamExecuteRequest} message StreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionRequest.toObject = function toObject(message, options) { + StreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.participants = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.dtid = ""; + object.query = null; + object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -64447,47 +66457,55 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.participants && message.participants.length) { - object.participants = []; - for (var j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); - } + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this CreateTransactionRequest to JSON. + * Converts this StreamExecuteRequest to JSON. * @function toJSON - * @memberof query.CreateTransactionRequest + * @memberof query.StreamExecuteRequest * @instance * @returns {Object.} JSON object */ - CreateTransactionRequest.prototype.toJSON = function toJSON() { + StreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTransactionRequest; + return StreamExecuteRequest; })(); - query.CreateTransactionResponse = (function() { + query.StreamExecuteResponse = (function() { /** - * Properties of a CreateTransactionResponse. + * Properties of a StreamExecuteResponse. * @memberof query - * @interface ICreateTransactionResponse + * @interface IStreamExecuteResponse + * @property {query.IQueryResult|null} [result] StreamExecuteResponse result */ /** - * Constructs a new CreateTransactionResponse. + * Constructs a new StreamExecuteResponse. * @memberof query - * @classdesc Represents a CreateTransactionResponse. - * @implements ICreateTransactionResponse + * @classdesc Represents a StreamExecuteResponse. + * @implements IStreamExecuteResponse * @constructor - * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @param {query.IStreamExecuteResponse=} [properties] Properties to set */ - function CreateTransactionResponse(properties) { + function StreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64495,63 +66513,76 @@ $root.query = (function() { } /** - * Creates a new CreateTransactionResponse instance using the specified properties. + * StreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.StreamExecuteResponse + * @instance + */ + StreamExecuteResponse.prototype.result = null; + + /** + * Creates a new StreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICreateTransactionResponse=} [properties] Properties to set - * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance + * @param {query.IStreamExecuteResponse=} [properties] Properties to set + * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance */ - CreateTransactionResponse.create = function create(properties) { - return new CreateTransactionResponse(properties); + StreamExecuteResponse.create = function create(properties) { + return new StreamExecuteResponse(properties); }; /** - * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode + * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionResponse.encode = function encode(message, writer) { + StreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode + * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer. + * Decodes a StreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.StreamExecuteResponse} StreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionResponse.decode = function decode(reader, length) { + StreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -64561,98 +66592,115 @@ $root.query = (function() { }; /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.StreamExecuteResponse} StreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + StreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransactionResponse message. + * Verifies a StreamExecuteResponse message. * @function verify - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransactionResponse.verify = function verify(message) { + StreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.StreamExecuteResponse} StreamExecuteResponse */ - CreateTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionResponse) + StreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteResponse) return object; - return new $root.query.CreateTransactionResponse(); + var message = new $root.query.StreamExecuteResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.StreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + return message; }; /** - * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @static - * @param {query.CreateTransactionResponse} message CreateTransactionResponse + * @param {query.StreamExecuteResponse} message StreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionResponse.toObject = function toObject() { - return {}; - }; - + StreamExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + return object; + }; + /** - * Converts this CreateTransactionResponse to JSON. + * Converts this StreamExecuteResponse to JSON. * @function toJSON - * @memberof query.CreateTransactionResponse + * @memberof query.StreamExecuteResponse * @instance * @returns {Object.} JSON object */ - CreateTransactionResponse.prototype.toJSON = function toJSON() { + StreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTransactionResponse; + return StreamExecuteResponse; })(); - query.StartCommitRequest = (function() { + query.BeginRequest = (function() { /** - * Properties of a StartCommitRequest. + * Properties of a BeginRequest. * @memberof query - * @interface IStartCommitRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] StartCommitRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] StartCommitRequest immediate_caller_id - * @property {query.ITarget|null} [target] StartCommitRequest target - * @property {number|Long|null} [transaction_id] StartCommitRequest transaction_id - * @property {string|null} [dtid] StartCommitRequest dtid + * @interface IBeginRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginRequest target + * @property {query.IExecuteOptions|null} [options] BeginRequest options */ /** - * Constructs a new StartCommitRequest. + * Constructs a new BeginRequest. * @memberof query - * @classdesc Represents a StartCommitRequest. - * @implements IStartCommitRequest + * @classdesc Represents a BeginRequest. + * @implements IBeginRequest * @constructor - * @param {query.IStartCommitRequest=} [properties] Properties to set + * @param {query.IBeginRequest=} [properties] Properties to set */ - function StartCommitRequest(properties) { + function BeginRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64660,67 +66708,59 @@ $root.query = (function() { } /** - * StartCommitRequest effective_caller_id. + * BeginRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @instance */ - StartCommitRequest.prototype.effective_caller_id = null; + BeginRequest.prototype.effective_caller_id = null; /** - * StartCommitRequest immediate_caller_id. + * BeginRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @instance */ - StartCommitRequest.prototype.immediate_caller_id = null; + BeginRequest.prototype.immediate_caller_id = null; /** - * StartCommitRequest target. + * BeginRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.StartCommitRequest - * @instance - */ - StartCommitRequest.prototype.target = null; - - /** - * StartCommitRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @instance */ - StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginRequest.prototype.target = null; /** - * StartCommitRequest dtid. - * @member {string} dtid - * @memberof query.StartCommitRequest + * BeginRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginRequest * @instance */ - StartCommitRequest.prototype.dtid = ""; + BeginRequest.prototype.options = null; /** - * Creates a new StartCommitRequest instance using the specified properties. + * Creates a new BeginRequest instance using the specified properties. * @function create - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static - * @param {query.IStartCommitRequest=} [properties] Properties to set - * @returns {query.StartCommitRequest} StartCommitRequest instance + * @param {query.IBeginRequest=} [properties] Properties to set + * @returns {query.BeginRequest} BeginRequest instance */ - StartCommitRequest.create = function create(properties) { - return new StartCommitRequest(properties); + BeginRequest.create = function create(properties) { + return new BeginRequest(properties); }; /** - * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encode - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static - * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode + * @param {query.IBeginRequest} message BeginRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitRequest.encode = function encode(message, writer) { + BeginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -64729,41 +66769,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static - * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode + * @param {query.IBeginRequest} message BeginRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitRequest message from the specified reader or buffer. + * Decodes a BeginRequest message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.BeginRequest} BeginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitRequest.decode = function decode(reader, length) { + BeginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -64777,10 +66815,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -64791,30 +66826,30 @@ $root.query = (function() { }; /** - * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.BeginRequest} BeginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitRequest.decodeDelimited = function decodeDelimited(reader) { + BeginRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartCommitRequest message. + * Verifies a BeginRequest message. * @function verify - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartCommitRequest.verify = function verify(message) { + BeginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -64832,66 +66867,59 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static * @param {Object.} object Plain object - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.BeginRequest} BeginRequest */ - StartCommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitRequest) + BeginRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginRequest) return object; - var message = new $root.query.StartCommitRequest(); + var message = new $root.query.BeginRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.StartCommitRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.StartCommitRequest.target: object expected"); + throw TypeError(".query.BeginRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.BeginRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @static - * @param {query.StartCommitRequest} message StartCommitRequest + * @param {query.BeginRequest} message BeginRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitRequest.toObject = function toObject(message, options) { + BeginRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -64899,12 +66927,7 @@ $root.query = (function() { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; + object.options = null; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -64912,47 +66935,45 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); return object; }; /** - * Converts this StartCommitRequest to JSON. + * Converts this BeginRequest to JSON. * @function toJSON - * @memberof query.StartCommitRequest + * @memberof query.BeginRequest * @instance * @returns {Object.} JSON object */ - StartCommitRequest.prototype.toJSON = function toJSON() { + BeginRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartCommitRequest; + return BeginRequest; })(); - query.StartCommitResponse = (function() { + query.BeginResponse = (function() { /** - * Properties of a StartCommitResponse. + * Properties of a BeginResponse. * @memberof query - * @interface IStartCommitResponse + * @interface IBeginResponse + * @property {number|Long|null} [transaction_id] BeginResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginResponse tablet_alias + * @property {string|null} [session_state_changes] BeginResponse session_state_changes */ /** - * Constructs a new StartCommitResponse. + * Constructs a new BeginResponse. * @memberof query - * @classdesc Represents a StartCommitResponse. - * @implements IStartCommitResponse + * @classdesc Represents a BeginResponse. + * @implements IBeginResponse * @constructor - * @param {query.IStartCommitResponse=} [properties] Properties to set + * @param {query.IBeginResponse=} [properties] Properties to set */ - function StartCommitResponse(properties) { + function BeginResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64960,63 +66981,102 @@ $root.query = (function() { } /** - * Creates a new StartCommitResponse instance using the specified properties. - * @function create - * @memberof query.StartCommitResponse - * @static - * @param {query.IStartCommitResponse=} [properties] Properties to set - * @returns {query.StartCommitResponse} StartCommitResponse instance + * BeginResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginResponse + * @instance */ - StartCommitResponse.create = function create(properties) { - return new StartCommitResponse(properties); - }; + BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. - * @function encode - * @memberof query.StartCommitResponse - * @static - * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode + * BeginResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.BeginResponse + * @instance + */ + BeginResponse.prototype.tablet_alias = null; + + /** + * BeginResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginResponse + * @instance + */ + BeginResponse.prototype.session_state_changes = ""; + + /** + * Creates a new BeginResponse instance using the specified properties. + * @function create + * @memberof query.BeginResponse + * @static + * @param {query.IBeginResponse=} [properties] Properties to set + * @returns {query.BeginResponse} BeginResponse instance + */ + BeginResponse.create = function create(properties) { + return new BeginResponse(properties); + }; + + /** + * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * @function encode + * @memberof query.BeginResponse + * @static + * @param {query.IBeginResponse} message BeginResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitResponse.encode = function encode(message, writer) { + BeginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); return writer; }; /** - * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static - * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode + * @param {query.IBeginResponse} message BeginResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitResponse message from the specified reader or buffer. + * Decodes a BeginResponse message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.BeginResponse} BeginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitResponse.decode = function decode(reader, length) { + BeginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.transaction_id = reader.int64(); + break; + case 2: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 3: + message.session_state_changes = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -65026,98 +67086,146 @@ $root.query = (function() { }; /** - * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. + * Decodes a BeginResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.BeginResponse} BeginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitResponse.decodeDelimited = function decodeDelimited(reader) { + BeginResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartCommitResponse message. + * Verifies a BeginResponse message. * @function verify - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartCommitResponse.verify = function verify(message) { + BeginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static * @param {Object.} object Plain object - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.BeginResponse} BeginResponse */ - StartCommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitResponse) + BeginResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginResponse) return object; - return new $root.query.StartCommitResponse(); + var message = new $root.query.BeginResponse(); + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.BeginResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; }; /** - * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @static - * @param {query.StartCommitResponse} message StartCommitResponse + * @param {query.BeginResponse} message BeginResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitResponse.toObject = function toObject() { - return {}; + BeginResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; + return object; }; /** - * Converts this StartCommitResponse to JSON. + * Converts this BeginResponse to JSON. * @function toJSON - * @memberof query.StartCommitResponse + * @memberof query.BeginResponse * @instance * @returns {Object.} JSON object */ - StartCommitResponse.prototype.toJSON = function toJSON() { + BeginResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartCommitResponse; + return BeginResponse; })(); - query.SetRollbackRequest = (function() { + query.CommitRequest = (function() { /** - * Properties of a SetRollbackRequest. + * Properties of a CommitRequest. * @memberof query - * @interface ISetRollbackRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] SetRollbackRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] SetRollbackRequest immediate_caller_id - * @property {query.ITarget|null} [target] SetRollbackRequest target - * @property {number|Long|null} [transaction_id] SetRollbackRequest transaction_id - * @property {string|null} [dtid] SetRollbackRequest dtid + * @interface ICommitRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitRequest immediate_caller_id + * @property {query.ITarget|null} [target] CommitRequest target + * @property {number|Long|null} [transaction_id] CommitRequest transaction_id */ /** - * Constructs a new SetRollbackRequest. + * Constructs a new CommitRequest. * @memberof query - * @classdesc Represents a SetRollbackRequest. - * @implements ISetRollbackRequest + * @classdesc Represents a CommitRequest. + * @implements ICommitRequest * @constructor - * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @param {query.ICommitRequest=} [properties] Properties to set */ - function SetRollbackRequest(properties) { + function CommitRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65125,67 +67233,59 @@ $root.query = (function() { } /** - * SetRollbackRequest effective_caller_id. + * CommitRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @instance */ - SetRollbackRequest.prototype.effective_caller_id = null; + CommitRequest.prototype.effective_caller_id = null; /** - * SetRollbackRequest immediate_caller_id. + * CommitRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @instance */ - SetRollbackRequest.prototype.immediate_caller_id = null; + CommitRequest.prototype.immediate_caller_id = null; /** - * SetRollbackRequest target. + * CommitRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @instance */ - SetRollbackRequest.prototype.target = null; + CommitRequest.prototype.target = null; /** - * SetRollbackRequest transaction_id. + * CommitRequest transaction_id. * @member {number|Long} transaction_id - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SetRollbackRequest dtid. - * @member {string} dtid - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @instance */ - SetRollbackRequest.prototype.dtid = ""; + CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new SetRollbackRequest instance using the specified properties. + * Creates a new CommitRequest instance using the specified properties. * @function create - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static - * @param {query.ISetRollbackRequest=} [properties] Properties to set - * @returns {query.SetRollbackRequest} SetRollbackRequest instance + * @param {query.ICommitRequest=} [properties] Properties to set + * @returns {query.CommitRequest} CommitRequest instance */ - SetRollbackRequest.create = function create(properties) { - return new SetRollbackRequest(properties); + CommitRequest.create = function create(properties) { + return new CommitRequest(properties); }; /** - * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encode - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode + * @param {query.ICommitRequest} message CommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackRequest.encode = function encode(message, writer) { + CommitRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -65196,39 +67296,37 @@ $root.query = (function() { $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode + * @param {query.ICommitRequest} message CommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackRequest message from the specified reader or buffer. + * Decodes a CommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CommitRequest} CommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackRequest.decode = function decode(reader, length) { + CommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65244,9 +67342,6 @@ $root.query = (function() { case 4: message.transaction_id = reader.int64(); break; - case 5: - message.dtid = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -65256,30 +67351,30 @@ $root.query = (function() { }; /** - * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CommitRequest} CommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackRequest.decodeDelimited = function decodeDelimited(reader) { + CommitRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetRollbackRequest message. + * Verifies a CommitRequest message. * @function verify - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetRollbackRequest.verify = function verify(message) { + CommitRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -65300,37 +67395,34 @@ $root.query = (function() { if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CommitRequest} CommitRequest */ - SetRollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackRequest) + CommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitRequest) return object; - var message = new $root.query.SetRollbackRequest(); + var message = new $root.query.CommitRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.SetRollbackRequest.effective_caller_id: object expected"); + throw TypeError(".query.CommitRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.SetRollbackRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CommitRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.SetRollbackRequest.target: object expected"); + throw TypeError(".query.CommitRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.transaction_id != null) @@ -65342,21 +67434,19 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @static - * @param {query.SetRollbackRequest} message SetRollbackRequest + * @param {query.CommitRequest} message CommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackRequest.toObject = function toObject(message, options) { + CommitRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -65369,7 +67459,6 @@ $root.query = (function() { object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -65382,42 +67471,41 @@ $root.query = (function() { object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; return object; }; /** - * Converts this SetRollbackRequest to JSON. + * Converts this CommitRequest to JSON. * @function toJSON - * @memberof query.SetRollbackRequest + * @memberof query.CommitRequest * @instance * @returns {Object.} JSON object */ - SetRollbackRequest.prototype.toJSON = function toJSON() { + CommitRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetRollbackRequest; + return CommitRequest; })(); - query.SetRollbackResponse = (function() { + query.CommitResponse = (function() { /** - * Properties of a SetRollbackResponse. + * Properties of a CommitResponse. * @memberof query - * @interface ISetRollbackResponse + * @interface ICommitResponse + * @property {number|Long|null} [reserved_id] CommitResponse reserved_id */ /** - * Constructs a new SetRollbackResponse. + * Constructs a new CommitResponse. * @memberof query - * @classdesc Represents a SetRollbackResponse. - * @implements ISetRollbackResponse + * @classdesc Represents a CommitResponse. + * @implements ICommitResponse * @constructor - * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @param {query.ICommitResponse=} [properties] Properties to set */ - function SetRollbackResponse(properties) { + function CommitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65425,63 +67513,76 @@ $root.query = (function() { } /** - * Creates a new SetRollbackResponse instance using the specified properties. + * CommitResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.CommitResponse + * @instance + */ + CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CommitResponse instance using the specified properties. * @function create - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static - * @param {query.ISetRollbackResponse=} [properties] Properties to set - * @returns {query.SetRollbackResponse} SetRollbackResponse instance + * @param {query.ICommitResponse=} [properties] Properties to set + * @returns {query.CommitResponse} CommitResponse instance */ - SetRollbackResponse.create = function create(properties) { - return new SetRollbackResponse(properties); + CommitResponse.create = function create(properties) { + return new CommitResponse(properties); }; /** - * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encode - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {query.ICommitResponse} message CommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackResponse.encode = function encode(message, writer) { + CommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {query.ICommitResponse} message CommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackResponse message from the specified reader or buffer. + * Decodes a CommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.CommitResponse} CommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackResponse.decode = function decode(reader, length) { + CommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.reserved_id = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -65491,97 +67592,124 @@ $root.query = (function() { }; /** - * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.CommitResponse} CommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackResponse.decodeDelimited = function decodeDelimited(reader) { + CommitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetRollbackResponse message. + * Verifies a CommitResponse message. * @function verify - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetRollbackResponse.verify = function verify(message) { + CommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.CommitResponse} CommitResponse */ - SetRollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackResponse) + CommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitResponse) return object; - return new $root.query.SetRollbackResponse(); + var message = new $root.query.CommitResponse(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. + * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @static - * @param {query.SetRollbackResponse} message SetRollbackResponse + * @param {query.CommitResponse} message CommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackResponse.toObject = function toObject() { - return {}; + CommitResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + return object; }; /** - * Converts this SetRollbackResponse to JSON. + * Converts this CommitResponse to JSON. * @function toJSON - * @memberof query.SetRollbackResponse + * @memberof query.CommitResponse * @instance * @returns {Object.} JSON object */ - SetRollbackResponse.prototype.toJSON = function toJSON() { + CommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetRollbackResponse; + return CommitResponse; })(); - query.ConcludeTransactionRequest = (function() { + query.RollbackRequest = (function() { /** - * Properties of a ConcludeTransactionRequest. + * Properties of a RollbackRequest. * @memberof query - * @interface IConcludeTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ConcludeTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ConcludeTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] ConcludeTransactionRequest target - * @property {string|null} [dtid] ConcludeTransactionRequest dtid + * @interface IRollbackRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackRequest immediate_caller_id + * @property {query.ITarget|null} [target] RollbackRequest target + * @property {number|Long|null} [transaction_id] RollbackRequest transaction_id */ /** - * Constructs a new ConcludeTransactionRequest. + * Constructs a new RollbackRequest. * @memberof query - * @classdesc Represents a ConcludeTransactionRequest. - * @implements IConcludeTransactionRequest + * @classdesc Represents a RollbackRequest. + * @implements IRollbackRequest * @constructor - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + * @param {query.IRollbackRequest=} [properties] Properties to set */ - function ConcludeTransactionRequest(properties) { + function RollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65589,59 +67717,59 @@ $root.query = (function() { } /** - * ConcludeTransactionRequest effective_caller_id. + * RollbackRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @instance */ - ConcludeTransactionRequest.prototype.effective_caller_id = null; + RollbackRequest.prototype.effective_caller_id = null; /** - * ConcludeTransactionRequest immediate_caller_id. + * RollbackRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @instance */ - ConcludeTransactionRequest.prototype.immediate_caller_id = null; + RollbackRequest.prototype.immediate_caller_id = null; /** - * ConcludeTransactionRequest target. + * RollbackRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @instance */ - ConcludeTransactionRequest.prototype.target = null; + RollbackRequest.prototype.target = null; /** - * ConcludeTransactionRequest dtid. - * @member {string} dtid - * @memberof query.ConcludeTransactionRequest + * RollbackRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.RollbackRequest * @instance */ - ConcludeTransactionRequest.prototype.dtid = ""; + RollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new RollbackRequest instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance + * @param {query.IRollbackRequest=} [properties] Properties to set + * @returns {query.RollbackRequest} RollbackRequest instance */ - ConcludeTransactionRequest.create = function create(properties) { - return new ConcludeTransactionRequest(properties); + RollbackRequest.create = function create(properties) { + return new RollbackRequest(properties); }; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encode = function encode(message, writer) { + RollbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -65650,39 +67778,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); return writer; }; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * Decodes a RollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.RollbackRequest} RollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionRequest.decode = function decode(reader, length) { + RollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -65696,7 +67824,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.dtid = reader.string(); + message.transaction_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -65707,30 +67835,30 @@ $root.query = (function() { }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.RollbackRequest} RollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + RollbackRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionRequest message. + * Verifies a RollbackRequest message. * @function verify - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConcludeTransactionRequest.verify = function verify(message) { + RollbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -65748,54 +67876,61 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; return null; }; /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.RollbackRequest} RollbackRequest */ - ConcludeTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionRequest) + RollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackRequest) return object; - var message = new $root.query.ConcludeTransactionRequest(); + var message = new $root.query.RollbackRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ConcludeTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.RollbackRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ConcludeTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.RollbackRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); + throw TypeError(".query.RollbackRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.dtid != null) - message.dtid = String(object.dtid); + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @static - * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest + * @param {query.RollbackRequest} message RollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionRequest.toObject = function toObject(message, options) { + RollbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -65803,7 +67938,11 @@ $root.query = (function() { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.dtid = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -65811,42 +67950,46 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; return object; }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this RollbackRequest to JSON. * @function toJSON - * @memberof query.ConcludeTransactionRequest + * @memberof query.RollbackRequest * @instance * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.toJSON = function toJSON() { + RollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConcludeTransactionRequest; + return RollbackRequest; })(); - query.ConcludeTransactionResponse = (function() { + query.RollbackResponse = (function() { /** - * Properties of a ConcludeTransactionResponse. + * Properties of a RollbackResponse. * @memberof query - * @interface IConcludeTransactionResponse + * @interface IRollbackResponse + * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id */ /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new RollbackResponse. * @memberof query - * @classdesc Represents a ConcludeTransactionResponse. - * @implements IConcludeTransactionResponse + * @classdesc Represents a RollbackResponse. + * @implements IRollbackResponse * @constructor - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @param {query.IRollbackResponse=} [properties] Properties to set */ - function ConcludeTransactionResponse(properties) { + function RollbackResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65854,63 +67997,76 @@ $root.query = (function() { } /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. + * RollbackResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.RollbackResponse + * @instance + */ + RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RollbackResponse instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance + * @param {query.IRollbackResponse=} [properties] Properties to set + * @returns {query.RollbackResponse} RollbackResponse instance */ - ConcludeTransactionResponse.create = function create(properties) { - return new ConcludeTransactionResponse(properties); + RollbackResponse.create = function create(properties) { + return new RollbackResponse(properties); }; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encode = function encode(message, writer) { + RollbackResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * Decodes a RollbackResponse message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.RollbackResponse} RollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionResponse.decode = function decode(reader, length) { + RollbackResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.reserved_id = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -65920,97 +68076,125 @@ $root.query = (function() { }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.RollbackResponse} RollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + RollbackResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionResponse message. + * Verifies a RollbackResponse message. * @function verify - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConcludeTransactionResponse.verify = function verify(message) { + RollbackResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.RollbackResponse} RollbackResponse */ - ConcludeTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionResponse) + RollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackResponse) return object; - return new $root.query.ConcludeTransactionResponse(); + var message = new $root.query.RollbackResponse(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @static - * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse + * @param {query.RollbackResponse} message RollbackResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionResponse.toObject = function toObject() { - return {}; + RollbackResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + return object; }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this RollbackResponse to JSON. * @function toJSON - * @memberof query.ConcludeTransactionResponse + * @memberof query.RollbackResponse * @instance * @returns {Object.} JSON object */ - ConcludeTransactionResponse.prototype.toJSON = function toJSON() { + RollbackResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConcludeTransactionResponse; + return RollbackResponse; })(); - query.ReadTransactionRequest = (function() { + query.PrepareRequest = (function() { /** - * Properties of a ReadTransactionRequest. + * Properties of a PrepareRequest. * @memberof query - * @interface IReadTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReadTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReadTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReadTransactionRequest target - * @property {string|null} [dtid] ReadTransactionRequest dtid + * @interface IPrepareRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] PrepareRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] PrepareRequest immediate_caller_id + * @property {query.ITarget|null} [target] PrepareRequest target + * @property {number|Long|null} [transaction_id] PrepareRequest transaction_id + * @property {string|null} [dtid] PrepareRequest dtid */ /** - * Constructs a new ReadTransactionRequest. + * Constructs a new PrepareRequest. * @memberof query - * @classdesc Represents a ReadTransactionRequest. - * @implements IReadTransactionRequest + * @classdesc Represents a PrepareRequest. + * @implements IPrepareRequest * @constructor - * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @param {query.IPrepareRequest=} [properties] Properties to set */ - function ReadTransactionRequest(properties) { + function PrepareRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66018,59 +68202,67 @@ $root.query = (function() { } /** - * ReadTransactionRequest effective_caller_id. + * PrepareRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @instance */ - ReadTransactionRequest.prototype.effective_caller_id = null; + PrepareRequest.prototype.effective_caller_id = null; /** - * ReadTransactionRequest immediate_caller_id. + * PrepareRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @instance */ - ReadTransactionRequest.prototype.immediate_caller_id = null; + PrepareRequest.prototype.immediate_caller_id = null; /** - * ReadTransactionRequest target. + * PrepareRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @instance */ - ReadTransactionRequest.prototype.target = null; + PrepareRequest.prototype.target = null; /** - * ReadTransactionRequest dtid. + * PrepareRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PrepareRequest dtid. * @member {string} dtid - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @instance */ - ReadTransactionRequest.prototype.dtid = ""; + PrepareRequest.prototype.dtid = ""; /** - * Creates a new ReadTransactionRequest instance using the specified properties. + * Creates a new PrepareRequest instance using the specified properties. * @function create - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static - * @param {query.IReadTransactionRequest=} [properties] Properties to set - * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance + * @param {query.IPrepareRequest=} [properties] Properties to set + * @returns {query.PrepareRequest} PrepareRequest instance */ - ReadTransactionRequest.create = function create(properties) { - return new ReadTransactionRequest(properties); + PrepareRequest.create = function create(properties) { + return new PrepareRequest(properties); }; /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode + * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionRequest.encode = function encode(message, writer) { + PrepareRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -66079,39 +68271,41 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode + * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * Decodes a PrepareRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.PrepareRequest} PrepareRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionRequest.decode = function decode(reader, length) { + PrepareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -66125,6 +68319,9 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: + message.transaction_id = reader.int64(); + break; + case 5: message.dtid = reader.string(); break; default: @@ -66136,30 +68333,30 @@ $root.query = (function() { }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.PrepareRequest} PrepareRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + PrepareRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionRequest message. + * Verifies a PrepareRequest message. * @function verify - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadTransactionRequest.verify = function verify(message) { + PrepareRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -66177,6 +68374,9 @@ $root.query = (function() { if (error) return "target." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; if (message.dtid != null && message.hasOwnProperty("dtid")) if (!$util.isString(message.dtid)) return "dtid: string expected"; @@ -66184,47 +68384,56 @@ $root.query = (function() { }; /** - * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.PrepareRequest} PrepareRequest */ - ReadTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionRequest) + PrepareRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareRequest) return object; - var message = new $root.query.ReadTransactionRequest(); + var message = new $root.query.PrepareRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReadTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.PrepareRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReadTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReadTransactionRequest.target: object expected"); + throw TypeError(".query.PrepareRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.dtid != null) message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @static - * @param {query.ReadTransactionRequest} message ReadTransactionRequest + * @param {query.PrepareRequest} message PrepareRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionRequest.toObject = function toObject(message, options) { + PrepareRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -66232,6 +68441,11 @@ $root.query = (function() { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) @@ -66240,43 +68454,47 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.dtid != null && message.hasOwnProperty("dtid")) object.dtid = message.dtid; return object; }; /** - * Converts this ReadTransactionRequest to JSON. + * Converts this PrepareRequest to JSON. * @function toJSON - * @memberof query.ReadTransactionRequest + * @memberof query.PrepareRequest * @instance * @returns {Object.} JSON object */ - ReadTransactionRequest.prototype.toJSON = function toJSON() { + PrepareRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadTransactionRequest; + return PrepareRequest; })(); - query.ReadTransactionResponse = (function() { + query.PrepareResponse = (function() { /** - * Properties of a ReadTransactionResponse. + * Properties of a PrepareResponse. * @memberof query - * @interface IReadTransactionResponse - * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata + * @interface IPrepareResponse */ /** - * Constructs a new ReadTransactionResponse. + * Constructs a new PrepareResponse. * @memberof query - * @classdesc Represents a ReadTransactionResponse. - * @implements IReadTransactionResponse + * @classdesc Represents a PrepareResponse. + * @implements IPrepareResponse * @constructor - * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @param {query.IPrepareResponse=} [properties] Properties to set */ - function ReadTransactionResponse(properties) { + function PrepareResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66284,76 +68502,63 @@ $root.query = (function() { } /** - * ReadTransactionResponse metadata. - * @member {query.ITransactionMetadata|null|undefined} metadata - * @memberof query.ReadTransactionResponse - * @instance - */ - ReadTransactionResponse.prototype.metadata = null; - - /** - * Creates a new ReadTransactionResponse instance using the specified properties. + * Creates a new PrepareResponse instance using the specified properties. * @function create - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static - * @param {query.IReadTransactionResponse=} [properties] Properties to set - * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance + * @param {query.IPrepareResponse=} [properties] Properties to set + * @returns {query.PrepareResponse} PrepareResponse instance */ - ReadTransactionResponse.create = function create(properties) { - return new ReadTransactionResponse(properties); + PrepareResponse.create = function create(properties) { + return new PrepareResponse(properties); }; /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encode = function encode(message, writer) { + PrepareResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.query.TransactionMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * Decodes a PrepareResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.PrepareResponse} PrepareResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionResponse.decode = function decode(reader, length) { + PrepareResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -66363,119 +68568,97 @@ $root.query = (function() { }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.PrepareResponse} PrepareResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + PrepareResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionResponse message. + * Verifies a PrepareResponse message. * @function verify - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadTransactionResponse.verify = function verify(message) { + PrepareResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.query.TransactionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } return null; }; /** - * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.PrepareResponse} PrepareResponse */ - ReadTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionResponse) + PrepareResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareResponse) return object; - var message = new $root.query.ReadTransactionResponse(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".query.ReadTransactionResponse.metadata: object expected"); - message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); - } - return message; + return new $root.query.PrepareResponse(); }; /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @static - * @param {query.ReadTransactionResponse} message ReadTransactionResponse + * @param {query.PrepareResponse} message PrepareResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); - return object; + PrepareResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ReadTransactionResponse to JSON. + * Converts this PrepareResponse to JSON. * @function toJSON - * @memberof query.ReadTransactionResponse + * @memberof query.PrepareResponse * @instance * @returns {Object.} JSON object */ - ReadTransactionResponse.prototype.toJSON = function toJSON() { + PrepareResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadTransactionResponse; + return PrepareResponse; })(); - query.BeginExecuteRequest = (function() { + query.CommitPreparedRequest = (function() { /** - * Properties of a BeginExecuteRequest. + * Properties of a CommitPreparedRequest. * @memberof query - * @interface IBeginExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginExecuteRequest target - * @property {query.IBoundQuery|null} [query] BeginExecuteRequest query - * @property {query.IExecuteOptions|null} [options] BeginExecuteRequest options - * @property {number|Long|null} [reserved_id] BeginExecuteRequest reserved_id - * @property {Array.|null} [pre_queries] BeginExecuteRequest pre_queries + * @interface ICommitPreparedRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitPreparedRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitPreparedRequest immediate_caller_id + * @property {query.ITarget|null} [target] CommitPreparedRequest target + * @property {string|null} [dtid] CommitPreparedRequest dtid */ /** - * Constructs a new BeginExecuteRequest. + * Constructs a new CommitPreparedRequest. * @memberof query - * @classdesc Represents a BeginExecuteRequest. - * @implements IBeginExecuteRequest + * @classdesc Represents a CommitPreparedRequest. + * @implements ICommitPreparedRequest * @constructor - * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @param {query.ICommitPreparedRequest=} [properties] Properties to set */ - function BeginExecuteRequest(properties) { - this.pre_queries = []; + function CommitPreparedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66483,83 +68666,59 @@ $root.query = (function() { } /** - * BeginExecuteRequest effective_caller_id. + * CommitPreparedRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @instance */ - BeginExecuteRequest.prototype.effective_caller_id = null; + CommitPreparedRequest.prototype.effective_caller_id = null; /** - * BeginExecuteRequest immediate_caller_id. + * CommitPreparedRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @instance */ - BeginExecuteRequest.prototype.immediate_caller_id = null; + CommitPreparedRequest.prototype.immediate_caller_id = null; /** - * BeginExecuteRequest target. + * CommitPreparedRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.target = null; - - /** - * BeginExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.query = null; - - /** - * BeginExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.options = null; - - /** - * BeginExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @instance */ - BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitPreparedRequest.prototype.target = null; /** - * BeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginExecuteRequest + * CommitPreparedRequest dtid. + * @member {string} dtid + * @memberof query.CommitPreparedRequest * @instance */ - BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + CommitPreparedRequest.prototype.dtid = ""; /** - * Creates a new BeginExecuteRequest instance using the specified properties. + * Creates a new CommitPreparedRequest instance using the specified properties. * @function create - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.IBeginExecuteRequest=} [properties] Properties to set - * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance + * @param {query.ICommitPreparedRequest=} [properties] Properties to set + * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance */ - BeginExecuteRequest.create = function create(properties) { - return new BeginExecuteRequest(properties); + CommitPreparedRequest.create = function create(properties) { + return new CommitPreparedRequest(properties); }; /** - * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode + * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteRequest.encode = function encode(message, writer) { + CommitPreparedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -66568,46 +68727,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.reserved_id); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode + * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer. + * Decodes a CommitPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.CommitPreparedRequest} CommitPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteRequest.decode = function decode(reader, length) { + CommitPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -66621,18 +68773,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - message.reserved_id = reader.int64(); - break; - case 7: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -66643,30 +68784,30 @@ $root.query = (function() { }; /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.CommitPreparedRequest} CommitPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + CommitPreparedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginExecuteRequest message. + * Verifies a CommitPreparedRequest message. * @function verify - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginExecuteRequest.verify = function verify(message) { + CommitPreparedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -66684,111 +68825,62 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.CommitPreparedRequest} CommitPreparedRequest */ - BeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteRequest) + CommitPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedRequest) return object; - var message = new $root.query.BeginExecuteRequest(); + var message = new $root.query.CommitPreparedRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.CommitPreparedRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.BeginExecuteRequest.target: object expected"); + throw TypeError(".query.CommitPreparedRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.BeginExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @static - * @param {query.BeginExecuteRequest} message BeginExecuteRequest + * @param {query.CommitPreparedRequest} message CommitPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteRequest.toObject = function toObject(message, options) { + CommitPreparedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -66796,59 +68888,42 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this BeginExecuteRequest to JSON. + * Converts this CommitPreparedRequest to JSON. * @function toJSON - * @memberof query.BeginExecuteRequest + * @memberof query.CommitPreparedRequest * @instance * @returns {Object.} JSON object */ - BeginExecuteRequest.prototype.toJSON = function toJSON() { + CommitPreparedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginExecuteRequest; + return CommitPreparedRequest; })(); - query.BeginExecuteResponse = (function() { + query.CommitPreparedResponse = (function() { /** - * Properties of a BeginExecuteResponse. + * Properties of a CommitPreparedResponse. * @memberof query - * @interface IBeginExecuteResponse - * @property {vtrpc.IRPCError|null} [error] BeginExecuteResponse error - * @property {query.IQueryResult|null} [result] BeginExecuteResponse result - * @property {number|Long|null} [transaction_id] BeginExecuteResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] BeginExecuteResponse session_state_changes + * @interface ICommitPreparedResponse */ /** - * Constructs a new BeginExecuteResponse. + * Constructs a new CommitPreparedResponse. * @memberof query - * @classdesc Represents a BeginExecuteResponse. - * @implements IBeginExecuteResponse + * @classdesc Represents a CommitPreparedResponse. + * @implements ICommitPreparedResponse * @constructor - * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @param {query.ICommitPreparedResponse=} [properties] Properties to set */ - function BeginExecuteResponse(properties) { + function CommitPreparedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66856,128 +68931,63 @@ $root.query = (function() { } /** - * BeginExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.error = null; - - /** - * BeginExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.result = null; - - /** - * BeginExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.tablet_alias = null; - - /** - * BeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.session_state_changes = ""; - - /** - * Creates a new BeginExecuteResponse instance using the specified properties. + * Creates a new CommitPreparedResponse instance using the specified properties. * @function create - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.IBeginExecuteResponse=} [properties] Properties to set - * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance + * @param {query.ICommitPreparedResponse=} [properties] Properties to set + * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance */ - BeginExecuteResponse.create = function create(properties) { - return new BeginExecuteResponse(properties); + CommitPreparedResponse.create = function create(properties) { + return new CommitPreparedResponse(properties); }; /** - * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encode = function encode(message, writer) { + CommitPreparedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer. + * Decodes a CommitPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.CommitPreparedResponse} CommitPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteResponse.decode = function decode(reader, length) { + CommitPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.transaction_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 5: - message.session_state_changes = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -66987,176 +68997,98 @@ $root.query = (function() { }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.CommitPreparedResponse} CommitPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + CommitPreparedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginExecuteResponse message. + * Verifies a CommitPreparedResponse message. * @function verify - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginExecuteResponse.verify = function verify(message) { + CommitPreparedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.CommitPreparedResponse} CommitPreparedResponse */ - BeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteResponse) + CommitPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedResponse) return object; - var message = new $root.query.BeginExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.BeginExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.BeginExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; + return new $root.query.CommitPreparedResponse(); }; /** - * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @static - * @param {query.BeginExecuteResponse} message BeginExecuteResponse + * @param {query.CommitPreparedResponse} message CommitPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; - return object; + CommitPreparedResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BeginExecuteResponse to JSON. + * Converts this CommitPreparedResponse to JSON. * @function toJSON - * @memberof query.BeginExecuteResponse + * @memberof query.CommitPreparedResponse * @instance * @returns {Object.} JSON object */ - BeginExecuteResponse.prototype.toJSON = function toJSON() { + CommitPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginExecuteResponse; + return CommitPreparedResponse; })(); - query.BeginStreamExecuteRequest = (function() { + query.RollbackPreparedRequest = (function() { /** - * Properties of a BeginStreamExecuteRequest. + * Properties of a RollbackPreparedRequest. * @memberof query - * @interface IBeginStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] BeginStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] BeginStreamExecuteRequest options - * @property {Array.|null} [pre_queries] BeginStreamExecuteRequest pre_queries - * @property {number|Long|null} [reserved_id] BeginStreamExecuteRequest reserved_id + * @interface IRollbackPreparedRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackPreparedRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackPreparedRequest immediate_caller_id + * @property {query.ITarget|null} [target] RollbackPreparedRequest target + * @property {number|Long|null} [transaction_id] RollbackPreparedRequest transaction_id + * @property {string|null} [dtid] RollbackPreparedRequest dtid */ /** - * Constructs a new BeginStreamExecuteRequest. + * Constructs a new RollbackPreparedRequest. * @memberof query - * @classdesc Represents a BeginStreamExecuteRequest. - * @implements IBeginStreamExecuteRequest + * @classdesc Represents a RollbackPreparedRequest. + * @implements IRollbackPreparedRequest * @constructor - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set */ - function BeginStreamExecuteRequest(properties) { - this.pre_queries = []; + function RollbackPreparedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67164,83 +69096,67 @@ $root.query = (function() { } /** - * BeginStreamExecuteRequest effective_caller_id. + * RollbackPreparedRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @instance */ - BeginStreamExecuteRequest.prototype.effective_caller_id = null; + RollbackPreparedRequest.prototype.effective_caller_id = null; /** - * BeginStreamExecuteRequest immediate_caller_id. + * RollbackPreparedRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @instance */ - BeginStreamExecuteRequest.prototype.immediate_caller_id = null; + RollbackPreparedRequest.prototype.immediate_caller_id = null; /** - * BeginStreamExecuteRequest target. + * RollbackPreparedRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.BeginStreamExecuteRequest - * @instance - */ - BeginStreamExecuteRequest.prototype.target = null; - - /** - * BeginStreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.BeginStreamExecuteRequest - * @instance - */ - BeginStreamExecuteRequest.prototype.query = null; - - /** - * BeginStreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @instance */ - BeginStreamExecuteRequest.prototype.options = null; + RollbackPreparedRequest.prototype.target = null; /** - * BeginStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginStreamExecuteRequest + * RollbackPreparedRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.RollbackPreparedRequest * @instance */ - BeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + RollbackPreparedRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BeginStreamExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.BeginStreamExecuteRequest + * RollbackPreparedRequest dtid. + * @member {string} dtid + * @memberof query.RollbackPreparedRequest * @instance */ - BeginStreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RollbackPreparedRequest.prototype.dtid = ""; /** - * Creates a new BeginStreamExecuteRequest instance using the specified properties. + * Creates a new RollbackPreparedRequest instance using the specified properties. * @function create - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance */ - BeginStreamExecuteRequest.create = function create(properties) { - return new BeginStreamExecuteRequest(properties); + RollbackPreparedRequest.create = function create(properties) { + return new RollbackPreparedRequest(properties); }; /** - * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode + * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteRequest.encode = function encode(message, writer) { + RollbackPreparedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -67249,46 +69165,41 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode + * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a RollbackPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteRequest.decode = function decode(reader, length) { + RollbackPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -67302,18 +69213,10 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); - break; - case 7: - message.reserved_id = reader.int64(); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -67324,30 +69227,30 @@ $root.query = (function() { }; /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + RollbackPreparedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginStreamExecuteRequest message. + * Verifies a RollbackPreparedRequest message. * @function verify - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginStreamExecuteRequest.verify = function verify(message) { + RollbackPreparedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -67365,111 +69268,79 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest */ - BeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteRequest) + RollbackPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedRequest) return object; - var message = new $root.query.BeginStreamExecuteRequest(); + var message = new $root.query.RollbackPreparedRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.RollbackPreparedRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.target: object expected"); + throw TypeError(".query.RollbackPreparedRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.BeginStreamExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } - if (object.reserved_id != null) + if (object.transaction_id != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @static - * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest + * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteRequest.toObject = function toObject(message, options) { + RollbackPreparedRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -67477,59 +69348,47 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this BeginStreamExecuteRequest to JSON. + * Converts this RollbackPreparedRequest to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteRequest + * @memberof query.RollbackPreparedRequest * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + RollbackPreparedRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginStreamExecuteRequest; + return RollbackPreparedRequest; })(); - query.BeginStreamExecuteResponse = (function() { + query.RollbackPreparedResponse = (function() { /** - * Properties of a BeginStreamExecuteResponse. + * Properties of a RollbackPreparedResponse. * @memberof query - * @interface IBeginStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] BeginStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] BeginStreamExecuteResponse result - * @property {number|Long|null} [transaction_id] BeginStreamExecuteResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginStreamExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] BeginStreamExecuteResponse session_state_changes + * @interface IRollbackPreparedResponse */ /** - * Constructs a new BeginStreamExecuteResponse. + * Constructs a new RollbackPreparedResponse. * @memberof query - * @classdesc Represents a BeginStreamExecuteResponse. - * @implements IBeginStreamExecuteResponse + * @classdesc Represents a RollbackPreparedResponse. + * @implements IRollbackPreparedResponse * @constructor - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set */ - function BeginStreamExecuteResponse(properties) { + function RollbackPreparedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67537,128 +69396,63 @@ $root.query = (function() { } /** - * BeginStreamExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.error = null; - - /** - * BeginStreamExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.result = null; - - /** - * BeginStreamExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginStreamExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.tablet_alias = null; - - /** - * BeginStreamExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginStreamExecuteResponse - * @instance - */ - BeginStreamExecuteResponse.prototype.session_state_changes = ""; - - /** - * Creates a new BeginStreamExecuteResponse instance using the specified properties. + * Creates a new RollbackPreparedResponse instance using the specified properties. * @function create - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance */ - BeginStreamExecuteResponse.create = function create(properties) { - return new BeginStreamExecuteResponse(properties); + RollbackPreparedResponse.create = function create(properties) { + return new RollbackPreparedResponse(properties); }; /** - * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode + * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteResponse.encode = function encode(message, writer) { + RollbackPreparedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode + * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a RollbackPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteResponse.decode = function decode(reader, length) { + RollbackPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.transaction_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 5: - message.session_state_changes = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -67668,172 +69462,99 @@ $root.query = (function() { }; /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + RollbackPreparedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginStreamExecuteResponse message. + * Verifies a RollbackPreparedResponse message. * @function verify - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginStreamExecuteResponse.verify = function verify(message) { + RollbackPreparedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse */ - BeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteResponse) + RollbackPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedResponse) return object; - var message = new $root.query.BeginStreamExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); - return message; + return new $root.query.RollbackPreparedResponse(); }; /** - * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @static - * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse + * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; - return object; + RollbackPreparedResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BeginStreamExecuteResponse to JSON. + * Converts this RollbackPreparedResponse to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteResponse + * @memberof query.RollbackPreparedResponse * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + RollbackPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginStreamExecuteResponse; + return RollbackPreparedResponse; })(); - query.MessageStreamRequest = (function() { + query.CreateTransactionRequest = (function() { /** - * Properties of a MessageStreamRequest. + * Properties of a CreateTransactionRequest. * @memberof query - * @interface IMessageStreamRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageStreamRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageStreamRequest immediate_caller_id - * @property {query.ITarget|null} [target] MessageStreamRequest target - * @property {string|null} [name] MessageStreamRequest name + * @interface ICreateTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CreateTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CreateTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] CreateTransactionRequest target + * @property {string|null} [dtid] CreateTransactionRequest dtid + * @property {Array.|null} [participants] CreateTransactionRequest participants */ /** - * Constructs a new MessageStreamRequest. + * Constructs a new CreateTransactionRequest. * @memberof query - * @classdesc Represents a MessageStreamRequest. - * @implements IMessageStreamRequest + * @classdesc Represents a CreateTransactionRequest. + * @implements ICreateTransactionRequest * @constructor - * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @param {query.ICreateTransactionRequest=} [properties] Properties to set */ - function MessageStreamRequest(properties) { + function CreateTransactionRequest(properties) { + this.participants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67841,59 +69562,67 @@ $root.query = (function() { } /** - * MessageStreamRequest effective_caller_id. + * CreateTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @instance */ - MessageStreamRequest.prototype.effective_caller_id = null; + CreateTransactionRequest.prototype.effective_caller_id = null; /** - * MessageStreamRequest immediate_caller_id. + * CreateTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @instance */ - MessageStreamRequest.prototype.immediate_caller_id = null; + CreateTransactionRequest.prototype.immediate_caller_id = null; /** - * MessageStreamRequest target. + * CreateTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @instance */ - MessageStreamRequest.prototype.target = null; + CreateTransactionRequest.prototype.target = null; /** - * MessageStreamRequest name. - * @member {string} name - * @memberof query.MessageStreamRequest + * CreateTransactionRequest dtid. + * @member {string} dtid + * @memberof query.CreateTransactionRequest * @instance */ - MessageStreamRequest.prototype.name = ""; + CreateTransactionRequest.prototype.dtid = ""; /** - * Creates a new MessageStreamRequest instance using the specified properties. + * CreateTransactionRequest participants. + * @member {Array.} participants + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.participants = $util.emptyArray; + + /** + * Creates a new CreateTransactionRequest instance using the specified properties. * @function create - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IMessageStreamRequest=} [properties] Properties to set - * @returns {query.MessageStreamRequest} MessageStreamRequest instance + * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance */ - MessageStreamRequest.create = function create(properties) { - return new MessageStreamRequest(properties); + CreateTransactionRequest.create = function create(properties) { + return new CreateTransactionRequest(properties); }; /** - * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode + * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamRequest.encode = function encode(message, writer) { + CreateTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -67902,39 +69631,42 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + if (message.participants != null && message.participants.length) + for (var i = 0; i < message.participants.length; ++i) + $root.query.Target.encode(message.participants[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode + * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamRequest message from the specified reader or buffer. + * Decodes a CreateTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.CreateTransactionRequest} CreateTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamRequest.decode = function decode(reader, length) { + CreateTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -67948,7 +69680,12 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.name = reader.string(); + message.dtid = reader.string(); + break; + case 5: + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.query.Target.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -67959,30 +69696,30 @@ $root.query = (function() { }; /** - * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.CreateTransactionRequest} CreateTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageStreamRequest message. + * Verifies a CreateTransactionRequest message. * @function verify - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageStreamRequest.verify = function verify(message) { + CreateTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -68000,62 +69737,83 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.CreateTransactionRequest} CreateTransactionRequest */ - MessageStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamRequest) + CreateTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionRequest) return object; - var message = new $root.query.MessageStreamRequest(); + var message = new $root.query.CreateTransactionRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.MessageStreamRequest.effective_caller_id: object expected"); + throw TypeError(".query.CreateTransactionRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.MessageStreamRequest.immediate_caller_id: object expected"); + throw TypeError(".query.CreateTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.MessageStreamRequest.target: object expected"); + throw TypeError(".query.CreateTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.name != null) - message.name = String(object.name); + if (object.dtid != null) + message.dtid = String(object.dtid); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".query.CreateTransactionRequest.participants: array expected"); + message.participants = []; + for (var i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".query.CreateTransactionRequest.participants: object expected"); + message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + } + } return message; }; /** - * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @static - * @param {query.MessageStreamRequest} message MessageStreamRequest + * @param {query.CreateTransactionRequest} message CreateTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamRequest.toObject = function toObject(message, options) { + CreateTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.participants = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.name = ""; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -68063,43 +69821,47 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.participants && message.participants.length) { + object.participants = []; + for (var j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + } return object; }; /** - * Converts this MessageStreamRequest to JSON. + * Converts this CreateTransactionRequest to JSON. * @function toJSON - * @memberof query.MessageStreamRequest + * @memberof query.CreateTransactionRequest * @instance * @returns {Object.} JSON object */ - MessageStreamRequest.prototype.toJSON = function toJSON() { + CreateTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageStreamRequest; + return CreateTransactionRequest; })(); - query.MessageStreamResponse = (function() { + query.CreateTransactionResponse = (function() { /** - * Properties of a MessageStreamResponse. + * Properties of a CreateTransactionResponse. * @memberof query - * @interface IMessageStreamResponse - * @property {query.IQueryResult|null} [result] MessageStreamResponse result + * @interface ICreateTransactionResponse */ /** - * Constructs a new MessageStreamResponse. + * Constructs a new CreateTransactionResponse. * @memberof query - * @classdesc Represents a MessageStreamResponse. - * @implements IMessageStreamResponse + * @classdesc Represents a CreateTransactionResponse. + * @implements ICreateTransactionResponse * @constructor - * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @param {query.ICreateTransactionResponse=} [properties] Properties to set */ - function MessageStreamResponse(properties) { + function CreateTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68107,76 +69869,63 @@ $root.query = (function() { } /** - * MessageStreamResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageStreamResponse - * @instance - */ - MessageStreamResponse.prototype.result = null; - - /** - * Creates a new MessageStreamResponse instance using the specified properties. + * Creates a new CreateTransactionResponse instance using the specified properties. * @function create - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IMessageStreamResponse=} [properties] Properties to set - * @returns {query.MessageStreamResponse} MessageStreamResponse instance + * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance */ - MessageStreamResponse.create = function create(properties) { - return new MessageStreamResponse(properties); + CreateTransactionResponse.create = function create(properties) { + return new CreateTransactionResponse(properties); }; /** - * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode + * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamResponse.encode = function encode(message, writer) { + CreateTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode + * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamResponse message from the specified reader or buffer. + * Decodes a CreateTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.CreateTransactionResponse} CreateTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamResponse.decode = function decode(reader, length) { + CreateTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -68186,117 +69935,98 @@ $root.query = (function() { }; /** - * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.CreateTransactionResponse} CreateTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamResponse.decodeDelimited = function decodeDelimited(reader) { + CreateTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageStreamResponse message. + * Verifies a CreateTransactionResponse message. * @function verify - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageStreamResponse.verify = function verify(message) { + CreateTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } return null; }; /** - * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.CreateTransactionResponse} CreateTransactionResponse */ - MessageStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamResponse) + CreateTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionResponse) return object; - var message = new $root.query.MessageStreamResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.MessageStreamResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; + return new $root.query.CreateTransactionResponse(); }; /** - * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @static - * @param {query.MessageStreamResponse} message MessageStreamResponse + * @param {query.CreateTransactionResponse} message CreateTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; + CreateTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MessageStreamResponse to JSON. + * Converts this CreateTransactionResponse to JSON. * @function toJSON - * @memberof query.MessageStreamResponse + * @memberof query.CreateTransactionResponse * @instance * @returns {Object.} JSON object */ - MessageStreamResponse.prototype.toJSON = function toJSON() { + CreateTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageStreamResponse; + return CreateTransactionResponse; })(); - query.MessageAckRequest = (function() { + query.StartCommitRequest = (function() { /** - * Properties of a MessageAckRequest. + * Properties of a StartCommitRequest. * @memberof query - * @interface IMessageAckRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageAckRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageAckRequest immediate_caller_id - * @property {query.ITarget|null} [target] MessageAckRequest target - * @property {string|null} [name] MessageAckRequest name - * @property {Array.|null} [ids] MessageAckRequest ids + * @interface IStartCommitRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] StartCommitRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] StartCommitRequest immediate_caller_id + * @property {query.ITarget|null} [target] StartCommitRequest target + * @property {number|Long|null} [transaction_id] StartCommitRequest transaction_id + * @property {string|null} [dtid] StartCommitRequest dtid */ /** - * Constructs a new MessageAckRequest. + * Constructs a new StartCommitRequest. * @memberof query - * @classdesc Represents a MessageAckRequest. - * @implements IMessageAckRequest + * @classdesc Represents a StartCommitRequest. + * @implements IStartCommitRequest * @constructor - * @param {query.IMessageAckRequest=} [properties] Properties to set + * @param {query.IStartCommitRequest=} [properties] Properties to set */ - function MessageAckRequest(properties) { - this.ids = []; + function StartCommitRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68304,67 +70034,67 @@ $root.query = (function() { } /** - * MessageAckRequest effective_caller_id. + * StartCommitRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @instance */ - MessageAckRequest.prototype.effective_caller_id = null; + StartCommitRequest.prototype.effective_caller_id = null; /** - * MessageAckRequest immediate_caller_id. + * StartCommitRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @instance */ - MessageAckRequest.prototype.immediate_caller_id = null; + StartCommitRequest.prototype.immediate_caller_id = null; /** - * MessageAckRequest target. + * StartCommitRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @instance */ - MessageAckRequest.prototype.target = null; + StartCommitRequest.prototype.target = null; /** - * MessageAckRequest name. - * @member {string} name - * @memberof query.MessageAckRequest + * StartCommitRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.StartCommitRequest * @instance */ - MessageAckRequest.prototype.name = ""; + StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * MessageAckRequest ids. - * @member {Array.} ids - * @memberof query.MessageAckRequest + * StartCommitRequest dtid. + * @member {string} dtid + * @memberof query.StartCommitRequest * @instance */ - MessageAckRequest.prototype.ids = $util.emptyArray; + StartCommitRequest.prototype.dtid = ""; /** - * Creates a new MessageAckRequest instance using the specified properties. + * Creates a new StartCommitRequest instance using the specified properties. * @function create - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IMessageAckRequest=} [properties] Properties to set - * @returns {query.MessageAckRequest} MessageAckRequest instance + * @param {query.IStartCommitRequest=} [properties] Properties to set + * @returns {query.StartCommitRequest} StartCommitRequest instance */ - MessageAckRequest.create = function create(properties) { - return new MessageAckRequest(properties); + StartCommitRequest.create = function create(properties) { + return new StartCommitRequest(properties); }; /** - * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encode - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encode = function encode(message, writer) { + StartCommitRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -68373,42 +70103,41 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - $root.query.Value.encode(message.ids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer. + * Decodes a StartCommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.StartCommitRequest} StartCommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckRequest.decode = function decode(reader, length) { + StartCommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -68422,12 +70151,10 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.name = reader.string(); + message.transaction_id = reader.int64(); break; case 5: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push($root.query.Value.decode(reader, reader.uint32())); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -68438,30 +70165,30 @@ $root.query = (function() { }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. + * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.StartCommitRequest} StartCommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckRequest.decodeDelimited = function decodeDelimited(reader) { + StartCommitRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckRequest message. + * Verifies a StartCommitRequest message. * @function verify - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageAckRequest.verify = function verify(message) { + StartCommitRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -68479,83 +70206,79 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) { - var error = $root.query.Value.verify(message.ids[i]); - if (error) - return "ids." + error; - } - } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.StartCommitRequest} StartCommitRequest */ - MessageAckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckRequest) + StartCommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitRequest) return object; - var message = new $root.query.MessageAckRequest(); + var message = new $root.query.StartCommitRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.MessageAckRequest.effective_caller_id: object expected"); + throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.MessageAckRequest.immediate_caller_id: object expected"); + throw TypeError(".query.StartCommitRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.MessageAckRequest.target: object expected"); + throw TypeError(".query.StartCommitRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.name != null) - message.name = String(object.name); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".query.MessageAckRequest.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) { - if (typeof object.ids[i] !== "object") - throw TypeError(".query.MessageAckRequest.ids: object expected"); - message.ids[i] = $root.query.Value.fromObject(object.ids[i]); - } - } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @static - * @param {query.MessageAckRequest} message MessageAckRequest + * @param {query.StartCommitRequest} message StartCommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckRequest.toObject = function toObject(message, options) { + StartCommitRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.ids = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.name = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -68563,48 +70286,47 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = $root.query.Value.toObject(message.ids[j], options); - } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this MessageAckRequest to JSON. + * Converts this StartCommitRequest to JSON. * @function toJSON - * @memberof query.MessageAckRequest + * @memberof query.StartCommitRequest * @instance * @returns {Object.} JSON object */ - MessageAckRequest.prototype.toJSON = function toJSON() { + StartCommitRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageAckRequest; + return StartCommitRequest; })(); - query.MessageAckResponse = (function() { + query.StartCommitResponse = (function() { /** - * Properties of a MessageAckResponse. + * Properties of a StartCommitResponse. * @memberof query - * @interface IMessageAckResponse - * @property {query.IQueryResult|null} [result] MessageAckResponse result + * @interface IStartCommitResponse */ /** - * Constructs a new MessageAckResponse. + * Constructs a new StartCommitResponse. * @memberof query - * @classdesc Represents a MessageAckResponse. - * @implements IMessageAckResponse + * @classdesc Represents a StartCommitResponse. + * @implements IStartCommitResponse * @constructor - * @param {query.IMessageAckResponse=} [properties] Properties to set + * @param {query.IStartCommitResponse=} [properties] Properties to set */ - function MessageAckResponse(properties) { + function StartCommitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68612,76 +70334,63 @@ $root.query = (function() { } /** - * MessageAckResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageAckResponse - * @instance - */ - MessageAckResponse.prototype.result = null; - - /** - * Creates a new MessageAckResponse instance using the specified properties. + * Creates a new StartCommitResponse instance using the specified properties. * @function create - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IMessageAckResponse=} [properties] Properties to set - * @returns {query.MessageAckResponse} MessageAckResponse instance + * @param {query.IStartCommitResponse=} [properties] Properties to set + * @returns {query.StartCommitResponse} StartCommitResponse instance */ - MessageAckResponse.create = function create(properties) { - return new MessageAckResponse(properties); + StartCommitResponse.create = function create(properties) { + return new StartCommitResponse(properties); }; /** - * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encode - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encode = function encode(message, writer) { + StartCommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer. + * Decodes a StartCommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.StartCommitResponse} StartCommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckResponse.decode = function decode(reader, length) { + StartCommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -68691,119 +70400,98 @@ $root.query = (function() { }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. + * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.StartCommitResponse} StartCommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckResponse.decodeDelimited = function decodeDelimited(reader) { + StartCommitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckResponse message. + * Verifies a StartCommitResponse message. * @function verify - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageAckResponse.verify = function verify(message) { + StartCommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } return null; }; /** - * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.StartCommitResponse} StartCommitResponse */ - MessageAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckResponse) + StartCommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitResponse) return object; - var message = new $root.query.MessageAckResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.MessageAckResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; + return new $root.query.StartCommitResponse(); }; /** - * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @static - * @param {query.MessageAckResponse} message MessageAckResponse + * @param {query.StartCommitResponse} message StartCommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; + StartCommitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this MessageAckResponse to JSON. + * Converts this StartCommitResponse to JSON. * @function toJSON - * @memberof query.MessageAckResponse + * @memberof query.StartCommitResponse * @instance * @returns {Object.} JSON object */ - MessageAckResponse.prototype.toJSON = function toJSON() { + StartCommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageAckResponse; + return StartCommitResponse; })(); - query.ReserveExecuteRequest = (function() { + query.SetRollbackRequest = (function() { /** - * Properties of a ReserveExecuteRequest. + * Properties of a SetRollbackRequest. * @memberof query - * @interface IReserveExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveExecuteRequest query - * @property {number|Long|null} [transaction_id] ReserveExecuteRequest transaction_id - * @property {query.IExecuteOptions|null} [options] ReserveExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveExecuteRequest pre_queries + * @interface ISetRollbackRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] SetRollbackRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] SetRollbackRequest immediate_caller_id + * @property {query.ITarget|null} [target] SetRollbackRequest target + * @property {number|Long|null} [transaction_id] SetRollbackRequest transaction_id + * @property {string|null} [dtid] SetRollbackRequest dtid */ /** - * Constructs a new ReserveExecuteRequest. + * Constructs a new SetRollbackRequest. * @memberof query - * @classdesc Represents a ReserveExecuteRequest. - * @implements IReserveExecuteRequest + * @classdesc Represents a SetRollbackRequest. + * @implements ISetRollbackRequest * @constructor - * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @param {query.ISetRollbackRequest=} [properties] Properties to set */ - function ReserveExecuteRequest(properties) { - this.pre_queries = []; + function SetRollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68811,83 +70499,67 @@ $root.query = (function() { } /** - * ReserveExecuteRequest effective_caller_id. + * SetRollbackRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - ReserveExecuteRequest.prototype.effective_caller_id = null; + SetRollbackRequest.prototype.effective_caller_id = null; /** - * ReserveExecuteRequest immediate_caller_id. + * SetRollbackRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - ReserveExecuteRequest.prototype.immediate_caller_id = null; + SetRollbackRequest.prototype.immediate_caller_id = null; /** - * ReserveExecuteRequest target. + * SetRollbackRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveExecuteRequest - * @instance - */ - ReserveExecuteRequest.prototype.target = null; - - /** - * ReserveExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - ReserveExecuteRequest.prototype.query = null; + SetRollbackRequest.prototype.target = null; /** - * ReserveExecuteRequest transaction_id. + * SetRollbackRequest transaction_id. * @member {number|Long} transaction_id - * @memberof query.ReserveExecuteRequest - * @instance - */ - ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @instance */ - ReserveExecuteRequest.prototype.options = null; + SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveExecuteRequest + * SetRollbackRequest dtid. + * @member {string} dtid + * @memberof query.SetRollbackRequest * @instance */ - ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; + SetRollbackRequest.prototype.dtid = ""; /** - * Creates a new ReserveExecuteRequest instance using the specified properties. + * Creates a new SetRollbackRequest instance using the specified properties. * @function create - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IReserveExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance + * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @returns {query.SetRollbackRequest} SetRollbackRequest instance */ - ReserveExecuteRequest.create = function create(properties) { - return new ReserveExecuteRequest(properties); + SetRollbackRequest.create = function create(properties) { + return new SetRollbackRequest(properties); }; /** - * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode + * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteRequest.encode = function encode(message, writer) { + SetRollbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -68896,46 +70568,41 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode + * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer. + * Decodes a SetRollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.SetRollbackRequest} SetRollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteRequest.decode = function decode(reader, length) { + SetRollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -68949,18 +70616,10 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: message.transaction_id = reader.int64(); break; - case 6: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); + case 5: + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -68971,30 +70630,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.SetRollbackRequest} SetRollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + SetRollbackRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveExecuteRequest message. + * Verifies a SetRollbackRequest message. * @function verify - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveExecuteRequest.verify = function verify(message) { + SetRollbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -69012,61 +70671,42 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) return "transaction_id: integer|Long expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.SetRollbackRequest} SetRollbackRequest */ - ReserveExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteRequest) + SetRollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackRequest) return object; - var message = new $root.query.ReserveExecuteRequest(); + var message = new $root.query.SetRollbackRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.SetRollbackRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.SetRollbackRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveExecuteRequest.target: object expected"); + throw TypeError(".query.SetRollbackRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ReserveExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -69076,47 +70716,34 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @static - * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest + * @param {query.SetRollbackRequest} message SetRollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteRequest.toObject = function toObject(message, options) { + SetRollbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; - object.options = null; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -69124,58 +70751,47 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this ReserveExecuteRequest to JSON. + * Converts this SetRollbackRequest to JSON. * @function toJSON - * @memberof query.ReserveExecuteRequest + * @memberof query.SetRollbackRequest * @instance * @returns {Object.} JSON object */ - ReserveExecuteRequest.prototype.toJSON = function toJSON() { + SetRollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveExecuteRequest; + return SetRollbackRequest; })(); - query.ReserveExecuteResponse = (function() { + query.SetRollbackResponse = (function() { /** - * Properties of a ReserveExecuteResponse. + * Properties of a SetRollbackResponse. * @memberof query - * @interface IReserveExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveExecuteResponse result - * @property {number|Long|null} [reserved_id] ReserveExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveExecuteResponse tablet_alias + * @interface ISetRollbackResponse */ /** - * Constructs a new ReserveExecuteResponse. + * Constructs a new SetRollbackResponse. * @memberof query - * @classdesc Represents a ReserveExecuteResponse. - * @implements IReserveExecuteResponse + * @classdesc Represents a SetRollbackResponse. + * @implements ISetRollbackResponse * @constructor - * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @param {query.ISetRollbackResponse=} [properties] Properties to set */ - function ReserveExecuteResponse(properties) { + function SetRollbackResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69183,115 +70799,63 @@ $root.query = (function() { } /** - * ReserveExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.error = null; - - /** - * ReserveExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveExecuteResponse - * @instance + * Creates a new SetRollbackResponse instance using the specified properties. + * @function create + * @memberof query.SetRollbackResponse + * @static + * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @returns {query.SetRollbackResponse} SetRollbackResponse instance */ - ReserveExecuteResponse.prototype.result = null; + SetRollbackResponse.create = function create(properties) { + return new SetRollbackResponse(properties); + }; /** - * ReserveExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.tablet_alias = null; - - /** - * Creates a new ReserveExecuteResponse instance using the specified properties. - * @function create - * @memberof query.ReserveExecuteResponse - * @static - * @param {query.IReserveExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance - */ - ReserveExecuteResponse.create = function create(properties) { - return new ReserveExecuteResponse(properties); - }; - - /** - * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteResponse.encode = function encode(message, writer) { + SetRollbackResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer. + * Decodes a SetRollbackResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.SetRollbackResponse} SetRollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteResponse.decode = function decode(reader, length) { + SetRollbackResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.reserved_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -69301,168 +70865,97 @@ $root.query = (function() { }; /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.SetRollbackResponse} SetRollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + SetRollbackResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveExecuteResponse message. + * Verifies a SetRollbackResponse message. * @function verify - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveExecuteResponse.verify = function verify(message) { + SetRollbackResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.SetRollbackResponse} SetRollbackResponse */ - ReserveExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteResponse) + SetRollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackResponse) return object; - var message = new $root.query.ReserveExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ReserveExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ReserveExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; + return new $root.query.SetRollbackResponse(); }; /** - * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @static - * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse + * @param {query.SetRollbackResponse} message SetRollbackResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; + SetRollbackResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ReserveExecuteResponse to JSON. + * Converts this SetRollbackResponse to JSON. * @function toJSON - * @memberof query.ReserveExecuteResponse + * @memberof query.SetRollbackResponse * @instance * @returns {Object.} JSON object */ - ReserveExecuteResponse.prototype.toJSON = function toJSON() { + SetRollbackResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveExecuteResponse; + return SetRollbackResponse; })(); - query.ReserveStreamExecuteRequest = (function() { + query.ConcludeTransactionRequest = (function() { /** - * Properties of a ReserveStreamExecuteRequest. + * Properties of a ConcludeTransactionRequest. * @memberof query - * @interface IReserveStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveStreamExecuteRequest options - * @property {number|Long|null} [transaction_id] ReserveStreamExecuteRequest transaction_id - * @property {Array.|null} [pre_queries] ReserveStreamExecuteRequest pre_queries + * @interface IConcludeTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ConcludeTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ConcludeTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] ConcludeTransactionRequest target + * @property {string|null} [dtid] ConcludeTransactionRequest dtid */ /** - * Constructs a new ReserveStreamExecuteRequest. + * Constructs a new ConcludeTransactionRequest. * @memberof query - * @classdesc Represents a ReserveStreamExecuteRequest. - * @implements IReserveStreamExecuteRequest + * @classdesc Represents a ConcludeTransactionRequest. + * @implements IConcludeTransactionRequest * @constructor - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set */ - function ReserveStreamExecuteRequest(properties) { - this.pre_queries = []; + function ConcludeTransactionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69470,83 +70963,59 @@ $root.query = (function() { } /** - * ReserveStreamExecuteRequest effective_caller_id. + * ConcludeTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReserveStreamExecuteRequest.prototype.effective_caller_id = null; + ConcludeTransactionRequest.prototype.effective_caller_id = null; /** - * ReserveStreamExecuteRequest immediate_caller_id. + * ConcludeTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; + ConcludeTransactionRequest.prototype.immediate_caller_id = null; /** - * ReserveStreamExecuteRequest target. + * ConcludeTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReserveStreamExecuteRequest.prototype.target = null; + ConcludeTransactionRequest.prototype.target = null; /** - * ReserveStreamExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveStreamExecuteRequest + * ConcludeTransactionRequest dtid. + * @member {string} dtid + * @memberof query.ConcludeTransactionRequest * @instance */ - ReserveStreamExecuteRequest.prototype.query = null; + ConcludeTransactionRequest.prototype.dtid = ""; /** - * ReserveStreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveStreamExecuteRequest - * @instance + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @function create + * @memberof query.ConcludeTransactionRequest + * @static + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance */ - ReserveStreamExecuteRequest.prototype.options = null; + ConcludeTransactionRequest.create = function create(properties) { + return new ConcludeTransactionRequest(properties); + }; /** - * ReserveStreamExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveStreamExecuteRequest - * @instance - */ - ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveStreamExecuteRequest - * @instance - */ - ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; - - /** - * Creates a new ReserveStreamExecuteRequest instance using the specified properties. - * @function create - * @memberof query.ReserveStreamExecuteRequest - * @static - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance - */ - ReserveStreamExecuteRequest.create = function create(properties) { - return new ReserveStreamExecuteRequest(properties); - }; - - /** - * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode + * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteRequest.encode = function encode(message, writer) { + ConcludeTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -69555,46 +71024,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode + * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteRequest.decode = function decode(reader, length) { + ConcludeTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -69608,18 +71070,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - message.transaction_id = reader.int64(); - break; - case 7: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -69630,30 +71081,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ConcludeTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveStreamExecuteRequest message. + * Verifies a ConcludeTransactionRequest message. * @function verify - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveStreamExecuteRequest.verify = function verify(message) { + ConcludeTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -69671,111 +71122,62 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest */ - ReserveStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteRequest) + ConcludeTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionRequest) return object; - var message = new $root.query.ReserveStreamExecuteRequest(); + var message = new $root.query.ConcludeTransactionRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.target: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest + * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteRequest.toObject = function toObject(message, options) { + ConcludeTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -69783,58 +71185,42 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this ReserveStreamExecuteRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ConcludeTransactionRequest * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { + ConcludeTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveStreamExecuteRequest; + return ConcludeTransactionRequest; })(); - query.ReserveStreamExecuteResponse = (function() { + query.ConcludeTransactionResponse = (function() { /** - * Properties of a ReserveStreamExecuteResponse. + * Properties of a ConcludeTransactionResponse. * @memberof query - * @interface IReserveStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveStreamExecuteResponse result - * @property {number|Long|null} [reserved_id] ReserveStreamExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveStreamExecuteResponse tablet_alias + * @interface IConcludeTransactionResponse */ /** - * Constructs a new ReserveStreamExecuteResponse. + * Constructs a new ConcludeTransactionResponse. * @memberof query - * @classdesc Represents a ReserveStreamExecuteResponse. - * @implements IReserveStreamExecuteResponse + * @classdesc Represents a ConcludeTransactionResponse. + * @implements IConcludeTransactionResponse * @constructor - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set */ - function ReserveStreamExecuteResponse(properties) { + function ConcludeTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69842,115 +71228,63 @@ $root.query = (function() { } /** - * ReserveStreamExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveStreamExecuteResponse - * @instance + * Creates a new ConcludeTransactionResponse instance using the specified properties. + * @function create + * @memberof query.ConcludeTransactionResponse + * @static + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance */ - ReserveStreamExecuteResponse.prototype.error = null; + ConcludeTransactionResponse.create = function create(properties) { + return new ConcludeTransactionResponse(properties); + }; /** - * ReserveStreamExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveStreamExecuteResponse - * @instance + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * @function encode + * @memberof query.ConcludeTransactionResponse + * @static + * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteResponse.prototype.result = null; + ConcludeTransactionResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * ReserveStreamExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveStreamExecuteResponse - * @instance - */ - ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveStreamExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveStreamExecuteResponse - * @instance - */ - ReserveStreamExecuteResponse.prototype.tablet_alias = null; - - /** - * Creates a new ReserveStreamExecuteResponse instance using the specified properties. - * @function create - * @memberof query.ReserveStreamExecuteResponse - * @static - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance - */ - ReserveStreamExecuteResponse.create = function create(properties) { - return new ReserveStreamExecuteResponse(properties); - }; - - /** - * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. - * @function encode - * @memberof query.ReserveStreamExecuteResponse - * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReserveStreamExecuteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteResponse.decode = function decode(reader, length) { + ConcludeTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.reserved_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -69960,169 +71294,97 @@ $root.query = (function() { }; /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ConcludeTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveStreamExecuteResponse message. + * Verifies a ConcludeTransactionResponse message. * @function verify - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveStreamExecuteResponse.verify = function verify(message) { + ConcludeTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse */ - ReserveStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteResponse) + ConcludeTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionResponse) return object; - var message = new $root.query.ReserveStreamExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - return message; + return new $root.query.ConcludeTransactionResponse(); }; /** - * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse + * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - return object; + ConcludeTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ReserveStreamExecuteResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ConcludeTransactionResponse * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { + ConcludeTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveStreamExecuteResponse; + return ConcludeTransactionResponse; })(); - query.ReserveBeginExecuteRequest = (function() { + query.ReadTransactionRequest = (function() { /** - * Properties of a ReserveBeginExecuteRequest. + * Properties of a ReadTransactionRequest. * @memberof query - * @interface IReserveBeginExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveBeginExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveBeginExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveBeginExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveBeginExecuteRequest pre_queries - * @property {Array.|null} [post_begin_queries] ReserveBeginExecuteRequest post_begin_queries + * @interface IReadTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReadTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReadTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReadTransactionRequest target + * @property {string|null} [dtid] ReadTransactionRequest dtid */ /** - * Constructs a new ReserveBeginExecuteRequest. + * Constructs a new ReadTransactionRequest. * @memberof query - * @classdesc Represents a ReserveBeginExecuteRequest. - * @implements IReserveBeginExecuteRequest + * @classdesc Represents a ReadTransactionRequest. + * @implements IReadTransactionRequest * @constructor - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @param {query.IReadTransactionRequest=} [properties] Properties to set */ - function ReserveBeginExecuteRequest(properties) { - this.pre_queries = []; - this.post_begin_queries = []; + function ReadTransactionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70130,83 +71392,59 @@ $root.query = (function() { } /** - * ReserveBeginExecuteRequest effective_caller_id. + * ReadTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - ReserveBeginExecuteRequest.prototype.effective_caller_id = null; + ReadTransactionRequest.prototype.effective_caller_id = null; /** - * ReserveBeginExecuteRequest immediate_caller_id. + * ReadTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; + ReadTransactionRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginExecuteRequest target. + * ReadTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - ReserveBeginExecuteRequest.prototype.target = null; + ReadTransactionRequest.prototype.target = null; /** - * ReserveBeginExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginExecuteRequest + * ReadTransactionRequest dtid. + * @member {string} dtid + * @memberof query.ReadTransactionRequest * @instance */ - ReserveBeginExecuteRequest.prototype.query = null; + ReadTransactionRequest.prototype.dtid = ""; /** - * ReserveBeginExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginExecuteRequest - * @instance + * Creates a new ReadTransactionRequest instance using the specified properties. + * @function create + * @memberof query.ReadTransactionRequest + * @static + * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance */ - ReserveBeginExecuteRequest.prototype.options = null; + ReadTransactionRequest.create = function create(properties) { + return new ReadTransactionRequest(properties); + }; /** - * ReserveBeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveBeginExecuteRequest - * @instance - */ - ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; - - /** - * ReserveBeginExecuteRequest post_begin_queries. - * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginExecuteRequest - * @instance - */ - ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; - - /** - * Creates a new ReserveBeginExecuteRequest instance using the specified properties. - * @function create - * @memberof query.ReserveBeginExecuteRequest - * @static - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance - */ - ReserveBeginExecuteRequest.create = function create(properties) { - return new ReserveBeginExecuteRequest(properties); - }; - - /** - * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode + * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteRequest.encode = function encode(message, writer) { + ReadTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -70215,47 +71453,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.post_begin_queries != null && message.post_begin_queries.length) - for (var i = 0; i < message.post_begin_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode + * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. + * Decodes a ReadTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteRequest.decode = function decode(reader, length) { + ReadTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -70269,20 +71499,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); - break; - case 7: - if (!(message.post_begin_queries && message.post_begin_queries.length)) - message.post_begin_queries = []; - message.post_begin_queries.push(reader.string()); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -70293,30 +71510,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ReadTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginExecuteRequest message. + * Verifies a ReadTransactionRequest message. * @function verify - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginExecuteRequest.verify = function verify(message) { + ReadTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -70334,110 +71551,62 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } - if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { - if (!Array.isArray(message.post_begin_queries)) - return "post_begin_queries: array expected"; - for (var i = 0; i < message.post_begin_queries.length; ++i) - if (!$util.isString(message.post_begin_queries[i])) - return "post_begin_queries: string[] expected"; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest */ - ReserveBeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteRequest) + ReadTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionRequest) return object; - var message = new $root.query.ReserveBeginExecuteRequest(); + var message = new $root.query.ReadTransactionRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReadTransactionRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReadTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.target: object expected"); + throw TypeError(".query.ReadTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } - if (object.post_begin_queries) { - if (!Array.isArray(object.post_begin_queries)) - throw TypeError(".query.ReserveBeginExecuteRequest.post_begin_queries: array expected"); - message.post_begin_queries = []; - for (var i = 0; i < object.post_begin_queries.length; ++i) - message.post_begin_queries[i] = String(object.post_begin_queries[i]); - } + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest + * @param {query.ReadTransactionRequest} message ReadTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteRequest.toObject = function toObject(message, options) { + ReadTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.pre_queries = []; - object.post_begin_queries = []; - } if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -70445,60 +71614,43 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } - if (message.post_begin_queries && message.post_begin_queries.length) { - object.post_begin_queries = []; - for (var j = 0; j < message.post_begin_queries.length; ++j) - object.post_begin_queries[j] = message.post_begin_queries[j]; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this ReserveBeginExecuteRequest to JSON. + * Converts this ReadTransactionRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { + ReadTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginExecuteRequest; + return ReadTransactionRequest; })(); - query.ReserveBeginExecuteResponse = (function() { + query.ReadTransactionResponse = (function() { /** - * Properties of a ReserveBeginExecuteResponse. + * Properties of a ReadTransactionResponse. * @memberof query - * @interface IReserveBeginExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveBeginExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveBeginExecuteResponse result - * @property {number|Long|null} [transaction_id] ReserveBeginExecuteResponse transaction_id - * @property {number|Long|null} [reserved_id] ReserveBeginExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] ReserveBeginExecuteResponse session_state_changes + * @interface IReadTransactionResponse + * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata */ /** - * Constructs a new ReserveBeginExecuteResponse. + * Constructs a new ReadTransactionResponse. * @memberof query - * @classdesc Represents a ReserveBeginExecuteResponse. - * @implements IReserveBeginExecuteResponse + * @classdesc Represents a ReadTransactionResponse. + * @implements IReadTransactionResponse * @constructor - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @param {query.IReadTransactionResponse=} [properties] Properties to set */ - function ReserveBeginExecuteResponse(properties) { + function ReadTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70506,140 +71658,75 @@ $root.query = (function() { } /** - * ReserveBeginExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.error = null; - - /** - * ReserveBeginExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveBeginExecuteResponse + * ReadTransactionResponse metadata. + * @member {query.ITransactionMetadata|null|undefined} metadata + * @memberof query.ReadTransactionResponse * @instance */ - ReserveBeginExecuteResponse.prototype.result = null; + ReadTransactionResponse.prototype.metadata = null; /** - * ReserveBeginExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveBeginExecuteResponse - * @instance + * Creates a new ReadTransactionResponse instance using the specified properties. + * @function create + * @memberof query.ReadTransactionResponse + * @static + * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance */ - ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadTransactionResponse.create = function create(properties) { + return new ReadTransactionResponse(properties); + }; /** - * ReserveBeginExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveBeginExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.tablet_alias = null; - - /** - * ReserveBeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.session_state_changes = ""; - - /** - * Creates a new ReserveBeginExecuteResponse instance using the specified properties. - * @function create - * @memberof query.ReserveBeginExecuteResponse - * @static - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance - */ - ReserveBeginExecuteResponse.create = function create(properties) { - return new ReserveBeginExecuteResponse(properties); - }; - - /** - * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode + * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteResponse.encode = function encode(message, writer) { + ReadTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.query.TransactionMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode + * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. + * Decodes a ReadTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteResponse.decode = function decode(reader, length) { + ReadTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.transaction_id = reader.int64(); - break; - case 4: - message.reserved_id = reader.int64(); - break; - case 5: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 6: - message.session_state_changes = reader.string(); + message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -70650,199 +71737,119 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ReadTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginExecuteResponse message. + * Verifies a ReadTransactionResponse message. * @function verify - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginExecuteResponse.verify = function verify(message) { + ReadTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.query.TransactionMetadata.verify(message.metadata); if (error) - return "tablet_alias." + error; + return "metadata." + error; } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse */ - ReserveBeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteResponse) + ReadTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionResponse) return object; - var message = new $root.query.ReserveBeginExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.query.ReadTransactionResponse(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".query.ReadTransactionResponse.metadata: object expected"); + message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse + * @param {query.ReadTransactionResponse} message ReadTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteResponse.toObject = function toObject(message, options) { + ReadTransactionResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); return object; }; /** - * Converts this ReserveBeginExecuteResponse to JSON. + * Converts this ReadTransactionResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReadTransactionResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { + ReadTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginExecuteResponse; + return ReadTransactionResponse; })(); - query.ReserveBeginStreamExecuteRequest = (function() { + query.BeginExecuteRequest = (function() { /** - * Properties of a ReserveBeginStreamExecuteRequest. + * Properties of a BeginExecuteRequest. * @memberof query - * @interface IReserveBeginStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveBeginStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveBeginStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveBeginStreamExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveBeginStreamExecuteRequest pre_queries - * @property {Array.|null} [post_begin_queries] ReserveBeginStreamExecuteRequest post_begin_queries + * @interface IBeginExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginExecuteRequest target + * @property {query.IBoundQuery|null} [query] BeginExecuteRequest query + * @property {query.IExecuteOptions|null} [options] BeginExecuteRequest options + * @property {number|Long|null} [reserved_id] BeginExecuteRequest reserved_id + * @property {Array.|null} [pre_queries] BeginExecuteRequest pre_queries */ /** - * Constructs a new ReserveBeginStreamExecuteRequest. + * Constructs a new BeginExecuteRequest. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteRequest. - * @implements IReserveBeginStreamExecuteRequest + * @classdesc Represents a BeginExecuteRequest. + * @implements IBeginExecuteRequest * @constructor - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IBeginExecuteRequest=} [properties] Properties to set */ - function ReserveBeginStreamExecuteRequest(properties) { + function BeginExecuteRequest(properties) { this.pre_queries = []; - this.post_begin_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70850,83 +71857,83 @@ $root.query = (function() { } /** - * ReserveBeginStreamExecuteRequest effective_caller_id. + * BeginExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; + BeginExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveBeginStreamExecuteRequest immediate_caller_id. + * BeginExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; + BeginExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginStreamExecuteRequest target. + * BeginExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.target = null; + BeginExecuteRequest.prototype.target = null; /** - * ReserveBeginStreamExecuteRequest query. + * BeginExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.query = null; + BeginExecuteRequest.prototype.query = null; /** - * ReserveBeginStreamExecuteRequest options. + * BeginExecuteRequest options. * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.options = null; + BeginExecuteRequest.prototype.options = null; /** - * ReserveBeginStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * BeginExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginStreamExecuteRequest post_begin_queries. - * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * BeginExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.BeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. + * Creates a new BeginExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance + * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance */ - ReserveBeginStreamExecuteRequest.create = function create(properties) { - return new ReserveBeginStreamExecuteRequest(properties); + BeginExecuteRequest.create = function create(properties) { + return new BeginExecuteRequest(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteRequest.encode = function encode(message, writer) { + BeginExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -70939,43 +71946,42 @@ $root.query = (function() { $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.reserved_id); if (message.pre_queries != null && message.pre_queries.length) for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.post_begin_queries != null && message.post_begin_queries.length) - for (var i = 0; i < message.post_begin_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a BeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { + BeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -70995,15 +72001,13 @@ $root.query = (function() { message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 6: + message.reserved_id = reader.int64(); + break; + case 7: if (!(message.pre_queries && message.pre_queries.length)) message.pre_queries = []; message.pre_queries.push(reader.string()); break; - case 7: - if (!(message.post_begin_queries && message.post_begin_queries.length)) - message.post_begin_queries = []; - message.post_begin_queries.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -71013,30 +72017,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + BeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginStreamExecuteRequest message. + * Verifies a BeginExecuteRequest message. * @function verify - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginStreamExecuteRequest.verify = function verify(message) { + BeginExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -71064,6 +72068,9 @@ $root.query = (function() { if (error) return "options." + error; } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { if (!Array.isArray(message.pre_queries)) return "pre_queries: array expected"; @@ -71071,93 +72078,91 @@ $root.query = (function() { if (!$util.isString(message.pre_queries[i])) return "pre_queries: string[] expected"; } - if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { - if (!Array.isArray(message.post_begin_queries)) - return "post_begin_queries: array expected"; - for (var i = 0; i < message.post_begin_queries.length; ++i) - if (!$util.isString(message.post_begin_queries[i])) - return "post_begin_queries: string[] expected"; - } return null; }; /** - * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest */ - ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) + BeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteRequest) return object; - var message = new $root.query.ReserveBeginStreamExecuteRequest(); + var message = new $root.query.BeginExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.target: object expected"); + throw TypeError(".query.BeginExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.query: object expected"); + throw TypeError(".query.BeginExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.options: object expected"); + throw TypeError(".query.BeginExecuteRequest.options: object expected"); message.options = $root.query.ExecuteOptions.fromObject(object.options); } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.pre_queries) { if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveBeginStreamExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (var i = 0; i < object.pre_queries.length; ++i) message.pre_queries[i] = String(object.pre_queries[i]); } - if (object.post_begin_queries) { - if (!Array.isArray(object.post_begin_queries)) - throw TypeError(".query.ReserveBeginStreamExecuteRequest.post_begin_queries: array expected"); - message.post_begin_queries = []; - for (var i = 0; i < object.post_begin_queries.length; ++i) - message.post_begin_queries[i] = String(object.post_begin_queries[i]); - } return message; }; /** - * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest + * @param {query.BeginExecuteRequest} message BeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { + BeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.pre_queries = []; - object.post_begin_queries = []; - } if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; object.query = null; object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -71169,56 +72174,55 @@ $root.query = (function() { object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.options != null && message.hasOwnProperty("options")) object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; if (message.pre_queries && message.pre_queries.length) { object.pre_queries = []; for (var j = 0; j < message.pre_queries.length; ++j) object.pre_queries[j] = message.pre_queries[j]; } - if (message.post_begin_queries && message.post_begin_queries.length) { - object.post_begin_queries = []; - for (var j = 0; j < message.post_begin_queries.length; ++j) - object.post_begin_queries[j] = message.post_begin_queries[j]; - } return object; }; /** - * Converts this ReserveBeginStreamExecuteRequest to JSON. + * Converts this BeginExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + BeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginStreamExecuteRequest; + return BeginExecuteRequest; })(); - query.ReserveBeginStreamExecuteResponse = (function() { + query.BeginExecuteResponse = (function() { /** - * Properties of a ReserveBeginStreamExecuteResponse. + * Properties of a BeginExecuteResponse. * @memberof query - * @interface IReserveBeginStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveBeginStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveBeginStreamExecuteResponse result - * @property {number|Long|null} [transaction_id] ReserveBeginStreamExecuteResponse transaction_id - * @property {number|Long|null} [reserved_id] ReserveBeginStreamExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginStreamExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] ReserveBeginStreamExecuteResponse session_state_changes + * @interface IBeginExecuteResponse + * @property {vtrpc.IRPCError|null} [error] BeginExecuteResponse error + * @property {query.IQueryResult|null} [result] BeginExecuteResponse result + * @property {number|Long|null} [transaction_id] BeginExecuteResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] BeginExecuteResponse session_state_changes */ /** - * Constructs a new ReserveBeginStreamExecuteResponse. + * Constructs a new BeginExecuteResponse. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteResponse. - * @implements IReserveBeginStreamExecuteResponse + * @classdesc Represents a BeginExecuteResponse. + * @implements IBeginExecuteResponse * @constructor - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IBeginExecuteResponse=} [properties] Properties to set */ - function ReserveBeginStreamExecuteResponse(properties) { + function BeginExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71226,75 +72230,67 @@ $root.query = (function() { } /** - * ReserveBeginStreamExecuteResponse error. + * BeginExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.error = null; + BeginExecuteResponse.prototype.error = null; /** - * ReserveBeginStreamExecuteResponse result. + * BeginExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.result = null; + BeginExecuteResponse.prototype.result = null; /** - * ReserveBeginStreamExecuteResponse transaction_id. + * BeginExecuteResponse transaction_id. * @member {number|Long} transaction_id - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginStreamExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveBeginStreamExecuteResponse - * @instance - */ - ReserveBeginStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveBeginStreamExecuteResponse tablet_alias. + * BeginExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.tablet_alias = null; + BeginExecuteResponse.prototype.tablet_alias = null; /** - * ReserveBeginStreamExecuteResponse session_state_changes. + * BeginExecuteResponse session_state_changes. * @member {string} session_state_changes - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.session_state_changes = ""; + BeginExecuteResponse.prototype.session_state_changes = ""; /** - * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * Creates a new BeginExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance + * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance */ - ReserveBeginStreamExecuteResponse.create = function create(properties) { - return new ReserveBeginStreamExecuteResponse(properties); + BeginExecuteResponse.create = function create(properties) { + return new BeginExecuteResponse(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteResponse.encode = function encode(message, writer) { + BeginExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) @@ -71303,43 +72299,41 @@ $root.query = (function() { $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a BeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { + BeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71353,12 +72347,9 @@ $root.query = (function() { message.transaction_id = reader.int64(); break; case 4: - message.reserved_id = reader.int64(); - break; - case 5: message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; - case 6: + case 5: message.session_state_changes = reader.string(); break; default: @@ -71370,30 +72361,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + BeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginStreamExecuteResponse message. + * Verifies a BeginExecuteResponse message. * @function verify - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginStreamExecuteResponse.verify = function verify(message) { + BeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -71409,9 +72400,6 @@ $root.query = (function() { if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) return "transaction_id: integer|Long expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) @@ -71424,25 +72412,25 @@ $root.query = (function() { }; /** - * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse */ - ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) + BeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteResponse) return object; - var message = new $root.query.ReserveBeginStreamExecuteResponse(); + var message = new $root.query.BeginExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.error: object expected"); + throw TypeError(".query.BeginExecuteResponse.error: object expected"); message.error = $root.vtrpc.RPCError.fromObject(object.error); } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.result: object expected"); + throw TypeError(".query.BeginExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } if (object.transaction_id != null) @@ -71454,18 +72442,9 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.tablet_alias: object expected"); + throw TypeError(".query.BeginExecuteResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } if (object.session_state_changes != null) @@ -71474,15 +72453,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse + * @param {query.BeginExecuteResponse} message BeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { + BeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71494,11 +72473,6 @@ $root.query = (function() { object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; object.tablet_alias = null; object.session_state_changes = ""; } @@ -71511,11 +72485,6 @@ $root.query = (function() { object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) @@ -71524,41 +72493,44 @@ $root.query = (function() { }; /** - * Converts this ReserveBeginStreamExecuteResponse to JSON. + * Converts this BeginExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + BeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginStreamExecuteResponse; + return BeginExecuteResponse; })(); - query.ReleaseRequest = (function() { + query.BeginStreamExecuteRequest = (function() { /** - * Properties of a ReleaseRequest. + * Properties of a BeginStreamExecuteRequest. * @memberof query - * @interface IReleaseRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReleaseRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReleaseRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReleaseRequest target - * @property {number|Long|null} [transaction_id] ReleaseRequest transaction_id - * @property {number|Long|null} [reserved_id] ReleaseRequest reserved_id + * @interface IBeginStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] BeginStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] BeginStreamExecuteRequest options + * @property {Array.|null} [pre_queries] BeginStreamExecuteRequest pre_queries + * @property {number|Long|null} [reserved_id] BeginStreamExecuteRequest reserved_id */ /** - * Constructs a new ReleaseRequest. + * Constructs a new BeginStreamExecuteRequest. * @memberof query - * @classdesc Represents a ReleaseRequest. - * @implements IReleaseRequest + * @classdesc Represents a BeginStreamExecuteRequest. + * @implements IBeginStreamExecuteRequest * @constructor - * @param {query.IReleaseRequest=} [properties] Properties to set + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set */ - function ReleaseRequest(properties) { + function BeginStreamExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71566,67 +72538,83 @@ $root.query = (function() { } /** - * ReleaseRequest effective_caller_id. + * BeginStreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.effective_caller_id = null; + BeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * ReleaseRequest immediate_caller_id. + * BeginStreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.immediate_caller_id = null; + BeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * ReleaseRequest target. + * BeginStreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.target = null; + BeginStreamExecuteRequest.prototype.target = null; /** - * ReleaseRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReleaseRequest + * BeginStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginStreamExecuteRequest.prototype.query = null; /** - * ReleaseRequest reserved_id. + * BeginStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginStreamExecuteRequest + * @instance + */ + BeginStreamExecuteRequest.prototype.options = null; + + /** + * BeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.BeginStreamExecuteRequest + * @instance + */ + BeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * BeginStreamExecuteRequest reserved_id. * @member {number|Long} reserved_id - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginStreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ReleaseRequest instance using the specified properties. + * Creates a new BeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest=} [properties] Properties to set - * @returns {query.ReleaseRequest} ReleaseRequest instance + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance */ - ReleaseRequest.create = function create(properties) { - return new ReleaseRequest(properties); + BeginStreamExecuteRequest.create = function create(properties) { + return new BeginStreamExecuteRequest(properties); }; /** - * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode + * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseRequest.encode = function encode(message, writer) { + BeginStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -71635,41 +72623,46 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.reserved_id); + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode + * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseRequest message from the specified reader or buffer. + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseRequest.decode = function decode(reader, length) { + BeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71683,9 +72676,17 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.transaction_id = reader.int64(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + case 7: message.reserved_id = reader.int64(); break; default: @@ -71697,30 +72698,30 @@ $root.query = (function() { }; /** - * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseRequest.decodeDelimited = function decodeDelimited(reader) { + BeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReleaseRequest message. + * Verifies a BeginStreamExecuteRequest message. * @function verify - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReleaseRequest.verify = function verify(message) { + BeginStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -71738,9 +72739,23 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) return "reserved_id: integer|Long expected"; @@ -71748,41 +72763,49 @@ $root.query = (function() { }; /** - * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest */ - ReleaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseRequest) + BeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteRequest) return object; - var message = new $root.query.ReleaseRequest(); + var message = new $root.query.BeginStreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReleaseRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReleaseRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReleaseRequest.target: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.BeginStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.BeginStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.BeginStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } if (object.reserved_id != null) if ($util.Long) (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; @@ -71796,27 +72819,26 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.ReleaseRequest} message ReleaseRequest + * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseRequest.toObject = function toObject(message, options) { + BeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; + object.query = null; + object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -71829,11 +72851,15 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (typeof message.reserved_id === "number") object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; @@ -71843,36 +72869,41 @@ $root.query = (function() { }; /** - * Converts this ReleaseRequest to JSON. + * Converts this BeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.ReleaseRequest + * @memberof query.BeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - ReleaseRequest.prototype.toJSON = function toJSON() { + BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReleaseRequest; + return BeginStreamExecuteRequest; })(); - query.ReleaseResponse = (function() { + query.BeginStreamExecuteResponse = (function() { /** - * Properties of a ReleaseResponse. + * Properties of a BeginStreamExecuteResponse. * @memberof query - * @interface IReleaseResponse + * @interface IBeginStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] BeginStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] BeginStreamExecuteResponse result + * @property {number|Long|null} [transaction_id] BeginStreamExecuteResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginStreamExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] BeginStreamExecuteResponse session_state_changes */ /** - * Constructs a new ReleaseResponse. + * Constructs a new BeginStreamExecuteResponse. * @memberof query - * @classdesc Represents a ReleaseResponse. - * @implements IReleaseResponse + * @classdesc Represents a BeginStreamExecuteResponse. + * @implements IBeginStreamExecuteResponse * @constructor - * @param {query.IReleaseResponse=} [properties] Properties to set + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set */ - function ReleaseResponse(properties) { + function BeginStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71880,159 +72911,303 @@ $root.query = (function() { } /** - * Creates a new ReleaseResponse instance using the specified properties. + * BeginStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.error = null; + + /** + * BeginStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.result = null; + + /** + * BeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * BeginStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.tablet_alias = null; + + /** + * BeginStreamExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new BeginStreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse=} [properties] Properties to set - * @returns {query.ReleaseResponse} ReleaseResponse instance + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance */ - ReleaseResponse.create = function create(properties) { - return new ReleaseResponse(properties); + BeginStreamExecuteResponse.create = function create(properties) { + return new BeginStreamExecuteResponse(properties); }; /** - * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode + * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseResponse.encode = function encode(message, writer) { + BeginStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode + * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseResponse message from the specified reader or buffer. + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseResponse.decode = function decode(reader, length) { + BeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); + case 1: + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; - } - } - return message; - }; - - /** - * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.ReleaseResponse + case 2: + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.transaction_id = reader.int64(); + break; + case 4: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 5: + message.session_state_changes = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.BeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseResponse.decodeDelimited = function decodeDelimited(reader) { + BeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReleaseResponse message. + * Verifies a BeginStreamExecuteResponse message. * @function verify - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReleaseResponse.verify = function verify(message) { + BeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse */ - ReleaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseResponse) + BeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteResponse) return object; - return new $root.query.ReleaseResponse(); + var message = new $root.query.BeginStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.BeginStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.BeginStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; }; /** - * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.ReleaseResponse} message ReleaseResponse + * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseResponse.toObject = function toObject() { - return {}; + BeginStreamExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.error = null; + object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; + return object; }; /** - * Converts this ReleaseResponse to JSON. + * Converts this BeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.ReleaseResponse + * @memberof query.BeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - ReleaseResponse.prototype.toJSON = function toJSON() { + BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReleaseResponse; + return BeginStreamExecuteResponse; })(); - query.StreamHealthRequest = (function() { + query.MessageStreamRequest = (function() { /** - * Properties of a StreamHealthRequest. + * Properties of a MessageStreamRequest. * @memberof query - * @interface IStreamHealthRequest + * @interface IMessageStreamRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageStreamRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageStreamRequest immediate_caller_id + * @property {query.ITarget|null} [target] MessageStreamRequest target + * @property {string|null} [name] MessageStreamRequest name */ /** - * Constructs a new StreamHealthRequest. + * Constructs a new MessageStreamRequest. * @memberof query - * @classdesc Represents a StreamHealthRequest. - * @implements IStreamHealthRequest + * @classdesc Represents a MessageStreamRequest. + * @implements IMessageStreamRequest * @constructor - * @param {query.IStreamHealthRequest=} [properties] Properties to set + * @param {query.IMessageStreamRequest=} [properties] Properties to set */ - function StreamHealthRequest(properties) { + function MessageStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72040,63 +73215,115 @@ $root.query = (function() { } /** - * Creates a new StreamHealthRequest instance using the specified properties. + * MessageStreamRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.MessageStreamRequest + * @instance + */ + MessageStreamRequest.prototype.effective_caller_id = null; + + /** + * MessageStreamRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.MessageStreamRequest + * @instance + */ + MessageStreamRequest.prototype.immediate_caller_id = null; + + /** + * MessageStreamRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.MessageStreamRequest + * @instance + */ + MessageStreamRequest.prototype.target = null; + + /** + * MessageStreamRequest name. + * @member {string} name + * @memberof query.MessageStreamRequest + * @instance + */ + MessageStreamRequest.prototype.name = ""; + + /** + * Creates a new MessageStreamRequest instance using the specified properties. * @function create - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IStreamHealthRequest=} [properties] Properties to set - * @returns {query.StreamHealthRequest} StreamHealthRequest instance + * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @returns {query.MessageStreamRequest} MessageStreamRequest instance */ - StreamHealthRequest.create = function create(properties) { - return new StreamHealthRequest(properties); + MessageStreamRequest.create = function create(properties) { + return new MessageStreamRequest(properties); }; /** - * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encode - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthRequest.encode = function encode(message, writer) { + MessageStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthRequest message from the specified reader or buffer. + * Decodes a MessageStreamRequest message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthRequest.decode = function decode(reader, length) { + MessageStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -72106,101 +73333,147 @@ $root.query = (function() { }; /** - * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. + * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthRequest.decodeDelimited = function decodeDelimited(reader) { + MessageStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamHealthRequest message. + * Verifies a MessageStreamRequest message. * @function verify - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamHealthRequest.verify = function verify(message) { + MessageStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest */ - StreamHealthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthRequest) + MessageStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamRequest) return object; - return new $root.query.StreamHealthRequest(); + var message = new $root.query.MessageStreamRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.MessageStreamRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.MessageStreamRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.MessageStreamRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. + * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.StreamHealthRequest} message StreamHealthRequest + * @param {query.MessageStreamRequest} message MessageStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthRequest.toObject = function toObject() { - return {}; + MessageStreamRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.name = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this StreamHealthRequest to JSON. + * Converts this MessageStreamRequest to JSON. * @function toJSON - * @memberof query.StreamHealthRequest + * @memberof query.MessageStreamRequest * @instance * @returns {Object.} JSON object */ - StreamHealthRequest.prototype.toJSON = function toJSON() { + MessageStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamHealthRequest; + return MessageStreamRequest; })(); - query.RealtimeStats = (function() { + query.MessageStreamResponse = (function() { /** - * Properties of a RealtimeStats. + * Properties of a MessageStreamResponse. * @memberof query - * @interface IRealtimeStats - * @property {string|null} [health_error] RealtimeStats health_error - * @property {number|null} [replication_lag_seconds] RealtimeStats replication_lag_seconds - * @property {number|null} [binlog_players_count] RealtimeStats binlog_players_count - * @property {number|Long|null} [filtered_replication_lag_seconds] RealtimeStats filtered_replication_lag_seconds - * @property {number|null} [cpu_usage] RealtimeStats cpu_usage - * @property {number|null} [qps] RealtimeStats qps - * @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed + * @interface IMessageStreamResponse + * @property {query.IQueryResult|null} [result] MessageStreamResponse result */ /** - * Constructs a new RealtimeStats. + * Constructs a new MessageStreamResponse. * @memberof query - * @classdesc Represents a RealtimeStats. - * @implements IRealtimeStats + * @classdesc Represents a MessageStreamResponse. + * @implements IMessageStreamResponse * @constructor - * @param {query.IRealtimeStats=} [properties] Properties to set + * @param {query.IMessageStreamResponse=} [properties] Properties to set */ - function RealtimeStats(properties) { - this.table_schema_changed = []; + function MessageStreamResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72208,156 +73481,75 @@ $root.query = (function() { } /** - * RealtimeStats health_error. - * @member {string} health_error - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.health_error = ""; - - /** - * RealtimeStats replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.replication_lag_seconds = 0; - - /** - * RealtimeStats binlog_players_count. - * @member {number} binlog_players_count - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.binlog_players_count = 0; - - /** - * RealtimeStats filtered_replication_lag_seconds. - * @member {number|Long} filtered_replication_lag_seconds - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RealtimeStats cpu_usage. - * @member {number} cpu_usage - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.cpu_usage = 0; - - /** - * RealtimeStats qps. - * @member {number} qps - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.qps = 0; - - /** - * RealtimeStats table_schema_changed. - * @member {Array.} table_schema_changed - * @memberof query.RealtimeStats + * MessageStreamResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.MessageStreamResponse * @instance */ - RealtimeStats.prototype.table_schema_changed = $util.emptyArray; + MessageStreamResponse.prototype.result = null; /** - * Creates a new RealtimeStats instance using the specified properties. + * Creates a new MessageStreamResponse instance using the specified properties. * @function create - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static - * @param {query.IRealtimeStats=} [properties] Properties to set - * @returns {query.RealtimeStats} RealtimeStats instance + * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @returns {query.MessageStreamResponse} MessageStreamResponse instance */ - RealtimeStats.create = function create(properties) { - return new RealtimeStats(properties); + MessageStreamResponse.create = function create(properties) { + return new MessageStreamResponse(properties); }; /** - * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encode - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode + * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RealtimeStats.encode = function encode(message, writer) { + MessageStreamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.health_error != null && Object.hasOwnProperty.call(message, "health_error")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.health_error); - if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.replication_lag_seconds); - if (message.binlog_players_count != null && Object.hasOwnProperty.call(message, "binlog_players_count")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.binlog_players_count); - if (message.filtered_replication_lag_seconds != null && Object.hasOwnProperty.call(message, "filtered_replication_lag_seconds")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.filtered_replication_lag_seconds); - if (message.cpu_usage != null && Object.hasOwnProperty.call(message, "cpu_usage")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.cpu_usage); - if (message.qps != null && Object.hasOwnProperty.call(message, "qps")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.qps); - if (message.table_schema_changed != null && message.table_schema_changed.length) - for (var i = 0; i < message.table_schema_changed.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode + * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RealtimeStats message from the specified reader or buffer. + * Decodes a MessageStreamResponse message from the specified reader or buffer. * @function decode - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.MessageStreamResponse} MessageStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RealtimeStats.decode = function decode(reader, length) { + MessageStreamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.health_error = reader.string(); - break; - case 2: - message.replication_lag_seconds = reader.uint32(); - break; - case 3: - message.binlog_players_count = reader.int32(); - break; - case 4: - message.filtered_replication_lag_seconds = reader.int64(); - break; - case 5: - message.cpu_usage = reader.double(); - break; - case 6: - message.qps = reader.double(); - break; - case 7: - if (!(message.table_schema_changed && message.table_schema_changed.length)) - message.table_schema_changed = []; - message.table_schema_changed.push(reader.string()); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -72368,186 +73560,117 @@ $root.query = (function() { }; /** - * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. + * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.MessageStreamResponse} MessageStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RealtimeStats.decodeDelimited = function decodeDelimited(reader) { + MessageStreamResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RealtimeStats message. + * Verifies a MessageStreamResponse message. * @function verify - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RealtimeStats.verify = function verify(message) { + MessageStreamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.health_error != null && message.hasOwnProperty("health_error")) - if (!$util.isString(message.health_error)) - return "health_error: string expected"; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - if (!$util.isInteger(message.replication_lag_seconds)) - return "replication_lag_seconds: integer expected"; - if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) - if (!$util.isInteger(message.binlog_players_count)) - return "binlog_players_count: integer expected"; - if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) - if (!$util.isInteger(message.filtered_replication_lag_seconds) && !(message.filtered_replication_lag_seconds && $util.isInteger(message.filtered_replication_lag_seconds.low) && $util.isInteger(message.filtered_replication_lag_seconds.high))) - return "filtered_replication_lag_seconds: integer|Long expected"; - if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) - if (typeof message.cpu_usage !== "number") - return "cpu_usage: number expected"; - if (message.qps != null && message.hasOwnProperty("qps")) - if (typeof message.qps !== "number") - return "qps: number expected"; - if (message.table_schema_changed != null && message.hasOwnProperty("table_schema_changed")) { - if (!Array.isArray(message.table_schema_changed)) - return "table_schema_changed: array expected"; - for (var i = 0; i < message.table_schema_changed.length; ++i) - if (!$util.isString(message.table_schema_changed[i])) - return "table_schema_changed: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. + * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static * @param {Object.} object Plain object - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.MessageStreamResponse} MessageStreamResponse */ - RealtimeStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.RealtimeStats) + MessageStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamResponse) return object; - var message = new $root.query.RealtimeStats(); - if (object.health_error != null) - message.health_error = String(object.health_error); - if (object.replication_lag_seconds != null) - message.replication_lag_seconds = object.replication_lag_seconds >>> 0; - if (object.binlog_players_count != null) - message.binlog_players_count = object.binlog_players_count | 0; - if (object.filtered_replication_lag_seconds != null) - if ($util.Long) - (message.filtered_replication_lag_seconds = $util.Long.fromValue(object.filtered_replication_lag_seconds)).unsigned = false; - else if (typeof object.filtered_replication_lag_seconds === "string") - message.filtered_replication_lag_seconds = parseInt(object.filtered_replication_lag_seconds, 10); - else if (typeof object.filtered_replication_lag_seconds === "number") - message.filtered_replication_lag_seconds = object.filtered_replication_lag_seconds; - else if (typeof object.filtered_replication_lag_seconds === "object") - message.filtered_replication_lag_seconds = new $util.LongBits(object.filtered_replication_lag_seconds.low >>> 0, object.filtered_replication_lag_seconds.high >>> 0).toNumber(); - if (object.cpu_usage != null) - message.cpu_usage = Number(object.cpu_usage); - if (object.qps != null) - message.qps = Number(object.qps); - if (object.table_schema_changed) { - if (!Array.isArray(object.table_schema_changed)) - throw TypeError(".query.RealtimeStats.table_schema_changed: array expected"); - message.table_schema_changed = []; - for (var i = 0; i < object.table_schema_changed.length; ++i) - message.table_schema_changed[i] = String(object.table_schema_changed[i]); + var message = new $root.query.MessageStreamResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.MessageStreamResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. + * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @static - * @param {query.RealtimeStats} message RealtimeStats + * @param {query.MessageStreamResponse} message MessageStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RealtimeStats.toObject = function toObject(message, options) { + MessageStreamResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.table_schema_changed = []; - if (options.defaults) { - object.health_error = ""; - object.replication_lag_seconds = 0; - object.binlog_players_count = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.filtered_replication_lag_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.filtered_replication_lag_seconds = options.longs === String ? "0" : 0; - object.cpu_usage = 0; - object.qps = 0; - } - if (message.health_error != null && message.hasOwnProperty("health_error")) - object.health_error = message.health_error; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - object.replication_lag_seconds = message.replication_lag_seconds; - if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) - object.binlog_players_count = message.binlog_players_count; - if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) - if (typeof message.filtered_replication_lag_seconds === "number") - object.filtered_replication_lag_seconds = options.longs === String ? String(message.filtered_replication_lag_seconds) : message.filtered_replication_lag_seconds; - else - object.filtered_replication_lag_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.filtered_replication_lag_seconds) : options.longs === Number ? new $util.LongBits(message.filtered_replication_lag_seconds.low >>> 0, message.filtered_replication_lag_seconds.high >>> 0).toNumber() : message.filtered_replication_lag_seconds; - if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) - object.cpu_usage = options.json && !isFinite(message.cpu_usage) ? String(message.cpu_usage) : message.cpu_usage; - if (message.qps != null && message.hasOwnProperty("qps")) - object.qps = options.json && !isFinite(message.qps) ? String(message.qps) : message.qps; - if (message.table_schema_changed && message.table_schema_changed.length) { - object.table_schema_changed = []; - for (var j = 0; j < message.table_schema_changed.length; ++j) - object.table_schema_changed[j] = message.table_schema_changed[j]; - } + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this RealtimeStats to JSON. + * Converts this MessageStreamResponse to JSON. * @function toJSON - * @memberof query.RealtimeStats + * @memberof query.MessageStreamResponse * @instance * @returns {Object.} JSON object */ - RealtimeStats.prototype.toJSON = function toJSON() { + MessageStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RealtimeStats; + return MessageStreamResponse; })(); - query.AggregateStats = (function() { + query.MessageAckRequest = (function() { /** - * Properties of an AggregateStats. + * Properties of a MessageAckRequest. * @memberof query - * @interface IAggregateStats - * @property {number|null} [healthy_tablet_count] AggregateStats healthy_tablet_count - * @property {number|null} [unhealthy_tablet_count] AggregateStats unhealthy_tablet_count - * @property {number|null} [replication_lag_seconds_min] AggregateStats replication_lag_seconds_min - * @property {number|null} [replication_lag_seconds_max] AggregateStats replication_lag_seconds_max + * @interface IMessageAckRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageAckRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageAckRequest immediate_caller_id + * @property {query.ITarget|null} [target] MessageAckRequest target + * @property {string|null} [name] MessageAckRequest name + * @property {Array.|null} [ids] MessageAckRequest ids */ /** - * Constructs a new AggregateStats. + * Constructs a new MessageAckRequest. * @memberof query - * @classdesc Represents an AggregateStats. - * @implements IAggregateStats + * @classdesc Represents a MessageAckRequest. + * @implements IMessageAckRequest * @constructor - * @param {query.IAggregateStats=} [properties] Properties to set + * @param {query.IMessageAckRequest=} [properties] Properties to set */ - function AggregateStats(properties) { + function MessageAckRequest(properties) { + this.ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72555,114 +73678,130 @@ $root.query = (function() { } /** - * AggregateStats healthy_tablet_count. - * @member {number} healthy_tablet_count - * @memberof query.AggregateStats + * MessageAckRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.MessageAckRequest * @instance */ - AggregateStats.prototype.healthy_tablet_count = 0; + MessageAckRequest.prototype.effective_caller_id = null; /** - * AggregateStats unhealthy_tablet_count. - * @member {number} unhealthy_tablet_count - * @memberof query.AggregateStats + * MessageAckRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.MessageAckRequest * @instance */ - AggregateStats.prototype.unhealthy_tablet_count = 0; + MessageAckRequest.prototype.immediate_caller_id = null; /** - * AggregateStats replication_lag_seconds_min. - * @member {number} replication_lag_seconds_min - * @memberof query.AggregateStats + * MessageAckRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.MessageAckRequest * @instance */ - AggregateStats.prototype.replication_lag_seconds_min = 0; + MessageAckRequest.prototype.target = null; /** - * AggregateStats replication_lag_seconds_max. - * @member {number} replication_lag_seconds_max - * @memberof query.AggregateStats + * MessageAckRequest name. + * @member {string} name + * @memberof query.MessageAckRequest * @instance */ - AggregateStats.prototype.replication_lag_seconds_max = 0; + MessageAckRequest.prototype.name = ""; /** - * Creates a new AggregateStats instance using the specified properties. + * MessageAckRequest ids. + * @member {Array.} ids + * @memberof query.MessageAckRequest + * @instance + */ + MessageAckRequest.prototype.ids = $util.emptyArray; + + /** + * Creates a new MessageAckRequest instance using the specified properties. * @function create - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static - * @param {query.IAggregateStats=} [properties] Properties to set - * @returns {query.AggregateStats} AggregateStats instance + * @param {query.IMessageAckRequest=} [properties] Properties to set + * @returns {query.MessageAckRequest} MessageAckRequest instance */ - AggregateStats.create = function create(properties) { - return new AggregateStats(properties); + MessageAckRequest.create = function create(properties) { + return new MessageAckRequest(properties); }; /** - * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encode - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static - * @param {query.IAggregateStats} message AggregateStats message or plain object to encode + * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregateStats.encode = function encode(message, writer) { + MessageAckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.healthy_tablet_count != null && Object.hasOwnProperty.call(message, "healthy_tablet_count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.healthy_tablet_count); - if (message.unhealthy_tablet_count != null && Object.hasOwnProperty.call(message, "unhealthy_tablet_count")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unhealthy_tablet_count); - if (message.replication_lag_seconds_min != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_min")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.replication_lag_seconds_min); - if (message.replication_lag_seconds_max != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_max")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds_max); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + $root.query.Value.encode(message.ids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static - * @param {query.IAggregateStats} message AggregateStats message or plain object to encode + * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregateStats message from the specified reader or buffer. + * Decodes a MessageAckRequest message from the specified reader or buffer. * @function decode - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.AggregateStats} AggregateStats + * @returns {query.MessageAckRequest} MessageAckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregateStats.decode = function decode(reader, length) { + MessageAckRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.healthy_tablet_count = reader.int32(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.unhealthy_tablet_count = reader.int32(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.replication_lag_seconds_min = reader.uint32(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.replication_lag_seconds_max = reader.uint32(); + message.name = reader.string(); + break; + case 5: + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push($root.query.Value.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -72673,136 +73812,173 @@ $root.query = (function() { }; /** - * Decodes an AggregateStats message from the specified reader or buffer, length delimited. + * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.AggregateStats} AggregateStats + * @returns {query.MessageAckRequest} MessageAckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregateStats.decodeDelimited = function decodeDelimited(reader) { + MessageAckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregateStats message. + * Verifies a MessageAckRequest message. * @function verify - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregateStats.verify = function verify(message) { + MessageAckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - if (!$util.isInteger(message.healthy_tablet_count)) - return "healthy_tablet_count: integer expected"; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - if (!$util.isInteger(message.unhealthy_tablet_count)) - return "unhealthy_tablet_count: integer expected"; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - if (!$util.isInteger(message.replication_lag_seconds_min)) - return "replication_lag_seconds_min: integer expected"; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - if (!$util.isInteger(message.replication_lag_seconds_max)) - return "replication_lag_seconds_max: integer expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) { + var error = $root.query.Value.verify(message.ids[i]); + if (error) + return "ids." + error; + } + } return null; }; /** - * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. + * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static * @param {Object.} object Plain object - * @returns {query.AggregateStats} AggregateStats + * @returns {query.MessageAckRequest} MessageAckRequest */ - AggregateStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.AggregateStats) + MessageAckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckRequest) return object; - var message = new $root.query.AggregateStats(); - if (object.healthy_tablet_count != null) - message.healthy_tablet_count = object.healthy_tablet_count | 0; - if (object.unhealthy_tablet_count != null) - message.unhealthy_tablet_count = object.unhealthy_tablet_count | 0; - if (object.replication_lag_seconds_min != null) - message.replication_lag_seconds_min = object.replication_lag_seconds_min >>> 0; - if (object.replication_lag_seconds_max != null) - message.replication_lag_seconds_max = object.replication_lag_seconds_max >>> 0; + var message = new $root.query.MessageAckRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.MessageAckRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.MessageAckRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.MessageAckRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.name != null) + message.name = String(object.name); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".query.MessageAckRequest.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) { + if (typeof object.ids[i] !== "object") + throw TypeError(".query.MessageAckRequest.ids: object expected"); + message.ids[i] = $root.query.Value.fromObject(object.ids[i]); + } + } return message; }; /** - * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. + * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @static - * @param {query.AggregateStats} message AggregateStats + * @param {query.MessageAckRequest} message MessageAckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregateStats.toObject = function toObject(message, options) { + MessageAckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.ids = []; if (options.defaults) { - object.healthy_tablet_count = 0; - object.unhealthy_tablet_count = 0; - object.replication_lag_seconds_min = 0; - object.replication_lag_seconds_max = 0; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.name = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + object.ids[j] = $root.query.Value.toObject(message.ids[j], options); } - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - object.healthy_tablet_count = message.healthy_tablet_count; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - object.unhealthy_tablet_count = message.unhealthy_tablet_count; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - object.replication_lag_seconds_min = message.replication_lag_seconds_min; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - object.replication_lag_seconds_max = message.replication_lag_seconds_max; return object; }; /** - * Converts this AggregateStats to JSON. + * Converts this MessageAckRequest to JSON. * @function toJSON - * @memberof query.AggregateStats + * @memberof query.MessageAckRequest * @instance * @returns {Object.} JSON object */ - AggregateStats.prototype.toJSON = function toJSON() { + MessageAckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AggregateStats; + return MessageAckRequest; })(); - query.StreamHealthResponse = (function() { + query.MessageAckResponse = (function() { /** - * Properties of a StreamHealthResponse. + * Properties of a MessageAckResponse. * @memberof query - * @interface IStreamHealthResponse - * @property {query.ITarget|null} [target] StreamHealthResponse target - * @property {boolean|null} [serving] StreamHealthResponse serving - * @property {number|Long|null} [tablet_externally_reparented_timestamp] StreamHealthResponse tablet_externally_reparented_timestamp - * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats - * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias + * @interface IMessageAckResponse + * @property {query.IQueryResult|null} [result] MessageAckResponse result */ /** - * Constructs a new StreamHealthResponse. + * Constructs a new MessageAckResponse. * @memberof query - * @classdesc Represents a StreamHealthResponse. - * @implements IStreamHealthResponse + * @classdesc Represents a MessageAckResponse. + * @implements IMessageAckResponse * @constructor - * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @param {query.IMessageAckResponse=} [properties] Properties to set */ - function StreamHealthResponse(properties) { + function MessageAckResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72810,127 +73986,75 @@ $root.query = (function() { } /** - * StreamHealthResponse target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StreamHealthResponse - * @instance - */ - StreamHealthResponse.prototype.target = null; - - /** - * StreamHealthResponse serving. - * @member {boolean} serving - * @memberof query.StreamHealthResponse - * @instance - */ - StreamHealthResponse.prototype.serving = false; - - /** - * StreamHealthResponse tablet_externally_reparented_timestamp. - * @member {number|Long} tablet_externally_reparented_timestamp - * @memberof query.StreamHealthResponse - * @instance - */ - StreamHealthResponse.prototype.tablet_externally_reparented_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * StreamHealthResponse realtime_stats. - * @member {query.IRealtimeStats|null|undefined} realtime_stats - * @memberof query.StreamHealthResponse - * @instance - */ - StreamHealthResponse.prototype.realtime_stats = null; - - /** - * StreamHealthResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.StreamHealthResponse + * MessageAckResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.MessageAckResponse * @instance */ - StreamHealthResponse.prototype.tablet_alias = null; + MessageAckResponse.prototype.result = null; /** - * Creates a new StreamHealthResponse instance using the specified properties. + * Creates a new MessageAckResponse instance using the specified properties. * @function create - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IStreamHealthResponse=} [properties] Properties to set - * @returns {query.StreamHealthResponse} StreamHealthResponse instance + * @param {query.IMessageAckResponse=} [properties] Properties to set + * @returns {query.MessageAckResponse} MessageAckResponse instance */ - StreamHealthResponse.create = function create(properties) { - return new StreamHealthResponse(properties); + MessageAckResponse.create = function create(properties) { + return new MessageAckResponse(properties); }; /** - * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encode - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode + * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthResponse.encode = function encode(message, writer) { + MessageAckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.serving != null && Object.hasOwnProperty.call(message, "serving")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.serving); - if (message.tablet_externally_reparented_timestamp != null && Object.hasOwnProperty.call(message, "tablet_externally_reparented_timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tablet_externally_reparented_timestamp); - if (message.realtime_stats != null && Object.hasOwnProperty.call(message, "realtime_stats")) - $root.query.RealtimeStats.encode(message.realtime_stats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode + * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthResponse message from the specified reader or buffer. + * Decodes a MessageAckResponse message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.MessageAckResponse} MessageAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthResponse.decode = function decode(reader, length) { + MessageAckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 2: - message.serving = reader.bool(); - break; - case 3: - message.tablet_externally_reparented_timestamp = reader.int64(); - break; - case 4: - message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); - break; - case 5: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -72941,191 +74065,119 @@ $root.query = (function() { }; /** - * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. + * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.MessageAckResponse} MessageAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthResponse.decodeDelimited = function decodeDelimited(reader) { + MessageAckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamHealthResponse message. + * Verifies a MessageAckResponse message. * @function verify - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamHealthResponse.verify = function verify(message) { + MessageAckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.serving != null && message.hasOwnProperty("serving")) - if (typeof message.serving !== "boolean") - return "serving: boolean expected"; - if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) - if (!$util.isInteger(message.tablet_externally_reparented_timestamp) && !(message.tablet_externally_reparented_timestamp && $util.isInteger(message.tablet_externally_reparented_timestamp.low) && $util.isInteger(message.tablet_externally_reparented_timestamp.high))) - return "tablet_externally_reparented_timestamp: integer|Long expected"; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { - var error = $root.query.RealtimeStats.verify(message.realtime_stats); - if (error) - return "realtime_stats." + error; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "tablet_alias." + error; + return "result." + error; } return null; }; /** - * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.MessageAckResponse} MessageAckResponse */ - StreamHealthResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthResponse) + MessageAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckResponse) return object; - var message = new $root.query.StreamHealthResponse(); - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.StreamHealthResponse.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.serving != null) - message.serving = Boolean(object.serving); - if (object.tablet_externally_reparented_timestamp != null) - if ($util.Long) - (message.tablet_externally_reparented_timestamp = $util.Long.fromValue(object.tablet_externally_reparented_timestamp)).unsigned = false; - else if (typeof object.tablet_externally_reparented_timestamp === "string") - message.tablet_externally_reparented_timestamp = parseInt(object.tablet_externally_reparented_timestamp, 10); - else if (typeof object.tablet_externally_reparented_timestamp === "number") - message.tablet_externally_reparented_timestamp = object.tablet_externally_reparented_timestamp; - else if (typeof object.tablet_externally_reparented_timestamp === "object") - message.tablet_externally_reparented_timestamp = new $util.LongBits(object.tablet_externally_reparented_timestamp.low >>> 0, object.tablet_externally_reparented_timestamp.high >>> 0).toNumber(); - if (object.realtime_stats != null) { - if (typeof object.realtime_stats !== "object") - throw TypeError(".query.StreamHealthResponse.realtime_stats: object expected"); - message.realtime_stats = $root.query.RealtimeStats.fromObject(object.realtime_stats); - } - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.StreamHealthResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.query.MessageAckResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.MessageAckResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. + * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @static - * @param {query.StreamHealthResponse} message StreamHealthResponse + * @param {query.MessageAckResponse} message MessageAckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthResponse.toObject = function toObject(message, options) { + MessageAckResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.target = null; - object.serving = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.tablet_externally_reparented_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tablet_externally_reparented_timestamp = options.longs === String ? "0" : 0; - object.realtime_stats = null; - object.tablet_alias = null; - } - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.serving != null && message.hasOwnProperty("serving")) - object.serving = message.serving; - if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) - if (typeof message.tablet_externally_reparented_timestamp === "number") - object.tablet_externally_reparented_timestamp = options.longs === String ? String(message.tablet_externally_reparented_timestamp) : message.tablet_externally_reparented_timestamp; - else - object.tablet_externally_reparented_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tablet_externally_reparented_timestamp) : options.longs === Number ? new $util.LongBits(message.tablet_externally_reparented_timestamp.low >>> 0, message.tablet_externally_reparented_timestamp.high >>> 0).toNumber() : message.tablet_externally_reparented_timestamp; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) - object.realtime_stats = $root.query.RealtimeStats.toObject(message.realtime_stats, options); - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this StreamHealthResponse to JSON. + * Converts this MessageAckResponse to JSON. * @function toJSON - * @memberof query.StreamHealthResponse + * @memberof query.MessageAckResponse * @instance * @returns {Object.} JSON object */ - StreamHealthResponse.prototype.toJSON = function toJSON() { + MessageAckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamHealthResponse; - })(); - - /** - * TransactionState enum. - * @name query.TransactionState - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} PREPARE=1 PREPARE value - * @property {number} COMMIT=2 COMMIT value - * @property {number} ROLLBACK=3 ROLLBACK value - */ - query.TransactionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "PREPARE"] = 1; - values[valuesById[2] = "COMMIT"] = 2; - values[valuesById[3] = "ROLLBACK"] = 3; - return values; + return MessageAckResponse; })(); - query.TransactionMetadata = (function() { + query.ReserveExecuteRequest = (function() { /** - * Properties of a TransactionMetadata. + * Properties of a ReserveExecuteRequest. * @memberof query - * @interface ITransactionMetadata - * @property {string|null} [dtid] TransactionMetadata dtid - * @property {query.TransactionState|null} [state] TransactionMetadata state - * @property {number|Long|null} [time_created] TransactionMetadata time_created - * @property {Array.|null} [participants] TransactionMetadata participants + * @interface IReserveExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveExecuteRequest query + * @property {number|Long|null} [transaction_id] ReserveExecuteRequest transaction_id + * @property {query.IExecuteOptions|null} [options] ReserveExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveExecuteRequest pre_queries */ /** - * Constructs a new TransactionMetadata. + * Constructs a new ReserveExecuteRequest. * @memberof query - * @classdesc Represents a TransactionMetadata. - * @implements ITransactionMetadata + * @classdesc Represents a ReserveExecuteRequest. + * @implements IReserveExecuteRequest * @constructor - * @param {query.ITransactionMetadata=} [properties] Properties to set + * @param {query.IReserveExecuteRequest=} [properties] Properties to set */ - function TransactionMetadata(properties) { - this.participants = []; + function ReserveExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73133,117 +74185,156 @@ $root.query = (function() { } /** - * TransactionMetadata dtid. - * @member {string} dtid - * @memberof query.TransactionMetadata + * ReserveExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveExecuteRequest * @instance */ - TransactionMetadata.prototype.dtid = ""; + ReserveExecuteRequest.prototype.effective_caller_id = null; /** - * TransactionMetadata state. - * @member {query.TransactionState} state - * @memberof query.TransactionMetadata + * ReserveExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveExecuteRequest * @instance */ - TransactionMetadata.prototype.state = 0; + ReserveExecuteRequest.prototype.immediate_caller_id = null; /** - * TransactionMetadata time_created. - * @member {number|Long} time_created - * @memberof query.TransactionMetadata + * ReserveExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveExecuteRequest * @instance */ - TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveExecuteRequest.prototype.target = null; /** - * TransactionMetadata participants. - * @member {Array.} participants - * @memberof query.TransactionMetadata + * ReserveExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveExecuteRequest * @instance */ - TransactionMetadata.prototype.participants = $util.emptyArray; + ReserveExecuteRequest.prototype.query = null; /** - * Creates a new TransactionMetadata instance using the specified properties. - * @function create - * @memberof query.TransactionMetadata - * @static - * @param {query.ITransactionMetadata=} [properties] Properties to set - * @returns {query.TransactionMetadata} TransactionMetadata instance + * ReserveExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveExecuteRequest + * @instance */ - TransactionMetadata.create = function create(properties) { - return new TransactionMetadata(properties); - }; + ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. - * @function encode - * @memberof query.TransactionMetadata - * @static - * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ReserveExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveExecuteRequest + * @instance */ - TransactionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); - if (message.participants != null && message.participants.length) - for (var i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + ReserveExecuteRequest.prototype.options = null; + + /** + * ReserveExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveExecuteRequest + * @instance + */ + ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * Creates a new ReserveExecuteRequest instance using the specified properties. + * @function create + * @memberof query.ReserveExecuteRequest + * @static + * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance + */ + ReserveExecuteRequest.create = function create(properties) { + return new ReserveExecuteRequest(properties); + }; + + /** + * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * @function encode + * @memberof query.ReserveExecuteRequest + * @static + * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReserveExecuteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static - * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode + * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransactionMetadata message from the specified reader or buffer. + * Decodes a ReserveExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransactionMetadata.decode = function decode(reader, length) { + ReserveExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dtid = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.state = reader.int32(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.time_created = reader.int64(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.transaction_id = reader.int64(); + break; + case 6: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -73254,203 +74345,211 @@ $root.query = (function() { }; /** - * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. + * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransactionMetadata.decodeDelimited = function decodeDelimited(reader) { + ReserveExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransactionMetadata message. + * Verifies a ReserveExecuteRequest message. * @function verify - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransactionMetadata.verify = function verify(message) { + ReserveExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.time_created != null && message.hasOwnProperty("time_created")) - if (!$util.isInteger(message.time_created) && !(message.time_created && $util.isInteger(message.time_created.low) && $util.isInteger(message.time_created.high))) - return "time_created: integer|Long expected"; - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (var i = 0; i < message.participants.length; ++i) { - var error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; } return null; }; /** - * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest */ - TransactionMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.query.TransactionMetadata) + ReserveExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteRequest) return object; - var message = new $root.query.TransactionMetadata(); - if (object.dtid != null) - message.dtid = String(object.dtid); - switch (object.state) { - case "UNKNOWN": - case 0: - message.state = 0; - break; - case "PREPARE": - case 1: - message.state = 1; - break; - case "COMMIT": - case 2: - message.state = 2; - break; - case "ROLLBACK": - case 3: - message.state = 3; - break; + var message = new $root.query.ReserveExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } - if (object.time_created != null) + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.transaction_id != null) if ($util.Long) - (message.time_created = $util.Long.fromValue(object.time_created)).unsigned = false; - else if (typeof object.time_created === "string") - message.time_created = parseInt(object.time_created, 10); - else if (typeof object.time_created === "number") - message.time_created = object.time_created; - else if (typeof object.time_created === "object") - message.time_created = new $util.LongBits(object.time_created.low >>> 0, object.time_created.high >>> 0).toNumber(); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".query.TransactionMetadata.participants: array expected"); - message.participants = []; - for (var i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".query.TransactionMetadata.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); - } + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); } return message; }; /** - * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @static - * @param {query.TransactionMetadata} message TransactionMetadata + * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransactionMetadata.toObject = function toObject(message, options) { + ReserveExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.participants = []; + object.pre_queries = []; if (options.defaults) { - object.dtid = ""; - object.state = options.enums === String ? "UNKNOWN" : 0; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.time_created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.time_created = options.longs === String ? "0" : 0; + object.transaction_id = options.longs === String ? "0" : 0; + object.options = null; } - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.query.TransactionState[message.state] : message.state; - if (message.time_created != null && message.hasOwnProperty("time_created")) - if (typeof message.time_created === "number") - object.time_created = options.longs === String ? String(message.time_created) : message.time_created; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.time_created = options.longs === String ? $util.Long.prototype.toString.call(message.time_created) : options.longs === Number ? new $util.LongBits(message.time_created.low >>> 0, message.time_created.high >>> 0).toNumber() : message.time_created; - if (message.participants && message.participants.length) { - object.participants = []; - for (var j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; } return object; }; /** - * Converts this TransactionMetadata to JSON. + * Converts this ReserveExecuteRequest to JSON. * @function toJSON - * @memberof query.TransactionMetadata + * @memberof query.ReserveExecuteRequest * @instance * @returns {Object.} JSON object */ - TransactionMetadata.prototype.toJSON = function toJSON() { + ReserveExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TransactionMetadata; + return ReserveExecuteRequest; })(); - return query; -})(); - -$root.vtrpc = (function() { - - /** - * Namespace vtrpc. - * @exports vtrpc - * @namespace - */ - var vtrpc = {}; - - vtrpc.CallerID = (function() { + query.ReserveExecuteResponse = (function() { /** - * Properties of a CallerID. - * @memberof vtrpc - * @interface ICallerID - * @property {string|null} [principal] CallerID principal - * @property {string|null} [component] CallerID component - * @property {string|null} [subcomponent] CallerID subcomponent - * @property {Array.|null} [groups] CallerID groups + * Properties of a ReserveExecuteResponse. + * @memberof query + * @interface IReserveExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveExecuteResponse result + * @property {number|Long|null} [reserved_id] ReserveExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveExecuteResponse tablet_alias */ /** - * Constructs a new CallerID. - * @memberof vtrpc - * @classdesc Represents a CallerID. - * @implements ICallerID + * Constructs a new ReserveExecuteResponse. + * @memberof query + * @classdesc Represents a ReserveExecuteResponse. + * @implements IReserveExecuteResponse * @constructor - * @param {vtrpc.ICallerID=} [properties] Properties to set + * @param {query.IReserveExecuteResponse=} [properties] Properties to set */ - function CallerID(properties) { - this.groups = []; + function ReserveExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73458,117 +74557,114 @@ $root.vtrpc = (function() { } /** - * CallerID principal. - * @member {string} principal - * @memberof vtrpc.CallerID + * ReserveExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveExecuteResponse * @instance */ - CallerID.prototype.principal = ""; + ReserveExecuteResponse.prototype.error = null; /** - * CallerID component. - * @member {string} component - * @memberof vtrpc.CallerID + * ReserveExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveExecuteResponse * @instance */ - CallerID.prototype.component = ""; + ReserveExecuteResponse.prototype.result = null; /** - * CallerID subcomponent. - * @member {string} subcomponent - * @memberof vtrpc.CallerID + * ReserveExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveExecuteResponse * @instance */ - CallerID.prototype.subcomponent = ""; + ReserveExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CallerID groups. - * @member {Array.} groups - * @memberof vtrpc.CallerID + * ReserveExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveExecuteResponse * @instance */ - CallerID.prototype.groups = $util.emptyArray; + ReserveExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new CallerID instance using the specified properties. + * Creates a new ReserveExecuteResponse instance using the specified properties. * @function create - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static - * @param {vtrpc.ICallerID=} [properties] Properties to set - * @returns {vtrpc.CallerID} CallerID instance + * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance */ - CallerID.create = function create(properties) { - return new CallerID(properties); + ReserveExecuteResponse.create = function create(properties) { + return new ReserveExecuteResponse(properties); }; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encode - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encode = function encode(message, writer) { + ReserveExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); - if (message.component != null && Object.hasOwnProperty.call(message, "component")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); - if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes a ReserveExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.CallerID} CallerID + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decode = function decode(reader, length) { + ReserveExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.principal = reader.string(); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; case 2: - message.component = reader.string(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; case 3: - message.subcomponent = reader.string(); + message.reserved_id = reader.int64(); break; case 4: - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -73579,194 +74675,168 @@ $root.vtrpc = (function() { }; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.CallerID} CallerID + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decodeDelimited = function decodeDelimited(reader) { + ReserveExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CallerID message. + * Verifies a ReserveExecuteResponse message. * @function verify - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CallerID.verify = function verify(message) { + ReserveExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.component != null && message.hasOwnProperty("component")) - if (!$util.isString(message.component)) - return "component: string expected"; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - if (!$util.isString(message.subcomponent)) - return "subcomponent: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } return null; }; /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static * @param {Object.} object Plain object - * @returns {vtrpc.CallerID} CallerID + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse */ - CallerID.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.CallerID) + ReserveExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteResponse) return object; - var message = new $root.vtrpc.CallerID(); - if (object.principal != null) - message.principal = String(object.principal); - if (object.component != null) - message.component = String(object.component); - if (object.subcomponent != null) - message.subcomponent = String(object.subcomponent); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".vtrpc.CallerID.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + var message = new $root.query.ReserveExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @static - * @param {vtrpc.CallerID} message CallerID + * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CallerID.toObject = function toObject(message, options) { + ReserveExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.groups = []; if (options.defaults) { - object.principal = ""; - object.component = ""; - object.subcomponent = ""; - } - if (message.principal != null && message.hasOwnProperty("principal")) - object.principal = message.principal; - if (message.component != null && message.hasOwnProperty("component")) - object.component = message.component; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - object.subcomponent = message.subcomponent; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + object.error = null; + object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this CallerID to JSON. + * Converts this ReserveExecuteResponse to JSON. * @function toJSON - * @memberof vtrpc.CallerID + * @memberof query.ReserveExecuteResponse * @instance * @returns {Object.} JSON object */ - CallerID.prototype.toJSON = function toJSON() { + ReserveExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CallerID; - })(); - - /** - * Code enum. - * @name vtrpc.Code - * @enum {number} - * @property {number} OK=0 OK value - * @property {number} CANCELED=1 CANCELED value - * @property {number} UNKNOWN=2 UNKNOWN value - * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value - * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value - * @property {number} NOT_FOUND=5 NOT_FOUND value - * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value - * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value - * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value - * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value - * @property {number} ABORTED=10 ABORTED value - * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value - * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value - * @property {number} INTERNAL=13 INTERNAL value - * @property {number} UNAVAILABLE=14 UNAVAILABLE value - * @property {number} DATA_LOSS=15 DATA_LOSS value - * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value - * @property {number} CLUSTER_EVENT=17 CLUSTER_EVENT value - * @property {number} READ_ONLY=18 READ_ONLY value - */ - vtrpc.Code = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "CANCELED"] = 1; - values[valuesById[2] = "UNKNOWN"] = 2; - values[valuesById[3] = "INVALID_ARGUMENT"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; - values[valuesById[5] = "NOT_FOUND"] = 5; - values[valuesById[6] = "ALREADY_EXISTS"] = 6; - values[valuesById[7] = "PERMISSION_DENIED"] = 7; - values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; - values[valuesById[9] = "FAILED_PRECONDITION"] = 9; - values[valuesById[10] = "ABORTED"] = 10; - values[valuesById[11] = "OUT_OF_RANGE"] = 11; - values[valuesById[12] = "UNIMPLEMENTED"] = 12; - values[valuesById[13] = "INTERNAL"] = 13; - values[valuesById[14] = "UNAVAILABLE"] = 14; - values[valuesById[15] = "DATA_LOSS"] = 15; - values[valuesById[16] = "UNAUTHENTICATED"] = 16; - values[valuesById[17] = "CLUSTER_EVENT"] = 17; - values[valuesById[18] = "READ_ONLY"] = 18; - return values; + return ReserveExecuteResponse; })(); - vtrpc.RPCError = (function() { + query.ReserveStreamExecuteRequest = (function() { /** - * Properties of a RPCError. - * @memberof vtrpc - * @interface IRPCError - * @property {string|null} [message] RPCError message - * @property {vtrpc.Code|null} [code] RPCError code + * Properties of a ReserveStreamExecuteRequest. + * @memberof query + * @interface IReserveStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveStreamExecuteRequest options + * @property {number|Long|null} [transaction_id] ReserveStreamExecuteRequest transaction_id + * @property {Array.|null} [pre_queries] ReserveStreamExecuteRequest pre_queries */ /** - * Constructs a new RPCError. - * @memberof vtrpc - * @classdesc Represents a RPCError. - * @implements IRPCError + * Constructs a new ReserveStreamExecuteRequest. + * @memberof query + * @classdesc Represents a ReserveStreamExecuteRequest. + * @implements IReserveStreamExecuteRequest * @constructor - * @param {vtrpc.IRPCError=} [properties] Properties to set + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set */ - function RPCError(properties) { + function ReserveStreamExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73774,88 +74844,156 @@ $root.vtrpc = (function() { } /** - * RPCError message. - * @member {string} message - * @memberof vtrpc.RPCError + * ReserveStreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveStreamExecuteRequest * @instance */ - RPCError.prototype.message = ""; + ReserveStreamExecuteRequest.prototype.effective_caller_id = null; /** - * RPCError code. - * @member {vtrpc.Code} code - * @memberof vtrpc.RPCError + * ReserveStreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveStreamExecuteRequest * @instance */ - RPCError.prototype.code = 0; + ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * Creates a new RPCError instance using the specified properties. + * ReserveStreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.target = null; + + /** + * ReserveStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.query = null; + + /** + * ReserveStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.options = null; + + /** + * ReserveStreamExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveStreamExecuteRequest + * @instance + */ + ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * Creates a new ReserveStreamExecuteRequest instance using the specified properties. * @function create - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {vtrpc.IRPCError=} [properties] Properties to set - * @returns {vtrpc.RPCError} RPCError instance + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance */ - RPCError.create = function create(properties) { - return new RPCError(properties); + ReserveStreamExecuteRequest.create = function create(properties) { + return new ReserveStreamExecuteRequest(properties); }; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encode = function encode(message, writer) { + ReserveStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encodeDelimited = function encodeDelimited(message, writer) { + ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.RPCError} RPCError + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decode = function decode(reader, length) { + ReserveStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; case 2: - message.message = reader.string(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.code = reader.int32(); + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + message.transaction_id = reader.int64(); + break; + case 7: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -73866,249 +75004,211 @@ $root.vtrpc = (function() { }; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.RPCError} RPCError + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decodeDelimited = function decodeDelimited(reader) { + ReserveStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RPCError message. + * Verifies a ReserveStreamExecuteRequest message. * @function verify - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RPCError.verify = function verify(message) { + ReserveStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } return null; }; /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {vtrpc.RPCError} RPCError + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest */ - RPCError.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.RPCError) + ReserveStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteRequest) return object; - var message = new $root.vtrpc.RPCError(); - if (object.message != null) - message.message = String(object.message); - switch (object.code) { - case "OK": - case 0: - message.code = 0; - break; - case "CANCELED": - case 1: - message.code = 1; - break; - case "UNKNOWN": - case 2: - message.code = 2; - break; - case "INVALID_ARGUMENT": - case 3: - message.code = 3; - break; - case "DEADLINE_EXCEEDED": - case 4: - message.code = 4; - break; - case "NOT_FOUND": - case 5: - message.code = 5; - break; - case "ALREADY_EXISTS": - case 6: - message.code = 6; - break; - case "PERMISSION_DENIED": - case 7: - message.code = 7; - break; - case "RESOURCE_EXHAUSTED": - case 8: - message.code = 8; - break; - case "FAILED_PRECONDITION": - case 9: - message.code = 9; - break; - case "ABORTED": - case 10: - message.code = 10; - break; - case "OUT_OF_RANGE": - case 11: - message.code = 11; - break; - case "UNIMPLEMENTED": - case 12: - message.code = 12; - break; - case "INTERNAL": - case 13: - message.code = 13; - break; - case "UNAVAILABLE": - case 14: - message.code = 14; - break; - case "DATA_LOSS": - case 15: - message.code = 15; - break; - case "UNAUTHENTICATED": - case 16: - message.code = 16; - break; - case "CLUSTER_EVENT": - case 17: - message.code = 17; - break; - case "READ_ONLY": - case 18: - message.code = 18; - break; + var message = new $root.query.ReserveStreamExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); } return message; }; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {vtrpc.RPCError} message RPCError + * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RPCError.toObject = function toObject(message, options) { + ReserveStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pre_queries = []; if (options.defaults) { - object.message = ""; - object.code = options.enums === String ? "OK" : 0; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; } - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this RPCError to JSON. + * Converts this ReserveStreamExecuteRequest to JSON. * @function toJSON - * @memberof vtrpc.RPCError + * @memberof query.ReserveStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - RPCError.prototype.toJSON = function toJSON() { + ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RPCError; + return ReserveStreamExecuteRequest; })(); - return vtrpc; -})(); - -$root.replicationdata = (function() { - - /** - * Namespace replicationdata. - * @exports replicationdata - * @namespace - */ - var replicationdata = {}; - - replicationdata.Status = (function() { + query.ReserveStreamExecuteResponse = (function() { /** - * Properties of a Status. - * @memberof replicationdata - * @interface IStatus - * @property {string|null} [position] Status position - * @property {boolean|null} [io_thread_running] Status io_thread_running - * @property {boolean|null} [sql_thread_running] Status sql_thread_running - * @property {number|null} [replication_lag_seconds] Status replication_lag_seconds - * @property {string|null} [source_host] Status source_host - * @property {number|null} [source_port] Status source_port - * @property {number|null} [connect_retry] Status connect_retry - * @property {string|null} [relay_log_position] Status relay_log_position - * @property {string|null} [file_position] Status file_position - * @property {string|null} [relay_log_source_binlog_equivalent_position] Status relay_log_source_binlog_equivalent_position - * @property {number|null} [source_server_id] Status source_server_id - * @property {string|null} [source_uuid] Status source_uuid - * @property {number|null} [io_state] Status io_state - * @property {string|null} [last_io_error] Status last_io_error - * @property {number|null} [sql_state] Status sql_state - * @property {string|null} [last_sql_error] Status last_sql_error - * @property {string|null} [relay_log_file_position] Status relay_log_file_position - * @property {string|null} [source_user] Status source_user - * @property {number|null} [sql_delay] Status sql_delay - * @property {boolean|null} [auto_position] Status auto_position - * @property {boolean|null} [using_gtid] Status using_gtid - * @property {boolean|null} [has_replication_filters] Status has_replication_filters - * @property {boolean|null} [ssl_allowed] Status ssl_allowed - * @property {boolean|null} [replication_lag_unknown] Status replication_lag_unknown + * Properties of a ReserveStreamExecuteResponse. + * @memberof query + * @interface IReserveStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveStreamExecuteResponse result + * @property {number|Long|null} [reserved_id] ReserveStreamExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveStreamExecuteResponse tablet_alias */ /** - * Constructs a new Status. - * @memberof replicationdata - * @classdesc Represents a Status. - * @implements IStatus + * Constructs a new ReserveStreamExecuteResponse. + * @memberof query + * @classdesc Represents a ReserveStreamExecuteResponse. + * @implements IReserveStreamExecuteResponse * @constructor - * @param {replicationdata.IStatus=} [properties] Properties to set + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set */ - function Status(properties) { + function ReserveStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74116,374 +75216,447 @@ $root.replicationdata = (function() { } /** - * Status position. - * @member {string} position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.position = ""; - - /** - * Status io_thread_running. - * @member {boolean} io_thread_running - * @memberof replicationdata.Status + * ReserveStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveStreamExecuteResponse * @instance */ - Status.prototype.io_thread_running = false; + ReserveStreamExecuteResponse.prototype.error = null; /** - * Status sql_thread_running. - * @member {boolean} sql_thread_running - * @memberof replicationdata.Status + * ReserveStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveStreamExecuteResponse * @instance */ - Status.prototype.sql_thread_running = false; + ReserveStreamExecuteResponse.prototype.result = null; /** - * Status replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof replicationdata.Status + * ReserveStreamExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveStreamExecuteResponse * @instance */ - Status.prototype.replication_lag_seconds = 0; + ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Status source_host. - * @member {string} source_host - * @memberof replicationdata.Status + * ReserveStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveStreamExecuteResponse * @instance */ - Status.prototype.source_host = ""; + ReserveStreamExecuteResponse.prototype.tablet_alias = null; /** - * Status source_port. - * @member {number} source_port - * @memberof replicationdata.Status - * @instance + * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * @function create + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance */ - Status.prototype.source_port = 0; + ReserveStreamExecuteResponse.create = function create(properties) { + return new ReserveStreamExecuteResponse(properties); + }; /** - * Status connect_retry. - * @member {number} connect_retry - * @memberof replicationdata.Status - * @instance + * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @function encode + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Status.prototype.connect_retry = 0; + ReserveStreamExecuteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; /** - * Status relay_log_position. - * @member {string} relay_log_position - * @memberof replicationdata.Status - * @instance + * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Status.prototype.relay_log_position = ""; + ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Status file_position. - * @member {string} file_position - * @memberof replicationdata.Status - * @instance + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * @function decode + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.prototype.file_position = ""; + ReserveStreamExecuteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + break; + case 2: + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.reserved_id = reader.int64(); + break; + case 4: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Status relay_log_source_binlog_equivalent_position. - * @member {string} relay_log_source_binlog_equivalent_position - * @memberof replicationdata.Status - * @instance + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.prototype.relay_log_source_binlog_equivalent_position = ""; + ReserveStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Status source_server_id. - * @member {number} source_server_id - * @memberof replicationdata.Status - * @instance + * Verifies a ReserveStreamExecuteResponse message. + * @function verify + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.prototype.source_server_id = 0; + ReserveStreamExecuteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + return null; + }; /** - * Status source_uuid. - * @member {string} source_uuid - * @memberof replicationdata.Status - * @instance + * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {Object.} object Plain object + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse */ - Status.prototype.source_uuid = ""; + ReserveStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteResponse) + return object; + var message = new $root.query.ReserveStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + return message; + }; /** - * Status io_state. - * @member {number} io_state - * @memberof replicationdata.Status - * @instance + * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof query.ReserveStreamExecuteResponse + * @static + * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Status.prototype.io_state = 0; + ReserveStreamExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.error = null; + object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + return object; + }; /** - * Status last_io_error. - * @member {string} last_io_error - * @memberof replicationdata.Status + * Converts this ReserveStreamExecuteResponse to JSON. + * @function toJSON + * @memberof query.ReserveStreamExecuteResponse * @instance + * @returns {Object.} JSON object */ - Status.prototype.last_io_error = ""; + ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Status sql_state. - * @member {number} sql_state - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.sql_state = 0; + return ReserveStreamExecuteResponse; + })(); + + query.ReserveBeginExecuteRequest = (function() { /** - * Status last_sql_error. - * @member {string} last_sql_error - * @memberof replicationdata.Status - * @instance + * Properties of a ReserveBeginExecuteRequest. + * @memberof query + * @interface IReserveBeginExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveBeginExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveBeginExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveBeginExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveBeginExecuteRequest pre_queries + * @property {Array.|null} [post_begin_queries] ReserveBeginExecuteRequest post_begin_queries */ - Status.prototype.last_sql_error = ""; /** - * Status relay_log_file_position. - * @member {string} relay_log_file_position - * @memberof replicationdata.Status - * @instance + * Constructs a new ReserveBeginExecuteRequest. + * @memberof query + * @classdesc Represents a ReserveBeginExecuteRequest. + * @implements IReserveBeginExecuteRequest + * @constructor + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set */ - Status.prototype.relay_log_file_position = ""; + function ReserveBeginExecuteRequest(properties) { + this.pre_queries = []; + this.post_begin_queries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Status source_user. - * @member {string} source_user - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.source_user = ""; + ReserveBeginExecuteRequest.prototype.effective_caller_id = null; /** - * Status sql_delay. - * @member {number} sql_delay - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.sql_delay = 0; + ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; /** - * Status auto_position. - * @member {boolean} auto_position - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.auto_position = false; + ReserveBeginExecuteRequest.prototype.target = null; /** - * Status using_gtid. - * @member {boolean} using_gtid - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.using_gtid = false; + ReserveBeginExecuteRequest.prototype.query = null; /** - * Status has_replication_filters. - * @member {boolean} has_replication_filters - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.has_replication_filters = false; + ReserveBeginExecuteRequest.prototype.options = null; /** - * Status ssl_allowed. - * @member {boolean} ssl_allowed - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.ssl_allowed = false; + ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Status replication_lag_unknown. - * @member {boolean} replication_lag_unknown - * @memberof replicationdata.Status + * ReserveBeginExecuteRequest post_begin_queries. + * @member {Array.} post_begin_queries + * @memberof query.ReserveBeginExecuteRequest * @instance */ - Status.prototype.replication_lag_unknown = false; + ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; /** - * Creates a new Status instance using the specified properties. + * Creates a new ReserveBeginExecuteRequest instance using the specified properties. * @function create - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {replicationdata.IStatus=} [properties] Properties to set - * @returns {replicationdata.Status} Status instance + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance */ - Status.create = function create(properties) { - return new Status(properties); + ReserveBeginExecuteRequest.create = function create(properties) { + return new ReserveBeginExecuteRequest(properties); }; /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encode = function encode(message, writer) { + ReserveBeginExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); - if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); - if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds); - if (message.source_host != null && Object.hasOwnProperty.call(message, "source_host")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_host); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.source_port); - if (message.connect_retry != null && Object.hasOwnProperty.call(message, "connect_retry")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.connect_retry); - if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); - if (message.relay_log_source_binlog_equivalent_position != null && Object.hasOwnProperty.call(message, "relay_log_source_binlog_equivalent_position")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.relay_log_source_binlog_equivalent_position); - if (message.source_server_id != null && Object.hasOwnProperty.call(message, "source_server_id")) - writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.source_server_id); - if (message.source_uuid != null && Object.hasOwnProperty.call(message, "source_uuid")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_uuid); - if (message.io_state != null && Object.hasOwnProperty.call(message, "io_state")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.io_state); - if (message.last_io_error != null && Object.hasOwnProperty.call(message, "last_io_error")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.last_io_error); - if (message.sql_state != null && Object.hasOwnProperty.call(message, "sql_state")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.sql_state); - if (message.last_sql_error != null && Object.hasOwnProperty.call(message, "last_sql_error")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.last_sql_error); - if (message.relay_log_file_position != null && Object.hasOwnProperty.call(message, "relay_log_file_position")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.relay_log_file_position); - if (message.source_user != null && Object.hasOwnProperty.call(message, "source_user")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.source_user); - if (message.sql_delay != null && Object.hasOwnProperty.call(message, "sql_delay")) - writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.sql_delay); - if (message.auto_position != null && Object.hasOwnProperty.call(message, "auto_position")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.auto_position); - if (message.using_gtid != null && Object.hasOwnProperty.call(message, "using_gtid")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.using_gtid); - if (message.has_replication_filters != null && Object.hasOwnProperty.call(message, "has_replication_filters")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.has_replication_filters); - if (message.ssl_allowed != null && Object.hasOwnProperty.call(message, "ssl_allowed")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.ssl_allowed); - if (message.replication_lag_unknown != null && Object.hasOwnProperty.call(message, "replication_lag_unknown")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.replication_lag_unknown); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); + if (message.post_begin_queries != null && message.post_begin_queries.length) + for (var i = 0; i < message.post_begin_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); return writer; }; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.Status} Status + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decode = function decode(reader, length) { + ReserveBeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.position = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.io_thread_running = reader.bool(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.sql_thread_running = reader.bool(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.replication_lag_seconds = reader.uint32(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: - message.source_host = reader.string(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 6: - message.source_port = reader.int32(); + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); break; case 7: - message.connect_retry = reader.int32(); - break; - case 8: - message.relay_log_position = reader.string(); - break; - case 9: - message.file_position = reader.string(); - break; - case 10: - message.relay_log_source_binlog_equivalent_position = reader.string(); - break; - case 11: - message.source_server_id = reader.uint32(); - break; - case 12: - message.source_uuid = reader.string(); - break; - case 13: - message.io_state = reader.int32(); - break; - case 14: - message.last_io_error = reader.string(); - break; - case 15: - message.sql_state = reader.int32(); - break; - case 16: - message.last_sql_error = reader.string(); - break; - case 17: - message.relay_log_file_position = reader.string(); - break; - case 18: - message.source_user = reader.string(); - break; - case 19: - message.sql_delay = reader.uint32(); - break; - case 20: - message.auto_position = reader.bool(); - break; - case 21: - message.using_gtid = reader.bool(); - break; - case 22: - message.has_replication_filters = reader.bool(); - break; - case 23: - message.ssl_allowed = reader.bool(); - break; - case 24: - message.replication_lag_unknown = reader.bool(); + if (!(message.post_begin_queries && message.post_begin_queries.length)) + message.post_begin_queries = []; + message.post_begin_queries.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -74494,293 +75667,212 @@ $root.replicationdata = (function() { }; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.Status} Status + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Status message. + * Verifies a ReserveBeginExecuteRequest message. * @function verify - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.verify = function verify(message) { + ReserveBeginExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - if (typeof message.io_thread_running !== "boolean") - return "io_thread_running: boolean expected"; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - if (typeof message.sql_thread_running !== "boolean") - return "sql_thread_running: boolean expected"; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - if (!$util.isInteger(message.replication_lag_seconds)) - return "replication_lag_seconds: integer expected"; - if (message.source_host != null && message.hasOwnProperty("source_host")) - if (!$util.isString(message.source_host)) - return "source_host: string expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isInteger(message.source_port)) - return "source_port: integer expected"; - if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) - if (!$util.isInteger(message.connect_retry)) - return "connect_retry: integer expected"; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - if (!$util.isString(message.relay_log_position)) - return "relay_log_position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; - if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) - if (!$util.isString(message.relay_log_source_binlog_equivalent_position)) - return "relay_log_source_binlog_equivalent_position: string expected"; - if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) - if (!$util.isInteger(message.source_server_id)) - return "source_server_id: integer expected"; - if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) - if (!$util.isString(message.source_uuid)) - return "source_uuid: string expected"; - if (message.io_state != null && message.hasOwnProperty("io_state")) - if (!$util.isInteger(message.io_state)) - return "io_state: integer expected"; - if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) - if (!$util.isString(message.last_io_error)) - return "last_io_error: string expected"; - if (message.sql_state != null && message.hasOwnProperty("sql_state")) - if (!$util.isInteger(message.sql_state)) - return "sql_state: integer expected"; - if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) - if (!$util.isString(message.last_sql_error)) - return "last_sql_error: string expected"; - if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) - if (!$util.isString(message.relay_log_file_position)) - return "relay_log_file_position: string expected"; - if (message.source_user != null && message.hasOwnProperty("source_user")) - if (!$util.isString(message.source_user)) - return "source_user: string expected"; - if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) - if (!$util.isInteger(message.sql_delay)) - return "sql_delay: integer expected"; - if (message.auto_position != null && message.hasOwnProperty("auto_position")) - if (typeof message.auto_position !== "boolean") - return "auto_position: boolean expected"; - if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) - if (typeof message.using_gtid !== "boolean") - return "using_gtid: boolean expected"; - if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) - if (typeof message.has_replication_filters !== "boolean") - return "has_replication_filters: boolean expected"; - if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) - if (typeof message.ssl_allowed !== "boolean") - return "ssl_allowed: boolean expected"; - if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) - if (typeof message.replication_lag_unknown !== "boolean") - return "replication_lag_unknown: boolean expected"; - return null; - }; - - /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof replicationdata.Status - * @static - * @param {Object.} object Plain object - * @returns {replicationdata.Status} Status - */ - Status.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.Status) - return object; - var message = new $root.replicationdata.Status(); - if (object.position != null) - message.position = String(object.position); - if (object.io_thread_running != null) - message.io_thread_running = Boolean(object.io_thread_running); - if (object.sql_thread_running != null) - message.sql_thread_running = Boolean(object.sql_thread_running); - if (object.replication_lag_seconds != null) - message.replication_lag_seconds = object.replication_lag_seconds >>> 0; - if (object.source_host != null) - message.source_host = String(object.source_host); - if (object.source_port != null) - message.source_port = object.source_port | 0; - if (object.connect_retry != null) - message.connect_retry = object.connect_retry | 0; - if (object.relay_log_position != null) - message.relay_log_position = String(object.relay_log_position); - if (object.file_position != null) - message.file_position = String(object.file_position); - if (object.relay_log_source_binlog_equivalent_position != null) - message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); - if (object.source_server_id != null) - message.source_server_id = object.source_server_id >>> 0; - if (object.source_uuid != null) - message.source_uuid = String(object.source_uuid); - if (object.io_state != null) - message.io_state = object.io_state | 0; - if (object.last_io_error != null) - message.last_io_error = String(object.last_io_error); - if (object.sql_state != null) - message.sql_state = object.sql_state | 0; - if (object.last_sql_error != null) - message.last_sql_error = String(object.last_sql_error); - if (object.relay_log_file_position != null) - message.relay_log_file_position = String(object.relay_log_file_position); - if (object.source_user != null) - message.source_user = String(object.source_user); - if (object.sql_delay != null) - message.sql_delay = object.sql_delay >>> 0; - if (object.auto_position != null) - message.auto_position = Boolean(object.auto_position); - if (object.using_gtid != null) - message.using_gtid = Boolean(object.using_gtid); - if (object.has_replication_filters != null) - message.has_replication_filters = Boolean(object.has_replication_filters); - if (object.ssl_allowed != null) - message.ssl_allowed = Boolean(object.ssl_allowed); - if (object.replication_lag_unknown != null) - message.replication_lag_unknown = Boolean(object.replication_lag_unknown); + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } + if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { + if (!Array.isArray(message.post_begin_queries)) + return "post_begin_queries: array expected"; + for (var i = 0; i < message.post_begin_queries.length; ++i) + if (!$util.isString(message.post_begin_queries[i])) + return "post_begin_queries: string[] expected"; + } + return null; + }; + + /** + * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.ReserveBeginExecuteRequest + * @static + * @param {Object.} object Plain object + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + */ + ReserveBeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteRequest) + return object; + var message = new $root.query.ReserveBeginExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } + if (object.post_begin_queries) { + if (!Array.isArray(object.post_begin_queries)) + throw TypeError(".query.ReserveBeginExecuteRequest.post_begin_queries: array expected"); + message.post_begin_queries = []; + for (var i = 0; i < object.post_begin_queries.length; ++i) + message.post_begin_queries[i] = String(object.post_begin_queries[i]); + } return message; }; /** - * Creates a plain object from a Status message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {replicationdata.Status} message Status + * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options) { + ReserveBeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.pre_queries = []; + object.post_begin_queries = []; + } if (options.defaults) { - object.position = ""; - object.io_thread_running = false; - object.sql_thread_running = false; - object.replication_lag_seconds = 0; - object.source_host = ""; - object.source_port = 0; - object.connect_retry = 0; - object.relay_log_position = ""; - object.file_position = ""; - object.relay_log_source_binlog_equivalent_position = ""; - object.source_server_id = 0; - object.source_uuid = ""; - object.io_state = 0; - object.last_io_error = ""; - object.sql_state = 0; - object.last_sql_error = ""; - object.relay_log_file_position = ""; - object.source_user = ""; - object.sql_delay = 0; - object.auto_position = false; - object.using_gtid = false; - object.has_replication_filters = false; - object.ssl_allowed = false; - object.replication_lag_unknown = false; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } + if (message.post_begin_queries && message.post_begin_queries.length) { + object.post_begin_queries = []; + for (var j = 0; j < message.post_begin_queries.length; ++j) + object.post_begin_queries[j] = message.post_begin_queries[j]; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - object.io_thread_running = message.io_thread_running; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - object.sql_thread_running = message.sql_thread_running; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - object.replication_lag_seconds = message.replication_lag_seconds; - if (message.source_host != null && message.hasOwnProperty("source_host")) - object.source_host = message.source_host; - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) - object.connect_retry = message.connect_retry; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - object.relay_log_position = message.relay_log_position; - if (message.file_position != null && message.hasOwnProperty("file_position")) - object.file_position = message.file_position; - if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) - object.relay_log_source_binlog_equivalent_position = message.relay_log_source_binlog_equivalent_position; - if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) - object.source_server_id = message.source_server_id; - if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) - object.source_uuid = message.source_uuid; - if (message.io_state != null && message.hasOwnProperty("io_state")) - object.io_state = message.io_state; - if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) - object.last_io_error = message.last_io_error; - if (message.sql_state != null && message.hasOwnProperty("sql_state")) - object.sql_state = message.sql_state; - if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) - object.last_sql_error = message.last_sql_error; - if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) - object.relay_log_file_position = message.relay_log_file_position; - if (message.source_user != null && message.hasOwnProperty("source_user")) - object.source_user = message.source_user; - if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) - object.sql_delay = message.sql_delay; - if (message.auto_position != null && message.hasOwnProperty("auto_position")) - object.auto_position = message.auto_position; - if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) - object.using_gtid = message.using_gtid; - if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) - object.has_replication_filters = message.has_replication_filters; - if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) - object.ssl_allowed = message.ssl_allowed; - if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) - object.replication_lag_unknown = message.replication_lag_unknown; return object; }; /** - * Converts this Status to JSON. + * Converts this ReserveBeginExecuteRequest to JSON. * @function toJSON - * @memberof replicationdata.Status + * @memberof query.ReserveBeginExecuteRequest * @instance * @returns {Object.} JSON object */ - Status.prototype.toJSON = function toJSON() { + ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Status; + return ReserveBeginExecuteRequest; })(); - replicationdata.StopReplicationStatus = (function() { - - /** - * Properties of a StopReplicationStatus. - * @memberof replicationdata - * @interface IStopReplicationStatus - * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before - * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after - */ + query.ReserveBeginExecuteResponse = (function() { /** - * Constructs a new StopReplicationStatus. - * @memberof replicationdata - * @classdesc Represents a StopReplicationStatus. - * @implements IStopReplicationStatus + * Properties of a ReserveBeginExecuteResponse. + * @memberof query + * @interface IReserveBeginExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveBeginExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveBeginExecuteResponse result + * @property {number|Long|null} [transaction_id] ReserveBeginExecuteResponse transaction_id + * @property {number|Long|null} [reserved_id] ReserveBeginExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] ReserveBeginExecuteResponse session_state_changes + */ + + /** + * Constructs a new ReserveBeginExecuteResponse. + * @memberof query + * @classdesc Represents a ReserveBeginExecuteResponse. + * @implements IReserveBeginExecuteResponse * @constructor - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set */ - function StopReplicationStatus(properties) { + function ReserveBeginExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74788,88 +75880,140 @@ $root.replicationdata = (function() { } /** - * StopReplicationStatus before. - * @member {replicationdata.IStatus|null|undefined} before - * @memberof replicationdata.StopReplicationStatus + * ReserveBeginExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StopReplicationStatus.prototype.before = null; + ReserveBeginExecuteResponse.prototype.error = null; /** - * StopReplicationStatus after. - * @member {replicationdata.IStatus|null|undefined} after - * @memberof replicationdata.StopReplicationStatus + * ReserveBeginExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveBeginExecuteResponse * @instance */ - StopReplicationStatus.prototype.after = null; + ReserveBeginExecuteResponse.prototype.result = null; /** - * Creates a new StopReplicationStatus instance using the specified properties. + * ReserveBeginExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveBeginExecuteResponse + * @instance + */ + ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveBeginExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveBeginExecuteResponse + * @instance + */ + ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveBeginExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveBeginExecuteResponse + * @instance + */ + ReserveBeginExecuteResponse.prototype.tablet_alias = null; + + /** + * ReserveBeginExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.ReserveBeginExecuteResponse + * @instance + */ + ReserveBeginExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new ReserveBeginExecuteResponse instance using the specified properties. * @function create - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance */ - StopReplicationStatus.create = function create(properties) { - return new StopReplicationStatus(properties); + ReserveBeginExecuteResponse.create = function create(properties) { + return new ReserveBeginExecuteResponse(properties); }; /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationStatus.encode = function encode(message, writer) { + ReserveBeginExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before != null && Object.hasOwnProperty.call(message, "before")) - $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after != null && Object.hasOwnProperty.call(message, "after")) - $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); return writer; }; /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationStatus.decode = function decode(reader, length) { + ReserveBeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; case 2: - message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.transaction_id = reader.int64(); + break; + case 4: + message.reserved_id = reader.int64(); + break; + case 5: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 6: + message.session_state_changes = reader.string(); break; default: reader.skipType(tag & 7); @@ -74880,141 +76024,199 @@ $root.replicationdata = (function() { }; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopReplicationStatus message. + * Verifies a ReserveBeginExecuteResponse message. * @function verify - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopReplicationStatus.verify = function verify(message) { + ReserveBeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - var error = $root.replicationdata.Status.verify(message.before); + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "before." + error; + return "error." + error; } - if (message.after != null && message.hasOwnProperty("after")) { - var error = $root.replicationdata.Status.verify(message.after); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "after." + error; + return "result." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse */ - StopReplicationStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.StopReplicationStatus) + ReserveBeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteResponse) return object; - var message = new $root.replicationdata.StopReplicationStatus(); - if (object.before != null) { - if (typeof object.before !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); - message.before = $root.replicationdata.Status.fromObject(object.before); + var message = new $root.query.ReserveBeginExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.after != null) { - if (typeof object.after !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); - message.after = $root.replicationdata.Status.fromObject(object.after); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveBeginExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.StopReplicationStatus + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus + * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopReplicationStatus.toObject = function toObject(message, options) { + ReserveBeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.before = null; - object.after = null; - } - if (message.before != null && message.hasOwnProperty("before")) - object.before = $root.replicationdata.Status.toObject(message.before, options); - if (message.after != null && message.hasOwnProperty("after")) - object.after = $root.replicationdata.Status.toObject(message.after, options); - return object; - }; - - /** - * Converts this StopReplicationStatus to JSON. - * @function toJSON - * @memberof replicationdata.StopReplicationStatus - * @instance + object.error = null; + object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; + return object; + }; + + /** + * Converts this ReserveBeginExecuteResponse to JSON. + * @function toJSON + * @memberof query.ReserveBeginExecuteResponse + * @instance * @returns {Object.} JSON object */ - StopReplicationStatus.prototype.toJSON = function toJSON() { + ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopReplicationStatus; - })(); - - /** - * StopReplicationMode enum. - * @name replicationdata.StopReplicationMode - * @enum {number} - * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value - * @property {number} IOTHREADONLY=1 IOTHREADONLY value - */ - replicationdata.StopReplicationMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IOANDSQLTHREAD"] = 0; - values[valuesById[1] = "IOTHREADONLY"] = 1; - return values; + return ReserveBeginExecuteResponse; })(); - replicationdata.PrimaryStatus = (function() { + query.ReserveBeginStreamExecuteRequest = (function() { /** - * Properties of a PrimaryStatus. - * @memberof replicationdata - * @interface IPrimaryStatus - * @property {string|null} [position] PrimaryStatus position - * @property {string|null} [file_position] PrimaryStatus file_position + * Properties of a ReserveBeginStreamExecuteRequest. + * @memberof query + * @interface IReserveBeginStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveBeginStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveBeginStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveBeginStreamExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveBeginStreamExecuteRequest pre_queries + * @property {Array.|null} [post_begin_queries] ReserveBeginStreamExecuteRequest post_begin_queries */ /** - * Constructs a new PrimaryStatus. - * @memberof replicationdata - * @classdesc Represents a PrimaryStatus. - * @implements IPrimaryStatus + * Constructs a new ReserveBeginStreamExecuteRequest. + * @memberof query + * @classdesc Represents a ReserveBeginStreamExecuteRequest. + * @implements IReserveBeginStreamExecuteRequest * @constructor - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set */ - function PrimaryStatus(properties) { + function ReserveBeginStreamExecuteRequest(properties) { + this.pre_queries = []; + this.post_begin_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75022,88 +76224,159 @@ $root.replicationdata = (function() { } /** - * PrimaryStatus position. - * @member {string} position - * @memberof replicationdata.PrimaryStatus + * ReserveBeginStreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - PrimaryStatus.prototype.position = ""; + ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * PrimaryStatus file_position. - * @member {string} file_position - * @memberof replicationdata.PrimaryStatus + * ReserveBeginStreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - PrimaryStatus.prototype.file_position = ""; + ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * Creates a new PrimaryStatus instance using the specified properties. + * ReserveBeginStreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.target = null; + + /** + * ReserveBeginStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.query = null; + + /** + * ReserveBeginStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.options = null; + + /** + * ReserveBeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * ReserveBeginStreamExecuteRequest post_begin_queries. + * @member {Array.} post_begin_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + + /** + * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set - * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance */ - PrimaryStatus.create = function create(properties) { - return new PrimaryStatus(properties); + ReserveBeginStreamExecuteRequest.create = function create(properties) { + return new ReserveBeginStreamExecuteRequest(properties); }; /** - * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode + * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatus.encode = function encode(message, writer) { + ReserveBeginStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); + if (message.post_begin_queries != null && message.post_begin_queries.length) + for (var i = 0; i < message.post_begin_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); return writer; }; /** - * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode + * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatus.decode = function decode(reader, length) { + ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.position = reader.string(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.file_position = reader.string(); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + case 7: + if (!(message.post_begin_queries && message.post_begin_queries.length)) + message.post_begin_queries = []; + message.post_begin_queries.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -75114,135 +76387,212 @@ $root.replicationdata = (function() { }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatus.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrimaryStatus message. + * Verifies a ReserveBeginStreamExecuteRequest message. * @function verify - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryStatus.verify = function verify(message) { + ReserveBeginStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; - return null; - }; - - /** - * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof replicationdata.PrimaryStatus - * @static - * @param {Object.} object Plain object - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } + if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { + if (!Array.isArray(message.post_begin_queries)) + return "post_begin_queries: array expected"; + for (var i = 0; i < message.post_begin_queries.length; ++i) + if (!$util.isString(message.post_begin_queries[i])) + return "post_begin_queries: string[] expected"; + } + return null; + }; + + /** + * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.ReserveBeginStreamExecuteRequest + * @static + * @param {Object.} object Plain object + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest */ - PrimaryStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.PrimaryStatus) + ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) return object; - var message = new $root.replicationdata.PrimaryStatus(); - if (object.position != null) - message.position = String(object.position); - if (object.file_position != null) - message.file_position = String(object.file_position); + var message = new $root.query.ReserveBeginStreamExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveBeginStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } + if (object.post_begin_queries) { + if (!Array.isArray(object.post_begin_queries)) + throw TypeError(".query.ReserveBeginStreamExecuteRequest.post_begin_queries: array expected"); + message.post_begin_queries = []; + for (var i = 0; i < object.post_begin_queries.length; ++i) + message.post_begin_queries[i] = String(object.post_begin_queries[i]); + } return message; }; /** - * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {replicationdata.PrimaryStatus} message PrimaryStatus + * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryStatus.toObject = function toObject(message, options) { + ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.pre_queries = []; + object.post_begin_queries = []; + } if (options.defaults) { - object.position = ""; - object.file_position = ""; + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } + if (message.post_begin_queries && message.post_begin_queries.length) { + object.post_begin_queries = []; + for (var j = 0; j < message.post_begin_queries.length; ++j) + object.post_begin_queries[j] = message.post_begin_queries[j]; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.file_position != null && message.hasOwnProperty("file_position")) - object.file_position = message.file_position; return object; }; /** - * Converts this PrimaryStatus to JSON. + * Converts this ReserveBeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof replicationdata.PrimaryStatus + * @memberof query.ReserveBeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - PrimaryStatus.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrimaryStatus; + return ReserveBeginStreamExecuteRequest; })(); - replicationdata.FullStatus = (function() { + query.ReserveBeginStreamExecuteResponse = (function() { /** - * Properties of a FullStatus. - * @memberof replicationdata - * @interface IFullStatus - * @property {number|null} [server_id] FullStatus server_id - * @property {string|null} [server_uuid] FullStatus server_uuid - * @property {replicationdata.IStatus|null} [replication_status] FullStatus replication_status - * @property {replicationdata.IPrimaryStatus|null} [primary_status] FullStatus primary_status - * @property {string|null} [gtid_purged] FullStatus gtid_purged - * @property {string|null} [version] FullStatus version - * @property {string|null} [version_comment] FullStatus version_comment - * @property {boolean|null} [read_only] FullStatus read_only - * @property {string|null} [gtid_mode] FullStatus gtid_mode - * @property {string|null} [binlog_format] FullStatus binlog_format - * @property {string|null} [binlog_row_image] FullStatus binlog_row_image - * @property {boolean|null} [log_bin_enabled] FullStatus log_bin_enabled - * @property {boolean|null} [log_replica_updates] FullStatus log_replica_updates - * @property {boolean|null} [semi_sync_primary_enabled] FullStatus semi_sync_primary_enabled - * @property {boolean|null} [semi_sync_replica_enabled] FullStatus semi_sync_replica_enabled - * @property {boolean|null} [semi_sync_primary_status] FullStatus semi_sync_primary_status - * @property {boolean|null} [semi_sync_replica_status] FullStatus semi_sync_replica_status - * @property {number|null} [semi_sync_primary_clients] FullStatus semi_sync_primary_clients - * @property {number|Long|null} [semi_sync_primary_timeout] FullStatus semi_sync_primary_timeout - * @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count + * Properties of a ReserveBeginStreamExecuteResponse. + * @memberof query + * @interface IReserveBeginStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveBeginStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveBeginStreamExecuteResponse result + * @property {number|Long|null} [transaction_id] ReserveBeginStreamExecuteResponse transaction_id + * @property {number|Long|null} [reserved_id] ReserveBeginStreamExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginStreamExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] ReserveBeginStreamExecuteResponse session_state_changes */ /** - * Constructs a new FullStatus. - * @memberof replicationdata - * @classdesc Represents a FullStatus. - * @implements IFullStatus + * Constructs a new ReserveBeginStreamExecuteResponse. + * @memberof query + * @classdesc Represents a ReserveBeginStreamExecuteResponse. + * @implements IReserveBeginStreamExecuteResponse * @constructor - * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set */ - function FullStatus(properties) { + function ReserveBeginStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75250,322 +76600,140 @@ $root.replicationdata = (function() { } /** - * FullStatus server_id. - * @member {number} server_id - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.server_id = 0; + ReserveBeginStreamExecuteResponse.prototype.error = null; /** - * FullStatus server_uuid. - * @member {string} server_uuid - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.server_uuid = ""; + ReserveBeginStreamExecuteResponse.prototype.result = null; /** - * FullStatus replication_status. - * @member {replicationdata.IStatus|null|undefined} replication_status - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.replication_status = null; + ReserveBeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * FullStatus primary_status. - * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.primary_status = null; + ReserveBeginStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * FullStatus gtid_purged. - * @member {string} gtid_purged - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.gtid_purged = ""; + ReserveBeginStreamExecuteResponse.prototype.tablet_alias = null; /** - * FullStatus version. - * @member {string} version - * @memberof replicationdata.FullStatus + * ReserveBeginStreamExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.ReserveBeginStreamExecuteResponse * @instance */ - FullStatus.prototype.version = ""; + ReserveBeginStreamExecuteResponse.prototype.session_state_changes = ""; /** - * FullStatus version_comment. - * @member {string} version_comment - * @memberof replicationdata.FullStatus - * @instance + * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * @function create + * @memberof query.ReserveBeginStreamExecuteResponse + * @static + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance */ - FullStatus.prototype.version_comment = ""; - - /** - * FullStatus read_only. - * @member {boolean} read_only - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.read_only = false; - - /** - * FullStatus gtid_mode. - * @member {string} gtid_mode - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.gtid_mode = ""; - - /** - * FullStatus binlog_format. - * @member {string} binlog_format - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.binlog_format = ""; - - /** - * FullStatus binlog_row_image. - * @member {string} binlog_row_image - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.binlog_row_image = ""; - - /** - * FullStatus log_bin_enabled. - * @member {boolean} log_bin_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_bin_enabled = false; - - /** - * FullStatus log_replica_updates. - * @member {boolean} log_replica_updates - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_replica_updates = false; - - /** - * FullStatus semi_sync_primary_enabled. - * @member {boolean} semi_sync_primary_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_enabled = false; - - /** - * FullStatus semi_sync_replica_enabled. - * @member {boolean} semi_sync_replica_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_replica_enabled = false; - - /** - * FullStatus semi_sync_primary_status. - * @member {boolean} semi_sync_primary_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_status = false; - - /** - * FullStatus semi_sync_replica_status. - * @member {boolean} semi_sync_replica_status - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_replica_status = false; - - /** - * FullStatus semi_sync_primary_clients. - * @member {number} semi_sync_primary_clients - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_clients = 0; - - /** - * FullStatus semi_sync_primary_timeout. - * @member {number|Long} semi_sync_primary_timeout - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * FullStatus semi_sync_wait_for_replica_count. - * @member {number} semi_sync_wait_for_replica_count - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_wait_for_replica_count = 0; - - /** - * Creates a new FullStatus instance using the specified properties. - * @function create - * @memberof replicationdata.FullStatus - * @static - * @param {replicationdata.IFullStatus=} [properties] Properties to set - * @returns {replicationdata.FullStatus} FullStatus instance - */ - FullStatus.create = function create(properties) { - return new FullStatus(properties); + ReserveBeginStreamExecuteResponse.create = function create(properties) { + return new ReserveBeginStreamExecuteResponse(properties); }; /** - * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encode = function encode(message, writer) { + ReserveBeginStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.server_id != null && Object.hasOwnProperty.call(message, "server_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.server_id); - if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.server_uuid); - if (message.replication_status != null && Object.hasOwnProperty.call(message, "replication_status")) - $root.replicationdata.Status.encode(message.replication_status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) - $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.gtid_purged != null && Object.hasOwnProperty.call(message, "gtid_purged")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.gtid_purged); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.version); - if (message.version_comment != null && Object.hasOwnProperty.call(message, "version_comment")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.version_comment); - if (message.read_only != null && Object.hasOwnProperty.call(message, "read_only")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.read_only); - if (message.gtid_mode != null && Object.hasOwnProperty.call(message, "gtid_mode")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.gtid_mode); - if (message.binlog_format != null && Object.hasOwnProperty.call(message, "binlog_format")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.binlog_format); - if (message.binlog_row_image != null && Object.hasOwnProperty.call(message, "binlog_row_image")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.binlog_row_image); - if (message.log_bin_enabled != null && Object.hasOwnProperty.call(message, "log_bin_enabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.log_bin_enabled); - if (message.log_replica_updates != null && Object.hasOwnProperty.call(message, "log_replica_updates")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.log_replica_updates); - if (message.semi_sync_primary_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_primary_enabled")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.semi_sync_primary_enabled); - if (message.semi_sync_replica_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_replica_enabled")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.semi_sync_replica_enabled); - if (message.semi_sync_primary_status != null && Object.hasOwnProperty.call(message, "semi_sync_primary_status")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.semi_sync_primary_status); - if (message.semi_sync_replica_status != null && Object.hasOwnProperty.call(message, "semi_sync_replica_status")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.semi_sync_replica_status); - if (message.semi_sync_primary_clients != null && Object.hasOwnProperty.call(message, "semi_sync_primary_clients")) - writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.semi_sync_primary_clients); - if (message.semi_sync_primary_timeout != null && Object.hasOwnProperty.call(message, "semi_sync_primary_timeout")) - writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.semi_sync_primary_timeout); - if (message.semi_sync_wait_for_replica_count != null && Object.hasOwnProperty.call(message, "semi_sync_wait_for_replica_count")) - writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.semi_sync_wait_for_replica_count); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); return writer; }; /** - * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FullStatus message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.decode = function decode(reader, length) { + ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.server_id = reader.uint32(); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; case 2: - message.server_uuid = reader.string(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; case 3: - message.replication_status = $root.replicationdata.Status.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; case 4: - message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); + message.reserved_id = reader.int64(); break; case 5: - message.gtid_purged = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 6: - message.version = reader.string(); - break; - case 7: - message.version_comment = reader.string(); - break; - case 8: - message.read_only = reader.bool(); - break; - case 9: - message.gtid_mode = reader.string(); - break; - case 10: - message.binlog_format = reader.string(); - break; - case 11: - message.binlog_row_image = reader.string(); - break; - case 12: - message.log_bin_enabled = reader.bool(); - break; - case 13: - message.log_replica_updates = reader.bool(); - break; - case 14: - message.semi_sync_primary_enabled = reader.bool(); - break; - case 15: - message.semi_sync_replica_enabled = reader.bool(); - break; - case 16: - message.semi_sync_primary_status = reader.bool(); - break; - case 17: - message.semi_sync_replica_status = reader.bool(); - break; - case 18: - message.semi_sync_primary_clients = reader.uint32(); - break; - case 19: - message.semi_sync_primary_timeout = reader.uint64(); - break; - case 20: - message.semi_sync_wait_for_replica_count = reader.uint32(); + message.session_state_changes = reader.string(); break; default: reader.skipType(tag & 7); @@ -75576,297 +76744,195 @@ $root.replicationdata = (function() { }; /** - * Decodes a FullStatus message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FullStatus message. + * Verifies a ReserveBeginStreamExecuteResponse message. * @function verify - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FullStatus.verify = function verify(message) { + ReserveBeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.server_id != null && message.hasOwnProperty("server_id")) - if (!$util.isInteger(message.server_id)) - return "server_id: integer expected"; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - if (!$util.isString(message.server_uuid)) - return "server_uuid: string expected"; - if (message.replication_status != null && message.hasOwnProperty("replication_status")) { - var error = $root.replicationdata.Status.verify(message.replication_status); + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "replication_status." + error; + return "error." + error; } - if (message.primary_status != null && message.hasOwnProperty("primary_status")) { - var error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "primary_status." + error; + return "result." + error; } - if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) - if (!$util.isString(message.gtid_purged)) - return "gtid_purged: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.version_comment != null && message.hasOwnProperty("version_comment")) - if (!$util.isString(message.version_comment)) - return "version_comment: string expected"; - if (message.read_only != null && message.hasOwnProperty("read_only")) - if (typeof message.read_only !== "boolean") - return "read_only: boolean expected"; - if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) - if (!$util.isString(message.gtid_mode)) - return "gtid_mode: string expected"; - if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) - if (!$util.isString(message.binlog_format)) - return "binlog_format: string expected"; - if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) - if (!$util.isString(message.binlog_row_image)) - return "binlog_row_image: string expected"; - if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) - if (typeof message.log_bin_enabled !== "boolean") - return "log_bin_enabled: boolean expected"; - if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) - if (typeof message.log_replica_updates !== "boolean") - return "log_replica_updates: boolean expected"; - if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) - if (typeof message.semi_sync_primary_enabled !== "boolean") - return "semi_sync_primary_enabled: boolean expected"; - if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) - if (typeof message.semi_sync_replica_enabled !== "boolean") - return "semi_sync_replica_enabled: boolean expected"; - if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) - if (typeof message.semi_sync_primary_status !== "boolean") - return "semi_sync_primary_status: boolean expected"; - if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) - if (typeof message.semi_sync_replica_status !== "boolean") - return "semi_sync_replica_status: boolean expected"; - if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) - if (!$util.isInteger(message.semi_sync_primary_clients)) - return "semi_sync_primary_clients: integer expected"; - if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) - if (!$util.isInteger(message.semi_sync_primary_timeout) && !(message.semi_sync_primary_timeout && $util.isInteger(message.semi_sync_primary_timeout.low) && $util.isInteger(message.semi_sync_primary_timeout.high))) - return "semi_sync_primary_timeout: integer|Long expected"; - if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) - if (!$util.isInteger(message.semi_sync_wait_for_replica_count)) - return "semi_sync_wait_for_replica_count: integer expected"; + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {replicationdata.FullStatus} FullStatus + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse */ - FullStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.FullStatus) + ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) return object; - var message = new $root.replicationdata.FullStatus(); - if (object.server_id != null) - message.server_id = object.server_id >>> 0; - if (object.server_uuid != null) - message.server_uuid = String(object.server_uuid); - if (object.replication_status != null) { - if (typeof object.replication_status !== "object") - throw TypeError(".replicationdata.FullStatus.replication_status: object expected"); - message.replication_status = $root.replicationdata.Status.fromObject(object.replication_status); + var message = new $root.query.ReserveBeginStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.primary_status != null) { - if (typeof object.primary_status !== "object") - throw TypeError(".replicationdata.FullStatus.primary_status: object expected"); - message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.gtid_purged != null) - message.gtid_purged = String(object.gtid_purged); - if (object.version != null) - message.version = String(object.version); - if (object.version_comment != null) - message.version_comment = String(object.version_comment); - if (object.read_only != null) - message.read_only = Boolean(object.read_only); - if (object.gtid_mode != null) - message.gtid_mode = String(object.gtid_mode); - if (object.binlog_format != null) - message.binlog_format = String(object.binlog_format); - if (object.binlog_row_image != null) - message.binlog_row_image = String(object.binlog_row_image); - if (object.log_bin_enabled != null) - message.log_bin_enabled = Boolean(object.log_bin_enabled); - if (object.log_replica_updates != null) - message.log_replica_updates = Boolean(object.log_replica_updates); - if (object.semi_sync_primary_enabled != null) - message.semi_sync_primary_enabled = Boolean(object.semi_sync_primary_enabled); - if (object.semi_sync_replica_enabled != null) - message.semi_sync_replica_enabled = Boolean(object.semi_sync_replica_enabled); - if (object.semi_sync_primary_status != null) - message.semi_sync_primary_status = Boolean(object.semi_sync_primary_status); - if (object.semi_sync_replica_status != null) - message.semi_sync_replica_status = Boolean(object.semi_sync_replica_status); - if (object.semi_sync_primary_clients != null) - message.semi_sync_primary_clients = object.semi_sync_primary_clients >>> 0; - if (object.semi_sync_primary_timeout != null) + if (object.transaction_id != null) if ($util.Long) - (message.semi_sync_primary_timeout = $util.Long.fromValue(object.semi_sync_primary_timeout)).unsigned = true; - else if (typeof object.semi_sync_primary_timeout === "string") - message.semi_sync_primary_timeout = parseInt(object.semi_sync_primary_timeout, 10); - else if (typeof object.semi_sync_primary_timeout === "number") - message.semi_sync_primary_timeout = object.semi_sync_primary_timeout; - else if (typeof object.semi_sync_primary_timeout === "object") - message.semi_sync_primary_timeout = new $util.LongBits(object.semi_sync_primary_timeout.low >>> 0, object.semi_sync_primary_timeout.high >>> 0).toNumber(true); - if (object.semi_sync_wait_for_replica_count != null) - message.semi_sync_wait_for_replica_count = object.semi_sync_wait_for_replica_count >>> 0; + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {replicationdata.FullStatus} message FullStatus + * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FullStatus.toObject = function toObject(message, options) { + ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.server_id = 0; - object.server_uuid = ""; - object.replication_status = null; - object.primary_status = null; - object.gtid_purged = ""; - object.version = ""; - object.version_comment = ""; - object.read_only = false; - object.gtid_mode = ""; - object.binlog_format = ""; - object.binlog_row_image = ""; - object.log_bin_enabled = false; - object.log_replica_updates = false; - object.semi_sync_primary_enabled = false; - object.semi_sync_replica_enabled = false; - object.semi_sync_primary_status = false; - object.semi_sync_replica_status = false; - object.semi_sync_primary_clients = 0; + object.error = null; + object.result = null; if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.semi_sync_primary_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.semi_sync_primary_timeout = options.longs === String ? "0" : 0; - object.semi_sync_wait_for_replica_count = 0; + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; } - if (message.server_id != null && message.hasOwnProperty("server_id")) - object.server_id = message.server_id; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - object.server_uuid = message.server_uuid; - if (message.replication_status != null && message.hasOwnProperty("replication_status")) - object.replication_status = $root.replicationdata.Status.toObject(message.replication_status, options); - if (message.primary_status != null && message.hasOwnProperty("primary_status")) - object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); - if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) - object.gtid_purged = message.gtid_purged; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.version_comment != null && message.hasOwnProperty("version_comment")) - object.version_comment = message.version_comment; - if (message.read_only != null && message.hasOwnProperty("read_only")) - object.read_only = message.read_only; - if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) - object.gtid_mode = message.gtid_mode; - if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) - object.binlog_format = message.binlog_format; - if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) - object.binlog_row_image = message.binlog_row_image; - if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) - object.log_bin_enabled = message.log_bin_enabled; - if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) - object.log_replica_updates = message.log_replica_updates; - if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) - object.semi_sync_primary_enabled = message.semi_sync_primary_enabled; - if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) - object.semi_sync_replica_enabled = message.semi_sync_replica_enabled; - if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) - object.semi_sync_primary_status = message.semi_sync_primary_status; - if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) - object.semi_sync_replica_status = message.semi_sync_replica_status; - if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) - object.semi_sync_primary_clients = message.semi_sync_primary_clients; - if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) - if (typeof message.semi_sync_primary_timeout === "number") - object.semi_sync_primary_timeout = options.longs === String ? String(message.semi_sync_primary_timeout) : message.semi_sync_primary_timeout; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.semi_sync_primary_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.semi_sync_primary_timeout) : options.longs === Number ? new $util.LongBits(message.semi_sync_primary_timeout.low >>> 0, message.semi_sync_primary_timeout.high >>> 0).toNumber(true) : message.semi_sync_primary_timeout; - if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) - object.semi_sync_wait_for_replica_count = message.semi_sync_wait_for_replica_count; + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this FullStatus to JSON. + * Converts this ReserveBeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof replicationdata.FullStatus + * @memberof query.ReserveBeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - FullStatus.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FullStatus; + return ReserveBeginStreamExecuteResponse; })(); - return replicationdata; -})(); - -$root.vschema = (function() { - - /** - * Namespace vschema. - * @exports vschema - * @namespace - */ - var vschema = {}; - - vschema.RoutingRules = (function() { + query.ReleaseRequest = (function() { /** - * Properties of a RoutingRules. - * @memberof vschema - * @interface IRoutingRules - * @property {Array.|null} [rules] RoutingRules rules + * Properties of a ReleaseRequest. + * @memberof query + * @interface IReleaseRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReleaseRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReleaseRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReleaseRequest target + * @property {number|Long|null} [transaction_id] ReleaseRequest transaction_id + * @property {number|Long|null} [reserved_id] ReleaseRequest reserved_id */ /** - * Constructs a new RoutingRules. - * @memberof vschema - * @classdesc Represents a RoutingRules. - * @implements IRoutingRules + * Constructs a new ReleaseRequest. + * @memberof query + * @classdesc Represents a ReleaseRequest. + * @implements IReleaseRequest * @constructor - * @param {vschema.IRoutingRules=} [properties] Properties to set + * @param {query.IReleaseRequest=} [properties] Properties to set */ - function RoutingRules(properties) { - this.rules = []; + function ReleaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75874,78 +76940,127 @@ $root.vschema = (function() { } /** - * RoutingRules rules. - * @member {Array.} rules - * @memberof vschema.RoutingRules + * ReleaseRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReleaseRequest * @instance */ - RoutingRules.prototype.rules = $util.emptyArray; + ReleaseRequest.prototype.effective_caller_id = null; /** - * Creates a new RoutingRules instance using the specified properties. + * ReleaseRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.immediate_caller_id = null; + + /** + * ReleaseRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.target = null; + + /** + * ReleaseRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReleaseRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ReleaseRequest instance using the specified properties. * @function create - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static - * @param {vschema.IRoutingRules=} [properties] Properties to set - * @returns {vschema.RoutingRules} RoutingRules instance + * @param {query.IReleaseRequest=} [properties] Properties to set + * @returns {query.ReleaseRequest} ReleaseRequest instance */ - RoutingRules.create = function create(properties) { - return new RoutingRules(properties); + ReleaseRequest.create = function create(properties) { + return new ReleaseRequest(properties); }; /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode + * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRules.encode = function encode(message, writer) { + ReleaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.reserved_id); return writer; }; /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode + * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRules message from the specified reader or buffer. + * Decodes a ReleaseRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.ReleaseRequest} ReleaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRules.decode = function decode(reader, length) { + ReleaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.reserved_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -75956,126 +77071,182 @@ $root.vschema = (function() { }; /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. + * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.ReleaseRequest} ReleaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRules.decodeDelimited = function decodeDelimited(reader) { + ReleaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutingRules message. + * Verifies a ReleaseRequest message. * @function verify - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoutingRules.verify = function verify(message) { + ReleaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.vschema.RoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRules} RoutingRules + * @returns {query.ReleaseRequest} ReleaseRequest */ - RoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRules) + ReleaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseRequest) return object; - var message = new $root.vschema.RoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.RoutingRules.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.RoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); - } + var message = new $root.query.ReleaseRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReleaseRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } - return message; - }; - - /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.RoutingRules - * @static - * @param {vschema.RoutingRules} message RoutingRules - * @param {$protobuf.IConversionOptions} [options] Conversion options + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReleaseRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReleaseRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof query.ReleaseRequest + * @static + * @param {query.ReleaseRequest} message ReleaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRules.toObject = function toObject(message, options) { + ReleaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this RoutingRules to JSON. + * Converts this ReleaseRequest to JSON. * @function toJSON - * @memberof vschema.RoutingRules + * @memberof query.ReleaseRequest * @instance * @returns {Object.} JSON object */ - RoutingRules.prototype.toJSON = function toJSON() { + ReleaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RoutingRules; + return ReleaseRequest; })(); - vschema.RoutingRule = (function() { + query.ReleaseResponse = (function() { /** - * Properties of a RoutingRule. - * @memberof vschema - * @interface IRoutingRule - * @property {string|null} [from_table] RoutingRule from_table - * @property {Array.|null} [to_tables] RoutingRule to_tables + * Properties of a ReleaseResponse. + * @memberof query + * @interface IReleaseResponse */ /** - * Constructs a new RoutingRule. - * @memberof vschema - * @classdesc Represents a RoutingRule. - * @implements IRoutingRule + * Constructs a new ReleaseResponse. + * @memberof query + * @classdesc Represents a ReleaseResponse. + * @implements IReleaseResponse * @constructor - * @param {vschema.IRoutingRule=} [properties] Properties to set + * @param {query.IReleaseResponse=} [properties] Properties to set */ - function RoutingRule(properties) { - this.to_tables = []; + function ReleaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76083,92 +77254,63 @@ $root.vschema = (function() { } /** - * RoutingRule from_table. - * @member {string} from_table - * @memberof vschema.RoutingRule - * @instance - */ - RoutingRule.prototype.from_table = ""; - - /** - * RoutingRule to_tables. - * @member {Array.} to_tables - * @memberof vschema.RoutingRule - * @instance - */ - RoutingRule.prototype.to_tables = $util.emptyArray; - - /** - * Creates a new RoutingRule instance using the specified properties. + * Creates a new ReleaseResponse instance using the specified properties. * @function create - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static - * @param {vschema.IRoutingRule=} [properties] Properties to set - * @returns {vschema.RoutingRule} RoutingRule instance + * @param {query.IReleaseResponse=} [properties] Properties to set + * @returns {query.ReleaseResponse} ReleaseResponse instance */ - RoutingRule.create = function create(properties) { - return new RoutingRule(properties); + ReleaseResponse.create = function create(properties) { + return new ReleaseResponse(properties); }; /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encode = function encode(message, writer) { + ReleaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); - if (message.to_tables != null && message.to_tables.length) - for (var i = 0; i < message.to_tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); return writer; }; /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRule message from the specified reader or buffer. + * Decodes a ReleaseResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.ReleaseResponse} ReleaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRule.decode = function decode(reader, length) { + ReleaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.from_table = reader.string(); - break; - case 2: - if (!(message.to_tables && message.to_tables.length)) - message.to_tables = []; - message.to_tables.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -76178,133 +77320,93 @@ $root.vschema = (function() { }; /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.ReleaseResponse} ReleaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRule.decodeDelimited = function decodeDelimited(reader) { + ReleaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutingRule message. + * Verifies a ReleaseResponse message. * @function verify - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoutingRule.verify = function verify(message) { + ReleaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_table != null && message.hasOwnProperty("from_table")) - if (!$util.isString(message.from_table)) - return "from_table: string expected"; - if (message.to_tables != null && message.hasOwnProperty("to_tables")) { - if (!Array.isArray(message.to_tables)) - return "to_tables: array expected"; - for (var i = 0; i < message.to_tables.length; ++i) - if (!$util.isString(message.to_tables[i])) - return "to_tables: string[] expected"; - } return null; }; /** - * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRule} RoutingRule + * @returns {query.ReleaseResponse} ReleaseResponse */ - RoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRule) + ReleaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseResponse) return object; - var message = new $root.vschema.RoutingRule(); - if (object.from_table != null) - message.from_table = String(object.from_table); - if (object.to_tables) { - if (!Array.isArray(object.to_tables)) - throw TypeError(".vschema.RoutingRule.to_tables: array expected"); - message.to_tables = []; - for (var i = 0; i < object.to_tables.length; ++i) - message.to_tables[i] = String(object.to_tables[i]); - } - return message; + return new $root.query.ReleaseResponse(); }; /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @static - * @param {vschema.RoutingRule} message RoutingRule + * @param {query.ReleaseResponse} message ReleaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoutingRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.to_tables = []; - if (options.defaults) - object.from_table = ""; - if (message.from_table != null && message.hasOwnProperty("from_table")) - object.from_table = message.from_table; - if (message.to_tables && message.to_tables.length) { - object.to_tables = []; - for (var j = 0; j < message.to_tables.length; ++j) - object.to_tables[j] = message.to_tables[j]; - } - return object; + ReleaseResponse.toObject = function toObject() { + return {}; }; /** - * Converts this RoutingRule to JSON. + * Converts this ReleaseResponse to JSON. * @function toJSON - * @memberof vschema.RoutingRule + * @memberof query.ReleaseResponse * @instance * @returns {Object.} JSON object */ - RoutingRule.prototype.toJSON = function toJSON() { + ReleaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RoutingRule; + return ReleaseResponse; })(); - vschema.Keyspace = (function() { + query.StreamHealthRequest = (function() { /** - * Properties of a Keyspace. - * @memberof vschema - * @interface IKeyspace - * @property {boolean|null} [sharded] Keyspace sharded - * @property {Object.|null} [vindexes] Keyspace vindexes - * @property {Object.|null} [tables] Keyspace tables - * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing + * Properties of a StreamHealthRequest. + * @memberof query + * @interface IStreamHealthRequest */ /** - * Constructs a new Keyspace. - * @memberof vschema - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new StreamHealthRequest. + * @memberof query + * @classdesc Represents a StreamHealthRequest. + * @implements IStreamHealthRequest * @constructor - * @param {vschema.IKeyspace=} [properties] Properties to set + * @param {query.IStreamHealthRequest=} [properties] Properties to set */ - function Keyspace(properties) { - this.vindexes = {}; - this.tables = {}; + function StreamHealthRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76312,159 +77414,63 @@ $root.vschema = (function() { } /** - * Keyspace sharded. - * @member {boolean} sharded - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.sharded = false; - - /** - * Keyspace vindexes. - * @member {Object.} vindexes - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.vindexes = $util.emptyObject; - - /** - * Keyspace tables. - * @member {Object.} tables - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.tables = $util.emptyObject; - - /** - * Keyspace require_explicit_routing. - * @member {boolean} require_explicit_routing - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.require_explicit_routing = false; - - /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new StreamHealthRequest instance using the specified properties. * @function create - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static - * @param {vschema.IKeyspace=} [properties] Properties to set - * @returns {vschema.Keyspace} Keyspace instance + * @param {query.IStreamHealthRequest=} [properties] Properties to set + * @returns {query.StreamHealthRequest} StreamHealthRequest instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + StreamHealthRequest.create = function create(properties) { + return new StreamHealthRequest(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. * @function encode - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static - * @param {vschema.IKeyspace} message Keyspace message or plain object to encode + * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + StreamHealthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); - if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) - for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static - * @param {vschema.IKeyspace} message Keyspace message or plain object to encode + * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a StreamHealthRequest message from the specified reader or buffer. * @function decode - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Keyspace} Keyspace + * @returns {query.StreamHealthRequest} StreamHealthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decode = function decode(reader, length) { + StreamHealthRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.sharded = reader.bool(); - break; - case 2: - if (message.vindexes === $util.emptyObject) - message.vindexes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Vindex.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.vindexes[key] = value; - break; - case 3: - if (message.tables === $util.emptyObject) - message.tables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Table.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tables[key] = value; - break; - case 4: - message.require_explicit_routing = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -76474,174 +77480,101 @@ $root.vschema = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Keyspace} Keyspace + * @returns {query.StreamHealthRequest} StreamHealthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { + StreamHealthRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a StreamHealthRequest message. * @function verify - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Keyspace.verify = function verify(message) { + StreamHealthRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sharded != null && message.hasOwnProperty("sharded")) - if (typeof message.sharded !== "boolean") - return "sharded: boolean expected"; - if (message.vindexes != null && message.hasOwnProperty("vindexes")) { - if (!$util.isObject(message.vindexes)) - return "vindexes: object expected"; - var key = Object.keys(message.vindexes); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); - if (error) - return "vindexes." + error; - } - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!$util.isObject(message.tables)) - return "tables: object expected"; - var key = Object.keys(message.tables); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Table.verify(message.tables[key[i]]); - if (error) - return "tables." + error; - } - } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - if (typeof message.require_explicit_routing !== "boolean") - return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static * @param {Object.} object Plain object - * @returns {vschema.Keyspace} Keyspace + * @returns {query.StreamHealthRequest} StreamHealthRequest */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Keyspace) + StreamHealthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthRequest) return object; - var message = new $root.vschema.Keyspace(); - if (object.sharded != null) - message.sharded = Boolean(object.sharded); - if (object.vindexes) { - if (typeof object.vindexes !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes = {}; - for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { - if (typeof object.vindexes[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); - } - } - if (object.tables) { - if (typeof object.tables !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables = {}; - for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); - } - } - if (object.require_explicit_routing != null) - message.require_explicit_routing = Boolean(object.require_explicit_routing); - return message; + return new $root.query.StreamHealthRequest(); }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @static - * @param {vschema.Keyspace} message Keyspace + * @param {query.StreamHealthRequest} message StreamHealthRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.vindexes = {}; - object.tables = {}; - } - if (options.defaults) { - object.sharded = false; - object.require_explicit_routing = false; - } - if (message.sharded != null && message.hasOwnProperty("sharded")) - object.sharded = message.sharded; - var keys2; - if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { - object.vindexes = {}; - for (var j = 0; j < keys2.length; ++j) - object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); - } - if (message.tables && (keys2 = Object.keys(message.tables)).length) { - object.tables = {}; - for (var j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); - } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - object.require_explicit_routing = message.require_explicit_routing; - return object; + StreamHealthRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Keyspace to JSON. + * Converts this StreamHealthRequest to JSON. * @function toJSON - * @memberof vschema.Keyspace + * @memberof query.StreamHealthRequest * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + StreamHealthRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return StreamHealthRequest; })(); - vschema.Vindex = (function() { + query.RealtimeStats = (function() { /** - * Properties of a Vindex. - * @memberof vschema - * @interface IVindex - * @property {string|null} [type] Vindex type - * @property {Object.|null} [params] Vindex params - * @property {string|null} [owner] Vindex owner + * Properties of a RealtimeStats. + * @memberof query + * @interface IRealtimeStats + * @property {string|null} [health_error] RealtimeStats health_error + * @property {number|null} [replication_lag_seconds] RealtimeStats replication_lag_seconds + * @property {number|null} [binlog_players_count] RealtimeStats binlog_players_count + * @property {number|Long|null} [filtered_replication_lag_seconds] RealtimeStats filtered_replication_lag_seconds + * @property {number|null} [cpu_usage] RealtimeStats cpu_usage + * @property {number|null} [qps] RealtimeStats qps + * @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed */ /** - * Constructs a new Vindex. - * @memberof vschema - * @classdesc Represents a Vindex. - * @implements IVindex + * Constructs a new RealtimeStats. + * @memberof query + * @classdesc Represents a RealtimeStats. + * @implements IRealtimeStats * @constructor - * @param {vschema.IVindex=} [properties] Properties to set + * @param {query.IRealtimeStats=} [properties] Properties to set */ - function Vindex(properties) { - this.params = {}; + function RealtimeStats(properties) { + this.table_schema_changed = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76649,121 +77582,156 @@ $root.vschema = (function() { } /** - * Vindex type. - * @member {string} type - * @memberof vschema.Vindex + * RealtimeStats health_error. + * @member {string} health_error + * @memberof query.RealtimeStats * @instance */ - Vindex.prototype.type = ""; + RealtimeStats.prototype.health_error = ""; /** - * Vindex params. - * @member {Object.} params - * @memberof vschema.Vindex + * RealtimeStats replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof query.RealtimeStats * @instance */ - Vindex.prototype.params = $util.emptyObject; + RealtimeStats.prototype.replication_lag_seconds = 0; /** - * Vindex owner. - * @member {string} owner - * @memberof vschema.Vindex + * RealtimeStats binlog_players_count. + * @member {number} binlog_players_count + * @memberof query.RealtimeStats * @instance */ - Vindex.prototype.owner = ""; + RealtimeStats.prototype.binlog_players_count = 0; /** - * Creates a new Vindex instance using the specified properties. + * RealtimeStats filtered_replication_lag_seconds. + * @member {number|Long} filtered_replication_lag_seconds + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RealtimeStats cpu_usage. + * @member {number} cpu_usage + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.cpu_usage = 0; + + /** + * RealtimeStats qps. + * @member {number} qps + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.qps = 0; + + /** + * RealtimeStats table_schema_changed. + * @member {Array.} table_schema_changed + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.table_schema_changed = $util.emptyArray; + + /** + * Creates a new RealtimeStats instance using the specified properties. * @function create - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static - * @param {vschema.IVindex=} [properties] Properties to set - * @returns {vschema.Vindex} Vindex instance + * @param {query.IRealtimeStats=} [properties] Properties to set + * @returns {query.RealtimeStats} RealtimeStats instance */ - Vindex.create = function create(properties) { - return new Vindex(properties); + RealtimeStats.create = function create(properties) { + return new RealtimeStats(properties); }; /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encode - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encode = function encode(message, writer) { + RealtimeStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); + if (message.health_error != null && Object.hasOwnProperty.call(message, "health_error")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.health_error); + if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.replication_lag_seconds); + if (message.binlog_players_count != null && Object.hasOwnProperty.call(message, "binlog_players_count")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.binlog_players_count); + if (message.filtered_replication_lag_seconds != null && Object.hasOwnProperty.call(message, "filtered_replication_lag_seconds")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.filtered_replication_lag_seconds); + if (message.cpu_usage != null && Object.hasOwnProperty.call(message, "cpu_usage")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.cpu_usage); + if (message.qps != null && Object.hasOwnProperty.call(message, "qps")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.qps); + if (message.table_schema_changed != null && message.table_schema_changed.length) + for (var i = 0; i < message.table_schema_changed.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); return writer; }; /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encodeDelimited = function encodeDelimited(message, writer) { + RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vindex message from the specified reader or buffer. + * Decodes a RealtimeStats message from the specified reader or buffer. * @function decode - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Vindex} Vindex + * @returns {query.RealtimeStats} RealtimeStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vindex.decode = function decode(reader, length) { + RealtimeStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.string(); + message.health_error = reader.string(); break; case 2: - if (message.params === $util.emptyObject) - message.params = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.params[key] = value; + message.replication_lag_seconds = reader.uint32(); break; case 3: - message.owner = reader.string(); + message.binlog_players_count = reader.int32(); + break; + case 4: + message.filtered_replication_lag_seconds = reader.int64(); + break; + case 5: + message.cpu_usage = reader.double(); + break; + case 6: + message.qps = reader.double(); + break; + case 7: + if (!(message.table_schema_changed && message.table_schema_changed.length)) + message.table_schema_changed = []; + message.table_schema_changed.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -76774,146 +77742,186 @@ $root.vschema = (function() { }; /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. + * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Vindex} Vindex + * @returns {query.RealtimeStats} RealtimeStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vindex.decodeDelimited = function decodeDelimited(reader) { + RealtimeStats.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vindex message. + * Verifies a RealtimeStats message. * @function verify - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vindex.verify = function verify(message) { + RealtimeStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.params != null && message.hasOwnProperty("params")) { - if (!$util.isObject(message.params)) - return "params: object expected"; - var key = Object.keys(message.params); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.params[key[i]])) - return "params: string{k:string} expected"; + if (message.health_error != null && message.hasOwnProperty("health_error")) + if (!$util.isString(message.health_error)) + return "health_error: string expected"; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + if (!$util.isInteger(message.replication_lag_seconds)) + return "replication_lag_seconds: integer expected"; + if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) + if (!$util.isInteger(message.binlog_players_count)) + return "binlog_players_count: integer expected"; + if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) + if (!$util.isInteger(message.filtered_replication_lag_seconds) && !(message.filtered_replication_lag_seconds && $util.isInteger(message.filtered_replication_lag_seconds.low) && $util.isInteger(message.filtered_replication_lag_seconds.high))) + return "filtered_replication_lag_seconds: integer|Long expected"; + if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) + if (typeof message.cpu_usage !== "number") + return "cpu_usage: number expected"; + if (message.qps != null && message.hasOwnProperty("qps")) + if (typeof message.qps !== "number") + return "qps: number expected"; + if (message.table_schema_changed != null && message.hasOwnProperty("table_schema_changed")) { + if (!Array.isArray(message.table_schema_changed)) + return "table_schema_changed: array expected"; + for (var i = 0; i < message.table_schema_changed.length; ++i) + if (!$util.isString(message.table_schema_changed[i])) + return "table_schema_changed: string[] expected"; } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; return null; }; /** - * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static * @param {Object.} object Plain object - * @returns {vschema.Vindex} Vindex + * @returns {query.RealtimeStats} RealtimeStats */ - Vindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Vindex) + RealtimeStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.RealtimeStats) return object; - var message = new $root.vschema.Vindex(); - if (object.type != null) - message.type = String(object.type); - if (object.params) { - if (typeof object.params !== "object") - throw TypeError(".vschema.Vindex.params: object expected"); - message.params = {}; - for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) - message.params[keys[i]] = String(object.params[keys[i]]); + var message = new $root.query.RealtimeStats(); + if (object.health_error != null) + message.health_error = String(object.health_error); + if (object.replication_lag_seconds != null) + message.replication_lag_seconds = object.replication_lag_seconds >>> 0; + if (object.binlog_players_count != null) + message.binlog_players_count = object.binlog_players_count | 0; + if (object.filtered_replication_lag_seconds != null) + if ($util.Long) + (message.filtered_replication_lag_seconds = $util.Long.fromValue(object.filtered_replication_lag_seconds)).unsigned = false; + else if (typeof object.filtered_replication_lag_seconds === "string") + message.filtered_replication_lag_seconds = parseInt(object.filtered_replication_lag_seconds, 10); + else if (typeof object.filtered_replication_lag_seconds === "number") + message.filtered_replication_lag_seconds = object.filtered_replication_lag_seconds; + else if (typeof object.filtered_replication_lag_seconds === "object") + message.filtered_replication_lag_seconds = new $util.LongBits(object.filtered_replication_lag_seconds.low >>> 0, object.filtered_replication_lag_seconds.high >>> 0).toNumber(); + if (object.cpu_usage != null) + message.cpu_usage = Number(object.cpu_usage); + if (object.qps != null) + message.qps = Number(object.qps); + if (object.table_schema_changed) { + if (!Array.isArray(object.table_schema_changed)) + throw TypeError(".query.RealtimeStats.table_schema_changed: array expected"); + message.table_schema_changed = []; + for (var i = 0; i < object.table_schema_changed.length; ++i) + message.table_schema_changed[i] = String(object.table_schema_changed[i]); } - if (object.owner != null) - message.owner = String(object.owner); return message; }; /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @static - * @param {vschema.Vindex} message Vindex + * @param {query.RealtimeStats} message RealtimeStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vindex.toObject = function toObject(message, options) { + RealtimeStats.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.params = {}; + if (options.arrays || options.defaults) + object.table_schema_changed = []; if (options.defaults) { - object.type = ""; - object.owner = ""; + object.health_error = ""; + object.replication_lag_seconds = 0; + object.binlog_players_count = 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.filtered_replication_lag_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.filtered_replication_lag_seconds = options.longs === String ? "0" : 0; + object.cpu_usage = 0; + object.qps = 0; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - var keys2; - if (message.params && (keys2 = Object.keys(message.params)).length) { - object.params = {}; - for (var j = 0; j < keys2.length; ++j) - object.params[keys2[j]] = message.params[keys2[j]]; + if (message.health_error != null && message.hasOwnProperty("health_error")) + object.health_error = message.health_error; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + object.replication_lag_seconds = message.replication_lag_seconds; + if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) + object.binlog_players_count = message.binlog_players_count; + if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) + if (typeof message.filtered_replication_lag_seconds === "number") + object.filtered_replication_lag_seconds = options.longs === String ? String(message.filtered_replication_lag_seconds) : message.filtered_replication_lag_seconds; + else + object.filtered_replication_lag_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.filtered_replication_lag_seconds) : options.longs === Number ? new $util.LongBits(message.filtered_replication_lag_seconds.low >>> 0, message.filtered_replication_lag_seconds.high >>> 0).toNumber() : message.filtered_replication_lag_seconds; + if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) + object.cpu_usage = options.json && !isFinite(message.cpu_usage) ? String(message.cpu_usage) : message.cpu_usage; + if (message.qps != null && message.hasOwnProperty("qps")) + object.qps = options.json && !isFinite(message.qps) ? String(message.qps) : message.qps; + if (message.table_schema_changed && message.table_schema_changed.length) { + object.table_schema_changed = []; + for (var j = 0; j < message.table_schema_changed.length; ++j) + object.table_schema_changed[j] = message.table_schema_changed[j]; } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; return object; }; /** - * Converts this Vindex to JSON. + * Converts this RealtimeStats to JSON. * @function toJSON - * @memberof vschema.Vindex + * @memberof query.RealtimeStats * @instance * @returns {Object.} JSON object */ - Vindex.prototype.toJSON = function toJSON() { + RealtimeStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Vindex; + return RealtimeStats; })(); - vschema.Table = (function() { + query.AggregateStats = (function() { /** - * Properties of a Table. - * @memberof vschema - * @interface ITable - * @property {string|null} [type] Table type - * @property {Array.|null} [column_vindexes] Table column_vindexes - * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment - * @property {Array.|null} [columns] Table columns - * @property {string|null} [pinned] Table pinned - * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative + * Properties of an AggregateStats. + * @memberof query + * @interface IAggregateStats + * @property {number|null} [healthy_tablet_count] AggregateStats healthy_tablet_count + * @property {number|null} [unhealthy_tablet_count] AggregateStats unhealthy_tablet_count + * @property {number|null} [replication_lag_seconds_min] AggregateStats replication_lag_seconds_min + * @property {number|null} [replication_lag_seconds_max] AggregateStats replication_lag_seconds_max */ /** - * Constructs a new Table. - * @memberof vschema - * @classdesc Represents a Table. - * @implements ITable + * Constructs a new AggregateStats. + * @memberof query + * @classdesc Represents an AggregateStats. + * @implements IAggregateStats * @constructor - * @param {vschema.ITable=} [properties] Properties to set + * @param {query.IAggregateStats=} [properties] Properties to set */ - function Table(properties) { - this.column_vindexes = []; - this.columns = []; + function AggregateStats(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76921,146 +77929,114 @@ $root.vschema = (function() { } /** - * Table type. - * @member {string} type - * @memberof vschema.Table - * @instance - */ - Table.prototype.type = ""; - - /** - * Table column_vindexes. - * @member {Array.} column_vindexes - * @memberof vschema.Table - * @instance - */ - Table.prototype.column_vindexes = $util.emptyArray; - - /** - * Table auto_increment. - * @member {vschema.IAutoIncrement|null|undefined} auto_increment - * @memberof vschema.Table + * AggregateStats healthy_tablet_count. + * @member {number} healthy_tablet_count + * @memberof query.AggregateStats * @instance */ - Table.prototype.auto_increment = null; + AggregateStats.prototype.healthy_tablet_count = 0; /** - * Table columns. - * @member {Array.} columns - * @memberof vschema.Table + * AggregateStats unhealthy_tablet_count. + * @member {number} unhealthy_tablet_count + * @memberof query.AggregateStats * @instance */ - Table.prototype.columns = $util.emptyArray; + AggregateStats.prototype.unhealthy_tablet_count = 0; /** - * Table pinned. - * @member {string} pinned - * @memberof vschema.Table + * AggregateStats replication_lag_seconds_min. + * @member {number} replication_lag_seconds_min + * @memberof query.AggregateStats * @instance */ - Table.prototype.pinned = ""; + AggregateStats.prototype.replication_lag_seconds_min = 0; /** - * Table column_list_authoritative. - * @member {boolean} column_list_authoritative - * @memberof vschema.Table + * AggregateStats replication_lag_seconds_max. + * @member {number} replication_lag_seconds_max + * @memberof query.AggregateStats * @instance */ - Table.prototype.column_list_authoritative = false; + AggregateStats.prototype.replication_lag_seconds_max = 0; /** - * Creates a new Table instance using the specified properties. + * Creates a new AggregateStats instance using the specified properties. * @function create - * @memberof vschema.Table + * @memberof query.AggregateStats * @static - * @param {vschema.ITable=} [properties] Properties to set - * @returns {vschema.Table} Table instance + * @param {query.IAggregateStats=} [properties] Properties to set + * @returns {query.AggregateStats} AggregateStats instance */ - Table.create = function create(properties) { - return new Table(properties); + AggregateStats.create = function create(properties) { + return new AggregateStats(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encode - * @memberof vschema.Table + * @memberof query.AggregateStats * @static - * @param {vschema.ITable} message Table message or plain object to encode + * @param {query.IAggregateStats} message AggregateStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encode = function encode(message, writer) { + AggregateStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.column_vindexes != null && message.column_vindexes.length) - for (var i = 0; i < message.column_vindexes.length; ++i) - $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) - $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); - if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); + if (message.healthy_tablet_count != null && Object.hasOwnProperty.call(message, "healthy_tablet_count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.healthy_tablet_count); + if (message.unhealthy_tablet_count != null && Object.hasOwnProperty.call(message, "unhealthy_tablet_count")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unhealthy_tablet_count); + if (message.replication_lag_seconds_min != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_min")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.replication_lag_seconds_min); + if (message.replication_lag_seconds_max != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_max")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds_max); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Table + * @memberof query.AggregateStats * @static - * @param {vschema.ITable} message Table message or plain object to encode + * @param {query.IAggregateStats} message AggregateStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes an AggregateStats message from the specified reader or buffer. * @function decode - * @memberof vschema.Table + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Table} Table + * @returns {query.AggregateStats} AggregateStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decode = function decode(reader, length) { + AggregateStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.string(); + message.healthy_tablet_count = reader.int32(); break; case 2: - if (!(message.column_vindexes && message.column_vindexes.length)) - message.column_vindexes = []; - message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + message.unhealthy_tablet_count = reader.int32(); break; case 3: - message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); + message.replication_lag_seconds_min = reader.uint32(); break; case 4: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); - break; - case 5: - message.pinned = reader.string(); - break; - case 6: - message.column_list_authoritative = reader.bool(); + message.replication_lag_seconds_max = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -77071,192 +78047,136 @@ $root.vschema = (function() { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes an AggregateStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Table + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Table} Table + * @returns {query.AggregateStats} AggregateStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decodeDelimited = function decodeDelimited(reader) { + AggregateStats.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Table message. + * Verifies an AggregateStats message. * @function verify - * @memberof vschema.Table + * @memberof query.AggregateStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Table.verify = function verify(message) { + AggregateStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { - if (!Array.isArray(message.column_vindexes)) - return "column_vindexes: array expected"; - for (var i = 0; i < message.column_vindexes.length; ++i) { - var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); - if (error) - return "column_vindexes." + error; - } - } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { - var error = $root.vschema.AutoIncrement.verify(message.auto_increment); - if (error) - return "auto_increment." + error; - } - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.vschema.Column.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.pinned != null && message.hasOwnProperty("pinned")) - if (!$util.isString(message.pinned)) - return "pinned: string expected"; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - if (typeof message.column_list_authoritative !== "boolean") - return "column_list_authoritative: boolean expected"; + if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) + if (!$util.isInteger(message.healthy_tablet_count)) + return "healthy_tablet_count: integer expected"; + if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) + if (!$util.isInteger(message.unhealthy_tablet_count)) + return "unhealthy_tablet_count: integer expected"; + if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) + if (!$util.isInteger(message.replication_lag_seconds_min)) + return "replication_lag_seconds_min: integer expected"; + if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) + if (!$util.isInteger(message.replication_lag_seconds_max)) + return "replication_lag_seconds_max: integer expected"; return null; }; /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Table + * @memberof query.AggregateStats * @static * @param {Object.} object Plain object - * @returns {vschema.Table} Table + * @returns {query.AggregateStats} AggregateStats */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Table) + AggregateStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.AggregateStats) return object; - var message = new $root.vschema.Table(); - if (object.type != null) - message.type = String(object.type); - if (object.column_vindexes) { - if (!Array.isArray(object.column_vindexes)) - throw TypeError(".vschema.Table.column_vindexes: array expected"); - message.column_vindexes = []; - for (var i = 0; i < object.column_vindexes.length; ++i) { - if (typeof object.column_vindexes[i] !== "object") - throw TypeError(".vschema.Table.column_vindexes: object expected"); - message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); - } - } - if (object.auto_increment != null) { - if (typeof object.auto_increment !== "object") - throw TypeError(".vschema.Table.auto_increment: object expected"); - message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); - } - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.Table.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".vschema.Table.columns: object expected"); - message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); - } - } - if (object.pinned != null) - message.pinned = String(object.pinned); - if (object.column_list_authoritative != null) - message.column_list_authoritative = Boolean(object.column_list_authoritative); + var message = new $root.query.AggregateStats(); + if (object.healthy_tablet_count != null) + message.healthy_tablet_count = object.healthy_tablet_count | 0; + if (object.unhealthy_tablet_count != null) + message.unhealthy_tablet_count = object.unhealthy_tablet_count | 0; + if (object.replication_lag_seconds_min != null) + message.replication_lag_seconds_min = object.replication_lag_seconds_min >>> 0; + if (object.replication_lag_seconds_max != null) + message.replication_lag_seconds_max = object.replication_lag_seconds_max >>> 0; return message; }; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. + * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Table + * @memberof query.AggregateStats * @static - * @param {vschema.Table} message Table + * @param {query.AggregateStats} message AggregateStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + AggregateStats.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.column_vindexes = []; - object.columns = []; - } if (options.defaults) { - object.type = ""; - object.auto_increment = null; - object.pinned = ""; - object.column_list_authoritative = false; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.column_vindexes && message.column_vindexes.length) { - object.column_vindexes = []; - for (var j = 0; j < message.column_vindexes.length; ++j) - object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); - } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) - object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + object.healthy_tablet_count = 0; + object.unhealthy_tablet_count = 0; + object.replication_lag_seconds_min = 0; + object.replication_lag_seconds_max = 0; } - if (message.pinned != null && message.hasOwnProperty("pinned")) - object.pinned = message.pinned; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - object.column_list_authoritative = message.column_list_authoritative; + if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) + object.healthy_tablet_count = message.healthy_tablet_count; + if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) + object.unhealthy_tablet_count = message.unhealthy_tablet_count; + if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) + object.replication_lag_seconds_min = message.replication_lag_seconds_min; + if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) + object.replication_lag_seconds_max = message.replication_lag_seconds_max; return object; }; /** - * Converts this Table to JSON. + * Converts this AggregateStats to JSON. * @function toJSON - * @memberof vschema.Table + * @memberof query.AggregateStats * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + AggregateStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Table; + return AggregateStats; })(); - vschema.ColumnVindex = (function() { + query.StreamHealthResponse = (function() { /** - * Properties of a ColumnVindex. - * @memberof vschema - * @interface IColumnVindex - * @property {string|null} [column] ColumnVindex column - * @property {string|null} [name] ColumnVindex name - * @property {Array.|null} [columns] ColumnVindex columns + * Properties of a StreamHealthResponse. + * @memberof query + * @interface IStreamHealthResponse + * @property {query.ITarget|null} [target] StreamHealthResponse target + * @property {boolean|null} [serving] StreamHealthResponse serving + * @property {number|Long|null} [tablet_externally_reparented_timestamp] StreamHealthResponse tablet_externally_reparented_timestamp + * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats + * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias */ /** - * Constructs a new ColumnVindex. - * @memberof vschema - * @classdesc Represents a ColumnVindex. - * @implements IColumnVindex + * Constructs a new StreamHealthResponse. + * @memberof query + * @classdesc Represents a StreamHealthResponse. + * @implements IStreamHealthResponse * @constructor - * @param {vschema.IColumnVindex=} [properties] Properties to set + * @param {query.IStreamHealthResponse=} [properties] Properties to set */ - function ColumnVindex(properties) { - this.columns = []; + function StreamHealthResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77264,104 +78184,127 @@ $root.vschema = (function() { } /** - * ColumnVindex column. - * @member {string} column - * @memberof vschema.ColumnVindex + * StreamHealthResponse target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StreamHealthResponse * @instance */ - ColumnVindex.prototype.column = ""; + StreamHealthResponse.prototype.target = null; /** - * ColumnVindex name. - * @member {string} name - * @memberof vschema.ColumnVindex + * StreamHealthResponse serving. + * @member {boolean} serving + * @memberof query.StreamHealthResponse * @instance */ - ColumnVindex.prototype.name = ""; + StreamHealthResponse.prototype.serving = false; /** - * ColumnVindex columns. - * @member {Array.} columns - * @memberof vschema.ColumnVindex + * StreamHealthResponse tablet_externally_reparented_timestamp. + * @member {number|Long} tablet_externally_reparented_timestamp + * @memberof query.StreamHealthResponse * @instance */ - ColumnVindex.prototype.columns = $util.emptyArray; + StreamHealthResponse.prototype.tablet_externally_reparented_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ColumnVindex instance using the specified properties. + * StreamHealthResponse realtime_stats. + * @member {query.IRealtimeStats|null|undefined} realtime_stats + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.realtime_stats = null; + + /** + * StreamHealthResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.tablet_alias = null; + + /** + * Creates a new StreamHealthResponse instance using the specified properties. * @function create - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static - * @param {vschema.IColumnVindex=} [properties] Properties to set - * @returns {vschema.ColumnVindex} ColumnVindex instance + * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @returns {query.StreamHealthResponse} StreamHealthResponse instance */ - ColumnVindex.create = function create(properties) { - return new ColumnVindex(properties); + StreamHealthResponse.create = function create(properties) { + return new StreamHealthResponse(properties); }; /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encode - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnVindex.encode = function encode(message, writer) { + StreamHealthResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.serving != null && Object.hasOwnProperty.call(message, "serving")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.serving); + if (message.tablet_externally_reparented_timestamp != null && Object.hasOwnProperty.call(message, "tablet_externally_reparented_timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tablet_externally_reparented_timestamp); + if (message.realtime_stats != null && Object.hasOwnProperty.call(message, "realtime_stats")) + $root.query.RealtimeStats.encode(message.realtime_stats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { + StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ColumnVindex message from the specified reader or buffer. + * Decodes a StreamHealthResponse message from the specified reader or buffer. * @function decode - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {query.StreamHealthResponse} StreamHealthResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnVindex.decode = function decode(reader, length) { + StreamHealthResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.column = reader.string(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 2: - message.name = reader.string(); + message.serving = reader.bool(); break; case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push(reader.string()); + message.tablet_externally_reparented_timestamp = reader.int64(); + break; + case 4: + message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); + break; + case 5: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -77372,138 +78315,191 @@ $root.vschema = (function() { }; /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {query.StreamHealthResponse} StreamHealthResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnVindex.decodeDelimited = function decodeDelimited(reader) { + StreamHealthResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ColumnVindex message. + * Verifies a StreamHealthResponse message. * @function verify - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ColumnVindex.verify = function verify(message) { + StreamHealthResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) - if (!$util.isString(message.columns[i])) - return "columns: string[] expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.serving != null && message.hasOwnProperty("serving")) + if (typeof message.serving !== "boolean") + return "serving: boolean expected"; + if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) + if (!$util.isInteger(message.tablet_externally_reparented_timestamp) && !(message.tablet_externally_reparented_timestamp && $util.isInteger(message.tablet_externally_reparented_timestamp.low) && $util.isInteger(message.tablet_externally_reparented_timestamp.high))) + return "tablet_externally_reparented_timestamp: integer|Long expected"; + if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { + var error = $root.query.RealtimeStats.verify(message.realtime_stats); + if (error) + return "realtime_stats." + error; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } return null; }; /** - * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. + * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static * @param {Object.} object Plain object - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {query.StreamHealthResponse} StreamHealthResponse */ - ColumnVindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ColumnVindex) + StreamHealthResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthResponse) return object; - var message = new $root.vschema.ColumnVindex(); - if (object.column != null) - message.column = String(object.column); - if (object.name != null) - message.name = String(object.name); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.ColumnVindex.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) - message.columns[i] = String(object.columns[i]); + var message = new $root.query.StreamHealthResponse(); + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.StreamHealthResponse.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.serving != null) + message.serving = Boolean(object.serving); + if (object.tablet_externally_reparented_timestamp != null) + if ($util.Long) + (message.tablet_externally_reparented_timestamp = $util.Long.fromValue(object.tablet_externally_reparented_timestamp)).unsigned = false; + else if (typeof object.tablet_externally_reparented_timestamp === "string") + message.tablet_externally_reparented_timestamp = parseInt(object.tablet_externally_reparented_timestamp, 10); + else if (typeof object.tablet_externally_reparented_timestamp === "number") + message.tablet_externally_reparented_timestamp = object.tablet_externally_reparented_timestamp; + else if (typeof object.tablet_externally_reparented_timestamp === "object") + message.tablet_externally_reparented_timestamp = new $util.LongBits(object.tablet_externally_reparented_timestamp.low >>> 0, object.tablet_externally_reparented_timestamp.high >>> 0).toNumber(); + if (object.realtime_stats != null) { + if (typeof object.realtime_stats !== "object") + throw TypeError(".query.StreamHealthResponse.realtime_stats: object expected"); + message.realtime_stats = $root.query.RealtimeStats.fromObject(object.realtime_stats); + } + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.StreamHealthResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. + * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @static - * @param {vschema.ColumnVindex} message ColumnVindex + * @param {query.StreamHealthResponse} message StreamHealthResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ColumnVindex.toObject = function toObject(message, options) { + StreamHealthResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.columns = []; if (options.defaults) { - object.column = ""; - object.name = ""; - } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = message.columns[j]; + object.target = null; + object.serving = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.tablet_externally_reparented_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tablet_externally_reparented_timestamp = options.longs === String ? "0" : 0; + object.realtime_stats = null; + object.tablet_alias = null; } + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.serving != null && message.hasOwnProperty("serving")) + object.serving = message.serving; + if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) + if (typeof message.tablet_externally_reparented_timestamp === "number") + object.tablet_externally_reparented_timestamp = options.longs === String ? String(message.tablet_externally_reparented_timestamp) : message.tablet_externally_reparented_timestamp; + else + object.tablet_externally_reparented_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tablet_externally_reparented_timestamp) : options.longs === Number ? new $util.LongBits(message.tablet_externally_reparented_timestamp.low >>> 0, message.tablet_externally_reparented_timestamp.high >>> 0).toNumber() : message.tablet_externally_reparented_timestamp; + if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) + object.realtime_stats = $root.query.RealtimeStats.toObject(message.realtime_stats, options); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this ColumnVindex to JSON. + * Converts this StreamHealthResponse to JSON. * @function toJSON - * @memberof vschema.ColumnVindex + * @memberof query.StreamHealthResponse * @instance * @returns {Object.} JSON object */ - ColumnVindex.prototype.toJSON = function toJSON() { + StreamHealthResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ColumnVindex; + return StreamHealthResponse; })(); - vschema.AutoIncrement = (function() { + /** + * TransactionState enum. + * @name query.TransactionState + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PREPARE=1 PREPARE value + * @property {number} COMMIT=2 COMMIT value + * @property {number} ROLLBACK=3 ROLLBACK value + */ + query.TransactionState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PREPARE"] = 1; + values[valuesById[2] = "COMMIT"] = 2; + values[valuesById[3] = "ROLLBACK"] = 3; + return values; + })(); + + query.TransactionMetadata = (function() { /** - * Properties of an AutoIncrement. - * @memberof vschema - * @interface IAutoIncrement - * @property {string|null} [column] AutoIncrement column - * @property {string|null} [sequence] AutoIncrement sequence + * Properties of a TransactionMetadata. + * @memberof query + * @interface ITransactionMetadata + * @property {string|null} [dtid] TransactionMetadata dtid + * @property {query.TransactionState|null} [state] TransactionMetadata state + * @property {number|Long|null} [time_created] TransactionMetadata time_created + * @property {Array.|null} [participants] TransactionMetadata participants */ /** - * Constructs a new AutoIncrement. - * @memberof vschema - * @classdesc Represents an AutoIncrement. - * @implements IAutoIncrement + * Constructs a new TransactionMetadata. + * @memberof query + * @classdesc Represents a TransactionMetadata. + * @implements ITransactionMetadata * @constructor - * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @param {query.ITransactionMetadata=} [properties] Properties to set */ - function AutoIncrement(properties) { + function TransactionMetadata(properties) { + this.participants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77511,88 +78507,117 @@ $root.vschema = (function() { } /** - * AutoIncrement column. - * @member {string} column - * @memberof vschema.AutoIncrement + * TransactionMetadata dtid. + * @member {string} dtid + * @memberof query.TransactionMetadata * @instance */ - AutoIncrement.prototype.column = ""; + TransactionMetadata.prototype.dtid = ""; /** - * AutoIncrement sequence. - * @member {string} sequence - * @memberof vschema.AutoIncrement + * TransactionMetadata state. + * @member {query.TransactionState} state + * @memberof query.TransactionMetadata * @instance */ - AutoIncrement.prototype.sequence = ""; + TransactionMetadata.prototype.state = 0; /** - * Creates a new AutoIncrement instance using the specified properties. + * TransactionMetadata time_created. + * @member {number|Long} time_created + * @memberof query.TransactionMetadata + * @instance + */ + TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TransactionMetadata participants. + * @member {Array.} participants + * @memberof query.TransactionMetadata + * @instance + */ + TransactionMetadata.prototype.participants = $util.emptyArray; + + /** + * Creates a new TransactionMetadata instance using the specified properties. * @function create - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static - * @param {vschema.IAutoIncrement=} [properties] Properties to set - * @returns {vschema.AutoIncrement} AutoIncrement instance + * @param {query.ITransactionMetadata=} [properties] Properties to set + * @returns {query.TransactionMetadata} TransactionMetadata instance */ - AutoIncrement.create = function create(properties) { - return new AutoIncrement(properties); + TransactionMetadata.create = function create(properties) { + return new TransactionMetadata(properties); }; /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encode - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static - * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoIncrement.encode = function encode(message, writer) { + TransactionMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sequence); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); + if (message.participants != null && message.participants.length) + for (var i = 0; i < message.participants.length; ++i) + $root.query.Target.encode(message.participants[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static - * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { + TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoIncrement message from the specified reader or buffer. + * Decodes a TransactionMetadata message from the specified reader or buffer. * @function decode - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {query.TransactionMetadata} TransactionMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoIncrement.decode = function decode(reader, length) { + TransactionMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.column = reader.string(); + message.dtid = reader.string(); break; case 2: - message.sequence = reader.string(); + message.state = reader.int32(); + break; + case 3: + message.time_created = reader.int64(); + break; + case 4: + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.query.Target.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -77603,117 +78628,203 @@ $root.vschema = (function() { }; /** - * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {query.TransactionMetadata} TransactionMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoIncrement.decodeDelimited = function decodeDelimited(reader) { + TransactionMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoIncrement message. + * Verifies a TransactionMetadata message. * @function verify - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoIncrement.verify = function verify(message) { + TransactionMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isString(message.sequence)) - return "sequence: string expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.time_created != null && message.hasOwnProperty("time_created")) + if (!$util.isInteger(message.time_created) && !(message.time_created && $util.isInteger(message.time_created.low) && $util.isInteger(message.time_created.high))) + return "time_created: integer|Long expected"; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. + * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static * @param {Object.} object Plain object - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {query.TransactionMetadata} TransactionMetadata */ - AutoIncrement.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.AutoIncrement) + TransactionMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.query.TransactionMetadata) return object; - var message = new $root.vschema.AutoIncrement(); - if (object.column != null) - message.column = String(object.column); - if (object.sequence != null) - message.sequence = String(object.sequence); + var message = new $root.query.TransactionMetadata(); + if (object.dtid != null) + message.dtid = String(object.dtid); + switch (object.state) { + case "UNKNOWN": + case 0: + message.state = 0; + break; + case "PREPARE": + case 1: + message.state = 1; + break; + case "COMMIT": + case 2: + message.state = 2; + break; + case "ROLLBACK": + case 3: + message.state = 3; + break; + } + if (object.time_created != null) + if ($util.Long) + (message.time_created = $util.Long.fromValue(object.time_created)).unsigned = false; + else if (typeof object.time_created === "string") + message.time_created = parseInt(object.time_created, 10); + else if (typeof object.time_created === "number") + message.time_created = object.time_created; + else if (typeof object.time_created === "object") + message.time_created = new $util.LongBits(object.time_created.low >>> 0, object.time_created.high >>> 0).toNumber(); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".query.TransactionMetadata.participants: array expected"); + message.participants = []; + for (var i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".query.TransactionMetadata.participants: object expected"); + message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + } + } return message; }; /** - * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. + * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @static - * @param {vschema.AutoIncrement} message AutoIncrement + * @param {query.TransactionMetadata} message TransactionMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoIncrement.toObject = function toObject(message, options) { + TransactionMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.participants = []; if (options.defaults) { - object.column = ""; - object.sequence = ""; + object.dtid = ""; + object.state = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.time_created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_created = options.longs === String ? "0" : 0; + } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.query.TransactionState[message.state] : message.state; + if (message.time_created != null && message.hasOwnProperty("time_created")) + if (typeof message.time_created === "number") + object.time_created = options.longs === String ? String(message.time_created) : message.time_created; + else + object.time_created = options.longs === String ? $util.Long.prototype.toString.call(message.time_created) : options.longs === Number ? new $util.LongBits(message.time_created.low >>> 0, message.time_created.high >>> 0).toNumber() : message.time_created; + if (message.participants && message.participants.length) { + object.participants = []; + for (var j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.sequence != null && message.hasOwnProperty("sequence")) - object.sequence = message.sequence; return object; }; /** - * Converts this AutoIncrement to JSON. + * Converts this TransactionMetadata to JSON. * @function toJSON - * @memberof vschema.AutoIncrement + * @memberof query.TransactionMetadata * @instance * @returns {Object.} JSON object */ - AutoIncrement.prototype.toJSON = function toJSON() { + TransactionMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoIncrement; + return TransactionMetadata; })(); - vschema.Column = (function() { + return query; +})(); + +$root.vtrpc = (function() { + + /** + * Namespace vtrpc. + * @exports vtrpc + * @namespace + */ + var vtrpc = {}; + + vtrpc.CallerID = (function() { /** - * Properties of a Column. - * @memberof vschema - * @interface IColumn - * @property {string|null} [name] Column name - * @property {query.Type|null} [type] Column type + * Properties of a CallerID. + * @memberof vtrpc + * @interface ICallerID + * @property {string|null} [principal] CallerID principal + * @property {string|null} [component] CallerID component + * @property {string|null} [subcomponent] CallerID subcomponent + * @property {Array.|null} [groups] CallerID groups */ /** - * Constructs a new Column. - * @memberof vschema - * @classdesc Represents a Column. - * @implements IColumn + * Constructs a new CallerID. + * @memberof vtrpc + * @classdesc Represents a CallerID. + * @implements ICallerID * @constructor - * @param {vschema.IColumn=} [properties] Properties to set + * @param {vtrpc.ICallerID=} [properties] Properties to set */ - function Column(properties) { + function CallerID(properties) { + this.groups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77721,88 +78832,117 @@ $root.vschema = (function() { } /** - * Column name. - * @member {string} name - * @memberof vschema.Column + * CallerID principal. + * @member {string} principal + * @memberof vtrpc.CallerID * @instance */ - Column.prototype.name = ""; + CallerID.prototype.principal = ""; /** - * Column type. - * @member {query.Type} type - * @memberof vschema.Column + * CallerID component. + * @member {string} component + * @memberof vtrpc.CallerID * @instance */ - Column.prototype.type = 0; + CallerID.prototype.component = ""; /** - * Creates a new Column instance using the specified properties. + * CallerID subcomponent. + * @member {string} subcomponent + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.subcomponent = ""; + + /** + * CallerID groups. + * @member {Array.} groups + * @memberof vtrpc.CallerID + * @instance + */ + CallerID.prototype.groups = $util.emptyArray; + + /** + * Creates a new CallerID instance using the specified properties. * @function create - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static - * @param {vschema.IColumn=} [properties] Properties to set - * @returns {vschema.Column} Column instance + * @param {vtrpc.ICallerID=} [properties] Properties to set + * @returns {vtrpc.CallerID} CallerID instance */ - Column.create = function create(properties) { - return new Column(properties); + CallerID.create = function create(properties) { + return new CallerID(properties); }; /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. * @function encode - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encode = function encode(message, writer) { + CallerID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); + if (message.component != null && Object.hasOwnProperty.call(message, "component")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); + if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); return writer; }; /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encodeDelimited = function encodeDelimited(message, writer) { + CallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Column message from the specified reader or buffer. + * Decodes a CallerID message from the specified reader or buffer. * @function decode - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Column} Column + * @returns {vtrpc.CallerID} CallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Column.decode = function decode(reader, length) { + CallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.principal = reader.string(); break; case 2: - message.type = reader.int32(); + message.component = reader.string(); + break; + case 3: + message.subcomponent = reader.string(); + break; + case 4: + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -77813,297 +78953,194 @@ $root.vschema = (function() { }; /** - * Decodes a Column message from the specified reader or buffer, length delimited. + * Decodes a CallerID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Column} Column + * @returns {vtrpc.CallerID} CallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Column.decodeDelimited = function decodeDelimited(reader) { + CallerID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Column message. + * Verifies a CallerID message. * @function verify - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Column.verify = function verify(message) { + CallerID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.component != null && message.hasOwnProperty("component")) + if (!$util.isString(message.component)) + return "component: string expected"; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + if (!$util.isString(message.subcomponent)) + return "subcomponent: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } return null; }; /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static * @param {Object.} object Plain object - * @returns {vschema.Column} Column + * @returns {vtrpc.CallerID} CallerID */ - Column.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Column) + CallerID.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.CallerID) return object; - var message = new $root.vschema.Column(); - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; + var message = new $root.vtrpc.CallerID(); + if (object.principal != null) + message.principal = String(object.principal); + if (object.component != null) + message.component = String(object.component); + if (object.subcomponent != null) + message.subcomponent = String(object.subcomponent); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".vtrpc.CallerID.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); } return message; }; /** - * Creates a plain object from a Column message. Also converts values to other types if specified. + * Creates a plain object from a CallerID message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @static - * @param {vschema.Column} message Column + * @param {vtrpc.CallerID} message CallerID * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Column.toObject = function toObject(message, options) { + CallerID.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.groups = []; if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; + object.principal = ""; + object.component = ""; + object.subcomponent = ""; + } + if (message.principal != null && message.hasOwnProperty("principal")) + object.principal = message.principal; + if (message.component != null && message.hasOwnProperty("component")) + object.component = message.component; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + object.subcomponent = message.subcomponent; + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; return object; }; /** - * Converts this Column to JSON. + * Converts this CallerID to JSON. * @function toJSON - * @memberof vschema.Column + * @memberof vtrpc.CallerID * @instance * @returns {Object.} JSON object */ - Column.prototype.toJSON = function toJSON() { + CallerID.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Column; + return CallerID; })(); - vschema.SrvVSchema = (function() { + /** + * Code enum. + * @name vtrpc.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELED=1 CANCELED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} CLUSTER_EVENT=17 CLUSTER_EVENT value + * @property {number} READ_ONLY=18 READ_ONLY value + */ + vtrpc.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[17] = "CLUSTER_EVENT"] = 17; + values[valuesById[18] = "READ_ONLY"] = 18; + return values; + })(); + + vtrpc.RPCError = (function() { /** - * Properties of a SrvVSchema. - * @memberof vschema - * @interface ISrvVSchema - * @property {Object.|null} [keyspaces] SrvVSchema keyspaces - * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules + * Properties of a RPCError. + * @memberof vtrpc + * @interface IRPCError + * @property {string|null} [message] RPCError message + * @property {vtrpc.Code|null} [code] RPCError code */ /** - * Constructs a new SrvVSchema. - * @memberof vschema - * @classdesc Represents a SrvVSchema. - * @implements ISrvVSchema + * Constructs a new RPCError. + * @memberof vtrpc + * @classdesc Represents a RPCError. + * @implements IRPCError * @constructor - * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @param {vtrpc.IRPCError=} [properties] Properties to set */ - function SrvVSchema(properties) { - this.keyspaces = {}; + function RPCError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78111,123 +79148,88 @@ $root.vschema = (function() { } /** - * SrvVSchema keyspaces. - * @member {Object.} keyspaces - * @memberof vschema.SrvVSchema - * @instance - */ - SrvVSchema.prototype.keyspaces = $util.emptyObject; - - /** - * SrvVSchema routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vschema.SrvVSchema + * RPCError message. + * @member {string} message + * @memberof vtrpc.RPCError * @instance */ - SrvVSchema.prototype.routing_rules = null; + RPCError.prototype.message = ""; /** - * SrvVSchema shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vschema.SrvVSchema + * RPCError code. + * @member {vtrpc.Code} code + * @memberof vtrpc.RPCError * @instance */ - SrvVSchema.prototype.shard_routing_rules = null; + RPCError.prototype.code = 0; /** - * Creates a new SrvVSchema instance using the specified properties. + * Creates a new RPCError instance using the specified properties. * @function create - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static - * @param {vschema.ISrvVSchema=} [properties] Properties to set - * @returns {vschema.SrvVSchema} SrvVSchema instance + * @param {vtrpc.IRPCError=} [properties] Properties to set + * @returns {vtrpc.RPCError} RPCError instance */ - SrvVSchema.create = function create(properties) { - return new SrvVSchema(properties); + RPCError.create = function create(properties) { + return new RPCError(properties); }; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encode - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static - * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encode = function encode(message, writer) { + RPCError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) - for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) - $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); return writer; }; /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static - * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + RPCError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SrvVSchema message from the specified reader or buffer. + * Decodes a RPCError message from the specified reader or buffer. * @function decode - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vtrpc.RPCError} RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decode = function decode(reader, length) { + RPCError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.keyspaces === $util.emptyObject) - message.keyspaces = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.keyspaces[key] = value; - break; case 2: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.message = reader.string(); break; case 3: - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.code = reader.int32(); break; default: reader.skipType(tag & 7); @@ -78238,155 +79240,249 @@ $root.vschema = (function() { }; /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * Decodes a RPCError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vtrpc.RPCError} RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + RPCError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SrvVSchema message. + * Verifies a RPCError message. * @function verify - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SrvVSchema.verify = function verify(message) { + RPCError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!$util.isObject(message.keyspaces)) - return "keyspaces: object expected"; - var key = Object.keys(message.keyspaces); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); - if (error) - return "keyspaces." + error; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; } - } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); - if (error) - return "routing_rules." + error; - } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } return null; }; /** - * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * Creates a RPCError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static * @param {Object.} object Plain object - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vtrpc.RPCError} RPCError */ - SrvVSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.SrvVSchema) + RPCError.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.RPCError) return object; - var message = new $root.vschema.SrvVSchema(); - if (object.keyspaces) { - if (typeof object.keyspaces !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces = {}; - for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { - if (typeof object.keyspaces[keys[i]] !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); - } - } - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); - } - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + var message = new $root.vtrpc.RPCError(); + if (object.message != null) + message.message = String(object.message); + switch (object.code) { + case "OK": + case 0: + message.code = 0; + break; + case "CANCELED": + case 1: + message.code = 1; + break; + case "UNKNOWN": + case 2: + message.code = 2; + break; + case "INVALID_ARGUMENT": + case 3: + message.code = 3; + break; + case "DEADLINE_EXCEEDED": + case 4: + message.code = 4; + break; + case "NOT_FOUND": + case 5: + message.code = 5; + break; + case "ALREADY_EXISTS": + case 6: + message.code = 6; + break; + case "PERMISSION_DENIED": + case 7: + message.code = 7; + break; + case "RESOURCE_EXHAUSTED": + case 8: + message.code = 8; + break; + case "FAILED_PRECONDITION": + case 9: + message.code = 9; + break; + case "ABORTED": + case 10: + message.code = 10; + break; + case "OUT_OF_RANGE": + case 11: + message.code = 11; + break; + case "UNIMPLEMENTED": + case 12: + message.code = 12; + break; + case "INTERNAL": + case 13: + message.code = 13; + break; + case "UNAVAILABLE": + case 14: + message.code = 14; + break; + case "DATA_LOSS": + case 15: + message.code = 15; + break; + case "UNAUTHENTICATED": + case 16: + message.code = 16; + break; + case "CLUSTER_EVENT": + case 17: + message.code = 17; + break; + case "READ_ONLY": + case 18: + message.code = 18; + break; } return message; }; /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * Creates a plain object from a RPCError message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @static - * @param {vschema.SrvVSchema} message SrvVSchema + * @param {vtrpc.RPCError} message RPCError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SrvVSchema.toObject = function toObject(message, options) { + RPCError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.keyspaces = {}; if (options.defaults) { - object.routing_rules = null; - object.shard_routing_rules = null; - } - var keys2; - if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { - object.keyspaces = {}; - for (var j = 0; j < keys2.length; ++j) - object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + object.message = ""; + object.code = options.enums === String ? "OK" : 0; } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this SrvVSchema to JSON. + * Converts this RPCError to JSON. * @function toJSON - * @memberof vschema.SrvVSchema + * @memberof vtrpc.RPCError * @instance * @returns {Object.} JSON object */ - SrvVSchema.prototype.toJSON = function toJSON() { + RPCError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SrvVSchema; + return RPCError; })(); - vschema.ShardRoutingRules = (function() { + return vtrpc; +})(); + +$root.replicationdata = (function() { + + /** + * Namespace replicationdata. + * @exports replicationdata + * @namespace + */ + var replicationdata = {}; + + replicationdata.Status = (function() { /** - * Properties of a ShardRoutingRules. - * @memberof vschema - * @interface IShardRoutingRules - * @property {Array.|null} [rules] ShardRoutingRules rules + * Properties of a Status. + * @memberof replicationdata + * @interface IStatus + * @property {string|null} [position] Status position + * @property {boolean|null} [io_thread_running] Status io_thread_running + * @property {boolean|null} [sql_thread_running] Status sql_thread_running + * @property {number|null} [replication_lag_seconds] Status replication_lag_seconds + * @property {string|null} [source_host] Status source_host + * @property {number|null} [source_port] Status source_port + * @property {number|null} [connect_retry] Status connect_retry + * @property {string|null} [relay_log_position] Status relay_log_position + * @property {string|null} [file_position] Status file_position + * @property {string|null} [relay_log_source_binlog_equivalent_position] Status relay_log_source_binlog_equivalent_position + * @property {number|null} [source_server_id] Status source_server_id + * @property {string|null} [source_uuid] Status source_uuid + * @property {number|null} [io_state] Status io_state + * @property {string|null} [last_io_error] Status last_io_error + * @property {number|null} [sql_state] Status sql_state + * @property {string|null} [last_sql_error] Status last_sql_error + * @property {string|null} [relay_log_file_position] Status relay_log_file_position + * @property {string|null} [source_user] Status source_user + * @property {number|null} [sql_delay] Status sql_delay + * @property {boolean|null} [auto_position] Status auto_position + * @property {boolean|null} [using_gtid] Status using_gtid + * @property {boolean|null} [has_replication_filters] Status has_replication_filters + * @property {boolean|null} [ssl_allowed] Status ssl_allowed + * @property {boolean|null} [replication_lag_unknown] Status replication_lag_unknown */ /** - * Constructs a new ShardRoutingRules. - * @memberof vschema - * @classdesc Represents a ShardRoutingRules. - * @implements IShardRoutingRules + * Constructs a new Status. + * @memberof replicationdata + * @classdesc Represents a Status. + * @implements IStatus * @constructor - * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @param {replicationdata.IStatus=} [properties] Properties to set */ - function ShardRoutingRules(properties) { - this.rules = []; + function Status(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78394,452 +79490,671 @@ $root.vschema = (function() { } /** - * ShardRoutingRules rules. - * @member {Array.} rules - * @memberof vschema.ShardRoutingRules + * Status position. + * @member {string} position + * @memberof replicationdata.Status * @instance */ - ShardRoutingRules.prototype.rules = $util.emptyArray; + Status.prototype.position = ""; /** - * Creates a new ShardRoutingRules instance using the specified properties. - * @function create - * @memberof vschema.ShardRoutingRules - * @static - * @param {vschema.IShardRoutingRules=} [properties] Properties to set - * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance + * Status io_thread_running. + * @member {boolean} io_thread_running + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.create = function create(properties) { - return new ShardRoutingRules(properties); - }; + Status.prototype.io_thread_running = false; /** - * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @function encode - * @memberof vschema.ShardRoutingRules - * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Status sql_thread_running. + * @member {boolean} sql_thread_running + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.vschema.ShardRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Status.prototype.sql_thread_running = false; /** - * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @function encodeDelimited - * @memberof vschema.ShardRoutingRules - * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Status replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Status.prototype.replication_lag_seconds = 0; /** - * Decodes a ShardRoutingRules message from the specified reader or buffer. - * @function decode - * @memberof vschema.ShardRoutingRules - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vschema.ShardRoutingRules} ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Status source_host. + * @member {string} source_host + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.ShardRoutingRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Status.prototype.source_host = ""; /** - * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vschema.ShardRoutingRules - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRules} ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Status source_port. + * @member {number} source_port + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Status.prototype.source_port = 0; /** - * Verifies a ShardRoutingRules message. - * @function verify - * @memberof vschema.ShardRoutingRules - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Status connect_retry. + * @member {number} connect_retry + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.vschema.ShardRoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - return null; - }; + Status.prototype.connect_retry = 0; /** - * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vschema.ShardRoutingRules - * @static - * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * Status relay_log_position. + * @member {string} relay_log_position + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRules) - return object; - var message = new $root.vschema.ShardRoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.ShardRoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.ShardRoutingRule.fromObject(object.rules[i]); - } - } - return message; - }; + Status.prototype.relay_log_position = ""; /** - * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.ShardRoutingRules - * @static - * @param {vschema.ShardRoutingRules} message ShardRoutingRules - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Status file_position. + * @member {string} file_position + * @memberof replicationdata.Status + * @instance */ - ShardRoutingRules.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); - } - return object; - }; + Status.prototype.file_position = ""; /** - * Converts this ShardRoutingRules to JSON. - * @function toJSON - * @memberof vschema.ShardRoutingRules + * Status relay_log_source_binlog_equivalent_position. + * @member {string} relay_log_source_binlog_equivalent_position + * @memberof replicationdata.Status * @instance - * @returns {Object.} JSON object */ - ShardRoutingRules.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Status.prototype.relay_log_source_binlog_equivalent_position = ""; - return ShardRoutingRules; - })(); + /** + * Status source_server_id. + * @member {number} source_server_id + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_server_id = 0; - vschema.ShardRoutingRule = (function() { + /** + * Status source_uuid. + * @member {string} source_uuid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_uuid = ""; /** - * Properties of a ShardRoutingRule. - * @memberof vschema - * @interface IShardRoutingRule - * @property {string|null} [from_keyspace] ShardRoutingRule from_keyspace - * @property {string|null} [to_keyspace] ShardRoutingRule to_keyspace - * @property {string|null} [shard] ShardRoutingRule shard + * Status io_state. + * @member {number} io_state + * @memberof replicationdata.Status + * @instance */ + Status.prototype.io_state = 0; /** - * Constructs a new ShardRoutingRule. - * @memberof vschema - * @classdesc Represents a ShardRoutingRule. - * @implements IShardRoutingRule - * @constructor - * @param {vschema.IShardRoutingRule=} [properties] Properties to set + * Status last_io_error. + * @member {string} last_io_error + * @memberof replicationdata.Status + * @instance */ - function ShardRoutingRule(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Status.prototype.last_io_error = ""; /** - * ShardRoutingRule from_keyspace. - * @member {string} from_keyspace - * @memberof vschema.ShardRoutingRule + * Status sql_state. + * @member {number} sql_state + * @memberof replicationdata.Status * @instance */ - ShardRoutingRule.prototype.from_keyspace = ""; + Status.prototype.sql_state = 0; /** - * ShardRoutingRule to_keyspace. - * @member {string} to_keyspace - * @memberof vschema.ShardRoutingRule + * Status last_sql_error. + * @member {string} last_sql_error + * @memberof replicationdata.Status * @instance */ - ShardRoutingRule.prototype.to_keyspace = ""; + Status.prototype.last_sql_error = ""; /** - * ShardRoutingRule shard. - * @member {string} shard - * @memberof vschema.ShardRoutingRule + * Status relay_log_file_position. + * @member {string} relay_log_file_position + * @memberof replicationdata.Status * @instance */ - ShardRoutingRule.prototype.shard = ""; + Status.prototype.relay_log_file_position = ""; /** - * Creates a new ShardRoutingRule instance using the specified properties. + * Status source_user. + * @member {string} source_user + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_user = ""; + + /** + * Status sql_delay. + * @member {number} sql_delay + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.sql_delay = 0; + + /** + * Status auto_position. + * @member {boolean} auto_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.auto_position = false; + + /** + * Status using_gtid. + * @member {boolean} using_gtid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.using_gtid = false; + + /** + * Status has_replication_filters. + * @member {boolean} has_replication_filters + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.has_replication_filters = false; + + /** + * Status ssl_allowed. + * @member {boolean} ssl_allowed + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.ssl_allowed = false; + + /** + * Status replication_lag_unknown. + * @member {boolean} replication_lag_unknown + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.replication_lag_unknown = false; + + /** + * Creates a new Status instance using the specified properties. * @function create - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static - * @param {vschema.IShardRoutingRule=} [properties] Properties to set - * @returns {vschema.ShardRoutingRule} ShardRoutingRule instance + * @param {replicationdata.IStatus=} [properties] Properties to set + * @returns {replicationdata.Status} Status instance */ - ShardRoutingRule.create = function create(properties) { - return new ShardRoutingRule(properties); + Status.create = function create(properties) { + return new Status(properties); }; /** - * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encode - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {replicationdata.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encode = function encode(message, writer) { + Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_keyspace != null && Object.hasOwnProperty.call(message, "from_keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_keyspace); - if (message.to_keyspace != null && Object.hasOwnProperty.call(message, "to_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); + if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); + if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds); + if (message.source_host != null && Object.hasOwnProperty.call(message, "source_host")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_host); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.source_port); + if (message.connect_retry != null && Object.hasOwnProperty.call(message, "connect_retry")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.connect_retry); + if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); + if (message.relay_log_source_binlog_equivalent_position != null && Object.hasOwnProperty.call(message, "relay_log_source_binlog_equivalent_position")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.relay_log_source_binlog_equivalent_position); + if (message.source_server_id != null && Object.hasOwnProperty.call(message, "source_server_id")) + writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.source_server_id); + if (message.source_uuid != null && Object.hasOwnProperty.call(message, "source_uuid")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_uuid); + if (message.io_state != null && Object.hasOwnProperty.call(message, "io_state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.io_state); + if (message.last_io_error != null && Object.hasOwnProperty.call(message, "last_io_error")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.last_io_error); + if (message.sql_state != null && Object.hasOwnProperty.call(message, "sql_state")) + writer.uint32(/* id 15, wireType 0 =*/120).int32(message.sql_state); + if (message.last_sql_error != null && Object.hasOwnProperty.call(message, "last_sql_error")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.last_sql_error); + if (message.relay_log_file_position != null && Object.hasOwnProperty.call(message, "relay_log_file_position")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.relay_log_file_position); + if (message.source_user != null && Object.hasOwnProperty.call(message, "source_user")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.source_user); + if (message.sql_delay != null && Object.hasOwnProperty.call(message, "sql_delay")) + writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.sql_delay); + if (message.auto_position != null && Object.hasOwnProperty.call(message, "auto_position")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.auto_position); + if (message.using_gtid != null && Object.hasOwnProperty.call(message, "using_gtid")) + writer.uint32(/* id 21, wireType 0 =*/168).bool(message.using_gtid); + if (message.has_replication_filters != null && Object.hasOwnProperty.call(message, "has_replication_filters")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.has_replication_filters); + if (message.ssl_allowed != null && Object.hasOwnProperty.call(message, "ssl_allowed")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.ssl_allowed); + if (message.replication_lag_unknown != null && Object.hasOwnProperty.call(message, "replication_lag_unknown")) + writer.uint32(/* id 24, wireType 0 =*/192).bool(message.replication_lag_unknown); return writer; }; /** - * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {replicationdata.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + Status.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardRoutingRule message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @function decode - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {replicationdata.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardRoutingRule.decode = function decode(reader, length) { + Status.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.from_keyspace = reader.string(); + message.position = reader.string(); break; case 2: - message.to_keyspace = reader.string(); + message.io_thread_running = reader.bool(); break; case 3: - message.shard = reader.string(); + message.sql_thread_running = reader.bool(); break; - default: - reader.skipType(tag & 7); + case 4: + message.replication_lag_seconds = reader.uint32(); break; - } - } - return message; - }; - - /** - * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vschema.ShardRoutingRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRule} ShardRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardRoutingRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ShardRoutingRule message. - * @function verify - * @memberof vschema.ShardRoutingRule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ShardRoutingRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) + case 5: + message.source_host = reader.string(); + break; + case 6: + message.source_port = reader.int32(); + break; + case 7: + message.connect_retry = reader.int32(); + break; + case 8: + message.relay_log_position = reader.string(); + break; + case 9: + message.file_position = reader.string(); + break; + case 10: + message.relay_log_source_binlog_equivalent_position = reader.string(); + break; + case 11: + message.source_server_id = reader.uint32(); + break; + case 12: + message.source_uuid = reader.string(); + break; + case 13: + message.io_state = reader.int32(); + break; + case 14: + message.last_io_error = reader.string(); + break; + case 15: + message.sql_state = reader.int32(); + break; + case 16: + message.last_sql_error = reader.string(); + break; + case 17: + message.relay_log_file_position = reader.string(); + break; + case 18: + message.source_user = reader.string(); + break; + case 19: + message.sql_delay = reader.uint32(); + break; + case 20: + message.auto_position = reader.bool(); + break; + case 21: + message.using_gtid = reader.bool(); + break; + case 22: + message.has_replication_filters = reader.bool(); + break; + case 23: + message.ssl_allowed = reader.bool(); + break; + case 24: + message.replication_lag_unknown = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.Status + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.Status} Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Status.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Status message. + * @function verify + * @memberof replicationdata.Status + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Status.verify = function verify(message) { + if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) - if (!$util.isString(message.from_keyspace)) - return "from_keyspace: string expected"; - if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) - if (!$util.isString(message.to_keyspace)) - return "to_keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + if (typeof message.io_thread_running !== "boolean") + return "io_thread_running: boolean expected"; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + if (typeof message.sql_thread_running !== "boolean") + return "sql_thread_running: boolean expected"; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + if (!$util.isInteger(message.replication_lag_seconds)) + return "replication_lag_seconds: integer expected"; + if (message.source_host != null && message.hasOwnProperty("source_host")) + if (!$util.isString(message.source_host)) + return "source_host: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isInteger(message.source_port)) + return "source_port: integer expected"; + if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) + if (!$util.isInteger(message.connect_retry)) + return "connect_retry: integer expected"; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + if (!$util.isString(message.relay_log_position)) + return "relay_log_position: string expected"; + if (message.file_position != null && message.hasOwnProperty("file_position")) + if (!$util.isString(message.file_position)) + return "file_position: string expected"; + if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) + if (!$util.isString(message.relay_log_source_binlog_equivalent_position)) + return "relay_log_source_binlog_equivalent_position: string expected"; + if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) + if (!$util.isInteger(message.source_server_id)) + return "source_server_id: integer expected"; + if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) + if (!$util.isString(message.source_uuid)) + return "source_uuid: string expected"; + if (message.io_state != null && message.hasOwnProperty("io_state")) + if (!$util.isInteger(message.io_state)) + return "io_state: integer expected"; + if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) + if (!$util.isString(message.last_io_error)) + return "last_io_error: string expected"; + if (message.sql_state != null && message.hasOwnProperty("sql_state")) + if (!$util.isInteger(message.sql_state)) + return "sql_state: integer expected"; + if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) + if (!$util.isString(message.last_sql_error)) + return "last_sql_error: string expected"; + if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) + if (!$util.isString(message.relay_log_file_position)) + return "relay_log_file_position: string expected"; + if (message.source_user != null && message.hasOwnProperty("source_user")) + if (!$util.isString(message.source_user)) + return "source_user: string expected"; + if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) + if (!$util.isInteger(message.sql_delay)) + return "sql_delay: integer expected"; + if (message.auto_position != null && message.hasOwnProperty("auto_position")) + if (typeof message.auto_position !== "boolean") + return "auto_position: boolean expected"; + if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) + if (typeof message.using_gtid !== "boolean") + return "using_gtid: boolean expected"; + if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) + if (typeof message.has_replication_filters !== "boolean") + return "has_replication_filters: boolean expected"; + if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) + if (typeof message.ssl_allowed !== "boolean") + return "ssl_allowed: boolean expected"; + if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) + if (typeof message.replication_lag_unknown !== "boolean") + return "replication_lag_unknown: boolean expected"; return null; }; /** - * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {replicationdata.Status} Status */ - ShardRoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRule) + Status.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.Status) return object; - var message = new $root.vschema.ShardRoutingRule(); - if (object.from_keyspace != null) - message.from_keyspace = String(object.from_keyspace); - if (object.to_keyspace != null) - message.to_keyspace = String(object.to_keyspace); - if (object.shard != null) - message.shard = String(object.shard); + var message = new $root.replicationdata.Status(); + if (object.position != null) + message.position = String(object.position); + if (object.io_thread_running != null) + message.io_thread_running = Boolean(object.io_thread_running); + if (object.sql_thread_running != null) + message.sql_thread_running = Boolean(object.sql_thread_running); + if (object.replication_lag_seconds != null) + message.replication_lag_seconds = object.replication_lag_seconds >>> 0; + if (object.source_host != null) + message.source_host = String(object.source_host); + if (object.source_port != null) + message.source_port = object.source_port | 0; + if (object.connect_retry != null) + message.connect_retry = object.connect_retry | 0; + if (object.relay_log_position != null) + message.relay_log_position = String(object.relay_log_position); + if (object.file_position != null) + message.file_position = String(object.file_position); + if (object.relay_log_source_binlog_equivalent_position != null) + message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); + if (object.source_server_id != null) + message.source_server_id = object.source_server_id >>> 0; + if (object.source_uuid != null) + message.source_uuid = String(object.source_uuid); + if (object.io_state != null) + message.io_state = object.io_state | 0; + if (object.last_io_error != null) + message.last_io_error = String(object.last_io_error); + if (object.sql_state != null) + message.sql_state = object.sql_state | 0; + if (object.last_sql_error != null) + message.last_sql_error = String(object.last_sql_error); + if (object.relay_log_file_position != null) + message.relay_log_file_position = String(object.relay_log_file_position); + if (object.source_user != null) + message.source_user = String(object.source_user); + if (object.sql_delay != null) + message.sql_delay = object.sql_delay >>> 0; + if (object.auto_position != null) + message.auto_position = Boolean(object.auto_position); + if (object.using_gtid != null) + message.using_gtid = Boolean(object.using_gtid); + if (object.has_replication_filters != null) + message.has_replication_filters = Boolean(object.has_replication_filters); + if (object.ssl_allowed != null) + message.ssl_allowed = Boolean(object.ssl_allowed); + if (object.replication_lag_unknown != null) + message.replication_lag_unknown = Boolean(object.replication_lag_unknown); return message; }; /** - * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a Status message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @static - * @param {vschema.ShardRoutingRule} message ShardRoutingRule + * @param {replicationdata.Status} message Status * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardRoutingRule.toObject = function toObject(message, options) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.from_keyspace = ""; - object.to_keyspace = ""; - object.shard = ""; - } - if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) - object.from_keyspace = message.from_keyspace; - if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) - object.to_keyspace = message.to_keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + object.position = ""; + object.io_thread_running = false; + object.sql_thread_running = false; + object.replication_lag_seconds = 0; + object.source_host = ""; + object.source_port = 0; + object.connect_retry = 0; + object.relay_log_position = ""; + object.file_position = ""; + object.relay_log_source_binlog_equivalent_position = ""; + object.source_server_id = 0; + object.source_uuid = ""; + object.io_state = 0; + object.last_io_error = ""; + object.sql_state = 0; + object.last_sql_error = ""; + object.relay_log_file_position = ""; + object.source_user = ""; + object.sql_delay = 0; + object.auto_position = false; + object.using_gtid = false; + object.has_replication_filters = false; + object.ssl_allowed = false; + object.replication_lag_unknown = false; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + object.io_thread_running = message.io_thread_running; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + object.sql_thread_running = message.sql_thread_running; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + object.replication_lag_seconds = message.replication_lag_seconds; + if (message.source_host != null && message.hasOwnProperty("source_host")) + object.source_host = message.source_host; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) + object.connect_retry = message.connect_retry; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + object.relay_log_position = message.relay_log_position; + if (message.file_position != null && message.hasOwnProperty("file_position")) + object.file_position = message.file_position; + if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) + object.relay_log_source_binlog_equivalent_position = message.relay_log_source_binlog_equivalent_position; + if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) + object.source_server_id = message.source_server_id; + if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) + object.source_uuid = message.source_uuid; + if (message.io_state != null && message.hasOwnProperty("io_state")) + object.io_state = message.io_state; + if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) + object.last_io_error = message.last_io_error; + if (message.sql_state != null && message.hasOwnProperty("sql_state")) + object.sql_state = message.sql_state; + if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) + object.last_sql_error = message.last_sql_error; + if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) + object.relay_log_file_position = message.relay_log_file_position; + if (message.source_user != null && message.hasOwnProperty("source_user")) + object.source_user = message.source_user; + if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) + object.sql_delay = message.sql_delay; + if (message.auto_position != null && message.hasOwnProperty("auto_position")) + object.auto_position = message.auto_position; + if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) + object.using_gtid = message.using_gtid; + if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) + object.has_replication_filters = message.has_replication_filters; + if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) + object.ssl_allowed = message.ssl_allowed; + if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) + object.replication_lag_unknown = message.replication_lag_unknown; return object; }; /** - * Converts this ShardRoutingRule to JSON. + * Converts this Status to JSON. * @function toJSON - * @memberof vschema.ShardRoutingRule + * @memberof replicationdata.Status * @instance * @returns {Object.} JSON object */ - ShardRoutingRule.prototype.toJSON = function toJSON() { + Status.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShardRoutingRule; + return Status; })(); - return vschema; -})(); - -$root.vtctldata = (function() { - - /** - * Namespace vtctldata. - * @exports vtctldata - * @namespace - */ - var vtctldata = {}; - - vtctldata.ExecuteVtctlCommandRequest = (function() { + replicationdata.StopReplicationStatus = (function() { /** - * Properties of an ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @interface IExecuteVtctlCommandRequest - * @property {Array.|null} [args] ExecuteVtctlCommandRequest args - * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout + * Properties of a StopReplicationStatus. + * @memberof replicationdata + * @interface IStopReplicationStatus + * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before + * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after */ /** - * Constructs a new ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandRequest. - * @implements IExecuteVtctlCommandRequest + * Constructs a new StopReplicationStatus. + * @memberof replicationdata + * @classdesc Represents a StopReplicationStatus. + * @implements IStopReplicationStatus * @constructor - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set */ - function ExecuteVtctlCommandRequest(properties) { - this.args = []; + function StopReplicationStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78847,91 +80162,88 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandRequest args. - * @member {Array.} args - * @memberof vtctldata.ExecuteVtctlCommandRequest + * StopReplicationStatus before. + * @member {replicationdata.IStatus|null|undefined} before + * @memberof replicationdata.StopReplicationStatus * @instance */ - ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; + StopReplicationStatus.prototype.before = null; /** - * ExecuteVtctlCommandRequest action_timeout. - * @member {number|Long} action_timeout - * @memberof vtctldata.ExecuteVtctlCommandRequest + * StopReplicationStatus after. + * @member {replicationdata.IStatus|null|undefined} after + * @memberof replicationdata.StopReplicationStatus * @instance */ - ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StopReplicationStatus.prototype.after = null; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new StopReplicationStatus instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance */ - ExecuteVtctlCommandRequest.create = function create(properties) { - return new ExecuteVtctlCommandRequest(properties); + StopReplicationStatus.create = function create(properties) { + return new StopReplicationStatus(properties); }; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + StopReplicationStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); - if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + if (message.before != null && Object.hasOwnProperty.call(message, "before")) + $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after != null && Object.hasOwnProperty.call(message, "after")) + $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a StopReplicationStatus message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.decode = function decode(reader, length) { + StopReplicationStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); break; case 2: - message.action_timeout = reader.int64(); + message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -78942,142 +80254,141 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a StopReplicationStatus message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandRequest.verify = function verify(message) { + StopReplicationStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; + if (message.before != null && message.hasOwnProperty("before")) { + var error = $root.replicationdata.Status.verify(message.before); + if (error) + return "before." + error; + } + if (message.after != null && message.hasOwnProperty("after")) { + var error = $root.replicationdata.Status.verify(message.after); + if (error) + return "after." + error; } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) - return "action_timeout: integer|Long expected"; return null; }; /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus */ - ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + StopReplicationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.StopReplicationStatus) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); + var message = new $root.replicationdata.StopReplicationStatus(); + if (object.before != null) { + if (typeof object.before !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); + message.before = $root.replicationdata.Status.fromObject(object.before); } - if (object.action_timeout != null) - if ($util.Long) - (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; - else if (typeof object.action_timeout === "string") - message.action_timeout = parseInt(object.action_timeout, 10); - else if (typeof object.action_timeout === "number") - message.action_timeout = object.action_timeout; - else if (typeof object.action_timeout === "object") - message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); - return message; - }; - + if (object.after != null) { + if (typeof object.after !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); + message.after = $root.replicationdata.Status.fromObject(object.after); + } + return message; + }; + /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @static - * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + StopReplicationStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.args = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.action_timeout = options.longs === String ? "0" : 0; - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + if (options.defaults) { + object.before = null; + object.after = null; } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (typeof message.action_timeout === "number") - object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; - else - object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; + if (message.before != null && message.hasOwnProperty("before")) + object.before = $root.replicationdata.Status.toObject(message.before, options); + if (message.after != null && message.hasOwnProperty("after")) + object.after = $root.replicationdata.Status.toObject(message.after, options); return object; }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this StopReplicationStatus to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof replicationdata.StopReplicationStatus * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + StopReplicationStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandRequest; + return StopReplicationStatus; })(); - vtctldata.ExecuteVtctlCommandResponse = (function() { + /** + * StopReplicationMode enum. + * @name replicationdata.StopReplicationMode + * @enum {number} + * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value + * @property {number} IOTHREADONLY=1 IOTHREADONLY value + */ + replicationdata.StopReplicationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IOANDSQLTHREAD"] = 0; + values[valuesById[1] = "IOTHREADONLY"] = 1; + return values; + })(); + + replicationdata.PrimaryStatus = (function() { /** - * Properties of an ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @interface IExecuteVtctlCommandResponse - * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + * Properties of a PrimaryStatus. + * @memberof replicationdata + * @interface IPrimaryStatus + * @property {string|null} [position] PrimaryStatus position + * @property {string|null} [file_position] PrimaryStatus file_position */ /** - * Constructs a new ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandResponse. - * @implements IExecuteVtctlCommandResponse + * Constructs a new PrimaryStatus. + * @memberof replicationdata + * @classdesc Represents a PrimaryStatus. + * @implements IPrimaryStatus * @constructor - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set */ - function ExecuteVtctlCommandResponse(properties) { + function PrimaryStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79085,75 +80396,88 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.ExecuteVtctlCommandResponse + * PrimaryStatus position. + * @member {string} position + * @memberof replicationdata.PrimaryStatus * @instance */ - ExecuteVtctlCommandResponse.prototype.event = null; + PrimaryStatus.prototype.position = ""; /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * PrimaryStatus file_position. + * @member {string} file_position + * @memberof replicationdata.PrimaryStatus + * @instance + */ + PrimaryStatus.prototype.file_position = ""; + + /** + * Creates a new PrimaryStatus instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance */ - ExecuteVtctlCommandResponse.create = function create(properties) { - return new ExecuteVtctlCommandResponse(properties); + PrimaryStatus.create = function create(properties) { + return new PrimaryStatus(properties); }; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + PrimaryStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a PrimaryStatus message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {replicationdata.PrimaryStatus} PrimaryStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + PrimaryStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.position = reader.string(); + break; + case 2: + message.file_position = reader.string(); break; default: reader.skipType(tag & 7); @@ -79164,130 +80488,135 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {replicationdata.PrimaryStatus} PrimaryStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + PrimaryStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a PrimaryStatus message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandResponse.verify = function verify(message) { + PrimaryStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.file_position != null && message.hasOwnProperty("file_position")) + if (!$util.isString(message.file_position)) + return "file_position: string expected"; return null; }; /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {replicationdata.PrimaryStatus} PrimaryStatus */ - ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + PrimaryStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.PrimaryStatus) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); - } + var message = new $root.replicationdata.PrimaryStatus(); + if (object.position != null) + message.position = String(object.position); + if (object.file_position != null) + message.file_position = String(object.file_position); return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @static - * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {replicationdata.PrimaryStatus} message PrimaryStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + PrimaryStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.event = null; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + if (options.defaults) { + object.position = ""; + object.file_position = ""; + } + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.file_position != null && message.hasOwnProperty("file_position")) + object.file_position = message.file_position; return object; }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this PrimaryStatus to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof replicationdata.PrimaryStatus * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + PrimaryStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandResponse; - })(); - - /** - * MaterializationIntent enum. - * @name vtctldata.MaterializationIntent - * @enum {number} - * @property {number} CUSTOM=0 CUSTOM value - * @property {number} MOVETABLES=1 MOVETABLES value - * @property {number} CREATELOOKUPINDEX=2 CREATELOOKUPINDEX value - */ - vtctldata.MaterializationIntent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CUSTOM"] = 0; - values[valuesById[1] = "MOVETABLES"] = 1; - values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; - return values; + return PrimaryStatus; })(); - vtctldata.TableMaterializeSettings = (function() { - - /** - * Properties of a TableMaterializeSettings. - * @memberof vtctldata - * @interface ITableMaterializeSettings - * @property {string|null} [target_table] TableMaterializeSettings target_table - * @property {string|null} [source_expression] TableMaterializeSettings source_expression - * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl - */ + replicationdata.FullStatus = (function() { /** - * Constructs a new TableMaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a TableMaterializeSettings. - * @implements ITableMaterializeSettings - * @constructor - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * Properties of a FullStatus. + * @memberof replicationdata + * @interface IFullStatus + * @property {number|null} [server_id] FullStatus server_id + * @property {string|null} [server_uuid] FullStatus server_uuid + * @property {replicationdata.IStatus|null} [replication_status] FullStatus replication_status + * @property {replicationdata.IPrimaryStatus|null} [primary_status] FullStatus primary_status + * @property {string|null} [gtid_purged] FullStatus gtid_purged + * @property {string|null} [version] FullStatus version + * @property {string|null} [version_comment] FullStatus version_comment + * @property {boolean|null} [read_only] FullStatus read_only + * @property {string|null} [gtid_mode] FullStatus gtid_mode + * @property {string|null} [binlog_format] FullStatus binlog_format + * @property {string|null} [binlog_row_image] FullStatus binlog_row_image + * @property {boolean|null} [log_bin_enabled] FullStatus log_bin_enabled + * @property {boolean|null} [log_replica_updates] FullStatus log_replica_updates + * @property {boolean|null} [semi_sync_primary_enabled] FullStatus semi_sync_primary_enabled + * @property {boolean|null} [semi_sync_replica_enabled] FullStatus semi_sync_replica_enabled + * @property {boolean|null} [semi_sync_primary_status] FullStatus semi_sync_primary_status + * @property {boolean|null} [semi_sync_replica_status] FullStatus semi_sync_replica_status + * @property {number|null} [semi_sync_primary_clients] FullStatus semi_sync_primary_clients + * @property {number|Long|null} [semi_sync_primary_timeout] FullStatus semi_sync_primary_timeout + * @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count */ - function TableMaterializeSettings(properties) { + + /** + * Constructs a new FullStatus. + * @memberof replicationdata + * @classdesc Represents a FullStatus. + * @implements IFullStatus + * @constructor + * @param {replicationdata.IFullStatus=} [properties] Properties to set + */ + function FullStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79295,467 +80624,322 @@ $root.vtctldata = (function() { } /** - * TableMaterializeSettings target_table. - * @member {string} target_table - * @memberof vtctldata.TableMaterializeSettings + * FullStatus server_id. + * @member {number} server_id + * @memberof replicationdata.FullStatus * @instance */ - TableMaterializeSettings.prototype.target_table = ""; + FullStatus.prototype.server_id = 0; /** - * TableMaterializeSettings source_expression. - * @member {string} source_expression - * @memberof vtctldata.TableMaterializeSettings + * FullStatus server_uuid. + * @member {string} server_uuid + * @memberof replicationdata.FullStatus * @instance */ - TableMaterializeSettings.prototype.source_expression = ""; + FullStatus.prototype.server_uuid = ""; /** - * TableMaterializeSettings create_ddl. - * @member {string} create_ddl - * @memberof vtctldata.TableMaterializeSettings + * FullStatus replication_status. + * @member {replicationdata.IStatus|null|undefined} replication_status + * @memberof replicationdata.FullStatus * @instance */ - TableMaterializeSettings.prototype.create_ddl = ""; + FullStatus.prototype.replication_status = null; /** - * Creates a new TableMaterializeSettings instance using the specified properties. - * @function create - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + * FullStatus primary_status. + * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.create = function create(properties) { - return new TableMaterializeSettings(properties); - }; + FullStatus.prototype.primary_status = null; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @function encode - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus gtid_purged. + * @member {string} gtid_purged + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.target_table != null && Object.hasOwnProperty.call(message, "target_table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.target_table); - if (message.source_expression != null && Object.hasOwnProperty.call(message, "source_expression")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_expression); - if (message.create_ddl != null && Object.hasOwnProperty.call(message, "create_ddl")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.create_ddl); - return writer; - }; + FullStatus.prototype.gtid_purged = ""; /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus version. + * @member {string} version + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FullStatus.prototype.version = ""; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus version_comment. + * @member {string} version_comment + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.target_table = reader.string(); - break; - case 2: - message.source_expression = reader.string(); - break; - case 3: - message.create_ddl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + FullStatus.prototype.version_comment = ""; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus read_only. + * @member {boolean} read_only + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FullStatus.prototype.read_only = false; /** - * Verifies a TableMaterializeSettings message. - * @function verify - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FullStatus gtid_mode. + * @member {string} gtid_mode + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.target_table != null && message.hasOwnProperty("target_table")) - if (!$util.isString(message.target_table)) - return "target_table: string expected"; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - if (!$util.isString(message.source_expression)) - return "source_expression: string expected"; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - if (!$util.isString(message.create_ddl)) - return "create_ddl: string expected"; - return null; - }; + FullStatus.prototype.gtid_mode = ""; /** - * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * FullStatus binlog_format. + * @member {string} binlog_format + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TableMaterializeSettings) - return object; - var message = new $root.vtctldata.TableMaterializeSettings(); - if (object.target_table != null) - message.target_table = String(object.target_table); - if (object.source_expression != null) - message.source_expression = String(object.source_expression); - if (object.create_ddl != null) - message.create_ddl = String(object.create_ddl); - return message; - }; + FullStatus.prototype.binlog_format = ""; /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.TableMaterializeSettings - * @static - * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FullStatus binlog_row_image. + * @member {string} binlog_row_image + * @memberof replicationdata.FullStatus + * @instance */ - TableMaterializeSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.target_table = ""; - object.source_expression = ""; - object.create_ddl = ""; - } - if (message.target_table != null && message.hasOwnProperty("target_table")) - object.target_table = message.target_table; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - object.source_expression = message.source_expression; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - object.create_ddl = message.create_ddl; - return object; - }; + FullStatus.prototype.binlog_row_image = ""; /** - * Converts this TableMaterializeSettings to JSON. - * @function toJSON - * @memberof vtctldata.TableMaterializeSettings + * FullStatus log_bin_enabled. + * @member {boolean} log_bin_enabled + * @memberof replicationdata.FullStatus * @instance - * @returns {Object.} JSON object */ - TableMaterializeSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TableMaterializeSettings; - })(); - - vtctldata.MaterializeSettings = (function() { - - /** - * Properties of a MaterializeSettings. - * @memberof vtctldata - * @interface IMaterializeSettings - * @property {string|null} [workflow] MaterializeSettings workflow - * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace - * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace - * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy - * @property {Array.|null} [table_settings] MaterializeSettings table_settings - * @property {string|null} [cell] MaterializeSettings cell - * @property {string|null} [tablet_types] MaterializeSettings tablet_types - * @property {string|null} [external_cluster] MaterializeSettings external_cluster - * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent - * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone - * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone - * @property {Array.|null} [source_shards] MaterializeSettings source_shards - */ - - /** - * Constructs a new MaterializeSettings. - * @memberof vtctldata - * @classdesc Represents a MaterializeSettings. - * @implements IMaterializeSettings - * @constructor - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - */ - function MaterializeSettings(properties) { - this.table_settings = []; - this.source_shards = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MaterializeSettings workflow. - * @member {string} workflow - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.workflow = ""; - - /** - * MaterializeSettings source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.source_keyspace = ""; - - /** - * MaterializeSettings target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.target_keyspace = ""; - - /** - * MaterializeSettings stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MaterializeSettings - * @instance - */ - MaterializeSettings.prototype.stop_after_copy = false; + FullStatus.prototype.log_bin_enabled = false; /** - * MaterializeSettings table_settings. - * @member {Array.} table_settings - * @memberof vtctldata.MaterializeSettings + * FullStatus log_replica_updates. + * @member {boolean} log_replica_updates + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.table_settings = $util.emptyArray; + FullStatus.prototype.log_replica_updates = false; /** - * MaterializeSettings cell. - * @member {string} cell - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_primary_enabled. + * @member {boolean} semi_sync_primary_enabled + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.cell = ""; + FullStatus.prototype.semi_sync_primary_enabled = false; /** - * MaterializeSettings tablet_types. - * @member {string} tablet_types - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_replica_enabled. + * @member {boolean} semi_sync_replica_enabled + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.tablet_types = ""; + FullStatus.prototype.semi_sync_replica_enabled = false; /** - * MaterializeSettings external_cluster. - * @member {string} external_cluster - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_primary_status. + * @member {boolean} semi_sync_primary_status + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.external_cluster = ""; + FullStatus.prototype.semi_sync_primary_status = false; /** - * MaterializeSettings materialization_intent. - * @member {vtctldata.MaterializationIntent} materialization_intent - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_replica_status. + * @member {boolean} semi_sync_replica_status + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.materialization_intent = 0; + FullStatus.prototype.semi_sync_replica_status = false; /** - * MaterializeSettings source_time_zone. - * @member {string} source_time_zone - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_primary_clients. + * @member {number} semi_sync_primary_clients + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.source_time_zone = ""; + FullStatus.prototype.semi_sync_primary_clients = 0; /** - * MaterializeSettings target_time_zone. - * @member {string} target_time_zone - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_primary_timeout. + * @member {number|Long} semi_sync_primary_timeout + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.target_time_zone = ""; + FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MaterializeSettings source_shards. - * @member {Array.} source_shards - * @memberof vtctldata.MaterializeSettings + * FullStatus semi_sync_wait_for_replica_count. + * @member {number} semi_sync_wait_for_replica_count + * @memberof replicationdata.FullStatus * @instance */ - MaterializeSettings.prototype.source_shards = $util.emptyArray; + FullStatus.prototype.semi_sync_wait_for_replica_count = 0; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new FullStatus instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @returns {replicationdata.FullStatus} FullStatus instance */ - MaterializeSettings.create = function create(properties) { - return new MaterializeSettings(properties); + FullStatus.create = function create(properties) { + return new FullStatus(properties); }; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encode = function encode(message, writer) { + FullStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); - if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); - if (message.table_settings != null && message.table_settings.length) - for (var i = 0; i < message.table_settings.length; ++i) - $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); - if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); - if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); - if (message.materialization_intent != null && Object.hasOwnProperty.call(message, "materialization_intent")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.materialization_intent); - if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.source_time_zone); - if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.target_time_zone); - if (message.source_shards != null && message.source_shards.length) - for (var i = 0; i < message.source_shards.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); + if (message.server_id != null && Object.hasOwnProperty.call(message, "server_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.server_id); + if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.server_uuid); + if (message.replication_status != null && Object.hasOwnProperty.call(message, "replication_status")) + $root.replicationdata.Status.encode(message.replication_status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) + $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.gtid_purged != null && Object.hasOwnProperty.call(message, "gtid_purged")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.gtid_purged); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.version); + if (message.version_comment != null && Object.hasOwnProperty.call(message, "version_comment")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.version_comment); + if (message.read_only != null && Object.hasOwnProperty.call(message, "read_only")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.read_only); + if (message.gtid_mode != null && Object.hasOwnProperty.call(message, "gtid_mode")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.gtid_mode); + if (message.binlog_format != null && Object.hasOwnProperty.call(message, "binlog_format")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.binlog_format); + if (message.binlog_row_image != null && Object.hasOwnProperty.call(message, "binlog_row_image")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.binlog_row_image); + if (message.log_bin_enabled != null && Object.hasOwnProperty.call(message, "log_bin_enabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.log_bin_enabled); + if (message.log_replica_updates != null && Object.hasOwnProperty.call(message, "log_replica_updates")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.log_replica_updates); + if (message.semi_sync_primary_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_primary_enabled")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.semi_sync_primary_enabled); + if (message.semi_sync_replica_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_replica_enabled")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.semi_sync_replica_enabled); + if (message.semi_sync_primary_status != null && Object.hasOwnProperty.call(message, "semi_sync_primary_status")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.semi_sync_primary_status); + if (message.semi_sync_replica_status != null && Object.hasOwnProperty.call(message, "semi_sync_replica_status")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.semi_sync_replica_status); + if (message.semi_sync_primary_clients != null && Object.hasOwnProperty.call(message, "semi_sync_primary_clients")) + writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.semi_sync_primary_clients); + if (message.semi_sync_primary_timeout != null && Object.hasOwnProperty.call(message, "semi_sync_primary_timeout")) + writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.semi_sync_primary_timeout); + if (message.semi_sync_wait_for_replica_count != null && Object.hasOwnProperty.call(message, "semi_sync_wait_for_replica_count")) + writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.semi_sync_wait_for_replica_count); return writer; }; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + FullStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a FullStatus message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {replicationdata.FullStatus} FullStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.decode = function decode(reader, length) { + FullStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.workflow = reader.string(); + message.server_id = reader.uint32(); break; case 2: - message.source_keyspace = reader.string(); + message.server_uuid = reader.string(); break; case 3: - message.target_keyspace = reader.string(); + message.replication_status = $root.replicationdata.Status.decode(reader, reader.uint32()); break; case 4: - message.stop_after_copy = reader.bool(); + message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); break; case 5: - if (!(message.table_settings && message.table_settings.length)) - message.table_settings = []; - message.table_settings.push($root.vtctldata.TableMaterializeSettings.decode(reader, reader.uint32())); + message.gtid_purged = reader.string(); break; case 6: - message.cell = reader.string(); + message.version = reader.string(); break; case 7: - message.tablet_types = reader.string(); + message.version_comment = reader.string(); break; case 8: - message.external_cluster = reader.string(); + message.read_only = reader.bool(); break; case 9: - message.materialization_intent = reader.int32(); + message.gtid_mode = reader.string(); break; case 10: - message.source_time_zone = reader.string(); + message.binlog_format = reader.string(); break; case 11: - message.target_time_zone = reader.string(); + message.binlog_row_image = reader.string(); break; case 12: - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push(reader.string()); + message.log_bin_enabled = reader.bool(); + break; + case 13: + message.log_replica_updates = reader.bool(); + break; + case 14: + message.semi_sync_primary_enabled = reader.bool(); + break; + case 15: + message.semi_sync_replica_enabled = reader.bool(); + break; + case 16: + message.semi_sync_primary_status = reader.bool(); + break; + case 17: + message.semi_sync_replica_status = reader.bool(); + break; + case 18: + message.semi_sync_primary_clients = reader.uint32(); + break; + case 19: + message.semi_sync_primary_timeout = reader.uint64(); + break; + case 20: + message.semi_sync_wait_for_replica_count = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -79766,246 +80950,297 @@ $root.vtctldata = (function() { }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a FullStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {replicationdata.FullStatus} FullStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + FullStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaterializeSettings message. + * Verifies a FullStatus message. * @function verify - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeSettings.verify = function verify(message) { + FullStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - if (!$util.isString(message.source_keyspace)) - return "source_keyspace: string expected"; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - if (typeof message.stop_after_copy !== "boolean") - return "stop_after_copy: boolean expected"; - if (message.table_settings != null && message.hasOwnProperty("table_settings")) { - if (!Array.isArray(message.table_settings)) - return "table_settings: array expected"; - for (var i = 0; i < message.table_settings.length; ++i) { - var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); - if (error) - return "table_settings." + error; - } + if (message.server_id != null && message.hasOwnProperty("server_id")) + if (!$util.isInteger(message.server_id)) + return "server_id: integer expected"; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + if (!$util.isString(message.server_uuid)) + return "server_uuid: string expected"; + if (message.replication_status != null && message.hasOwnProperty("replication_status")) { + var error = $root.replicationdata.Status.verify(message.replication_status); + if (error) + return "replication_status." + error; } - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - if (!$util.isString(message.tablet_types)) - return "tablet_types: string expected"; - if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) - if (!$util.isString(message.external_cluster)) - return "external_cluster: string expected"; - if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) - switch (message.materialization_intent) { - default: - return "materialization_intent: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - if (!$util.isString(message.source_time_zone)) - return "source_time_zone: string expected"; - if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) - if (!$util.isString(message.target_time_zone)) - return "target_time_zone: string expected"; - if (message.source_shards != null && message.hasOwnProperty("source_shards")) { - if (!Array.isArray(message.source_shards)) - return "source_shards: array expected"; - for (var i = 0; i < message.source_shards.length; ++i) - if (!$util.isString(message.source_shards[i])) - return "source_shards: string[] expected"; + if (message.primary_status != null && message.hasOwnProperty("primary_status")) { + var error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); + if (error) + return "primary_status." + error; } + if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) + if (!$util.isString(message.gtid_purged)) + return "gtid_purged: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.version_comment != null && message.hasOwnProperty("version_comment")) + if (!$util.isString(message.version_comment)) + return "version_comment: string expected"; + if (message.read_only != null && message.hasOwnProperty("read_only")) + if (typeof message.read_only !== "boolean") + return "read_only: boolean expected"; + if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) + if (!$util.isString(message.gtid_mode)) + return "gtid_mode: string expected"; + if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) + if (!$util.isString(message.binlog_format)) + return "binlog_format: string expected"; + if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) + if (!$util.isString(message.binlog_row_image)) + return "binlog_row_image: string expected"; + if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) + if (typeof message.log_bin_enabled !== "boolean") + return "log_bin_enabled: boolean expected"; + if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) + if (typeof message.log_replica_updates !== "boolean") + return "log_replica_updates: boolean expected"; + if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) + if (typeof message.semi_sync_primary_enabled !== "boolean") + return "semi_sync_primary_enabled: boolean expected"; + if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) + if (typeof message.semi_sync_replica_enabled !== "boolean") + return "semi_sync_replica_enabled: boolean expected"; + if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) + if (typeof message.semi_sync_primary_status !== "boolean") + return "semi_sync_primary_status: boolean expected"; + if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) + if (typeof message.semi_sync_replica_status !== "boolean") + return "semi_sync_replica_status: boolean expected"; + if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) + if (!$util.isInteger(message.semi_sync_primary_clients)) + return "semi_sync_primary_clients: integer expected"; + if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) + if (!$util.isInteger(message.semi_sync_primary_timeout) && !(message.semi_sync_primary_timeout && $util.isInteger(message.semi_sync_primary_timeout.low) && $util.isInteger(message.semi_sync_primary_timeout.high))) + return "semi_sync_primary_timeout: integer|Long expected"; + if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) + if (!$util.isInteger(message.semi_sync_wait_for_replica_count)) + return "semi_sync_wait_for_replica_count: integer expected"; return null; }; /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {replicationdata.FullStatus} FullStatus */ - MaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeSettings) + FullStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.FullStatus) return object; - var message = new $root.vtctldata.MaterializeSettings(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.source_keyspace != null) - message.source_keyspace = String(object.source_keyspace); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.table_settings) { - if (!Array.isArray(object.table_settings)) - throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); - message.table_settings = []; - for (var i = 0; i < object.table_settings.length; ++i) { - if (typeof object.table_settings[i] !== "object") - throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); - message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); - } - } - if (object.cell != null) - message.cell = String(object.cell); - if (object.tablet_types != null) - message.tablet_types = String(object.tablet_types); - if (object.external_cluster != null) - message.external_cluster = String(object.external_cluster); - switch (object.materialization_intent) { - case "CUSTOM": - case 0: - message.materialization_intent = 0; - break; - case "MOVETABLES": - case 1: - message.materialization_intent = 1; - break; - case "CREATELOOKUPINDEX": - case 2: - message.materialization_intent = 2; - break; - } - if (object.source_time_zone != null) - message.source_time_zone = String(object.source_time_zone); - if (object.target_time_zone != null) - message.target_time_zone = String(object.target_time_zone); - if (object.source_shards) { - if (!Array.isArray(object.source_shards)) - throw TypeError(".vtctldata.MaterializeSettings.source_shards: array expected"); - message.source_shards = []; - for (var i = 0; i < object.source_shards.length; ++i) - message.source_shards[i] = String(object.source_shards[i]); + var message = new $root.replicationdata.FullStatus(); + if (object.server_id != null) + message.server_id = object.server_id >>> 0; + if (object.server_uuid != null) + message.server_uuid = String(object.server_uuid); + if (object.replication_status != null) { + if (typeof object.replication_status !== "object") + throw TypeError(".replicationdata.FullStatus.replication_status: object expected"); + message.replication_status = $root.replicationdata.Status.fromObject(object.replication_status); } - return message; - }; - - /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.MaterializeSettings - * @static - * @param {vtctldata.MaterializeSettings} message MaterializeSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MaterializeSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.table_settings = []; - object.source_shards = []; + if (object.primary_status != null) { + if (typeof object.primary_status !== "object") + throw TypeError(".replicationdata.FullStatus.primary_status: object expected"); + message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); } - if (options.defaults) { - object.workflow = ""; - object.source_keyspace = ""; - object.target_keyspace = ""; - object.stop_after_copy = false; - object.cell = ""; - object.tablet_types = ""; - object.external_cluster = ""; - object.materialization_intent = options.enums === String ? "CUSTOM" : 0; - object.source_time_zone = ""; - object.target_time_zone = ""; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - object.source_keyspace = message.source_keyspace; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.table_settings && message.table_settings.length) { - object.table_settings = []; - for (var j = 0; j < message.table_settings.length; ++j) - object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); - } - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - object.tablet_types = message.tablet_types; - if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) - object.external_cluster = message.external_cluster; - if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) - object.materialization_intent = options.enums === String ? $root.vtctldata.MaterializationIntent[message.materialization_intent] : message.materialization_intent; - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - object.source_time_zone = message.source_time_zone; - if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) - object.target_time_zone = message.target_time_zone; - if (message.source_shards && message.source_shards.length) { - object.source_shards = []; - for (var j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = message.source_shards[j]; + if (object.gtid_purged != null) + message.gtid_purged = String(object.gtid_purged); + if (object.version != null) + message.version = String(object.version); + if (object.version_comment != null) + message.version_comment = String(object.version_comment); + if (object.read_only != null) + message.read_only = Boolean(object.read_only); + if (object.gtid_mode != null) + message.gtid_mode = String(object.gtid_mode); + if (object.binlog_format != null) + message.binlog_format = String(object.binlog_format); + if (object.binlog_row_image != null) + message.binlog_row_image = String(object.binlog_row_image); + if (object.log_bin_enabled != null) + message.log_bin_enabled = Boolean(object.log_bin_enabled); + if (object.log_replica_updates != null) + message.log_replica_updates = Boolean(object.log_replica_updates); + if (object.semi_sync_primary_enabled != null) + message.semi_sync_primary_enabled = Boolean(object.semi_sync_primary_enabled); + if (object.semi_sync_replica_enabled != null) + message.semi_sync_replica_enabled = Boolean(object.semi_sync_replica_enabled); + if (object.semi_sync_primary_status != null) + message.semi_sync_primary_status = Boolean(object.semi_sync_primary_status); + if (object.semi_sync_replica_status != null) + message.semi_sync_replica_status = Boolean(object.semi_sync_replica_status); + if (object.semi_sync_primary_clients != null) + message.semi_sync_primary_clients = object.semi_sync_primary_clients >>> 0; + if (object.semi_sync_primary_timeout != null) + if ($util.Long) + (message.semi_sync_primary_timeout = $util.Long.fromValue(object.semi_sync_primary_timeout)).unsigned = true; + else if (typeof object.semi_sync_primary_timeout === "string") + message.semi_sync_primary_timeout = parseInt(object.semi_sync_primary_timeout, 10); + else if (typeof object.semi_sync_primary_timeout === "number") + message.semi_sync_primary_timeout = object.semi_sync_primary_timeout; + else if (typeof object.semi_sync_primary_timeout === "object") + message.semi_sync_primary_timeout = new $util.LongBits(object.semi_sync_primary_timeout.low >>> 0, object.semi_sync_primary_timeout.high >>> 0).toNumber(true); + if (object.semi_sync_wait_for_replica_count != null) + message.semi_sync_wait_for_replica_count = object.semi_sync_wait_for_replica_count >>> 0; + return message; + }; + + /** + * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.FullStatus + * @static + * @param {replicationdata.FullStatus} message FullStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FullStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.server_id = 0; + object.server_uuid = ""; + object.replication_status = null; + object.primary_status = null; + object.gtid_purged = ""; + object.version = ""; + object.version_comment = ""; + object.read_only = false; + object.gtid_mode = ""; + object.binlog_format = ""; + object.binlog_row_image = ""; + object.log_bin_enabled = false; + object.log_replica_updates = false; + object.semi_sync_primary_enabled = false; + object.semi_sync_replica_enabled = false; + object.semi_sync_primary_status = false; + object.semi_sync_replica_status = false; + object.semi_sync_primary_clients = 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.semi_sync_primary_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.semi_sync_primary_timeout = options.longs === String ? "0" : 0; + object.semi_sync_wait_for_replica_count = 0; } + if (message.server_id != null && message.hasOwnProperty("server_id")) + object.server_id = message.server_id; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + object.server_uuid = message.server_uuid; + if (message.replication_status != null && message.hasOwnProperty("replication_status")) + object.replication_status = $root.replicationdata.Status.toObject(message.replication_status, options); + if (message.primary_status != null && message.hasOwnProperty("primary_status")) + object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); + if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) + object.gtid_purged = message.gtid_purged; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.version_comment != null && message.hasOwnProperty("version_comment")) + object.version_comment = message.version_comment; + if (message.read_only != null && message.hasOwnProperty("read_only")) + object.read_only = message.read_only; + if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) + object.gtid_mode = message.gtid_mode; + if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) + object.binlog_format = message.binlog_format; + if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) + object.binlog_row_image = message.binlog_row_image; + if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) + object.log_bin_enabled = message.log_bin_enabled; + if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) + object.log_replica_updates = message.log_replica_updates; + if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) + object.semi_sync_primary_enabled = message.semi_sync_primary_enabled; + if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) + object.semi_sync_replica_enabled = message.semi_sync_replica_enabled; + if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) + object.semi_sync_primary_status = message.semi_sync_primary_status; + if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) + object.semi_sync_replica_status = message.semi_sync_replica_status; + if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) + object.semi_sync_primary_clients = message.semi_sync_primary_clients; + if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) + if (typeof message.semi_sync_primary_timeout === "number") + object.semi_sync_primary_timeout = options.longs === String ? String(message.semi_sync_primary_timeout) : message.semi_sync_primary_timeout; + else + object.semi_sync_primary_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.semi_sync_primary_timeout) : options.longs === Number ? new $util.LongBits(message.semi_sync_primary_timeout.low >>> 0, message.semi_sync_primary_timeout.high >>> 0).toNumber(true) : message.semi_sync_primary_timeout; + if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) + object.semi_sync_wait_for_replica_count = message.semi_sync_wait_for_replica_count; return object; }; /** - * Converts this MaterializeSettings to JSON. + * Converts this FullStatus to JSON. * @function toJSON - * @memberof vtctldata.MaterializeSettings + * @memberof replicationdata.FullStatus * @instance * @returns {Object.} JSON object */ - MaterializeSettings.prototype.toJSON = function toJSON() { + FullStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaterializeSettings; + return FullStatus; })(); - vtctldata.Keyspace = (function() { + return replicationdata; +})(); + +$root.vschema = (function() { + + /** + * Namespace vschema. + * @exports vschema + * @namespace + */ + var vschema = {}; + + vschema.RoutingRules = (function() { /** - * Properties of a Keyspace. - * @memberof vtctldata - * @interface IKeyspace - * @property {string|null} [name] Keyspace name - * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace + * Properties of a RoutingRules. + * @memberof vschema + * @interface IRoutingRules + * @property {Array.|null} [rules] RoutingRules rules */ /** - * Constructs a new Keyspace. - * @memberof vtctldata - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * Constructs a new RoutingRules. + * @memberof vschema + * @classdesc Represents a RoutingRules. + * @implements IRoutingRules * @constructor - * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @param {vschema.IRoutingRules=} [properties] Properties to set */ - function Keyspace(properties) { + function RoutingRules(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80013,88 +81248,78 @@ $root.vtctldata = (function() { } /** - * Keyspace name. - * @member {string} name - * @memberof vtctldata.Keyspace - * @instance - */ - Keyspace.prototype.name = ""; - - /** - * Keyspace keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.Keyspace + * RoutingRules rules. + * @member {Array.} rules + * @memberof vschema.RoutingRules * @instance */ - Keyspace.prototype.keyspace = null; + RoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new RoutingRules instance using the specified properties. * @function create - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IKeyspace=} [properties] Properties to set - * @returns {vtctldata.Keyspace} Keyspace instance + * @param {vschema.IRoutingRules=} [properties] Properties to set + * @returns {vschema.RoutingRules} RoutingRules instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + RoutingRules.create = function create(properties) { + return new RoutingRules(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encode - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + RoutingRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a RoutingRules message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decode = function decode(reader, length) { + RoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -80105,123 +81330,126 @@ $root.vtctldata = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { + RoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a RoutingRules message. * @function verify - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Keyspace.verify = function verify(message) { + RoutingRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.topodata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.vschema.RoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } } return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static * @param {Object.} object Plain object - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Keyspace) + RoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRules) return object; - var message = new $root.vtctldata.Keyspace(); - if (object.name != null) - message.name = String(object.name); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + var message = new $root.vschema.RoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.RoutingRules.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.RoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); + } } return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vtctldata.Keyspace} message Keyspace + * @param {vschema.RoutingRules} message RoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + RoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.keyspace = null; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this Keyspace to JSON. + * Converts this RoutingRules to JSON. * @function toJSON - * @memberof vtctldata.Keyspace + * @memberof vschema.RoutingRules * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + RoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return RoutingRules; })(); - vtctldata.Shard = (function() { + vschema.RoutingRule = (function() { /** - * Properties of a Shard. - * @memberof vtctldata - * @interface IShard - * @property {string|null} [keyspace] Shard keyspace - * @property {string|null} [name] Shard name - * @property {topodata.IShard|null} [shard] Shard shard + * Properties of a RoutingRule. + * @memberof vschema + * @interface IRoutingRule + * @property {string|null} [from_table] RoutingRule from_table + * @property {Array.|null} [to_tables] RoutingRule to_tables */ /** - * Constructs a new Shard. - * @memberof vtctldata - * @classdesc Represents a Shard. - * @implements IShard + * Constructs a new RoutingRule. + * @memberof vschema + * @classdesc Represents a RoutingRule. + * @implements IRoutingRule * @constructor - * @param {vtctldata.IShard=} [properties] Properties to set + * @param {vschema.IRoutingRule=} [properties] Properties to set */ - function Shard(properties) { + function RoutingRule(properties) { + this.to_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80229,101 +81457,91 @@ $root.vtctldata = (function() { } /** - * Shard keyspace. - * @member {string} keyspace - * @memberof vtctldata.Shard - * @instance - */ - Shard.prototype.keyspace = ""; - - /** - * Shard name. - * @member {string} name - * @memberof vtctldata.Shard + * RoutingRule from_table. + * @member {string} from_table + * @memberof vschema.RoutingRule * @instance */ - Shard.prototype.name = ""; + RoutingRule.prototype.from_table = ""; /** - * Shard shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.Shard + * RoutingRule to_tables. + * @member {Array.} to_tables + * @memberof vschema.RoutingRule * @instance */ - Shard.prototype.shard = null; + RoutingRule.prototype.to_tables = $util.emptyArray; /** - * Creates a new Shard instance using the specified properties. + * Creates a new RoutingRule instance using the specified properties. * @function create - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IShard=} [properties] Properties to set - * @returns {vtctldata.Shard} Shard instance + * @param {vschema.IRoutingRule=} [properties] Properties to set + * @returns {vschema.RoutingRule} RoutingRule instance */ - Shard.create = function create(properties) { - return new Shard(properties); + RoutingRule.create = function create(properties) { + return new RoutingRule(properties); }; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encode - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encode = function encode(message, writer) { + RoutingRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); + if (message.to_tables != null && message.to_tables.length) + for (var i = 0; i < message.to_tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); return writer; }; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a RoutingRule message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Shard} Shard + * @returns {vschema.RoutingRule} RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Shard.decode = function decode(reader, length) { + RoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.from_table = reader.string(); break; case 2: - message.name = reader.string(); - break; - case 3: - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + if (!(message.to_tables && message.to_tables.length)) + message.to_tables = []; + message.to_tables.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -80334,134 +81552,133 @@ $root.vtctldata = (function() { }; /** - * Decodes a Shard message from the specified reader or buffer, length delimited. + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Shard} Shard + * @returns {vschema.RoutingRule} RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Shard.decodeDelimited = function decodeDelimited(reader) { + RoutingRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Shard message. + * Verifies a RoutingRule message. * @function verify - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Shard.verify = function verify(message) { + RoutingRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) { - var error = $root.topodata.Shard.verify(message.shard); - if (error) - return "shard." + error; + if (message.from_table != null && message.hasOwnProperty("from_table")) + if (!$util.isString(message.from_table)) + return "from_table: string expected"; + if (message.to_tables != null && message.hasOwnProperty("to_tables")) { + if (!Array.isArray(message.to_tables)) + return "to_tables: array expected"; + for (var i = 0; i < message.to_tables.length; ++i) + if (!$util.isString(message.to_tables[i])) + return "to_tables: string[] expected"; } return null; }; /** - * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static * @param {Object.} object Plain object - * @returns {vtctldata.Shard} Shard + * @returns {vschema.RoutingRule} RoutingRule */ - Shard.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Shard) + RoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRule) return object; - var message = new $root.vtctldata.Shard(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.name != null) - message.name = String(object.name); - if (object.shard != null) { - if (typeof object.shard !== "object") - throw TypeError(".vtctldata.Shard.shard: object expected"); - message.shard = $root.topodata.Shard.fromObject(object.shard); + var message = new $root.vschema.RoutingRule(); + if (object.from_table != null) + message.from_table = String(object.from_table); + if (object.to_tables) { + if (!Array.isArray(object.to_tables)) + throw TypeError(".vschema.RoutingRule.to_tables: array expected"); + message.to_tables = []; + for (var i = 0; i < object.to_tables.length; ++i) + message.to_tables[i] = String(object.to_tables[i]); } return message; }; /** - * Creates a plain object from a Shard message. Also converts values to other types if specified. + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @static - * @param {vtctldata.Shard} message Shard + * @param {vschema.RoutingRule} message RoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Shard.toObject = function toObject(message, options) { + RoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.name = ""; - object.shard = null; + if (options.arrays || options.defaults) + object.to_tables = []; + if (options.defaults) + object.from_table = ""; + if (message.from_table != null && message.hasOwnProperty("from_table")) + object.from_table = message.from_table; + if (message.to_tables && message.to_tables.length) { + object.to_tables = []; + for (var j = 0; j < message.to_tables.length; ++j) + object.to_tables[j] = message.to_tables[j]; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = $root.topodata.Shard.toObject(message.shard, options); return object; }; /** - * Converts this Shard to JSON. + * Converts this RoutingRule to JSON. * @function toJSON - * @memberof vtctldata.Shard + * @memberof vschema.RoutingRule * @instance * @returns {Object.} JSON object */ - Shard.prototype.toJSON = function toJSON() { + RoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Shard; + return RoutingRule; })(); - vtctldata.Workflow = (function() { + vschema.Keyspace = (function() { /** - * Properties of a Workflow. - * @memberof vtctldata - * @interface IWorkflow - * @property {string|null} [name] Workflow name - * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source - * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target - * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag - * @property {Object.|null} [shard_streams] Workflow shard_streams + * Properties of a Keyspace. + * @memberof vschema + * @interface IKeyspace + * @property {boolean|null} [sharded] Keyspace sharded + * @property {Object.|null} [vindexes] Keyspace vindexes + * @property {Object.|null} [tables] Keyspace tables + * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing */ /** - * Constructs a new Workflow. - * @memberof vtctldata - * @classdesc Represents a Workflow. - * @implements IWorkflow + * Constructs a new Keyspace. + * @memberof vschema + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @param {vschema.IKeyspace=} [properties] Properties to set */ - function Workflow(properties) { - this.shard_streams = {}; + function Keyspace(properties) { + this.vindexes = {}; + this.tables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80469,131 +81686,137 @@ $root.vtctldata = (function() { } /** - * Workflow name. - * @member {string} name - * @memberof vtctldata.Workflow - * @instance - */ - Workflow.prototype.name = ""; - - /** - * Workflow source. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source - * @memberof vtctldata.Workflow + * Keyspace sharded. + * @member {boolean} sharded + * @memberof vschema.Keyspace * @instance */ - Workflow.prototype.source = null; + Keyspace.prototype.sharded = false; /** - * Workflow target. - * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target - * @memberof vtctldata.Workflow + * Keyspace vindexes. + * @member {Object.} vindexes + * @memberof vschema.Keyspace * @instance */ - Workflow.prototype.target = null; + Keyspace.prototype.vindexes = $util.emptyObject; /** - * Workflow max_v_replication_lag. - * @member {number|Long} max_v_replication_lag - * @memberof vtctldata.Workflow + * Keyspace tables. + * @member {Object.} tables + * @memberof vschema.Keyspace * @instance */ - Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Keyspace.prototype.tables = $util.emptyObject; /** - * Workflow shard_streams. - * @member {Object.} shard_streams - * @memberof vtctldata.Workflow + * Keyspace require_explicit_routing. + * @member {boolean} require_explicit_routing + * @memberof vschema.Keyspace * @instance */ - Workflow.prototype.shard_streams = $util.emptyObject; + Keyspace.prototype.require_explicit_routing = false; /** - * Creates a new Workflow instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static - * @param {vtctldata.IWorkflow=} [properties] Properties to set - * @returns {vtctldata.Workflow} Workflow instance + * @param {vschema.IKeyspace=} [properties] Properties to set + * @returns {vschema.Keyspace} Keyspace instance */ - Workflow.create = function create(properties) { - return new Workflow(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encode - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static - * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {vschema.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); - if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) - for (var keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); + if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) + for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) + for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); return writer; }; /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static - * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {vschema.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Workflow.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Workflow message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow} Workflow + * @returns {vschema.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workflow.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.sharded = reader.bool(); break; case 2: - message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + if (message.vindexes === $util.emptyObject) + message.vindexes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Vindex.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.vindexes[key] = value; break; case 3: - message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); - break; - case 4: - message.max_v_replication_lag = reader.int64(); - break; - case 5: - if (message.shard_streams === $util.emptyObject) - message.shard_streams = {}; + if (message.tables === $util.emptyObject) + message.tables = {}; var end2 = reader.uint32() + reader.pos; key = ""; value = null; @@ -80604,14 +81827,17 @@ $root.vtctldata = (function() { key = reader.string(); break; case 2: - value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); + value = $root.vschema.Table.decode(reader, reader.uint32()); break; default: reader.skipType(tag2 & 7); break; } } - message.shard_streams[key] = value; + message.tables[key] = value; + break; + case 4: + message.require_explicit_routing = reader.bool(); break; default: reader.skipType(tag & 7); @@ -80622,1880 +81848,6791 @@ $root.vtctldata = (function() { }; /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. + * Decodes a Keyspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow} Workflow + * @returns {vschema.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Workflow.decodeDelimited = function decodeDelimited(reader) { + Keyspace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Workflow message. + * Verifies a Keyspace message. * @function verify - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Workflow.verify = function verify(message) { + Keyspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); - if (error) - return "source." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); - if (error) - return "target." + error; - } - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) - return "max_v_replication_lag: integer|Long expected"; - if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { - if (!$util.isObject(message.shard_streams)) - return "shard_streams: object expected"; - var key = Object.keys(message.shard_streams); + if (message.sharded != null && message.hasOwnProperty("sharded")) + if (typeof message.sharded !== "boolean") + return "sharded: boolean expected"; + if (message.vindexes != null && message.hasOwnProperty("vindexes")) { + if (!$util.isObject(message.vindexes)) + return "vindexes: object expected"; + var key = Object.keys(message.vindexes); for (var i = 0; i < key.length; ++i) { - var error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); + var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); if (error) - return "shard_streams." + error; + return "vindexes." + error; + } + } + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!$util.isObject(message.tables)) + return "tables: object expected"; + var key = Object.keys(message.tables); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Table.verify(message.tables[key[i]]); + if (error) + return "tables." + error; } } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + if (typeof message.require_explicit_routing !== "boolean") + return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static * @param {Object.} object Plain object - * @returns {vtctldata.Workflow} Workflow + * @returns {vschema.Keyspace} Keyspace */ - Workflow.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Keyspace) return object; - var message = new $root.vtctldata.Workflow(); - if (object.name != null) - message.name = String(object.name); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".vtctldata.Workflow.source: object expected"); - message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".vtctldata.Workflow.target: object expected"); - message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + var message = new $root.vschema.Keyspace(); + if (object.sharded != null) + message.sharded = Boolean(object.sharded); + if (object.vindexes) { + if (typeof object.vindexes !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes = {}; + for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { + if (typeof object.vindexes[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); + } } - if (object.max_v_replication_lag != null) - if ($util.Long) - (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; - else if (typeof object.max_v_replication_lag === "string") - message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); - else if (typeof object.max_v_replication_lag === "number") - message.max_v_replication_lag = object.max_v_replication_lag; - else if (typeof object.max_v_replication_lag === "object") - message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); - if (object.shard_streams) { - if (typeof object.shard_streams !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams = {}; - for (var keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { - if (typeof object.shard_streams[keys[i]] !== "object") - throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); - message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + if (object.tables) { + if (typeof object.tables !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables = {}; + for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { + if (typeof object.tables[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); } } + if (object.require_explicit_routing != null) + message.require_explicit_routing = Boolean(object.require_explicit_routing); return message; }; /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @static - * @param {vtctldata.Workflow} message Workflow + * @param {vschema.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Workflow.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.shard_streams = {}; + if (options.objects || options.defaults) { + object.vindexes = {}; + object.tables = {}; + } if (options.defaults) { - object.name = ""; - object.source = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_v_replication_lag = options.longs === String ? "0" : 0; + object.sharded = false; + object.require_explicit_routing = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); - if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) - if (typeof message.max_v_replication_lag === "number") - object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; - else - object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; + if (message.sharded != null && message.hasOwnProperty("sharded")) + object.sharded = message.sharded; var keys2; - if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { - object.shard_streams = {}; + if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { + object.vindexes = {}; for (var j = 0; j < keys2.length; ++j) - object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); + object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); + } + if (message.tables && (keys2 = Object.keys(message.tables)).length) { + object.tables = {}; + for (var j = 0; j < keys2.length; ++j) + object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + object.require_explicit_routing = message.require_explicit_routing; return object; }; /** - * Converts this Workflow to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vtctldata.Workflow + * @memberof vschema.Keyspace * @instance * @returns {Object.} JSON object */ - Workflow.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Workflow.ReplicationLocation = (function() { - - /** - * Properties of a ReplicationLocation. - * @memberof vtctldata.Workflow - * @interface IReplicationLocation - * @property {string|null} [keyspace] ReplicationLocation keyspace - * @property {Array.|null} [shards] ReplicationLocation shards - */ + return Keyspace; + })(); - /** - * Constructs a new ReplicationLocation. - * @memberof vtctldata.Workflow - * @classdesc Represents a ReplicationLocation. - * @implements IReplicationLocation - * @constructor - * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set - */ - function ReplicationLocation(properties) { - this.shards = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + vschema.Vindex = (function() { - /** - * ReplicationLocation keyspace. - * @member {string} keyspace - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.keyspace = ""; + /** + * Properties of a Vindex. + * @memberof vschema + * @interface IVindex + * @property {string|null} [type] Vindex type + * @property {Object.|null} [params] Vindex params + * @property {string|null} [owner] Vindex owner + */ - /** - * ReplicationLocation shards. - * @member {Array.} shards - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - */ - ReplicationLocation.prototype.shards = $util.emptyArray; + /** + * Constructs a new Vindex. + * @memberof vschema + * @classdesc Represents a Vindex. + * @implements IVindex + * @constructor + * @param {vschema.IVindex=} [properties] Properties to set + */ + function Vindex(properties) { + this.params = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new ReplicationLocation instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance - */ - ReplicationLocation.create = function create(properties) { - return new ReplicationLocation(properties); - }; + /** + * Vindex type. + * @member {string} type + * @memberof vschema.Vindex + * @instance + */ + Vindex.prototype.type = ""; - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReplicationLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shards != null && message.shards.length) - for (var i = 0; i < message.shards.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); - return writer; - }; + /** + * Vindex params. + * @member {Object.} params + * @memberof vschema.Vindex + * @instance + */ + Vindex.prototype.params = $util.emptyObject; - /** - * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - if (!(message.shards && message.shards.length)) - message.shards = []; - message.shards.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Vindex owner. + * @member {string} owner + * @memberof vschema.Vindex + * @instance + */ + Vindex.prototype.owner = ""; - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Vindex instance using the specified properties. + * @function create + * @memberof vschema.Vindex + * @static + * @param {vschema.IVindex=} [properties] Properties to set + * @returns {vschema.Vindex} Vindex instance + */ + Vindex.create = function create(properties) { + return new Vindex(properties); + }; - /** - * Verifies a ReplicationLocation message. - * @function verify - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReplicationLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shards != null && message.hasOwnProperty("shards")) { - if (!Array.isArray(message.shards)) - return "shards: array expected"; - for (var i = 0; i < message.shards.length; ++i) - if (!$util.isString(message.shards[i])) - return "shards: string[] expected"; - } - return null; - }; + /** + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @function encode + * @memberof vschema.Vindex + * @static + * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vindex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); + return writer; + }; - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation - */ - ReplicationLocation.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) - return object; - var message = new $root.vtctldata.Workflow.ReplicationLocation(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shards) { - if (!Array.isArray(object.shards)) - throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); - message.shards = []; - for (var i = 0; i < object.shards.length; ++i) - message.shards[i] = String(object.shards[i]); - } - return message; - }; + /** + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.Vindex + * @static + * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vindex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ReplicationLocation - * @static - * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReplicationLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.shards = []; - if (options.defaults) - object.keyspace = ""; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shards && message.shards.length) { - object.shards = []; - for (var j = 0; j < message.shards.length; ++j) - object.shards[j] = message.shards[j]; + /** + * Decodes a Vindex message from the specified reader or buffer. + * @function decode + * @memberof vschema.Vindex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.Vindex} Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vindex.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (message.params === $util.emptyObject) + message.params = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; + break; + case 3: + message.owner = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return object; - }; + } + return message; + }; - /** - * Converts this ReplicationLocation to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.ReplicationLocation - * @instance - * @returns {Object.} JSON object - */ - ReplicationLocation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Vindex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.Vindex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.Vindex} Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vindex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return ReplicationLocation; - })(); - - Workflow.ShardStream = (function() { + /** + * Verifies a Vindex message. + * @function verify + * @memberof vschema.Vindex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vindex.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!$util.isObject(message.params)) + return "params: object expected"; + var key = Object.keys(message.params); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.params[key[i]])) + return "params: string{k:string} expected"; + } + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + return null; + }; - /** - * Properties of a ShardStream. - * @memberof vtctldata.Workflow - * @interface IShardStream - * @property {Array.|null} [streams] ShardStream streams - * @property {Array.|null} [tablet_controls] ShardStream tablet_controls - * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving - */ + /** + * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.Vindex + * @static + * @param {Object.} object Plain object + * @returns {vschema.Vindex} Vindex + */ + Vindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Vindex) + return object; + var message = new $root.vschema.Vindex(); + if (object.type != null) + message.type = String(object.type); + if (object.params) { + if (typeof object.params !== "object") + throw TypeError(".vschema.Vindex.params: object expected"); + message.params = {}; + for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) + message.params[keys[i]] = String(object.params[keys[i]]); + } + if (object.owner != null) + message.owner = String(object.owner); + return message; + }; - /** - * Constructs a new ShardStream. - * @memberof vtctldata.Workflow - * @classdesc Represents a ShardStream. - * @implements IShardStream - * @constructor - * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set - */ - function ShardStream(properties) { - this.streams = []; - this.tablet_controls = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.Vindex + * @static + * @param {vschema.Vindex} message Vindex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vindex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.params = {}; + if (options.defaults) { + object.type = ""; + object.owner = ""; } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + var keys2; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; + for (var j = 0; j < keys2.length; ++j) + object.params[keys2[j]] = message.params[keys2[j]]; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + return object; + }; - /** - * ShardStream streams. - * @member {Array.} streams - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.streams = $util.emptyArray; + /** + * Converts this Vindex to JSON. + * @function toJSON + * @memberof vschema.Vindex + * @instance + * @returns {Object.} JSON object + */ + Vindex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ShardStream tablet_controls. - * @member {Array.} tablet_controls - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.tablet_controls = $util.emptyArray; + return Vindex; + })(); - /** - * ShardStream is_primary_serving. - * @member {boolean} is_primary_serving - * @memberof vtctldata.Workflow.ShardStream - * @instance - */ - ShardStream.prototype.is_primary_serving = false; + vschema.Table = (function() { - /** - * Creates a new ShardStream instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set - * @returns {vtctldata.Workflow.ShardStream} ShardStream instance - */ - ShardStream.create = function create(properties) { - return new ShardStream(properties); - }; + /** + * Properties of a Table. + * @memberof vschema + * @interface ITable + * @property {string|null} [type] Table type + * @property {Array.|null} [column_vindexes] Table column_vindexes + * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment + * @property {Array.|null} [columns] Table columns + * @property {string|null} [pinned] Table pinned + * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative + */ - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardStream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streams != null && message.streams.length) - for (var i = 0; i < message.streams.length; ++i) - $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tablet_controls != null && message.tablet_controls.length) - for (var i = 0; i < message.tablet_controls.length; ++i) - $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); - return writer; - }; + /** + * Constructs a new Table. + * @memberof vschema + * @classdesc Represents a Table. + * @implements ITable + * @constructor + * @param {vschema.ITable=} [properties] Properties to set + */ + function Table(properties) { + this.column_vindexes = []; + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ShardStream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Table type. + * @member {string} type + * @memberof vschema.Table + * @instance + */ + Table.prototype.type = ""; - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.ShardStream} ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardStream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.tablet_controls && message.tablet_controls.length)) - message.tablet_controls = []; - message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); - break; - case 3: - message.is_primary_serving = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ShardStream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.ShardStream} ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ShardStream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Table column_vindexes. + * @member {Array.} column_vindexes + * @memberof vschema.Table + * @instance + */ + Table.prototype.column_vindexes = $util.emptyArray; - /** - * Verifies a ShardStream message. - * @function verify - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ShardStream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (var i = 0; i < message.streams.length; ++i) { - var error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); - if (error) - return "streams." + error; - } - } - if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { - if (!Array.isArray(message.tablet_controls)) - return "tablet_controls: array expected"; - for (var i = 0; i < message.tablet_controls.length; ++i) { - var error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); - if (error) - return "tablet_controls." + error; - } - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - if (typeof message.is_primary_serving !== "boolean") - return "is_primary_serving: boolean expected"; - return null; - }; + /** + * Table auto_increment. + * @member {vschema.IAutoIncrement|null|undefined} auto_increment + * @memberof vschema.Table + * @instance + */ + Table.prototype.auto_increment = null; - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.ShardStream} ShardStream - */ - ShardStream.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.ShardStream) - return object; - var message = new $root.vtctldata.Workflow.ShardStream(); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); - message.streams = []; - for (var i = 0; i < object.streams.length; ++i) { - if (typeof object.streams[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); - message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); - } - } - if (object.tablet_controls) { - if (!Array.isArray(object.tablet_controls)) - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); - message.tablet_controls = []; - for (var i = 0; i < object.tablet_controls.length; ++i) { - if (typeof object.tablet_controls[i] !== "object") - throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); - message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); - } - } - if (object.is_primary_serving != null) - message.is_primary_serving = Boolean(object.is_primary_serving); - return message; - }; + /** + * Table columns. + * @member {Array.} columns + * @memberof vschema.Table + * @instance + */ + Table.prototype.columns = $util.emptyArray; - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.ShardStream - * @static - * @param {vtctldata.Workflow.ShardStream} message ShardStream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ShardStream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.streams = []; - object.tablet_controls = []; - } - if (options.defaults) - object.is_primary_serving = false; - if (message.streams && message.streams.length) { - object.streams = []; - for (var j = 0; j < message.streams.length; ++j) - object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); - } - if (message.tablet_controls && message.tablet_controls.length) { - object.tablet_controls = []; - for (var j = 0; j < message.tablet_controls.length; ++j) - object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); - } - if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) - object.is_primary_serving = message.is_primary_serving; - return object; - }; + /** + * Table pinned. + * @member {string} pinned + * @memberof vschema.Table + * @instance + */ + Table.prototype.pinned = ""; - /** - * Converts this ShardStream to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.ShardStream - * @instance - * @returns {Object.} JSON object - */ - ShardStream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Table column_list_authoritative. + * @member {boolean} column_list_authoritative + * @memberof vschema.Table + * @instance + */ + Table.prototype.column_list_authoritative = false; - return ShardStream; - })(); + /** + * Creates a new Table instance using the specified properties. + * @function create + * @memberof vschema.Table + * @static + * @param {vschema.ITable=} [properties] Properties to set + * @returns {vschema.Table} Table instance + */ + Table.create = function create(properties) { + return new Table(properties); + }; - Workflow.Stream = (function() { + /** + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @function encode + * @memberof vschema.Table + * @static + * @param {vschema.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.column_vindexes != null && message.column_vindexes.length) + for (var i = 0; i < message.column_vindexes.length; ++i) + $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) + $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); + if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); + return writer; + }; - /** - * Properties of a Stream. - * @memberof vtctldata.Workflow - * @interface IStream - * @property {number|Long|null} [id] Stream id - * @property {string|null} [shard] Stream shard - * @property {topodata.ITabletAlias|null} [tablet] Stream tablet - * @property {binlogdata.IBinlogSource|null} [binlog_source] Stream binlog_source - * @property {string|null} [position] Stream position - * @property {string|null} [stop_position] Stream stop_position - * @property {string|null} [state] Stream state - * @property {string|null} [db_name] Stream db_name - * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp - * @property {vttime.ITime|null} [time_updated] Stream time_updated - * @property {string|null} [message] Stream message - * @property {Array.|null} [copy_states] Stream copy_states - * @property {Array.|null} [logs] Stream logs - * @property {string|null} [log_fetch_error] Stream log_fetch_error - * @property {Array.|null} [tags] Stream tags - */ + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.Table + * @static + * @param {vschema.ITable} message Table message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Table.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new Stream. - * @memberof vtctldata.Workflow - * @classdesc Represents a Stream. - * @implements IStream - * @constructor - * @param {vtctldata.Workflow.IStream=} [properties] Properties to set - */ - function Stream(properties) { - this.copy_states = []; - this.logs = []; - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Decodes a Table message from the specified reader or buffer. + * @function decode + * @memberof vschema.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (!(message.column_vindexes && message.column_vindexes.length)) + message.column_vindexes = []; + message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + break; + case 3: + message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); + break; + case 5: + message.pinned = reader.string(); + break; + case 6: + message.column_list_authoritative = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Stream id. - * @member {number|Long} id - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.Table + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.Table} Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Table.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Stream shard. - * @member {string} shard - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.shard = ""; + /** + * Verifies a Table message. + * @function verify + * @memberof vschema.Table + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Table.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { + if (!Array.isArray(message.column_vindexes)) + return "column_vindexes: array expected"; + for (var i = 0; i < message.column_vindexes.length; ++i) { + var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); + if (error) + return "column_vindexes." + error; + } + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { + var error = $root.vschema.AutoIncrement.verify(message.auto_increment); + if (error) + return "auto_increment." + error; + } + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.vschema.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + if (!$util.isString(message.pinned)) + return "pinned: string expected"; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + if (typeof message.column_list_authoritative !== "boolean") + return "column_list_authoritative: boolean expected"; + return null; + }; - /** - * Stream tablet. - * @member {topodata.ITabletAlias|null|undefined} tablet - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.tablet = null; + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.Table + * @static + * @param {Object.} object Plain object + * @returns {vschema.Table} Table + */ + Table.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Table) + return object; + var message = new $root.vschema.Table(); + if (object.type != null) + message.type = String(object.type); + if (object.column_vindexes) { + if (!Array.isArray(object.column_vindexes)) + throw TypeError(".vschema.Table.column_vindexes: array expected"); + message.column_vindexes = []; + for (var i = 0; i < object.column_vindexes.length; ++i) { + if (typeof object.column_vindexes[i] !== "object") + throw TypeError(".vschema.Table.column_vindexes: object expected"); + message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); + } + } + if (object.auto_increment != null) { + if (typeof object.auto_increment !== "object") + throw TypeError(".vschema.Table.auto_increment: object expected"); + message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); + } + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.Table.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".vschema.Table.columns: object expected"); + message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); + } + } + if (object.pinned != null) + message.pinned = String(object.pinned); + if (object.column_list_authoritative != null) + message.column_list_authoritative = Boolean(object.column_list_authoritative); + return message; + }; - /** - * Stream binlog_source. - * @member {binlogdata.IBinlogSource|null|undefined} binlog_source - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.binlog_source = null; + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.Table + * @static + * @param {vschema.Table} message Table + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Table.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.column_vindexes = []; + object.columns = []; + } + if (options.defaults) { + object.type = ""; + object.auto_increment = null; + object.pinned = ""; + object.column_list_authoritative = false; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.column_vindexes && message.column_vindexes.length) { + object.column_vindexes = []; + for (var j = 0; j < message.column_vindexes.length; ++j) + object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) + object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + object.pinned = message.pinned; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + object.column_list_authoritative = message.column_list_authoritative; + return object; + }; - /** - * Stream position. - * @member {string} position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.position = ""; + /** + * Converts this Table to JSON. + * @function toJSON + * @memberof vschema.Table + * @instance + * @returns {Object.} JSON object + */ + Table.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Stream stop_position. - * @member {string} stop_position - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.stop_position = ""; + return Table; + })(); - /** - * Stream state. - * @member {string} state - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.state = ""; + vschema.ColumnVindex = (function() { - /** - * Stream db_name. - * @member {string} db_name - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.db_name = ""; + /** + * Properties of a ColumnVindex. + * @memberof vschema + * @interface IColumnVindex + * @property {string|null} [column] ColumnVindex column + * @property {string|null} [name] ColumnVindex name + * @property {Array.|null} [columns] ColumnVindex columns + */ - /** - * Stream transaction_timestamp. - * @member {vttime.ITime|null|undefined} transaction_timestamp - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.transaction_timestamp = null; + /** + * Constructs a new ColumnVindex. + * @memberof vschema + * @classdesc Represents a ColumnVindex. + * @implements IColumnVindex + * @constructor + * @param {vschema.IColumnVindex=} [properties] Properties to set + */ + function ColumnVindex(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Stream time_updated. - * @member {vttime.ITime|null|undefined} time_updated - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.time_updated = null; + /** + * ColumnVindex column. + * @member {string} column + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.column = ""; - /** - * Stream message. - * @member {string} message - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.message = ""; + /** + * ColumnVindex name. + * @member {string} name + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.name = ""; - /** - * Stream copy_states. - * @member {Array.} copy_states - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.copy_states = $util.emptyArray; + /** + * ColumnVindex columns. + * @member {Array.} columns + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.columns = $util.emptyArray; - /** - * Stream logs. - * @member {Array.} logs - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.logs = $util.emptyArray; + /** + * Creates a new ColumnVindex instance using the specified properties. + * @function create + * @memberof vschema.ColumnVindex + * @static + * @param {vschema.IColumnVindex=} [properties] Properties to set + * @returns {vschema.ColumnVindex} ColumnVindex instance + */ + ColumnVindex.create = function create(properties) { + return new ColumnVindex(properties); + }; - /** - * Stream log_fetch_error. - * @member {string} log_fetch_error - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.log_fetch_error = ""; + /** + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @function encode + * @memberof vschema.ColumnVindex + * @static + * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnVindex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.column != null && Object.hasOwnProperty.call(message, "column")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); + return writer; + }; - /** - * Stream tags. - * @member {Array.} tags - * @memberof vtctldata.Workflow.Stream - * @instance - */ - Stream.prototype.tags = $util.emptyArray; + /** + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.ColumnVindex + * @static + * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new Stream instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream} Stream instance - */ - Stream.create = function create(properties) { - return new Stream(properties); - }; + /** + * Decodes a ColumnVindex message from the specified reader or buffer. + * @function decode + * @memberof vschema.ColumnVindex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.ColumnVindex} ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnVindex.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.column = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) - $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) - $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); - if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); - if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); - if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) - $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) - $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); - if (message.copy_states != null && message.copy_states.length) - for (var i = 0; i < message.copy_states.length; ++i) - $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.vtctldata.Workflow.Stream.Log.encode(message.logs[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.log_fetch_error != null && Object.hasOwnProperty.call(message, "log_fetch_error")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.log_fetch_error); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.tags[i]); - return writer; - }; + /** + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.ColumnVindex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.ColumnVindex} ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ColumnVindex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Stream.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a ColumnVindex message. + * @function verify + * @memberof vschema.ColumnVindex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ColumnVindex.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; + } + return null; + }; - /** - * Decodes a Stream message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 4: - message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); - break; - case 5: - message.position = reader.string(); - break; - case 6: - message.stop_position = reader.string(); - break; - case 7: - message.state = reader.string(); - break; - case 8: - message.db_name = reader.string(); - break; - case 9: - message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 10: - message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 11: - message.message = reader.string(); - break; - case 12: - if (!(message.copy_states && message.copy_states.length)) - message.copy_states = []; - message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.vtctldata.Workflow.Stream.Log.decode(reader, reader.uint32())); - break; - case 14: - message.log_fetch_error = reader.string(); - break; - case 15: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.ColumnVindex + * @static + * @param {Object.} object Plain object + * @returns {vschema.ColumnVindex} ColumnVindex + */ + ColumnVindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ColumnVindex) + return object; + var message = new $root.vschema.ColumnVindex(); + if (object.column != null) + message.column = String(object.column); + if (object.name != null) + message.name = String(object.name); + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.ColumnVindex.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); + } + return message; + }; - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream} Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Stream.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.ColumnVindex + * @static + * @param {vschema.ColumnVindex} message ColumnVindex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ColumnVindex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.columns = []; + if (options.defaults) { + object.column = ""; + object.name = ""; + } + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } + return object; + }; - /** - * Verifies a Stream message. - * @function verify - * @memberof vtctldata.Workflow.Stream - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Stream.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet != null && message.hasOwnProperty("tablet")) { - var error = $root.topodata.TabletAlias.verify(message.tablet); - if (error) - return "tablet." + error; - } - if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { - var error = $root.binlogdata.BinlogSource.verify(message.binlog_source); - if (error) - return "binlog_source." + error; - } - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.stop_position != null && message.hasOwnProperty("stop_position")) - if (!$util.isString(message.stop_position)) - return "stop_position: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.db_name != null && message.hasOwnProperty("db_name")) - if (!$util.isString(message.db_name)) - return "db_name: string expected"; - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { - var error = $root.vttime.Time.verify(message.transaction_timestamp); - if (error) - return "transaction_timestamp." + error; - } - if (message.time_updated != null && message.hasOwnProperty("time_updated")) { - var error = $root.vttime.Time.verify(message.time_updated); - if (error) - return "time_updated." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.copy_states != null && message.hasOwnProperty("copy_states")) { - if (!Array.isArray(message.copy_states)) - return "copy_states: array expected"; - for (var i = 0; i < message.copy_states.length; ++i) { - var error = $root.vtctldata.Workflow.Stream.CopyState.verify(message.copy_states[i]); - if (error) - return "copy_states." + error; - } - } - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.vtctldata.Workflow.Stream.Log.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - if (message.log_fetch_error != null && message.hasOwnProperty("log_fetch_error")) - if (!$util.isString(message.log_fetch_error)) - return "log_fetch_error: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; + /** + * Converts this ColumnVindex to JSON. + * @function toJSON + * @memberof vschema.ColumnVindex + * @instance + * @returns {Object.} JSON object + */ + ColumnVindex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream} Stream - */ - Stream.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream) - return object; - var message = new $root.vtctldata.Workflow.Stream(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.tablet != null) { - if (typeof object.tablet !== "object") - throw TypeError(".vtctldata.Workflow.Stream.tablet: object expected"); - message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); - } - if (object.binlog_source != null) { - if (typeof object.binlog_source !== "object") - throw TypeError(".vtctldata.Workflow.Stream.binlog_source: object expected"); - message.binlog_source = $root.binlogdata.BinlogSource.fromObject(object.binlog_source); - } - if (object.position != null) - message.position = String(object.position); - if (object.stop_position != null) - message.stop_position = String(object.stop_position); - if (object.state != null) - message.state = String(object.state); - if (object.db_name != null) - message.db_name = String(object.db_name); - if (object.transaction_timestamp != null) { - if (typeof object.transaction_timestamp !== "object") - throw TypeError(".vtctldata.Workflow.Stream.transaction_timestamp: object expected"); - message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); - } - if (object.time_updated != null) { - if (typeof object.time_updated !== "object") - throw TypeError(".vtctldata.Workflow.Stream.time_updated: object expected"); - message.time_updated = $root.vttime.Time.fromObject(object.time_updated); - } - if (object.message != null) - message.message = String(object.message); - if (object.copy_states) { - if (!Array.isArray(object.copy_states)) - throw TypeError(".vtctldata.Workflow.Stream.copy_states: array expected"); - message.copy_states = []; - for (var i = 0; i < object.copy_states.length; ++i) { - if (typeof object.copy_states[i] !== "object") - throw TypeError(".vtctldata.Workflow.Stream.copy_states: object expected"); - message.copy_states[i] = $root.vtctldata.Workflow.Stream.CopyState.fromObject(object.copy_states[i]); - } - } - if (object.logs) { - if (!Array.isArray(object.logs)) - throw TypeError(".vtctldata.Workflow.Stream.logs: array expected"); - message.logs = []; - for (var i = 0; i < object.logs.length; ++i) { - if (typeof object.logs[i] !== "object") - throw TypeError(".vtctldata.Workflow.Stream.logs: object expected"); - message.logs[i] = $root.vtctldata.Workflow.Stream.Log.fromObject(object.logs[i]); - } - } - if (object.log_fetch_error != null) - message.log_fetch_error = String(object.log_fetch_error); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".vtctldata.Workflow.Stream.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - return message; - }; + return ColumnVindex; + })(); - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream - * @static - * @param {vtctldata.Workflow.Stream} message Stream - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Stream.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.copy_states = []; - object.logs = []; - object.tags = []; - } - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.shard = ""; - object.tablet = null; - object.binlog_source = null; - object.position = ""; - object.stop_position = ""; - object.state = ""; - object.db_name = ""; - object.transaction_timestamp = null; - object.time_updated = null; - object.message = ""; - object.log_fetch_error = ""; + vschema.AutoIncrement = (function() { + + /** + * Properties of an AutoIncrement. + * @memberof vschema + * @interface IAutoIncrement + * @property {string|null} [column] AutoIncrement column + * @property {string|null} [sequence] AutoIncrement sequence + */ + + /** + * Constructs a new AutoIncrement. + * @memberof vschema + * @classdesc Represents an AutoIncrement. + * @implements IAutoIncrement + * @constructor + * @param {vschema.IAutoIncrement=} [properties] Properties to set + */ + function AutoIncrement(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutoIncrement column. + * @member {string} column + * @memberof vschema.AutoIncrement + * @instance + */ + AutoIncrement.prototype.column = ""; + + /** + * AutoIncrement sequence. + * @member {string} sequence + * @memberof vschema.AutoIncrement + * @instance + */ + AutoIncrement.prototype.sequence = ""; + + /** + * Creates a new AutoIncrement instance using the specified properties. + * @function create + * @memberof vschema.AutoIncrement + * @static + * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @returns {vschema.AutoIncrement} AutoIncrement instance + */ + AutoIncrement.create = function create(properties) { + return new AutoIncrement(properties); + }; + + /** + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @function encode + * @memberof vschema.AutoIncrement + * @static + * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoIncrement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.column != null && Object.hasOwnProperty.call(message, "column")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sequence); + return writer; + }; + + /** + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.AutoIncrement + * @static + * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer. + * @function decode + * @memberof vschema.AutoIncrement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.AutoIncrement} AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoIncrement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.column = reader.string(); + break; + case 2: + message.sequence = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet != null && message.hasOwnProperty("tablet")) - object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); - if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) - object.binlog_source = $root.binlogdata.BinlogSource.toObject(message.binlog_source, options); - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.stop_position != null && message.hasOwnProperty("stop_position")) - object.stop_position = message.stop_position; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.db_name != null && message.hasOwnProperty("db_name")) - object.db_name = message.db_name; - if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) - object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); - if (message.time_updated != null && message.hasOwnProperty("time_updated")) - object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.copy_states && message.copy_states.length) { - object.copy_states = []; - for (var j = 0; j < message.copy_states.length; ++j) - object.copy_states[j] = $root.vtctldata.Workflow.Stream.CopyState.toObject(message.copy_states[j], options); - } - if (message.logs && message.logs.length) { - object.logs = []; - for (var j = 0; j < message.logs.length; ++j) - object.logs[j] = $root.vtctldata.Workflow.Stream.Log.toObject(message.logs[j], options); + } + return message; + }; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.AutoIncrement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.AutoIncrement} AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoIncrement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoIncrement message. + * @function verify + * @memberof vschema.AutoIncrement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoIncrement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isString(message.sequence)) + return "sequence: string expected"; + return null; + }; + + /** + * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.AutoIncrement + * @static + * @param {Object.} object Plain object + * @returns {vschema.AutoIncrement} AutoIncrement + */ + AutoIncrement.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.AutoIncrement) + return object; + var message = new $root.vschema.AutoIncrement(); + if (object.column != null) + message.column = String(object.column); + if (object.sequence != null) + message.sequence = String(object.sequence); + return message; + }; + + /** + * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.AutoIncrement + * @static + * @param {vschema.AutoIncrement} message AutoIncrement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoIncrement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.column = ""; + object.sequence = ""; + } + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.sequence != null && message.hasOwnProperty("sequence")) + object.sequence = message.sequence; + return object; + }; + + /** + * Converts this AutoIncrement to JSON. + * @function toJSON + * @memberof vschema.AutoIncrement + * @instance + * @returns {Object.} JSON object + */ + AutoIncrement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoIncrement; + })(); + + vschema.Column = (function() { + + /** + * Properties of a Column. + * @memberof vschema + * @interface IColumn + * @property {string|null} [name] Column name + * @property {query.Type|null} [type] Column type + */ + + /** + * Constructs a new Column. + * @memberof vschema + * @classdesc Represents a Column. + * @implements IColumn + * @constructor + * @param {vschema.IColumn=} [properties] Properties to set + */ + function Column(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Column name. + * @member {string} name + * @memberof vschema.Column + * @instance + */ + Column.prototype.name = ""; + + /** + * Column type. + * @member {query.Type} type + * @memberof vschema.Column + * @instance + */ + Column.prototype.type = 0; + + /** + * Creates a new Column instance using the specified properties. + * @function create + * @memberof vschema.Column + * @static + * @param {vschema.IColumn=} [properties] Properties to set + * @returns {vschema.Column} Column instance + */ + Column.create = function create(properties) { + return new Column(properties); + }; + + /** + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @function encode + * @memberof vschema.Column + * @static + * @param {vschema.IColumn} message Column message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Column.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; + + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.Column + * @static + * @param {vschema.IColumn} message Column message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Column.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Column message from the specified reader or buffer. + * @function decode + * @memberof vschema.Column + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.Column} Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Column.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.log_fetch_error != null && message.hasOwnProperty("log_fetch_error")) - object.log_fetch_error = message.log_fetch_error; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; + } + return message; + }; + + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.Column + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.Column} Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Column.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Column message. + * @function verify + * @memberof vschema.Column + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Column.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; + } + return null; + }; + + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.Column + * @static + * @param {Object.} object Plain object + * @returns {vschema.Column} Column + */ + Column.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Column) + return object; + var message = new $root.vschema.Column(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; + } + return message; + }; + + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.Column + * @static + * @param {vschema.Column} message Column + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Column.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + return object; + }; + + /** + * Converts this Column to JSON. + * @function toJSON + * @memberof vschema.Column + * @instance + * @returns {Object.} JSON object + */ + Column.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Column; + })(); + + vschema.SrvVSchema = (function() { + + /** + * Properties of a SrvVSchema. + * @memberof vschema + * @interface ISrvVSchema + * @property {Object.|null} [keyspaces] SrvVSchema keyspaces + * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules + */ + + /** + * Constructs a new SrvVSchema. + * @memberof vschema + * @classdesc Represents a SrvVSchema. + * @implements ISrvVSchema + * @constructor + * @param {vschema.ISrvVSchema=} [properties] Properties to set + */ + function SrvVSchema(properties) { + this.keyspaces = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SrvVSchema keyspaces. + * @member {Object.} keyspaces + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.keyspaces = $util.emptyObject; + + /** + * SrvVSchema routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.routing_rules = null; + + /** + * SrvVSchema shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vschema.SrvVSchema + * @instance + */ + SrvVSchema.prototype.shard_routing_rules = null; + + /** + * Creates a new SrvVSchema instance using the specified properties. + * @function create + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @returns {vschema.SrvVSchema} SrvVSchema instance + */ + SrvVSchema.create = function create(properties) { + return new SrvVSchema(properties); + }; + + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @function encode + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) + for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) + $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @function decode + * @memberof vschema.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.keyspaces === $util.emptyObject) + message.keyspaces = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.keyspaces[key] = value; + break; + case 2: + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + break; + case 3: + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.SrvVSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.SrvVSchema} SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SrvVSchema message. + * @function verify + * @memberof vschema.SrvVSchema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SrvVSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!$util.isObject(message.keyspaces)) + return "keyspaces: object expected"; + var key = Object.keys(message.keyspaces); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); + if (error) + return "keyspaces." + error; + } + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (error) + return "routing_rules." + error; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; + } + return null; + }; + + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.SrvVSchema + * @static + * @param {Object.} object Plain object + * @returns {vschema.SrvVSchema} SrvVSchema + */ + SrvVSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.SrvVSchema) + return object; + var message = new $root.vschema.SrvVSchema(); + if (object.keyspaces) { + if (typeof object.keyspaces !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces = {}; + for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { + if (typeof object.keyspaces[keys[i]] !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); + } + } + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + } + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + } + return message; + }; + + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.SrvVSchema + * @static + * @param {vschema.SrvVSchema} message SrvVSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SrvVSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.keyspaces = {}; + if (options.defaults) { + object.routing_rules = null; + object.shard_routing_rules = null; + } + var keys2; + if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { + object.keyspaces = {}; + for (var j = 0; j < keys2.length; ++j) + object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + return object; + }; + + /** + * Converts this SrvVSchema to JSON. + * @function toJSON + * @memberof vschema.SrvVSchema + * @instance + * @returns {Object.} JSON object + */ + SrvVSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SrvVSchema; + })(); + + vschema.ShardRoutingRules = (function() { + + /** + * Properties of a ShardRoutingRules. + * @memberof vschema + * @interface IShardRoutingRules + * @property {Array.|null} [rules] ShardRoutingRules rules + */ + + /** + * Constructs a new ShardRoutingRules. + * @memberof vschema + * @classdesc Represents a ShardRoutingRules. + * @implements IShardRoutingRules + * @constructor + * @param {vschema.IShardRoutingRules=} [properties] Properties to set + */ + function ShardRoutingRules(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardRoutingRules rules. + * @member {Array.} rules + * @memberof vschema.ShardRoutingRules + * @instance + */ + ShardRoutingRules.prototype.rules = $util.emptyArray; + + /** + * Creates a new ShardRoutingRules instance using the specified properties. + * @function create + * @memberof vschema.ShardRoutingRules + * @static + * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance + */ + ShardRoutingRules.create = function create(properties) { + return new ShardRoutingRules(properties); + }; + + /** + * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @function encode + * @memberof vschema.ShardRoutingRules + * @static + * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardRoutingRules.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.vschema.ShardRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.ShardRoutingRules + * @static + * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer. + * @function decode + * @memberof vschema.ShardRoutingRules + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardRoutingRules.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.ShardRoutingRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.ShardRoutingRules + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardRoutingRules.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardRoutingRules message. + * @function verify + * @memberof vschema.ShardRoutingRules + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardRoutingRules.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.vschema.ShardRoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + /** + * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.ShardRoutingRules + * @static + * @param {Object.} object Plain object + * @returns {vschema.ShardRoutingRules} ShardRoutingRules + */ + ShardRoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRules) + return object; + var message = new $root.vschema.ShardRoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.ShardRoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.ShardRoutingRule.fromObject(object.rules[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.ShardRoutingRules + * @static + * @param {vschema.ShardRoutingRules} message ShardRoutingRules + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardRoutingRules.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); + } + return object; + }; + + /** + * Converts this ShardRoutingRules to JSON. + * @function toJSON + * @memberof vschema.ShardRoutingRules + * @instance + * @returns {Object.} JSON object + */ + ShardRoutingRules.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShardRoutingRules; + })(); + + vschema.ShardRoutingRule = (function() { + + /** + * Properties of a ShardRoutingRule. + * @memberof vschema + * @interface IShardRoutingRule + * @property {string|null} [from_keyspace] ShardRoutingRule from_keyspace + * @property {string|null} [to_keyspace] ShardRoutingRule to_keyspace + * @property {string|null} [shard] ShardRoutingRule shard + */ + + /** + * Constructs a new ShardRoutingRule. + * @memberof vschema + * @classdesc Represents a ShardRoutingRule. + * @implements IShardRoutingRule + * @constructor + * @param {vschema.IShardRoutingRule=} [properties] Properties to set + */ + function ShardRoutingRule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardRoutingRule from_keyspace. + * @member {string} from_keyspace + * @memberof vschema.ShardRoutingRule + * @instance + */ + ShardRoutingRule.prototype.from_keyspace = ""; + + /** + * ShardRoutingRule to_keyspace. + * @member {string} to_keyspace + * @memberof vschema.ShardRoutingRule + * @instance + */ + ShardRoutingRule.prototype.to_keyspace = ""; + + /** + * ShardRoutingRule shard. + * @member {string} shard + * @memberof vschema.ShardRoutingRule + * @instance + */ + ShardRoutingRule.prototype.shard = ""; + + /** + * Creates a new ShardRoutingRule instance using the specified properties. + * @function create + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule=} [properties] Properties to set + * @returns {vschema.ShardRoutingRule} ShardRoutingRule instance + */ + ShardRoutingRule.create = function create(properties) { + return new ShardRoutingRule(properties); + }; + + /** + * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @function encode + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardRoutingRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.from_keyspace != null && Object.hasOwnProperty.call(message, "from_keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_keyspace); + if (message.to_keyspace != null && Object.hasOwnProperty.call(message, "to_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + return writer; + }; + + /** + * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @function encodeDelimited + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer. + * @function decode + * @memberof vschema.ShardRoutingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardRoutingRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.from_keyspace = reader.string(); + break; + case 2: + message.to_keyspace = reader.string(); + break; + case 3: + message.shard = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vschema.ShardRoutingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardRoutingRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardRoutingRule message. + * @function verify + * @memberof vschema.ShardRoutingRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardRoutingRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + if (!$util.isString(message.from_keyspace)) + return "from_keyspace: string expected"; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + if (!$util.isString(message.to_keyspace)) + return "to_keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + return null; + }; + + /** + * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vschema.ShardRoutingRule + * @static + * @param {Object.} object Plain object + * @returns {vschema.ShardRoutingRule} ShardRoutingRule + */ + ShardRoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRule) + return object; + var message = new $root.vschema.ShardRoutingRule(); + if (object.from_keyspace != null) + message.from_keyspace = String(object.from_keyspace); + if (object.to_keyspace != null) + message.to_keyspace = String(object.to_keyspace); + if (object.shard != null) + message.shard = String(object.shard); + return message; + }; + + /** + * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.ShardRoutingRule} message ShardRoutingRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardRoutingRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.from_keyspace = ""; + object.to_keyspace = ""; + object.shard = ""; + } + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + object.from_keyspace = message.from_keyspace; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + object.to_keyspace = message.to_keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + return object; + }; + + /** + * Converts this ShardRoutingRule to JSON. + * @function toJSON + * @memberof vschema.ShardRoutingRule + * @instance + * @returns {Object.} JSON object + */ + ShardRoutingRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShardRoutingRule; + })(); + + return vschema; +})(); + +$root.vtctldata = (function() { + + /** + * Namespace vtctldata. + * @exports vtctldata + * @namespace + */ + var vtctldata = {}; + + vtctldata.ExecuteVtctlCommandRequest = (function() { + + /** + * Properties of an ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @interface IExecuteVtctlCommandRequest + * @property {Array.|null} [args] ExecuteVtctlCommandRequest args + * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout + */ + + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandRequest. + * @implements IExecuteVtctlCommandRequest + * @constructor + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + */ + function ExecuteVtctlCommandRequest(properties) { + this.args = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteVtctlCommandRequest args. + * @member {Array.} args + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; + + /** + * ExecuteVtctlCommandRequest action_timeout. + * @member {number|Long} action_timeout + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + */ + ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + */ + ExecuteVtctlCommandRequest.create = function create(properties) { + return new ExecuteVtctlCommandRequest(properties); + }; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); + if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + return writer; + }; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 2: + message.action_timeout = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteVtctlCommandRequest message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteVtctlCommandRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) + return "action_timeout: integer|Long expected"; + return null; + }; + + /** + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + */ + ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); + } + if (object.action_timeout != null) + if ($util.Long) + (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; + else if (typeof object.action_timeout === "string") + message.action_timeout = parseInt(object.action_timeout, 10); + else if (typeof object.action_timeout === "number") + message.action_timeout = object.action_timeout; + else if (typeof object.action_timeout === "object") + message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @static + * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.args = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.action_timeout = options.longs === String ? "0" : 0; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (typeof message.action_timeout === "number") + object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; + else + object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; + return object; + }; + + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandRequest + * @instance + * @returns {Object.} JSON object + */ + ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExecuteVtctlCommandRequest; + })(); + + vtctldata.ExecuteVtctlCommandResponse = (function() { + + /** + * Properties of an ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @interface IExecuteVtctlCommandResponse + * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + */ + + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @memberof vtctldata + * @classdesc Represents an ExecuteVtctlCommandResponse. + * @implements IExecuteVtctlCommandResponse + * @constructor + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + */ + function ExecuteVtctlCommandResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteVtctlCommandResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @instance + */ + ExecuteVtctlCommandResponse.prototype.event = null; + + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + */ + ExecuteVtctlCommandResponse.create = function create(properties) { + return new ExecuteVtctlCommandResponse(properties); + }; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteVtctlCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + */ + ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } + return message; + }; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; + }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @instance + * @returns {Object.} JSON object + */ + ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExecuteVtctlCommandResponse; + })(); + + /** + * MaterializationIntent enum. + * @name vtctldata.MaterializationIntent + * @enum {number} + * @property {number} CUSTOM=0 CUSTOM value + * @property {number} MOVETABLES=1 MOVETABLES value + * @property {number} CREATELOOKUPINDEX=2 CREATELOOKUPINDEX value + */ + vtctldata.MaterializationIntent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CUSTOM"] = 0; + values[valuesById[1] = "MOVETABLES"] = 1; + values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; + return values; + })(); + + vtctldata.TableMaterializeSettings = (function() { + + /** + * Properties of a TableMaterializeSettings. + * @memberof vtctldata + * @interface ITableMaterializeSettings + * @property {string|null} [target_table] TableMaterializeSettings target_table + * @property {string|null} [source_expression] TableMaterializeSettings source_expression + * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl + */ + + /** + * Constructs a new TableMaterializeSettings. + * @memberof vtctldata + * @classdesc Represents a TableMaterializeSettings. + * @implements ITableMaterializeSettings + * @constructor + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + */ + function TableMaterializeSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TableMaterializeSettings target_table. + * @member {string} target_table + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.target_table = ""; + + /** + * TableMaterializeSettings source_expression. + * @member {string} source_expression + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.source_expression = ""; + + /** + * TableMaterializeSettings create_ddl. + * @member {string} create_ddl + * @memberof vtctldata.TableMaterializeSettings + * @instance + */ + TableMaterializeSettings.prototype.create_ddl = ""; + + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @function create + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + */ + TableMaterializeSettings.create = function create(properties) { + return new TableMaterializeSettings(properties); + }; + + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @function encode + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableMaterializeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.target_table != null && Object.hasOwnProperty.call(message, "target_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.target_table); + if (message.source_expression != null && Object.hasOwnProperty.call(message, "source_expression")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_expression); + if (message.create_ddl != null && Object.hasOwnProperty.call(message, "create_ddl")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.create_ddl); + return writer; + }; + + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableMaterializeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.target_table = reader.string(); + break; + case 2: + message.source_expression = reader.string(); + break; + case 3: + message.create_ddl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TableMaterializeSettings message. + * @function verify + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TableMaterializeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.target_table != null && message.hasOwnProperty("target_table")) + if (!$util.isString(message.target_table)) + return "target_table: string expected"; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + if (!$util.isString(message.source_expression)) + return "source_expression: string expected"; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + if (!$util.isString(message.create_ddl)) + return "create_ddl: string expected"; + return null; + }; + + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + */ + TableMaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TableMaterializeSettings) + return object; + var message = new $root.vtctldata.TableMaterializeSettings(); + if (object.target_table != null) + message.target_table = String(object.target_table); + if (object.source_expression != null) + message.source_expression = String(object.source_expression); + if (object.create_ddl != null) + message.create_ddl = String(object.create_ddl); + return message; + }; + + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.TableMaterializeSettings + * @static + * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TableMaterializeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.target_table = ""; + object.source_expression = ""; + object.create_ddl = ""; + } + if (message.target_table != null && message.hasOwnProperty("target_table")) + object.target_table = message.target_table; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + object.source_expression = message.source_expression; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + object.create_ddl = message.create_ddl; + return object; + }; + + /** + * Converts this TableMaterializeSettings to JSON. + * @function toJSON + * @memberof vtctldata.TableMaterializeSettings + * @instance + * @returns {Object.} JSON object + */ + TableMaterializeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TableMaterializeSettings; + })(); + + vtctldata.MaterializeSettings = (function() { + + /** + * Properties of a MaterializeSettings. + * @memberof vtctldata + * @interface IMaterializeSettings + * @property {string|null} [workflow] MaterializeSettings workflow + * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace + * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace + * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy + * @property {Array.|null} [table_settings] MaterializeSettings table_settings + * @property {string|null} [cell] MaterializeSettings cell + * @property {string|null} [tablet_types] MaterializeSettings tablet_types + * @property {string|null} [external_cluster] MaterializeSettings external_cluster + * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent + * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone + * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone + * @property {Array.|null} [source_shards] MaterializeSettings source_shards + */ + + /** + * Constructs a new MaterializeSettings. + * @memberof vtctldata + * @classdesc Represents a MaterializeSettings. + * @implements IMaterializeSettings + * @constructor + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + */ + function MaterializeSettings(properties) { + this.table_settings = []; + this.source_shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MaterializeSettings workflow. + * @member {string} workflow + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.workflow = ""; + + /** + * MaterializeSettings source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_keyspace = ""; + + /** + * MaterializeSettings target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_keyspace = ""; + + /** + * MaterializeSettings stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.stop_after_copy = false; + + /** + * MaterializeSettings table_settings. + * @member {Array.} table_settings + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.table_settings = $util.emptyArray; + + /** + * MaterializeSettings cell. + * @member {string} cell + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.cell = ""; + + /** + * MaterializeSettings tablet_types. + * @member {string} tablet_types + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.tablet_types = ""; + + /** + * MaterializeSettings external_cluster. + * @member {string} external_cluster + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.external_cluster = ""; + + /** + * MaterializeSettings materialization_intent. + * @member {vtctldata.MaterializationIntent} materialization_intent + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.materialization_intent = 0; + + /** + * MaterializeSettings source_time_zone. + * @member {string} source_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_time_zone = ""; + + /** + * MaterializeSettings target_time_zone. + * @member {string} target_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_time_zone = ""; + + /** + * MaterializeSettings source_shards. + * @member {Array.} source_shards + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_shards = $util.emptyArray; + + /** + * Creates a new MaterializeSettings instance using the specified properties. + * @function create + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + */ + MaterializeSettings.create = function create(properties) { + return new MaterializeSettings(properties); + }; + + /** + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @function encode + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaterializeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); + if (message.table_settings != null && message.table_settings.length) + for (var i = 0; i < message.table_settings.length; ++i) + $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); + if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); + if (message.materialization_intent != null && Object.hasOwnProperty.call(message, "materialization_intent")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.materialization_intent); + if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.source_time_zone); + if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.target_time_zone); + if (message.source_shards != null && message.source_shards.length) + for (var i = 0; i < message.source_shards.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); + return writer; + }; + + /** + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.MaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaterializeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflow = reader.string(); + break; + case 2: + message.source_keyspace = reader.string(); + break; + case 3: + message.target_keyspace = reader.string(); + break; + case 4: + message.stop_after_copy = reader.bool(); + break; + case 5: + if (!(message.table_settings && message.table_settings.length)) + message.table_settings = []; + message.table_settings.push($root.vtctldata.TableMaterializeSettings.decode(reader, reader.uint32())); + break; + case 6: + message.cell = reader.string(); + break; + case 7: + message.tablet_types = reader.string(); + break; + case 8: + message.external_cluster = reader.string(); + break; + case 9: + message.materialization_intent = reader.int32(); + break; + case 10: + message.source_time_zone = reader.string(); + break; + case 11: + message.target_time_zone = reader.string(); + break; + case 12: + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.MaterializeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaterializeSettings message. + * @function verify + * @memberof vtctldata.MaterializeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaterializeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + if (!$util.isString(message.source_keyspace)) + return "source_keyspace: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + if (typeof message.stop_after_copy !== "boolean") + return "stop_after_copy: boolean expected"; + if (message.table_settings != null && message.hasOwnProperty("table_settings")) { + if (!Array.isArray(message.table_settings)) + return "table_settings: array expected"; + for (var i = 0; i < message.table_settings.length; ++i) { + var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (error) + return "table_settings." + error; + } + } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + if (!$util.isString(message.tablet_types)) + return "tablet_types: string expected"; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + if (!$util.isString(message.external_cluster)) + return "external_cluster: string expected"; + if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) + switch (message.materialization_intent) { + default: + return "materialization_intent: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + if (!$util.isString(message.source_time_zone)) + return "source_time_zone: string expected"; + if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) + if (!$util.isString(message.target_time_zone)) + return "target_time_zone: string expected"; + if (message.source_shards != null && message.hasOwnProperty("source_shards")) { + if (!Array.isArray(message.source_shards)) + return "source_shards: array expected"; + for (var i = 0; i < message.source_shards.length; ++i) + if (!$util.isString(message.source_shards[i])) + return "source_shards: string[] expected"; + } + return null; + }; + + /** + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.MaterializeSettings + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.MaterializeSettings} MaterializeSettings + */ + MaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeSettings) + return object; + var message = new $root.vtctldata.MaterializeSettings(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.source_keyspace != null) + message.source_keyspace = String(object.source_keyspace); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.table_settings) { + if (!Array.isArray(object.table_settings)) + throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); + message.table_settings = []; + for (var i = 0; i < object.table_settings.length; ++i) { + if (typeof object.table_settings[i] !== "object") + throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); + message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); + } + } + if (object.cell != null) + message.cell = String(object.cell); + if (object.tablet_types != null) + message.tablet_types = String(object.tablet_types); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); + switch (object.materialization_intent) { + case "CUSTOM": + case 0: + message.materialization_intent = 0; + break; + case "MOVETABLES": + case 1: + message.materialization_intent = 1; + break; + case "CREATELOOKUPINDEX": + case 2: + message.materialization_intent = 2; + break; + } + if (object.source_time_zone != null) + message.source_time_zone = String(object.source_time_zone); + if (object.target_time_zone != null) + message.target_time_zone = String(object.target_time_zone); + if (object.source_shards) { + if (!Array.isArray(object.source_shards)) + throw TypeError(".vtctldata.MaterializeSettings.source_shards: array expected"); + message.source_shards = []; + for (var i = 0; i < object.source_shards.length; ++i) + message.source_shards[i] = String(object.source_shards[i]); + } + return message; + }; + + /** + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.MaterializeSettings + * @static + * @param {vtctldata.MaterializeSettings} message MaterializeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaterializeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.table_settings = []; + object.source_shards = []; + } + if (options.defaults) { + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.stop_after_copy = false; + object.cell = ""; + object.tablet_types = ""; + object.external_cluster = ""; + object.materialization_intent = options.enums === String ? "CUSTOM" : 0; + object.source_time_zone = ""; + object.target_time_zone = ""; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + object.source_keyspace = message.source_keyspace; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.table_settings && message.table_settings.length) { + object.table_settings = []; + for (var j = 0; j < message.table_settings.length; ++j) + object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + } + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + object.tablet_types = message.tablet_types; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; + if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) + object.materialization_intent = options.enums === String ? $root.vtctldata.MaterializationIntent[message.materialization_intent] : message.materialization_intent; + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + object.source_time_zone = message.source_time_zone; + if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) + object.target_time_zone = message.target_time_zone; + if (message.source_shards && message.source_shards.length) { + object.source_shards = []; + for (var j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = message.source_shards[j]; + } + return object; + }; + + /** + * Converts this MaterializeSettings to JSON. + * @function toJSON + * @memberof vtctldata.MaterializeSettings + * @instance + * @returns {Object.} JSON object + */ + MaterializeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MaterializeSettings; + })(); + + vtctldata.Keyspace = (function() { + + /** + * Properties of a Keyspace. + * @memberof vtctldata + * @interface IKeyspace + * @property {string|null} [name] Keyspace name + * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace + */ + + /** + * Constructs a new Keyspace. + * @memberof vtctldata + * @classdesc Represents a Keyspace. + * @implements IKeyspace + * @constructor + * @param {vtctldata.IKeyspace=} [properties] Properties to set + */ + function Keyspace(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Keyspace name. + * @member {string} name + * @memberof vtctldata.Keyspace + * @instance + */ + Keyspace.prototype.name = ""; + + /** + * Keyspace keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.Keyspace + * @instance + */ + Keyspace.prototype.keyspace = null; + + /** + * Creates a new Keyspace instance using the specified properties. + * @function create + * @memberof vtctldata.Keyspace + * @static + * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @returns {vtctldata.Keyspace} Keyspace instance + */ + Keyspace.create = function create(properties) { + return new Keyspace(properties); + }; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @function encode + * @memberof vtctldata.Keyspace + * @static + * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Keyspace.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Keyspace + * @static + * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Keyspace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Keyspace} Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Keyspace.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Keyspace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Keyspace} Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Keyspace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Keyspace message. + * @function verify + * @memberof vtctldata.Keyspace + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Keyspace.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.topodata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + return null; + }; + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Keyspace + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Keyspace} Keyspace + */ + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Keyspace) + return object; + var message = new $root.vtctldata.Keyspace(); + if (object.name != null) + message.name = String(object.name); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); + message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + } + return message; + }; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Keyspace + * @static + * @param {vtctldata.Keyspace} message Keyspace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Keyspace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.keyspace = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); + return object; + }; + + /** + * Converts this Keyspace to JSON. + * @function toJSON + * @memberof vtctldata.Keyspace + * @instance + * @returns {Object.} JSON object + */ + Keyspace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Keyspace; + })(); + + vtctldata.Shard = (function() { + + /** + * Properties of a Shard. + * @memberof vtctldata + * @interface IShard + * @property {string|null} [keyspace] Shard keyspace + * @property {string|null} [name] Shard name + * @property {topodata.IShard|null} [shard] Shard shard + */ + + /** + * Constructs a new Shard. + * @memberof vtctldata + * @classdesc Represents a Shard. + * @implements IShard + * @constructor + * @param {vtctldata.IShard=} [properties] Properties to set + */ + function Shard(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Shard keyspace. + * @member {string} keyspace + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.keyspace = ""; + + /** + * Shard name. + * @member {string} name + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.name = ""; + + /** + * Shard shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.shard = null; + + /** + * Creates a new Shard instance using the specified properties. + * @function create + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard=} [properties] Properties to set + * @returns {vtctldata.Shard} Shard instance + */ + Shard.create = function create(properties) { + return new Shard(properties); + }; + + /** + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @function encode + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Shard.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Shard.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Shard message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Shard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Shard} Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Shard.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Shard message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Shard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Shard} Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Shard.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Shard message. + * @function verify + * @memberof vtctldata.Shard + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Shard.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) { + var error = $root.topodata.Shard.verify(message.shard); + if (error) + return "shard." + error; + } + return null; + }; + + /** + * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Shard + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Shard} Shard + */ + Shard.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Shard) + return object; + var message = new $root.vtctldata.Shard(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.name != null) + message.name = String(object.name); + if (object.shard != null) { + if (typeof object.shard !== "object") + throw TypeError(".vtctldata.Shard.shard: object expected"); + message.shard = $root.topodata.Shard.fromObject(object.shard); + } + return message; + }; + + /** + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.Shard} message Shard + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Shard.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.name = ""; + object.shard = null; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = $root.topodata.Shard.toObject(message.shard, options); + return object; + }; + + /** + * Converts this Shard to JSON. + * @function toJSON + * @memberof vtctldata.Shard + * @instance + * @returns {Object.} JSON object + */ + Shard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Shard; + })(); + + vtctldata.Workflow = (function() { + + /** + * Properties of a Workflow. + * @memberof vtctldata + * @interface IWorkflow + * @property {string|null} [name] Workflow name + * @property {vtctldata.Workflow.IReplicationLocation|null} [source] Workflow source + * @property {vtctldata.Workflow.IReplicationLocation|null} [target] Workflow target + * @property {number|Long|null} [max_v_replication_lag] Workflow max_v_replication_lag + * @property {Object.|null} [shard_streams] Workflow shard_streams + */ + + /** + * Constructs a new Workflow. + * @memberof vtctldata + * @classdesc Represents a Workflow. + * @implements IWorkflow + * @constructor + * @param {vtctldata.IWorkflow=} [properties] Properties to set + */ + function Workflow(properties) { + this.shard_streams = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Workflow name. + * @member {string} name + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.name = ""; + + /** + * Workflow source. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} source + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.source = null; + + /** + * Workflow target. + * @member {vtctldata.Workflow.IReplicationLocation|null|undefined} target + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.target = null; + + /** + * Workflow max_v_replication_lag. + * @member {number|Long} max_v_replication_lag + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.max_v_replication_lag = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Workflow shard_streams. + * @member {Object.} shard_streams + * @memberof vtctldata.Workflow + * @instance + */ + Workflow.prototype.shard_streams = $util.emptyObject; + + /** + * Creates a new Workflow instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow=} [properties] Properties to set + * @returns {vtctldata.Workflow} Workflow instance + */ + Workflow.create = function create(properties) { + return new Workflow(properties); + }; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.source, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.vtctldata.Workflow.ReplicationLocation.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.max_v_replication_lag != null && Object.hasOwnProperty.call(message, "max_v_replication_lag")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.max_v_replication_lag); + if (message.shard_streams != null && Object.hasOwnProperty.call(message, "shard_streams")) + for (var keys = Object.keys(message.shard_streams), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vtctldata.Workflow.ShardStream.encode(message.shard_streams[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.source = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.vtctldata.Workflow.ReplicationLocation.decode(reader, reader.uint32()); + break; + case 4: + message.max_v_replication_lag = reader.int64(); + break; + case 5: + if (message.shard_streams === $util.emptyObject) + message.shard_streams = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vtctldata.Workflow.ShardStream.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.shard_streams[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Workflow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Workflow message. + * @function verify + * @memberof vtctldata.Workflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Workflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.source); + if (error) + return "source." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.vtctldata.Workflow.ReplicationLocation.verify(message.target); + if (error) + return "target." + error; + } + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (!$util.isInteger(message.max_v_replication_lag) && !(message.max_v_replication_lag && $util.isInteger(message.max_v_replication_lag.low) && $util.isInteger(message.max_v_replication_lag.high))) + return "max_v_replication_lag: integer|Long expected"; + if (message.shard_streams != null && message.hasOwnProperty("shard_streams")) { + if (!$util.isObject(message.shard_streams)) + return "shard_streams: object expected"; + var key = Object.keys(message.shard_streams); + for (var i = 0; i < key.length; ++i) { + var error = $root.vtctldata.Workflow.ShardStream.verify(message.shard_streams[key[i]]); + if (error) + return "shard_streams." + error; + } + } + return null; + }; + + /** + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow} Workflow + */ + Workflow.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow) + return object; + var message = new $root.vtctldata.Workflow(); + if (object.name != null) + message.name = String(object.name); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".vtctldata.Workflow.source: object expected"); + message.source = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.source); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".vtctldata.Workflow.target: object expected"); + message.target = $root.vtctldata.Workflow.ReplicationLocation.fromObject(object.target); + } + if (object.max_v_replication_lag != null) + if ($util.Long) + (message.max_v_replication_lag = $util.Long.fromValue(object.max_v_replication_lag)).unsigned = false; + else if (typeof object.max_v_replication_lag === "string") + message.max_v_replication_lag = parseInt(object.max_v_replication_lag, 10); + else if (typeof object.max_v_replication_lag === "number") + message.max_v_replication_lag = object.max_v_replication_lag; + else if (typeof object.max_v_replication_lag === "object") + message.max_v_replication_lag = new $util.LongBits(object.max_v_replication_lag.low >>> 0, object.max_v_replication_lag.high >>> 0).toNumber(); + if (object.shard_streams) { + if (typeof object.shard_streams !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams = {}; + for (var keys = Object.keys(object.shard_streams), i = 0; i < keys.length; ++i) { + if (typeof object.shard_streams[keys[i]] !== "object") + throw TypeError(".vtctldata.Workflow.shard_streams: object expected"); + message.shard_streams[keys[i]] = $root.vtctldata.Workflow.ShardStream.fromObject(object.shard_streams[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow + * @static + * @param {vtctldata.Workflow} message Workflow + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Workflow.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.shard_streams = {}; + if (options.defaults) { + object.name = ""; + object.source = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.max_v_replication_lag = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_v_replication_lag = options.longs === String ? "0" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.vtctldata.Workflow.ReplicationLocation.toObject(message.target, options); + if (message.max_v_replication_lag != null && message.hasOwnProperty("max_v_replication_lag")) + if (typeof message.max_v_replication_lag === "number") + object.max_v_replication_lag = options.longs === String ? String(message.max_v_replication_lag) : message.max_v_replication_lag; + else + object.max_v_replication_lag = options.longs === String ? $util.Long.prototype.toString.call(message.max_v_replication_lag) : options.longs === Number ? new $util.LongBits(message.max_v_replication_lag.low >>> 0, message.max_v_replication_lag.high >>> 0).toNumber() : message.max_v_replication_lag; + var keys2; + if (message.shard_streams && (keys2 = Object.keys(message.shard_streams)).length) { + object.shard_streams = {}; + for (var j = 0; j < keys2.length; ++j) + object.shard_streams[keys2[j]] = $root.vtctldata.Workflow.ShardStream.toObject(message.shard_streams[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Workflow to JSON. + * @function toJSON + * @memberof vtctldata.Workflow + * @instance + * @returns {Object.} JSON object + */ + Workflow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Workflow.ReplicationLocation = (function() { + + /** + * Properties of a ReplicationLocation. + * @memberof vtctldata.Workflow + * @interface IReplicationLocation + * @property {string|null} [keyspace] ReplicationLocation keyspace + * @property {Array.|null} [shards] ReplicationLocation shards + */ + + /** + * Constructs a new ReplicationLocation. + * @memberof vtctldata.Workflow + * @classdesc Represents a ReplicationLocation. + * @implements IReplicationLocation + * @constructor + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + */ + function ReplicationLocation(properties) { + this.shards = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReplicationLocation keyspace. + * @member {string} keyspace + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.keyspace = ""; + + /** + * ReplicationLocation shards. + * @member {Array.} shards + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + */ + ReplicationLocation.prototype.shards = $util.emptyArray; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation=} [properties] Properties to set + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation instance + */ + ReplicationLocation.create = function create(properties) { + return new ReplicationLocation(properties); + }; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shards != null && message.shards.length) + for (var i = 0; i < message.shards.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shards[i]); + return writer; + }; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.IReplicationLocation} message ReplicationLocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReplicationLocation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ReplicationLocation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + if (!(message.shards && message.shards.length)) + message.shards = []; + message.shards.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReplicationLocation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReplicationLocation message. + * @function verify + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReplicationLocation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shards != null && message.hasOwnProperty("shards")) { + if (!Array.isArray(message.shards)) + return "shards: array expected"; + for (var i = 0; i < message.shards.length; ++i) + if (!$util.isString(message.shards[i])) + return "shards: string[] expected"; + } + return null; + }; + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ReplicationLocation} ReplicationLocation + */ + ReplicationLocation.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ReplicationLocation) + return object; + var message = new $root.vtctldata.Workflow.ReplicationLocation(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shards) { + if (!Array.isArray(object.shards)) + throw TypeError(".vtctldata.Workflow.ReplicationLocation.shards: array expected"); + message.shards = []; + for (var i = 0; i < object.shards.length; ++i) + message.shards[i] = String(object.shards[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ReplicationLocation + * @static + * @param {vtctldata.Workflow.ReplicationLocation} message ReplicationLocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReplicationLocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.shards = []; + if (options.defaults) + object.keyspace = ""; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shards && message.shards.length) { + object.shards = []; + for (var j = 0; j < message.shards.length; ++j) + object.shards[j] = message.shards[j]; + } + return object; + }; + + /** + * Converts this ReplicationLocation to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ReplicationLocation + * @instance + * @returns {Object.} JSON object + */ + ReplicationLocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReplicationLocation; + })(); + + Workflow.ShardStream = (function() { + + /** + * Properties of a ShardStream. + * @memberof vtctldata.Workflow + * @interface IShardStream + * @property {Array.|null} [streams] ShardStream streams + * @property {Array.|null} [tablet_controls] ShardStream tablet_controls + * @property {boolean|null} [is_primary_serving] ShardStream is_primary_serving + */ + + /** + * Constructs a new ShardStream. + * @memberof vtctldata.Workflow + * @classdesc Represents a ShardStream. + * @implements IShardStream + * @constructor + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + */ + function ShardStream(properties) { + this.streams = []; + this.tablet_controls = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ShardStream streams. + * @member {Array.} streams + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.streams = $util.emptyArray; + + /** + * ShardStream tablet_controls. + * @member {Array.} tablet_controls + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.tablet_controls = $util.emptyArray; + + /** + * ShardStream is_primary_serving. + * @member {boolean} is_primary_serving + * @memberof vtctldata.Workflow.ShardStream + * @instance + */ + ShardStream.prototype.is_primary_serving = false; + + /** + * Creates a new ShardStream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.ShardStream} ShardStream instance + */ + ShardStream.create = function create(properties) { + return new ShardStream(properties); + }; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.streams != null && message.streams.length) + for (var i = 0; i < message.streams.length; ++i) + $root.vtctldata.Workflow.Stream.encode(message.streams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet_controls != null && message.tablet_controls.length) + for (var i = 0; i < message.tablet_controls.length; ++i) + $root.topodata.Shard.TabletControl.encode(message.tablet_controls[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.is_primary_serving != null && Object.hasOwnProperty.call(message, "is_primary_serving")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.is_primary_serving); + return writer; + }; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.IShardStream} message ShardStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShardStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.ShardStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push($root.vtctldata.Workflow.Stream.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.tablet_controls && message.tablet_controls.length)) + message.tablet_controls = []; + message.tablet_controls.push($root.topodata.Shard.TabletControl.decode(reader, reader.uint32())); + break; + case 3: + message.is_primary_serving = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.ShardStream} ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShardStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShardStream message. + * @function verify + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShardStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (var i = 0; i < message.streams.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.verify(message.streams[i]); + if (error) + return "streams." + error; + } + } + if (message.tablet_controls != null && message.hasOwnProperty("tablet_controls")) { + if (!Array.isArray(message.tablet_controls)) + return "tablet_controls: array expected"; + for (var i = 0; i < message.tablet_controls.length; ++i) { + var error = $root.topodata.Shard.TabletControl.verify(message.tablet_controls[i]); + if (error) + return "tablet_controls." + error; + } + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + if (typeof message.is_primary_serving !== "boolean") + return "is_primary_serving: boolean expected"; + return null; + }; + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.ShardStream} ShardStream + */ + ShardStream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.ShardStream) + return object; + var message = new $root.vtctldata.Workflow.ShardStream(); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".vtctldata.Workflow.ShardStream.streams: array expected"); + message.streams = []; + for (var i = 0; i < object.streams.length; ++i) { + if (typeof object.streams[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.streams: object expected"); + message.streams[i] = $root.vtctldata.Workflow.Stream.fromObject(object.streams[i]); + } + } + if (object.tablet_controls) { + if (!Array.isArray(object.tablet_controls)) + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: array expected"); + message.tablet_controls = []; + for (var i = 0; i < object.tablet_controls.length; ++i) { + if (typeof object.tablet_controls[i] !== "object") + throw TypeError(".vtctldata.Workflow.ShardStream.tablet_controls: object expected"); + message.tablet_controls[i] = $root.topodata.Shard.TabletControl.fromObject(object.tablet_controls[i]); + } + } + if (object.is_primary_serving != null) + message.is_primary_serving = Boolean(object.is_primary_serving); + return message; + }; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.ShardStream + * @static + * @param {vtctldata.Workflow.ShardStream} message ShardStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShardStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.streams = []; + object.tablet_controls = []; + } + if (options.defaults) + object.is_primary_serving = false; + if (message.streams && message.streams.length) { + object.streams = []; + for (var j = 0; j < message.streams.length; ++j) + object.streams[j] = $root.vtctldata.Workflow.Stream.toObject(message.streams[j], options); + } + if (message.tablet_controls && message.tablet_controls.length) { + object.tablet_controls = []; + for (var j = 0; j < message.tablet_controls.length; ++j) + object.tablet_controls[j] = $root.topodata.Shard.TabletControl.toObject(message.tablet_controls[j], options); + } + if (message.is_primary_serving != null && message.hasOwnProperty("is_primary_serving")) + object.is_primary_serving = message.is_primary_serving; + return object; + }; + + /** + * Converts this ShardStream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.ShardStream + * @instance + * @returns {Object.} JSON object + */ + ShardStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShardStream; + })(); + + Workflow.Stream = (function() { + + /** + * Properties of a Stream. + * @memberof vtctldata.Workflow + * @interface IStream + * @property {number|Long|null} [id] Stream id + * @property {string|null} [shard] Stream shard + * @property {topodata.ITabletAlias|null} [tablet] Stream tablet + * @property {binlogdata.IBinlogSource|null} [binlog_source] Stream binlog_source + * @property {string|null} [position] Stream position + * @property {string|null} [stop_position] Stream stop_position + * @property {string|null} [state] Stream state + * @property {string|null} [db_name] Stream db_name + * @property {vttime.ITime|null} [transaction_timestamp] Stream transaction_timestamp + * @property {vttime.ITime|null} [time_updated] Stream time_updated + * @property {string|null} [message] Stream message + * @property {Array.|null} [copy_states] Stream copy_states + * @property {Array.|null} [logs] Stream logs + * @property {string|null} [log_fetch_error] Stream log_fetch_error + * @property {Array.|null} [tags] Stream tags + */ + + /** + * Constructs a new Stream. + * @memberof vtctldata.Workflow + * @classdesc Represents a Stream. + * @implements IStream + * @constructor + * @param {vtctldata.Workflow.IStream=} [properties] Properties to set + */ + function Stream(properties) { + this.copy_states = []; + this.logs = []; + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Stream id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Stream shard. + * @member {string} shard + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.shard = ""; + + /** + * Stream tablet. + * @member {topodata.ITabletAlias|null|undefined} tablet + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tablet = null; + + /** + * Stream binlog_source. + * @member {binlogdata.IBinlogSource|null|undefined} binlog_source + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.binlog_source = null; + + /** + * Stream position. + * @member {string} position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.position = ""; + + /** + * Stream stop_position. + * @member {string} stop_position + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.stop_position = ""; + + /** + * Stream state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.state = ""; + + /** + * Stream db_name. + * @member {string} db_name + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.db_name = ""; + + /** + * Stream transaction_timestamp. + * @member {vttime.ITime|null|undefined} transaction_timestamp + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.transaction_timestamp = null; + + /** + * Stream time_updated. + * @member {vttime.ITime|null|undefined} time_updated + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.time_updated = null; + + /** + * Stream message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.message = ""; + + /** + * Stream copy_states. + * @member {Array.} copy_states + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.copy_states = $util.emptyArray; + + /** + * Stream logs. + * @member {Array.} logs + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.logs = $util.emptyArray; + + /** + * Stream log_fetch_error. + * @member {string} log_fetch_error + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.log_fetch_error = ""; + + /** + * Stream tags. + * @member {Array.} tags + * @memberof vtctldata.Workflow.Stream + * @instance + */ + Stream.prototype.tags = $util.emptyArray; + + /** + * Creates a new Stream instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream} Stream instance + */ + Stream.create = function create(properties) { + return new Stream(properties); + }; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet != null && Object.hasOwnProperty.call(message, "tablet")) + $root.topodata.TabletAlias.encode(message.tablet, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.binlog_source != null && Object.hasOwnProperty.call(message, "binlog_source")) + $root.binlogdata.BinlogSource.encode(message.binlog_source, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.position); + if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.state); + if (message.db_name != null && Object.hasOwnProperty.call(message, "db_name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.db_name); + if (message.transaction_timestamp != null && Object.hasOwnProperty.call(message, "transaction_timestamp")) + $root.vttime.Time.encode(message.transaction_timestamp, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.time_updated != null && Object.hasOwnProperty.call(message, "time_updated")) + $root.vttime.Time.encode(message.time_updated, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.message); + if (message.copy_states != null && message.copy_states.length) + for (var i = 0; i < message.copy_states.length; ++i) + $root.vtctldata.Workflow.Stream.CopyState.encode(message.copy_states[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.vtctldata.Workflow.Stream.Log.encode(message.logs[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.log_fetch_error != null && Object.hasOwnProperty.call(message, "log_fetch_error")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.log_fetch_error); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.tags[i]); + return writer; + }; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.IStream} message Stream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Stream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 4: + message.binlog_source = $root.binlogdata.BinlogSource.decode(reader, reader.uint32()); + break; + case 5: + message.position = reader.string(); + break; + case 6: + message.stop_position = reader.string(); + break; + case 7: + message.state = reader.string(); + break; + case 8: + message.db_name = reader.string(); + break; + case 9: + message.transaction_timestamp = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 10: + message.time_updated = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 11: + message.message = reader.string(); + break; + case 12: + if (!(message.copy_states && message.copy_states.length)) + message.copy_states = []; + message.copy_states.push($root.vtctldata.Workflow.Stream.CopyState.decode(reader, reader.uint32())); + break; + case 13: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.vtctldata.Workflow.Stream.Log.decode(reader, reader.uint32())); + break; + case 14: + message.log_fetch_error = reader.string(); + break; + case 15: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream} Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Stream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Stream message. + * @function verify + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Stream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet != null && message.hasOwnProperty("tablet")) { + var error = $root.topodata.TabletAlias.verify(message.tablet); + if (error) + return "tablet." + error; + } + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) { + var error = $root.binlogdata.BinlogSource.verify(message.binlog_source); + if (error) + return "binlog_source." + error; + } + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + if (!$util.isString(message.stop_position)) + return "stop_position: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.db_name != null && message.hasOwnProperty("db_name")) + if (!$util.isString(message.db_name)) + return "db_name: string expected"; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) { + var error = $root.vttime.Time.verify(message.transaction_timestamp); + if (error) + return "transaction_timestamp." + error; + } + if (message.time_updated != null && message.hasOwnProperty("time_updated")) { + var error = $root.vttime.Time.verify(message.time_updated); + if (error) + return "time_updated." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.copy_states != null && message.hasOwnProperty("copy_states")) { + if (!Array.isArray(message.copy_states)) + return "copy_states: array expected"; + for (var i = 0; i < message.copy_states.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.CopyState.verify(message.copy_states[i]); + if (error) + return "copy_states." + error; + } + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.vtctldata.Workflow.Stream.Log.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.log_fetch_error != null && message.hasOwnProperty("log_fetch_error")) + if (!$util.isString(message.log_fetch_error)) + return "log_fetch_error: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream} Stream + */ + Stream.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream) + return object; + var message = new $root.vtctldata.Workflow.Stream(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.tablet != null) { + if (typeof object.tablet !== "object") + throw TypeError(".vtctldata.Workflow.Stream.tablet: object expected"); + message.tablet = $root.topodata.TabletAlias.fromObject(object.tablet); + } + if (object.binlog_source != null) { + if (typeof object.binlog_source !== "object") + throw TypeError(".vtctldata.Workflow.Stream.binlog_source: object expected"); + message.binlog_source = $root.binlogdata.BinlogSource.fromObject(object.binlog_source); + } + if (object.position != null) + message.position = String(object.position); + if (object.stop_position != null) + message.stop_position = String(object.stop_position); + if (object.state != null) + message.state = String(object.state); + if (object.db_name != null) + message.db_name = String(object.db_name); + if (object.transaction_timestamp != null) { + if (typeof object.transaction_timestamp !== "object") + throw TypeError(".vtctldata.Workflow.Stream.transaction_timestamp: object expected"); + message.transaction_timestamp = $root.vttime.Time.fromObject(object.transaction_timestamp); + } + if (object.time_updated != null) { + if (typeof object.time_updated !== "object") + throw TypeError(".vtctldata.Workflow.Stream.time_updated: object expected"); + message.time_updated = $root.vttime.Time.fromObject(object.time_updated); + } + if (object.message != null) + message.message = String(object.message); + if (object.copy_states) { + if (!Array.isArray(object.copy_states)) + throw TypeError(".vtctldata.Workflow.Stream.copy_states: array expected"); + message.copy_states = []; + for (var i = 0; i < object.copy_states.length; ++i) { + if (typeof object.copy_states[i] !== "object") + throw TypeError(".vtctldata.Workflow.Stream.copy_states: object expected"); + message.copy_states[i] = $root.vtctldata.Workflow.Stream.CopyState.fromObject(object.copy_states[i]); + } + } + if (object.logs) { + if (!Array.isArray(object.logs)) + throw TypeError(".vtctldata.Workflow.Stream.logs: array expected"); + message.logs = []; + for (var i = 0; i < object.logs.length; ++i) { + if (typeof object.logs[i] !== "object") + throw TypeError(".vtctldata.Workflow.Stream.logs: object expected"); + message.logs[i] = $root.vtctldata.Workflow.Stream.Log.fromObject(object.logs[i]); + } + } + if (object.log_fetch_error != null) + message.log_fetch_error = String(object.log_fetch_error); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".vtctldata.Workflow.Stream.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + return message; + }; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream + * @static + * @param {vtctldata.Workflow.Stream} message Stream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Stream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.copy_states = []; + object.logs = []; + object.tags = []; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.shard = ""; + object.tablet = null; + object.binlog_source = null; + object.position = ""; + object.stop_position = ""; + object.state = ""; + object.db_name = ""; + object.transaction_timestamp = null; + object.time_updated = null; + object.message = ""; + object.log_fetch_error = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet != null && message.hasOwnProperty("tablet")) + object.tablet = $root.topodata.TabletAlias.toObject(message.tablet, options); + if (message.binlog_source != null && message.hasOwnProperty("binlog_source")) + object.binlog_source = $root.binlogdata.BinlogSource.toObject(message.binlog_source, options); + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.stop_position != null && message.hasOwnProperty("stop_position")) + object.stop_position = message.stop_position; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.db_name != null && message.hasOwnProperty("db_name")) + object.db_name = message.db_name; + if (message.transaction_timestamp != null && message.hasOwnProperty("transaction_timestamp")) + object.transaction_timestamp = $root.vttime.Time.toObject(message.transaction_timestamp, options); + if (message.time_updated != null && message.hasOwnProperty("time_updated")) + object.time_updated = $root.vttime.Time.toObject(message.time_updated, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.copy_states && message.copy_states.length) { + object.copy_states = []; + for (var j = 0; j < message.copy_states.length; ++j) + object.copy_states[j] = $root.vtctldata.Workflow.Stream.CopyState.toObject(message.copy_states[j], options); + } + if (message.logs && message.logs.length) { + object.logs = []; + for (var j = 0; j < message.logs.length; ++j) + object.logs[j] = $root.vtctldata.Workflow.Stream.Log.toObject(message.logs[j], options); + } + if (message.log_fetch_error != null && message.hasOwnProperty("log_fetch_error")) + object.log_fetch_error = message.log_fetch_error; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + return object; + }; + + /** + * Converts this Stream to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream + * @instance + * @returns {Object.} JSON object + */ + Stream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Stream.CopyState = (function() { + + /** + * Properties of a CopyState. + * @memberof vtctldata.Workflow.Stream + * @interface ICopyState + * @property {string|null} [table] CopyState table + * @property {string|null} [last_pk] CopyState last_pk + */ + + /** + * Constructs a new CopyState. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a CopyState. + * @implements ICopyState + * @constructor + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + */ + function CopyState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CopyState table. + * @member {string} table + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.table = ""; + + /** + * CopyState last_pk. + * @member {string} last_pk + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + */ + CopyState.prototype.last_pk = ""; + + /** + * Creates a new CopyState instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance + */ + CopyState.create = function create(properties) { + return new CopyState(properties); + }; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); + if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); + return writer; + }; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.table = reader.string(); + break; + case 2: + message.last_pk = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyState message. + * @function verify + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + if (!$util.isString(message.last_pk)) + return "last_pk: string expected"; + return null; + }; + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.CopyState} CopyState + */ + CopyState.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) + return object; + var message = new $root.vtctldata.Workflow.Stream.CopyState(); + if (object.table != null) + message.table = String(object.table); + if (object.last_pk != null) + message.last_pk = String(object.last_pk); + return message; + }; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.CopyState + * @static + * @param {vtctldata.Workflow.Stream.CopyState} message CopyState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.table = ""; + object.last_pk = ""; + } + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.last_pk != null && message.hasOwnProperty("last_pk")) + object.last_pk = message.last_pk; + return object; + }; + + /** + * Converts this CopyState to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.CopyState + * @instance + * @returns {Object.} JSON object + */ + CopyState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CopyState; + })(); + + Stream.Log = (function() { + + /** + * Properties of a Log. + * @memberof vtctldata.Workflow.Stream + * @interface ILog + * @property {number|Long|null} [id] Log id + * @property {number|Long|null} [stream_id] Log stream_id + * @property {string|null} [type] Log type + * @property {string|null} [state] Log state + * @property {vttime.ITime|null} [created_at] Log created_at + * @property {vttime.ITime|null} [updated_at] Log updated_at + * @property {string|null} [message] Log message + * @property {number|Long|null} [count] Log count + */ + + /** + * Constructs a new Log. + * @memberof vtctldata.Workflow.Stream + * @classdesc Represents a Log. + * @implements ILog + * @constructor + * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set + */ + function Log(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Log id. + * @member {number|Long} id + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Log stream_id. + * @member {number|Long} stream_id + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Log type. + * @member {string} type + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.type = ""; + + /** + * Log state. + * @member {string} state + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.state = ""; + + /** + * Log created_at. + * @member {vttime.ITime|null|undefined} created_at + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.created_at = null; + + /** + * Log updated_at. + * @member {vttime.ITime|null|undefined} updated_at + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.updated_at = null; + + /** + * Log message. + * @member {string} message + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.message = ""; + + /** + * Log count. + * @member {number|Long} count + * @memberof vtctldata.Workflow.Stream.Log + * @instance + */ + Log.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Log instance using the specified properties. + * @function create + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set + * @returns {vtctldata.Workflow.Stream.Log} Log instance + */ + Log.create = function create(properties) { + return new Log(properties); + }; + + /** + * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @function encode + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Log.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stream_id); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.state); + if (message.created_at != null && Object.hasOwnProperty.call(message, "created_at")) + $root.vttime.Time.encode(message.created_at, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updated_at != null && Object.hasOwnProperty.call(message, "updated_at")) + $root.vttime.Time.encode(message.updated_at, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.message); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.count); + return writer; + }; + + /** + * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Log.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Log message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Workflow.Stream.Log} Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Log.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.Log(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.int64(); + break; + case 2: + message.stream_id = reader.int64(); + break; + case 3: + message.type = reader.string(); + break; + case 4: + message.state = reader.string(); + break; + case 5: + message.created_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 6: + message.updated_at = $root.vttime.Time.decode(reader, reader.uint32()); + break; + case 7: + message.message = reader.string(); + break; + case 8: + message.count = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Log message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Workflow.Stream.Log} Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Log.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Log message. + * @function verify + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Log.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) + return "stream_id: integer|Long expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + if (!$util.isString(message.state)) + return "state: string expected"; + if (message.created_at != null && message.hasOwnProperty("created_at")) { + var error = $root.vttime.Time.verify(message.created_at); + if (error) + return "created_at." + error; + } + if (message.updated_at != null && message.hasOwnProperty("updated_at")) { + var error = $root.vttime.Time.verify(message.updated_at); + if (error) + return "updated_at." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) + return "count: integer|Long expected"; + return null; + }; + + /** + * Creates a Log message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Workflow.Stream.Log} Log + */ + Log.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Workflow.Stream.Log) + return object; + var message = new $root.vtctldata.Workflow.Stream.Log(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); + if (object.stream_id != null) + if ($util.Long) + (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; + else if (typeof object.stream_id === "string") + message.stream_id = parseInt(object.stream_id, 10); + else if (typeof object.stream_id === "number") + message.stream_id = object.stream_id; + else if (typeof object.stream_id === "object") + message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); + if (object.type != null) + message.type = String(object.type); + if (object.state != null) + message.state = String(object.state); + if (object.created_at != null) { + if (typeof object.created_at !== "object") + throw TypeError(".vtctldata.Workflow.Stream.Log.created_at: object expected"); + message.created_at = $root.vttime.Time.fromObject(object.created_at); + } + if (object.updated_at != null) { + if (typeof object.updated_at !== "object") + throw TypeError(".vtctldata.Workflow.Stream.Log.updated_at: object expected"); + message.updated_at = $root.vttime.Time.fromObject(object.updated_at); + } + if (object.message != null) + message.message = String(object.message); + if (object.count != null) + if ($util.Long) + (message.count = $util.Long.fromValue(object.count)).unsigned = false; + else if (typeof object.count === "string") + message.count = parseInt(object.count, 10); + else if (typeof object.count === "number") + message.count = object.count; + else if (typeof object.count === "object") + message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a Log message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Workflow.Stream.Log + * @static + * @param {vtctldata.Workflow.Stream.Log} message Log + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Log.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stream_id = options.longs === String ? "0" : 0; + object.type = ""; + object.state = ""; + object.created_at = null; + object.updated_at = null; + object.message = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (typeof message.stream_id === "number") + object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; + else + object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.created_at != null && message.hasOwnProperty("created_at")) + object.created_at = $root.vttime.Time.toObject(message.created_at, options); + if (message.updated_at != null && message.hasOwnProperty("updated_at")) + object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + return object; + }; + + /** + * Converts this Log to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.Log + * @instance + * @returns {Object.} JSON object + */ + Log.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Log; + })(); + + return Stream; + })(); + + return Workflow; + })(); + + vtctldata.AddCellInfoRequest = (function() { + + /** + * Properties of an AddCellInfoRequest. + * @memberof vtctldata + * @interface IAddCellInfoRequest + * @property {string|null} [name] AddCellInfoRequest name + * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info + */ + + /** + * Constructs a new AddCellInfoRequest. + * @memberof vtctldata + * @classdesc Represents an AddCellInfoRequest. + * @implements IAddCellInfoRequest + * @constructor + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + */ + function AddCellInfoRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AddCellInfoRequest name. + * @member {string} name + * @memberof vtctldata.AddCellInfoRequest + * @instance + */ + AddCellInfoRequest.prototype.name = ""; + + /** + * AddCellInfoRequest cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.AddCellInfoRequest + * @instance + */ + AddCellInfoRequest.prototype.cell_info = null; + + /** + * Creates a new AddCellInfoRequest instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance + */ + AddCellInfoRequest.create = function create(properties) { + return new AddCellInfoRequest(properties); + }; + + /** + * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddCellInfoRequest message. + * @function verify + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellInfoRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; + } + return null; + }; + + /** + * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + */ + AddCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoRequest) return object; - }; + var message = new $root.vtctldata.AddCellInfoRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + } + return message; + }; - /** - * Converts this Stream to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream - * @instance - * @returns {Object.} JSON object - */ - Stream.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellInfoRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.cell_info = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + return object; + }; - Stream.CopyState = (function() { + /** + * Converts this AddCellInfoRequest to JSON. + * @function toJSON + * @memberof vtctldata.AddCellInfoRequest + * @instance + * @returns {Object.} JSON object + */ + AddCellInfoRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a CopyState. - * @memberof vtctldata.Workflow.Stream - * @interface ICopyState - * @property {string|null} [table] CopyState table - * @property {string|null} [last_pk] CopyState last_pk - */ + return AddCellInfoRequest; + })(); - /** - * Constructs a new CopyState. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a CopyState. - * @implements ICopyState - * @constructor - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - */ - function CopyState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + vtctldata.AddCellInfoResponse = (function() { + + /** + * Properties of an AddCellInfoResponse. + * @memberof vtctldata + * @interface IAddCellInfoResponse + */ + + /** + * Constructs a new AddCellInfoResponse. + * @memberof vtctldata + * @classdesc Represents an AddCellInfoResponse. + * @implements IAddCellInfoResponse + * @constructor + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + */ + function AddCellInfoResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new AddCellInfoResponse instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance + */ + AddCellInfoResponse.create = function create(properties) { + return new AddCellInfoResponse(properties); + }; + + /** + * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * CopyState table. - * @member {string} table - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.table = ""; - - /** - * CopyState last_pk. - * @member {string} last_pk - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - */ - CopyState.prototype.last_pk = ""; - - /** - * Creates a new CopyState instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState instance - */ - CopyState.create = function create(properties) { - return new CopyState(properties); - }; + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.table); - if (message.last_pk != null && Object.hasOwnProperty.call(message, "last_pk")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.last_pk); - return writer; - }; + /** + * Verifies an AddCellInfoResponse message. + * @function verify + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellInfoResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.ICopyState} message CopyState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CopyState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + */ + AddCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoResponse) + return object; + return new $root.vtctldata.AddCellInfoResponse(); + }; - /** - * Decodes a CopyState message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.CopyState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.table = reader.string(); - break; - case 2: - message.last_pk = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellInfoResponse.toObject = function toObject() { + return {}; + }; - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CopyState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this AddCellInfoResponse to JSON. + * @function toJSON + * @memberof vtctldata.AddCellInfoResponse + * @instance + * @returns {Object.} JSON object + */ + AddCellInfoResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a CopyState message. - * @function verify - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CopyState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - if (!$util.isString(message.last_pk)) - return "last_pk: string expected"; - return null; - }; + return AddCellInfoResponse; + })(); - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.CopyState} CopyState - */ - CopyState.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.CopyState) - return object; - var message = new $root.vtctldata.Workflow.Stream.CopyState(); - if (object.table != null) - message.table = String(object.table); - if (object.last_pk != null) - message.last_pk = String(object.last_pk); - return message; - }; + vtctldata.AddCellsAliasRequest = (function() { - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.CopyState - * @static - * @param {vtctldata.Workflow.Stream.CopyState} message CopyState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CopyState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.table = ""; - object.last_pk = ""; - } - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.last_pk != null && message.hasOwnProperty("last_pk")) - object.last_pk = message.last_pk; - return object; - }; + /** + * Properties of an AddCellsAliasRequest. + * @memberof vtctldata + * @interface IAddCellsAliasRequest + * @property {string|null} [name] AddCellsAliasRequest name + * @property {Array.|null} [cells] AddCellsAliasRequest cells + */ - /** - * Converts this CopyState to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.CopyState - * @instance - * @returns {Object.} JSON object - */ - CopyState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new AddCellsAliasRequest. + * @memberof vtctldata + * @classdesc Represents an AddCellsAliasRequest. + * @implements IAddCellsAliasRequest + * @constructor + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + */ + function AddCellsAliasRequest(properties) { + this.cells = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return CopyState; - })(); + /** + * AddCellsAliasRequest name. + * @member {string} name + * @memberof vtctldata.AddCellsAliasRequest + * @instance + */ + AddCellsAliasRequest.prototype.name = ""; - Stream.Log = (function() { + /** + * AddCellsAliasRequest cells. + * @member {Array.} cells + * @memberof vtctldata.AddCellsAliasRequest + * @instance + */ + AddCellsAliasRequest.prototype.cells = $util.emptyArray; - /** - * Properties of a Log. - * @memberof vtctldata.Workflow.Stream - * @interface ILog - * @property {number|Long|null} [id] Log id - * @property {number|Long|null} [stream_id] Log stream_id - * @property {string|null} [type] Log type - * @property {string|null} [state] Log state - * @property {vttime.ITime|null} [created_at] Log created_at - * @property {vttime.ITime|null} [updated_at] Log updated_at - * @property {string|null} [message] Log message - * @property {number|Long|null} [count] Log count - */ + /** + * Creates a new AddCellsAliasRequest instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + */ + AddCellsAliasRequest.create = function create(properties) { + return new AddCellsAliasRequest(properties); + }; - /** - * Constructs a new Log. - * @memberof vtctldata.Workflow.Stream - * @classdesc Represents a Log. - * @implements ILog - * @constructor - * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set - */ - function Log(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + return writer; + }; - /** - * Log id. - * @member {number|Long} id - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Log stream_id. - * @member {number|Long} stream_id - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.stream_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Log type. - * @member {string} type - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.type = ""; + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Log state. - * @member {string} state - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.state = ""; + /** + * Verifies an AddCellsAliasRequest message. + * @function verify + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellsAliasRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + return null; + }; - /** - * Log created_at. - * @member {vttime.ITime|null|undefined} created_at - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.created_at = null; + /** + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + */ + AddCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasRequest) + return object; + var message = new $root.vtctldata.AddCellsAliasRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + return message; + }; - /** - * Log updated_at. - * @member {vttime.ITime|null|undefined} updated_at - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.updated_at = null; + /** + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellsAliasRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + return object; + }; - /** - * Log message. - * @member {string} message - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.message = ""; + /** + * Converts this AddCellsAliasRequest to JSON. + * @function toJSON + * @memberof vtctldata.AddCellsAliasRequest + * @instance + * @returns {Object.} JSON object + */ + AddCellsAliasRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Log count. - * @member {number|Long} count - * @memberof vtctldata.Workflow.Stream.Log - * @instance - */ - Log.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return AddCellsAliasRequest; + })(); - /** - * Creates a new Log instance using the specified properties. - * @function create - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog=} [properties] Properties to set - * @returns {vtctldata.Workflow.Stream.Log} Log instance - */ - Log.create = function create(properties) { - return new Log(properties); - }; + vtctldata.AddCellsAliasResponse = (function() { - /** - * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @function encode - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Log.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.stream_id != null && Object.hasOwnProperty.call(message, "stream_id")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stream_id); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.state); - if (message.created_at != null && Object.hasOwnProperty.call(message, "created_at")) - $root.vttime.Time.encode(message.created_at, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updated_at != null && Object.hasOwnProperty.call(message, "updated_at")) - $root.vttime.Time.encode(message.updated_at, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.message); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.count); - return writer; - }; + /** + * Properties of an AddCellsAliasResponse. + * @memberof vtctldata + * @interface IAddCellsAliasResponse + */ - /** - * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.ILog} message Log message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Log.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new AddCellsAliasResponse. + * @memberof vtctldata + * @classdesc Represents an AddCellsAliasResponse. + * @implements IAddCellsAliasResponse + * @constructor + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + */ + function AddCellsAliasResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Log message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Workflow.Stream.Log} Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Log.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Workflow.Stream.Log(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.int64(); - break; - case 2: - message.stream_id = reader.int64(); - break; - case 3: - message.type = reader.string(); - break; - case 4: - message.state = reader.string(); - break; - case 5: - message.created_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 6: - message.updated_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - case 7: - message.message = reader.string(); - break; - case 8: - message.count = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new AddCellsAliasResponse instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + */ + AddCellsAliasResponse.create = function create(properties) { + return new AddCellsAliasResponse(properties); + }; - /** - * Decodes a Log message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Workflow.Stream.Log} Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Log.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Verifies a Log message. - * @function verify - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Log.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (!$util.isInteger(message.stream_id) && !(message.stream_id && $util.isInteger(message.stream_id.low) && $util.isInteger(message.stream_id.high))) - return "stream_id: integer|Long expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (!$util.isString(message.state)) - return "state: string expected"; - if (message.created_at != null && message.hasOwnProperty("created_at")) { - var error = $root.vttime.Time.verify(message.created_at); - if (error) - return "created_at." + error; - } - if (message.updated_at != null && message.hasOwnProperty("updated_at")) { - var error = $root.vttime.Time.verify(message.updated_at); - if (error) - return "updated_at." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high))) - return "count: integer|Long expected"; - return null; - }; + /** + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a Log message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Workflow.Stream.Log} Log - */ - Log.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Workflow.Stream.Log) - return object; - var message = new $root.vtctldata.Workflow.Stream.Log(); - if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") - message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.stream_id != null) - if ($util.Long) - (message.stream_id = $util.Long.fromValue(object.stream_id)).unsigned = false; - else if (typeof object.stream_id === "string") - message.stream_id = parseInt(object.stream_id, 10); - else if (typeof object.stream_id === "number") - message.stream_id = object.stream_id; - else if (typeof object.stream_id === "object") - message.stream_id = new $util.LongBits(object.stream_id.low >>> 0, object.stream_id.high >>> 0).toNumber(); - if (object.type != null) - message.type = String(object.type); - if (object.state != null) - message.state = String(object.state); - if (object.created_at != null) { - if (typeof object.created_at !== "object") - throw TypeError(".vtctldata.Workflow.Stream.Log.created_at: object expected"); - message.created_at = $root.vttime.Time.fromObject(object.created_at); - } - if (object.updated_at != null) { - if (typeof object.updated_at !== "object") - throw TypeError(".vtctldata.Workflow.Stream.Log.updated_at: object expected"); - message.updated_at = $root.vttime.Time.fromObject(object.updated_at); - } - if (object.message != null) - message.message = String(object.message); - if (object.count != null) - if ($util.Long) - (message.count = $util.Long.fromValue(object.count)).unsigned = false; - else if (typeof object.count === "string") - message.count = parseInt(object.count, 10); - else if (typeof object.count === "number") - message.count = object.count; - else if (typeof object.count === "object") - message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber(); - return message; - }; + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Log message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.Workflow.Stream.Log - * @static - * @param {vtctldata.Workflow.Stream.Log} message Log - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Log.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stream_id = options.longs === String ? "0" : 0; - object.type = ""; - object.state = ""; - object.created_at = null; - object.updated_at = null; - object.message = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (typeof message.stream_id === "number") - object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; - else - object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.created_at != null && message.hasOwnProperty("created_at")) - object.created_at = $root.vttime.Time.toObject(message.created_at, options); - if (message.updated_at != null && message.hasOwnProperty("updated_at")) - object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - return object; - }; + /** + * Verifies an AddCellsAliasResponse message. + * @function verify + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellsAliasResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Converts this Log to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.Log - * @instance - * @returns {Object.} JSON object - */ - Log.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + */ + AddCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasResponse) + return object; + return new $root.vtctldata.AddCellsAliasResponse(); + }; - return Log; - })(); + /** + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellsAliasResponse + * @static + * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellsAliasResponse.toObject = function toObject() { + return {}; + }; - return Stream; - })(); + /** + * Converts this AddCellsAliasResponse to JSON. + * @function toJSON + * @memberof vtctldata.AddCellsAliasResponse + * @instance + * @returns {Object.} JSON object + */ + AddCellsAliasResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Workflow; + return AddCellsAliasResponse; })(); - vtctldata.AddCellInfoRequest = (function() { + vtctldata.ApplyRoutingRulesRequest = (function() { /** - * Properties of an AddCellInfoRequest. + * Properties of an ApplyRoutingRulesRequest. * @memberof vtctldata - * @interface IAddCellInfoRequest - * @property {string|null} [name] AddCellInfoRequest name - * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info + * @interface IApplyRoutingRulesRequest + * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules + * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells */ /** - * Constructs a new AddCellInfoRequest. + * Constructs a new ApplyRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an AddCellInfoRequest. - * @implements IAddCellInfoRequest + * @classdesc Represents an ApplyRoutingRulesRequest. + * @implements IApplyRoutingRulesRequest * @constructor - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set */ - function AddCellInfoRequest(properties) { + function ApplyRoutingRulesRequest(properties) { + this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82503,88 +88640,104 @@ $root.vtctldata = (function() { } /** - * AddCellInfoRequest name. - * @member {string} name - * @memberof vtctldata.AddCellInfoRequest + * ApplyRoutingRulesRequest routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - AddCellInfoRequest.prototype.name = ""; + ApplyRoutingRulesRequest.prototype.routing_rules = null; /** - * AddCellInfoRequest cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.AddCellInfoRequest + * ApplyRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyRoutingRulesRequest + * @instance + */ + ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + + /** + * ApplyRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - AddCellInfoRequest.prototype.cell_info = null; + ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; /** - * Creates a new AddCellInfoRequest instance using the specified properties. + * Creates a new ApplyRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance */ - AddCellInfoRequest.create = function create(properties) { - return new AddCellInfoRequest(properties); + ApplyRoutingRulesRequest.create = function create(properties) { + return new ApplyRoutingRulesRequest(properties); }; /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encode = function encode(message, writer) { + ApplyRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) - $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.rebuild_cells != null && message.rebuild_cells.length) + for (var i = 0; i < message.rebuild_cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); return writer; }; /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoRequest.decode = function decode(reader, length) { + ApplyRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); break; case 2: - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + message.skip_rebuild = reader.bool(); + break; + case 3: + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -82595,120 +88748,141 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoRequest message. + * Verifies an ApplyRoutingRulesRequest message. * @function verify - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellInfoRequest.verify = function verify(message) { + ApplyRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); if (error) - return "cell_info." + error; + return "routing_rules." + error; + } + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { + if (!Array.isArray(message.rebuild_cells)) + return "rebuild_cells: array expected"; + for (var i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; } return null; }; /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest */ - AddCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoRequest) + ApplyRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) return object; - var message = new $root.vtctldata.AddCellInfoRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + var message = new $root.vtctldata.ApplyRoutingRulesRequest(); + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + } + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.rebuild_cells) { + if (!Array.isArray(object.rebuild_cells)) + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (var i = 0; i < object.rebuild_cells.length; ++i) + message.rebuild_cells[i] = String(object.rebuild_cells[i]); } return message; }; /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest + * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoRequest.toObject = function toObject(message, options) { + ApplyRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.rebuild_cells = []; if (options.defaults) { - object.name = ""; - object.cell_info = null; + object.routing_rules = null; + object.skip_rebuild = false; + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (var j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); return object; }; /** - * Converts this AddCellInfoRequest to JSON. + * Converts this ApplyRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - AddCellInfoRequest.prototype.toJSON = function toJSON() { + ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellInfoRequest; + return ApplyRoutingRulesRequest; })(); - vtctldata.AddCellInfoResponse = (function() { + vtctldata.ApplyRoutingRulesResponse = (function() { /** - * Properties of an AddCellInfoResponse. + * Properties of an ApplyRoutingRulesResponse. * @memberof vtctldata - * @interface IAddCellInfoResponse + * @interface IApplyRoutingRulesResponse */ /** - * Constructs a new AddCellInfoResponse. + * Constructs a new ApplyRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an AddCellInfoResponse. - * @implements IAddCellInfoResponse + * @classdesc Represents an ApplyRoutingRulesResponse. + * @implements IApplyRoutingRulesResponse * @constructor - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set */ - function AddCellInfoResponse(properties) { + function ApplyRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82716,60 +88890,60 @@ $root.vtctldata = (function() { } /** - * Creates a new AddCellInfoResponse instance using the specified properties. + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance */ - AddCellInfoResponse.create = function create(properties) { - return new AddCellInfoResponse(properties); + ApplyRoutingRulesResponse.create = function create(properties) { + return new ApplyRoutingRulesResponse(properties); }; /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encode = function encode(message, writer) { + ApplyRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoResponse.decode = function decode(reader, length) { + ApplyRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -82782,96 +88956,97 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoResponse message. + * Verifies an ApplyRoutingRulesResponse message. * @function verify - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellInfoResponse.verify = function verify(message) { + ApplyRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse */ - AddCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoResponse) + ApplyRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) return object; - return new $root.vtctldata.AddCellInfoResponse(); + return new $root.vtctldata.ApplyRoutingRulesResponse(); }; /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse + * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoResponse.toObject = function toObject() { + ApplyRoutingRulesResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddCellInfoResponse to JSON. + * Converts this ApplyRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - AddCellInfoResponse.prototype.toJSON = function toJSON() { + ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellInfoResponse; + return ApplyRoutingRulesResponse; })(); - vtctldata.AddCellsAliasRequest = (function() { + vtctldata.ApplyShardRoutingRulesRequest = (function() { /** - * Properties of an AddCellsAliasRequest. + * Properties of an ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @interface IAddCellsAliasRequest - * @property {string|null} [name] AddCellsAliasRequest name - * @property {Array.|null} [cells] AddCellsAliasRequest cells + * @interface IApplyShardRoutingRulesRequest + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules + * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells */ /** - * Constructs a new AddCellsAliasRequest. + * Constructs a new ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasRequest. - * @implements IAddCellsAliasRequest + * @classdesc Represents an ApplyShardRoutingRulesRequest. + * @implements IApplyShardRoutingRulesRequest * @constructor - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set */ - function AddCellsAliasRequest(properties) { - this.cells = []; + function ApplyShardRoutingRulesRequest(properties) { + this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82879,91 +89054,104 @@ $root.vtctldata = (function() { } /** - * AddCellsAliasRequest name. - * @member {string} name - * @memberof vtctldata.AddCellsAliasRequest + * ApplyShardRoutingRulesRequest shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - AddCellsAliasRequest.prototype.name = ""; + ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; /** - * AddCellsAliasRequest cells. - * @member {Array.} cells - * @memberof vtctldata.AddCellsAliasRequest + * ApplyShardRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - AddCellsAliasRequest.prototype.cells = $util.emptyArray; + ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; /** - * Creates a new AddCellsAliasRequest instance using the specified properties. + * ApplyShardRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @instance + */ + ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + + /** + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance */ - AddCellsAliasRequest.create = function create(properties) { - return new AddCellsAliasRequest(properties); + ApplyShardRoutingRulesRequest.create = function create(properties) { + return new ApplyShardRoutingRulesRequest(properties); }; /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encode = function encode(message, writer) { + ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) + $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.rebuild_cells != null && message.rebuild_cells.length) + for (var i = 0; i < message.rebuild_cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); return writer; }; /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decode = function decode(reader, length) { + ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); break; case 2: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.skip_rebuild = reader.bool(); + break; + case 3: + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -82974,127 +89162,141 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasRequest message. + * Verifies an ApplyShardRoutingRulesRequest message. * @function verify - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasRequest.verify = function verify(message) { + ApplyShardRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; + } + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { + if (!Array.isArray(message.rebuild_cells)) + return "rebuild_cells: array expected"; + for (var i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; } return null; }; /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest */ - AddCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasRequest) + ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) return object; - var message = new $root.vtctldata.AddCellsAliasRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + } + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.rebuild_cells) { + if (!Array.isArray(object.rebuild_cells)) + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (var i = 0; i < object.rebuild_cells.length; ++i) + message.rebuild_cells[i] = String(object.rebuild_cells[i]); } return message; }; /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasRequest.toObject = function toObject(message, options) { + ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.cells = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.rebuild_cells = []; + if (options.defaults) { + object.shard_routing_rules = null; + object.skip_rebuild = false; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (var j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; } return object; }; /** - * Converts this AddCellsAliasRequest to JSON. + * Converts this ApplyShardRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - AddCellsAliasRequest.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasRequest; + return ApplyShardRoutingRulesRequest; })(); - vtctldata.AddCellsAliasResponse = (function() { + vtctldata.ApplyShardRoutingRulesResponse = (function() { /** - * Properties of an AddCellsAliasResponse. + * Properties of an ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @interface IAddCellsAliasResponse + * @interface IApplyShardRoutingRulesResponse */ /** - * Constructs a new AddCellsAliasResponse. + * Constructs a new ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasResponse. - * @implements IAddCellsAliasResponse + * @classdesc Represents an ApplyShardRoutingRulesResponse. + * @implements IApplyShardRoutingRulesResponse * @constructor - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set */ - function AddCellsAliasResponse(properties) { + function ApplyShardRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83102,60 +89304,60 @@ $root.vtctldata = (function() { } /** - * Creates a new AddCellsAliasResponse instance using the specified properties. + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance */ - AddCellsAliasResponse.create = function create(properties) { - return new AddCellsAliasResponse(properties); + ApplyShardRoutingRulesResponse.create = function create(properties) { + return new ApplyShardRoutingRulesResponse(properties); }; /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encode = function encode(message, writer) { + ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decode = function decode(reader, length) { + ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83168,97 +89370,104 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasResponse message. + * Verifies an ApplyShardRoutingRulesResponse message. * @function verify - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasResponse.verify = function verify(message) { + ApplyShardRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse */ - AddCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasResponse) + ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) return object; - return new $root.vtctldata.AddCellsAliasResponse(); + return new $root.vtctldata.ApplyShardRoutingRulesResponse(); }; /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasResponse.toObject = function toObject() { + ApplyShardRoutingRulesResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddCellsAliasResponse to JSON. + * Converts this ApplyShardRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - AddCellsAliasResponse.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasResponse; + return ApplyShardRoutingRulesResponse; })(); - vtctldata.ApplyRoutingRulesRequest = (function() { + vtctldata.ApplySchemaRequest = (function() { /** - * Properties of an ApplyRoutingRulesRequest. + * Properties of an ApplySchemaRequest. * @memberof vtctldata - * @interface IApplyRoutingRulesRequest - * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules - * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells + * @interface IApplySchemaRequest + * @property {string|null} [keyspace] ApplySchemaRequest keyspace + * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability + * @property {Array.|null} [sql] ApplySchemaRequest sql + * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy + * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list + * @property {string|null} [migration_context] ApplySchemaRequest migration_context + * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout + * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight + * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id */ /** - * Constructs a new ApplyRoutingRulesRequest. + * Constructs a new ApplySchemaRequest. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesRequest. - * @implements IApplyRoutingRulesRequest + * @classdesc Represents an ApplySchemaRequest. + * @implements IApplySchemaRequest * @constructor - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set */ - function ApplyRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function ApplySchemaRequest(properties) { + this.sql = []; + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83266,104 +89475,185 @@ $root.vtctldata = (function() { } /** - * ApplyRoutingRulesRequest routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vtctldata.ApplyRoutingRulesRequest + * ApplySchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyRoutingRulesRequest.prototype.routing_rules = null; + ApplySchemaRequest.prototype.keyspace = ""; /** - * ApplyRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyRoutingRulesRequest + * ApplySchemaRequest allow_long_unavailability. + * @member {boolean} allow_long_unavailability + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + ApplySchemaRequest.prototype.allow_long_unavailability = false; /** - * ApplyRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyRoutingRulesRequest + * ApplySchemaRequest sql. + * @member {Array.} sql + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + ApplySchemaRequest.prototype.sql = $util.emptyArray; /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * ApplySchemaRequest ddl_strategy. + * @member {string} ddl_strategy + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.ddl_strategy = ""; + + /** + * ApplySchemaRequest uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; + + /** + * ApplySchemaRequest migration_context. + * @member {string} migration_context + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.migration_context = ""; + + /** + * ApplySchemaRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.wait_replicas_timeout = null; + + /** + * ApplySchemaRequest skip_preflight. + * @member {boolean} skip_preflight + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.skip_preflight = false; + + /** + * ApplySchemaRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.caller_id = null; + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance */ - ApplyRoutingRulesRequest.create = function create(properties) { - return new ApplyRoutingRulesRequest(properties); + ApplySchemaRequest.create = function create(properties) { + return new ApplySchemaRequest(properties); }; /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encode = function encode(message, writer) { + ApplySchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.rebuild_cells != null && message.rebuild_cells.length) - for (var i = 0; i < message.rebuild_cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); + if (message.sql != null && message.sql.length) + for (var i = 0; i < message.sql.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); + if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); + if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * Decodes an ApplySchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decode = function decode(reader, length) { + ApplySchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.skip_rebuild = reader.bool(); + message.allow_long_unavailability = reader.bool(); break; case 3: - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + if (!(message.sql && message.sql.length)) + message.sql = []; + message.sql.push(reader.string()); + break; + case 4: + message.ddl_strategy = reader.string(); + break; + case 5: + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); + break; + case 6: + message.migration_context = reader.string(); + break; + case 7: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + case 8: + message.skip_preflight = reader.bool(); + break; + case 9: + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -83374,141 +89664,209 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesRequest message. + * Verifies an ApplySchemaRequest message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesRequest.verify = function verify(message) { + ApplySchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + if (typeof message.allow_long_unavailability !== "boolean") + return "allow_long_unavailability: boolean expected"; + if (message.sql != null && message.hasOwnProperty("sql")) { + if (!Array.isArray(message.sql)) + return "sql: array expected"; + for (var i = 0; i < message.sql.length; ++i) + if (!$util.isString(message.sql[i])) + return "sql: string[] expected"; + } + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + if (!$util.isString(message.ddl_strategy)) + return "ddl_strategy: string expected"; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + if (!$util.isString(message.migration_context)) + return "migration_context: string expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); if (error) - return "routing_rules." + error; + return "wait_replicas_timeout." + error; } - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { - if (!Array.isArray(message.rebuild_cells)) - return "rebuild_cells: array expected"; - for (var i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + if (typeof message.skip_preflight !== "boolean") + return "skip_preflight: boolean expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; } return null; }; /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest */ - ApplyRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) + ApplySchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaRequest) return object; - var message = new $root.vtctldata.ApplyRoutingRulesRequest(); - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + var message = new $root.vtctldata.ApplySchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.allow_long_unavailability != null) + message.allow_long_unavailability = Boolean(object.allow_long_unavailability); + if (object.sql) { + if (!Array.isArray(object.sql)) + throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); + message.sql = []; + for (var i = 0; i < object.sql.length; ++i) + message.sql[i] = String(object.sql[i]); } - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.rebuild_cells) { - if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (var i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + if (object.ddl_strategy != null) + message.ddl_strategy = String(object.ddl_strategy); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + if (object.migration_context != null) + message.migration_context = String(object.migration_context); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } + if (object.skip_preflight != null) + message.skip_preflight = Boolean(object.skip_preflight); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest + * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesRequest.toObject = function toObject(message, options) { + ApplySchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rebuild_cells = []; + if (options.arrays || options.defaults) { + object.sql = []; + object.uuid_list = []; + } if (options.defaults) { - object.routing_rules = null; - object.skip_rebuild = false; + object.keyspace = ""; + object.allow_long_unavailability = false; + object.ddl_strategy = ""; + object.migration_context = ""; + object.wait_replicas_timeout = null; + object.skip_preflight = false; + object.caller_id = null; } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.rebuild_cells && message.rebuild_cells.length) { - object.rebuild_cells = []; - for (var j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + object.allow_long_unavailability = message.allow_long_unavailability; + if (message.sql && message.sql.length) { + object.sql = []; + for (var j = 0; j < message.sql.length; ++j) + object.sql[j] = message.sql[j]; + } + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + object.ddl_strategy = message.ddl_strategy; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; } + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + object.migration_context = message.migration_context; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + object.skip_preflight = message.skip_preflight; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ApplyRoutingRulesRequest to JSON. + * Converts this ApplySchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { + ApplySchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesRequest; + return ApplySchemaRequest; })(); - vtctldata.ApplyRoutingRulesResponse = (function() { + vtctldata.ApplySchemaResponse = (function() { /** - * Properties of an ApplyRoutingRulesResponse. + * Properties of an ApplySchemaResponse. * @memberof vtctldata - * @interface IApplyRoutingRulesResponse + * @interface IApplySchemaResponse + * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list */ /** - * Constructs a new ApplyRoutingRulesResponse. + * Constructs a new ApplySchemaResponse. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesResponse. - * @implements IApplyRoutingRulesResponse + * @classdesc Represents an ApplySchemaResponse. + * @implements IApplySchemaResponse * @constructor - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set */ - function ApplyRoutingRulesResponse(properties) { + function ApplySchemaResponse(properties) { + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83516,63 +89874,79 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * ApplySchemaResponse uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaResponse + * @instance + */ + ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance */ - ApplyRoutingRulesResponse.create = function create(properties) { - return new ApplyRoutingRulesResponse(properties); + ApplySchemaResponse.create = function create(properties) { + return new ApplySchemaResponse(properties); }; /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encode = function encode(message, writer) { + ApplySchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); return writer; }; /** - * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * Decodes an ApplySchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decode = function decode(reader, length) { + ApplySchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -83582,97 +89956,125 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesResponse message. + * Verifies an ApplySchemaResponse message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesResponse.verify = function verify(message) { + ApplySchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } return null; }; /** - * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse */ - ApplyRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) + ApplySchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaResponse) return object; - return new $root.vtctldata.ApplyRoutingRulesResponse(); + var message = new $root.vtctldata.ApplySchemaResponse(); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + return message; }; /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse + * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesResponse.toObject = function toObject() { - return {}; + ApplySchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uuid_list = []; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; + } + return object; }; /** - * Converts this ApplyRoutingRulesResponse to JSON. + * Converts this ApplySchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { + ApplySchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesResponse; + return ApplySchemaResponse; })(); - vtctldata.ApplyShardRoutingRulesRequest = (function() { + vtctldata.ApplyVSchemaRequest = (function() { /** - * Properties of an ApplyShardRoutingRulesRequest. + * Properties of an ApplyVSchemaRequest. * @memberof vtctldata - * @interface IApplyShardRoutingRulesRequest - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules - * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells + * @interface IApplyVSchemaRequest + * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace + * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild + * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run + * @property {Array.|null} [cells] ApplyVSchemaRequest cells + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema + * @property {string|null} [sql] ApplyVSchemaRequest sql */ /** - * Constructs a new ApplyShardRoutingRulesRequest. + * Constructs a new ApplyVSchemaRequest. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesRequest. - * @implements IApplyShardRoutingRulesRequest + * @classdesc Represents an ApplyVSchemaRequest. + * @implements IApplyVSchemaRequest * @constructor - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set */ - function ApplyShardRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function ApplyVSchemaRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83680,104 +90082,143 @@ $root.vtctldata = (function() { } /** - * ApplyShardRoutingRulesRequest shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplyVSchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; + ApplyVSchemaRequest.prototype.keyspace = ""; /** - * ApplyShardRoutingRulesRequest skip_rebuild. + * ApplyVSchemaRequest skip_rebuild. * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; + ApplyVSchemaRequest.prototype.skip_rebuild = false; /** - * ApplyShardRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplyVSchemaRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + ApplyVSchemaRequest.prototype.dry_run = false; /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * ApplyVSchemaRequest cells. + * @member {Array.} cells + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + + /** + * ApplyVSchemaRequest v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.v_schema = null; + + /** + * ApplyVSchemaRequest sql. + * @member {string} sql + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.sql = ""; + + /** + * Creates a new ApplyVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance */ - ApplyShardRoutingRulesRequest.create = function create(properties) { - return new ApplyShardRoutingRulesRequest(properties); + ApplyVSchemaRequest.create = function create(properties) { + return new ApplyVSchemaRequest(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { + ApplyVSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) - $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.rebuild_cells != null && message.rebuild_cells.length) - for (var i = 0; i < message.rebuild_cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { + ApplyVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: message.skip_rebuild = reader.bool(); break; case 3: - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + message.dry_run = reader.bool(); + break; + case 4: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + case 5: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + case 6: + message.sql = reader.string(); break; default: reader.skipType(tag & 7); @@ -83788,141 +90229,166 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesRequest message. + * Verifies an ApplyVSchemaRequest message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesRequest.verify = function verify(message) { + ApplyVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) if (typeof message.skip_rebuild !== "boolean") return "skip_rebuild: boolean expected"; - if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { - if (!Array.isArray(message.rebuild_cells)) - return "rebuild_cells: array expected"; - for (var i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; return null; }; /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest */ - ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) + ApplyVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaRequest) return object; - var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); - } + var message = new $root.vtctldata.ApplyVSchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); if (object.skip_rebuild != null) message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.rebuild_cells) { - if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (var i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); + } + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } + if (object.sql != null) + message.sql = String(object.sql); return message; }; /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest + * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { + ApplyVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.rebuild_cells = []; + object.cells = []; if (options.defaults) { - object.shard_routing_rules = null; + object.keyspace = ""; object.skip_rebuild = false; + object.dry_run = false; + object.v_schema = null; + object.sql = ""; } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) object.skip_rebuild = message.skip_rebuild; - if (message.rebuild_cells && message.rebuild_cells.length) { - object.rebuild_cells = []; - for (var j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; return object; }; /** - * Converts this ApplyShardRoutingRulesRequest to JSON. + * Converts this ApplyVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyVSchemaRequest * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { + ApplyVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyShardRoutingRulesRequest; + return ApplyVSchemaRequest; })(); - vtctldata.ApplyShardRoutingRulesResponse = (function() { + vtctldata.ApplyVSchemaResponse = (function() { /** - * Properties of an ApplyShardRoutingRulesResponse. + * Properties of an ApplyVSchemaResponse. * @memberof vtctldata - * @interface IApplyShardRoutingRulesResponse + * @interface IApplyVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema */ /** - * Constructs a new ApplyShardRoutingRulesResponse. + * Constructs a new ApplyVSchemaResponse. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesResponse. - * @implements IApplyShardRoutingRulesResponse + * @classdesc Represents an ApplyVSchemaResponse. + * @implements IApplyVSchemaResponse * @constructor - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set */ - function ApplyShardRoutingRulesResponse(properties) { + function ApplyVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83930,63 +90396,76 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * ApplyVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaResponse + * @instance + */ + ApplyVSchemaResponse.prototype.v_schema = null; + + /** + * Creates a new ApplyVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance */ - ApplyShardRoutingRulesResponse.create = function create(properties) { - return new ApplyShardRoutingRulesResponse(properties); + ApplyVSchemaResponse.create = function create(properties) { + return new ApplyVSchemaResponse(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { + ApplyVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { + ApplyVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -83996,503 +90475,366 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesResponse message. + * Verifies an ApplyVSchemaResponse message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesResponse.verify = function verify(message) { + ApplyVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; + } return null; }; /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse */ - ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) + ApplyVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaResponse) return object; - return new $root.vtctldata.ApplyShardRoutingRulesResponse(); - }; - - /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse - * @static - * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ApplyShardRoutingRulesResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ApplyShardRoutingRulesResponse to JSON. - * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesResponse - * @instance - * @returns {Object.} JSON object - */ - ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ApplyShardRoutingRulesResponse; - })(); - - vtctldata.ApplySchemaRequest = (function() { - - /** - * Properties of an ApplySchemaRequest. - * @memberof vtctldata - * @interface IApplySchemaRequest - * @property {string|null} [keyspace] ApplySchemaRequest keyspace - * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability - * @property {Array.|null} [sql] ApplySchemaRequest sql - * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy - * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list - * @property {string|null} [migration_context] ApplySchemaRequest migration_context - * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout - * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight - * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id - */ - - /** - * Constructs a new ApplySchemaRequest. - * @memberof vtctldata - * @classdesc Represents an ApplySchemaRequest. - * @implements IApplySchemaRequest - * @constructor - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set - */ - function ApplySchemaRequest(properties) { - this.sql = []; - this.uuid_list = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ApplySchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.keyspace = ""; - - /** - * ApplySchemaRequest allow_long_unavailability. - * @member {boolean} allow_long_unavailability - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.allow_long_unavailability = false; + var message = new $root.vtctldata.ApplyVSchemaResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } + return message; + }; /** - * ApplySchemaRequest sql. - * @member {Array.} sql - * @memberof vtctldata.ApplySchemaRequest - * @instance + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ApplyVSchemaResponse + * @static + * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ApplySchemaRequest.prototype.sql = $util.emptyArray; + ApplyVSchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + return object; + }; /** - * ApplySchemaRequest ddl_strategy. - * @member {string} ddl_strategy - * @memberof vtctldata.ApplySchemaRequest + * Converts this ApplyVSchemaResponse to JSON. + * @function toJSON + * @memberof vtctldata.ApplyVSchemaResponse * @instance + * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.ddl_strategy = ""; + ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ApplyVSchemaResponse; + })(); + + vtctldata.BackupRequest = (function() { /** - * ApplySchemaRequest uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaRequest - * @instance + * Properties of a BackupRequest. + * @memberof vtctldata + * @interface IBackupRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias + * @property {boolean|null} [allow_primary] BackupRequest allow_primary + * @property {number|Long|null} [concurrency] BackupRequest concurrency */ - ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; /** - * ApplySchemaRequest migration_context. - * @member {string} migration_context - * @memberof vtctldata.ApplySchemaRequest - * @instance + * Constructs a new BackupRequest. + * @memberof vtctldata + * @classdesc Represents a BackupRequest. + * @implements IBackupRequest + * @constructor + * @param {vtctldata.IBackupRequest=} [properties] Properties to set */ - ApplySchemaRequest.prototype.migration_context = ""; + function BackupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ApplySchemaRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.ApplySchemaRequest + * BackupRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupRequest * @instance */ - ApplySchemaRequest.prototype.wait_replicas_timeout = null; + BackupRequest.prototype.tablet_alias = null; /** - * ApplySchemaRequest skip_preflight. - * @member {boolean} skip_preflight - * @memberof vtctldata.ApplySchemaRequest + * BackupRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.BackupRequest * @instance */ - ApplySchemaRequest.prototype.skip_preflight = false; + BackupRequest.prototype.allow_primary = false; /** - * ApplySchemaRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.ApplySchemaRequest + * BackupRequest concurrency. + * @member {number|Long} concurrency + * @memberof vtctldata.BackupRequest * @instance */ - ApplySchemaRequest.prototype.caller_id = null; + BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new BackupRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance + * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @returns {vtctldata.BackupRequest} BackupRequest instance */ - ApplySchemaRequest.create = function create(properties) { - return new ApplySchemaRequest(properties); + BackupRequest.create = function create(properties) { + return new BackupRequest(properties); }; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encode = function encode(message, writer) { + BackupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); - if (message.sql != null && message.sql.length) - for (var i = 0; i < message.sql.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); - if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); - if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); return writer; }; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * Decodes a BackupRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaRequest.decode = function decode(reader, length) { + BackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - message.allow_long_unavailability = reader.bool(); + message.allow_primary = reader.bool(); break; case 3: - if (!(message.sql && message.sql.length)) - message.sql = []; - message.sql.push(reader.string()); - break; - case 4: - message.ddl_strategy = reader.string(); - break; - case 5: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); - break; - case 6: - message.migration_context = reader.string(); - break; - case 7: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - case 8: - message.skip_preflight = reader.bool(); - break; - case 9: - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.concurrency = reader.uint64(); break; default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.ApplySchemaRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ApplySchemaRequest message. - * @function verify - * @memberof vtctldata.ApplySchemaRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ApplySchemaRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - if (typeof message.allow_long_unavailability !== "boolean") - return "allow_long_unavailability: boolean expected"; - if (message.sql != null && message.hasOwnProperty("sql")) { - if (!Array.isArray(message.sql)) - return "sql: array expected"; - for (var i = 0; i < message.sql.length; ++i) - if (!$util.isString(message.sql[i])) - return "sql: string[] expected"; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - if (!$util.isString(message.ddl_strategy)) - return "ddl_strategy: string expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; - } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - if (!$util.isString(message.migration_context)) - return "migration_context: string expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; - } - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - if (typeof message.skip_preflight !== "boolean") - return "skip_preflight: boolean expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.caller_id); + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.BackupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.BackupRequest} BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackupRequest message. + * @function verify + * @memberof vtctldata.BackupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "caller_id." + error; + return "tablet_alias." + error; } + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) + return "concurrency: integer|Long expected"; return null; }; /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.BackupRequest} BackupRequest */ - ApplySchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaRequest) + BackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupRequest) return object; - var message = new $root.vtctldata.ApplySchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.allow_long_unavailability != null) - message.allow_long_unavailability = Boolean(object.allow_long_unavailability); - if (object.sql) { - if (!Array.isArray(object.sql)) - throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); - message.sql = []; - for (var i = 0; i < object.sql.length; ++i) - message.sql[i] = String(object.sql[i]); - } - if (object.ddl_strategy != null) - message.ddl_strategy = String(object.ddl_strategy); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); - } - if (object.migration_context != null) - message.migration_context = String(object.migration_context); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); - } - if (object.skip_preflight != null) - message.skip_preflight = Boolean(object.skip_preflight); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + var message = new $root.vtctldata.BackupRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.concurrency != null) + if ($util.Long) + (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; + else if (typeof object.concurrency === "string") + message.concurrency = parseInt(object.concurrency, 10); + else if (typeof object.concurrency === "number") + message.concurrency = object.concurrency; + else if (typeof object.concurrency === "object") + message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest + * @param {vtctldata.BackupRequest} message BackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaRequest.toObject = function toObject(message, options) { + BackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sql = []; - object.uuid_list = []; - } if (options.defaults) { - object.keyspace = ""; - object.allow_long_unavailability = false; - object.ddl_strategy = ""; - object.migration_context = ""; - object.wait_replicas_timeout = null; - object.skip_preflight = false; - object.caller_id = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - object.allow_long_unavailability = message.allow_long_unavailability; - if (message.sql && message.sql.length) { - object.sql = []; - for (var j = 0; j < message.sql.length; ++j) - object.sql[j] = message.sql[j]; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - object.ddl_strategy = message.ddl_strategy; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; + object.tablet_alias = null; + object.allow_primary = false; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.concurrency = options.longs === String ? "0" : 0; } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - object.migration_context = message.migration_context; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) - object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - object.skip_preflight = message.skip_preflight; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (typeof message.concurrency === "number") + object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; + else + object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this BackupRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.BackupRequest * @instance * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.toJSON = function toJSON() { + BackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaRequest; + return BackupRequest; })(); - vtctldata.ApplySchemaResponse = (function() { + vtctldata.BackupResponse = (function() { /** - * Properties of an ApplySchemaResponse. + * Properties of a BackupResponse. * @memberof vtctldata - * @interface IApplySchemaResponse - * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list + * @interface IBackupResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias + * @property {string|null} [keyspace] BackupResponse keyspace + * @property {string|null} [shard] BackupResponse shard + * @property {logutil.IEvent|null} [event] BackupResponse event */ /** - * Constructs a new ApplySchemaResponse. + * Constructs a new BackupResponse. * @memberof vtctldata - * @classdesc Represents an ApplySchemaResponse. - * @implements IApplySchemaResponse + * @classdesc Represents a BackupResponse. + * @implements IBackupResponse * @constructor - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @param {vtctldata.IBackupResponse=} [properties] Properties to set */ - function ApplySchemaResponse(properties) { - this.uuid_list = []; + function BackupResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84500,78 +90842,114 @@ $root.vtctldata = (function() { } /** - * ApplySchemaResponse uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaResponse + * BackupResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupResponse * @instance */ - ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + BackupResponse.prototype.tablet_alias = null; /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * BackupResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.keyspace = ""; + + /** + * BackupResponse shard. + * @member {string} shard + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.shard = ""; + + /** + * BackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.event = null; + + /** + * Creates a new BackupResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @returns {vtctldata.BackupResponse} BackupResponse instance */ - ApplySchemaResponse.create = function create(properties) { - return new ApplySchemaResponse(properties); + BackupResponse.create = function create(properties) { + return new BackupResponse(properties); }; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encode = function encode(message, writer) { + BackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * Decodes a BackupResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decode = function decode(reader, length) { + BackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + message.keyspace = reader.string(); + break; + case 3: + message.shard = reader.string(); + break; + case 4: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -84582,125 +90960,145 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { + BackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaResponse message. + * Verifies a BackupResponse message. * @function verify - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplySchemaResponse.verify = function verify(message) { + BackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; } return null; }; /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse */ - ApplySchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaResponse) + BackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupResponse) return object; - var message = new $root.vtctldata.ApplySchemaResponse(); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); + var message = new $root.vtctldata.BackupResponse(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.BackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); } return message; }; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse + * @param {vtctldata.BackupResponse} message BackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaResponse.toObject = function toObject(message, options) { + BackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uuid_list = []; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; + if (options.defaults) { + object.tablet_alias = null; + object.keyspace = ""; + object.shard = ""; + object.event = null; } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); return object; }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this BackupResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.BackupResponse * @instance * @returns {Object.} JSON object */ - ApplySchemaResponse.prototype.toJSON = function toJSON() { + BackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaResponse; + return BackupResponse; })(); - vtctldata.ApplyVSchemaRequest = (function() { + vtctldata.BackupShardRequest = (function() { /** - * Properties of an ApplyVSchemaRequest. + * Properties of a BackupShardRequest. * @memberof vtctldata - * @interface IApplyVSchemaRequest - * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace - * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild - * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run - * @property {Array.|null} [cells] ApplyVSchemaRequest cells - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema - * @property {string|null} [sql] ApplyVSchemaRequest sql + * @interface IBackupShardRequest + * @property {string|null} [keyspace] BackupShardRequest keyspace + * @property {string|null} [shard] BackupShardRequest shard + * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary + * @property {number|Long|null} [concurrency] BackupShardRequest concurrency */ /** - * Constructs a new ApplyVSchemaRequest. + * Constructs a new BackupShardRequest. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaRequest. - * @implements IApplyVSchemaRequest + * @classdesc Represents a BackupShardRequest. + * @implements IBackupShardRequest * @constructor - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set */ - function ApplyVSchemaRequest(properties) { - this.cells = []; + function BackupShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84708,121 +91106,100 @@ $root.vtctldata = (function() { } /** - * ApplyVSchemaRequest keyspace. + * BackupShardRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ApplyVSchemaRequest - * @instance - */ - ApplyVSchemaRequest.prototype.keyspace = ""; - - /** - * ApplyVSchemaRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyVSchemaRequest - * @instance - */ - ApplyVSchemaRequest.prototype.skip_rebuild = false; - - /** - * ApplyVSchemaRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @instance */ - ApplyVSchemaRequest.prototype.dry_run = false; + BackupShardRequest.prototype.keyspace = ""; /** - * ApplyVSchemaRequest cells. - * @member {Array.} cells - * @memberof vtctldata.ApplyVSchemaRequest + * BackupShardRequest shard. + * @member {string} shard + * @memberof vtctldata.BackupShardRequest * @instance */ - ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + BackupShardRequest.prototype.shard = ""; /** - * ApplyVSchemaRequest v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaRequest + * BackupShardRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.BackupShardRequest * @instance */ - ApplyVSchemaRequest.prototype.v_schema = null; + BackupShardRequest.prototype.allow_primary = false; /** - * ApplyVSchemaRequest sql. - * @member {string} sql - * @memberof vtctldata.ApplyVSchemaRequest + * BackupShardRequest concurrency. + * @member {number|Long} concurrency + * @memberof vtctldata.BackupShardRequest * @instance */ - ApplyVSchemaRequest.prototype.sql = ""; + BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. + * Creates a new BackupShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance */ - ApplyVSchemaRequest.create = function create(properties) { - return new ApplyVSchemaRequest(properties); + BackupShardRequest.create = function create(properties) { + return new BackupShardRequest(properties); }; /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encode = function encode(message, writer) { + BackupShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); return writer; }; /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * Decodes a BackupShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decode = function decode(reader, length) { + BackupShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84830,21 +91207,13 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.skip_rebuild = reader.bool(); + message.shard = reader.string(); break; case 3: - message.dry_run = reader.bool(); + message.allow_primary = reader.bool(); break; case 4: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - case 5: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - case 6: - message.sql = reader.string(); + message.concurrency = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -84855,243 +91224,241 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaRequest message. + * Verifies a BackupShardRequest message. * @function verify - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaRequest.verify = function verify(message) { + BackupShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); - if (error) - return "v_schema." + error; - } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) + return "concurrency: integer|Long expected"; return null; }; /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest */ - ApplyVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaRequest) + BackupShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupShardRequest) return object; - var message = new $root.vtctldata.ApplyVSchemaRequest(); + var message = new $root.vtctldata.BackupShardRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); - } - if (object.sql != null) - message.sql = String(object.sql); + if (object.shard != null) + message.shard = String(object.shard); + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.concurrency != null) + if ($util.Long) + (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; + else if (typeof object.concurrency === "string") + message.concurrency = parseInt(object.concurrency, 10); + else if (typeof object.concurrency === "number") + message.concurrency = object.concurrency; + else if (typeof object.concurrency === "object") + message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest + * @param {vtctldata.BackupShardRequest} message BackupShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaRequest.toObject = function toObject(message, options) { + BackupShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { object.keyspace = ""; - object.skip_rebuild = false; - object.dry_run = false; - object.v_schema = null; - object.sql = ""; + object.shard = ""; + object.allow_primary = false; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.concurrency = options.longs === String ? "0" : 0; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (typeof message.concurrency === "number") + object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; + else + object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this ApplyVSchemaRequest to JSON. + * Converts this BackupShardRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupShardRequest * @instance * @returns {Object.} JSON object */ - ApplyVSchemaRequest.prototype.toJSON = function toJSON() { + BackupShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaRequest; + return BackupShardRequest; })(); - vtctldata.ApplyVSchemaResponse = (function() { +<<<<<<< HEAD +======= + vtctldata.CancelSchemaMigrationRequest = (function() { /** - * Properties of an ApplyVSchemaResponse. + * Properties of a CancelSchemaMigrationRequest. * @memberof vtctldata - * @interface IApplyVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema + * @interface ICancelSchemaMigrationRequest + * @property {string|null} [keyspace] CancelSchemaMigrationRequest keyspace + * @property {string|null} [uuid] CancelSchemaMigrationRequest uuid */ /** - * Constructs a new ApplyVSchemaResponse. + * Constructs a new CancelSchemaMigrationRequest. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaResponse. - * @implements IApplyVSchemaResponse + * @classdesc Represents a CancelSchemaMigrationRequest. + * @implements ICancelSchemaMigrationRequest * @constructor - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set */ - function ApplyVSchemaResponse(properties) { + function CancelSchemaMigrationRequest(properties) { if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * ApplyVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaResponse + * CancelSchemaMigrationRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.CancelSchemaMigrationRequest * @instance */ - ApplyVSchemaResponse.prototype.v_schema = null; + CancelSchemaMigrationRequest.prototype.keyspace = ""; /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. + * CancelSchemaMigrationRequest uuid. + * @member {string} uuid + * @memberof vtctldata.CancelSchemaMigrationRequest + * @instance + */ + CancelSchemaMigrationRequest.prototype.uuid = ""; + + /** + * Creates a new CancelSchemaMigrationRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance + * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest instance */ - ApplyVSchemaResponse.create = function create(properties) { - return new ApplyVSchemaResponse(properties); + CancelSchemaMigrationRequest.create = function create(properties) { + return new CancelSchemaMigrationRequest(properties); }; /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encode = function encode(message, writer) { + CancelSchemaMigrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); return writer; }; /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decode = function decode(reader, length) { + CancelSchemaMigrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationRequest(); while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; + case 1: { + message.keyspace = reader.string(); + break; + } + case 2: { + message.uuid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -85101,217 +91468,230 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + CancelSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaResponse message. + * Verifies a CancelSchemaMigrationRequest message. * @function verify - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaResponse.verify = function verify(message) { + CancelSchemaMigrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); - if (error) - return "v_schema." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.uuid != null && message.hasOwnProperty("uuid")) + if (!$util.isString(message.uuid)) + return "uuid: string expected"; return null; }; /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest */ - ApplyVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaResponse) + CancelSchemaMigrationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CancelSchemaMigrationRequest) return object; - var message = new $root.vtctldata.ApplyVSchemaResponse(); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); - } + let message = new $root.vtctldata.CancelSchemaMigrationRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.uuid != null) + message.uuid = String(object.uuid); return message; }; /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @static - * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {vtctldata.CancelSchemaMigrationRequest} message CancelSchemaMigrationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaResponse.toObject = function toObject(message, options) { + CancelSchemaMigrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + let object = {}; + if (options.defaults) { + object.keyspace = ""; + object.uuid = ""; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.uuid != null && message.hasOwnProperty("uuid")) + object.uuid = message.uuid; return object; }; /** - * Converts this ApplyVSchemaResponse to JSON. + * Converts this CancelSchemaMigrationRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.CancelSchemaMigrationRequest * @instance * @returns {Object.} JSON object */ - ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + CancelSchemaMigrationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaResponse; + /** + * Gets the default type url for CancelSchemaMigrationRequest + * @function getTypeUrl + * @memberof vtctldata.CancelSchemaMigrationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationRequest"; + }; + + return CancelSchemaMigrationRequest; })(); - vtctldata.BackupRequest = (function() { + vtctldata.CancelSchemaMigrationResponse = (function() { /** - * Properties of a BackupRequest. + * Properties of a CancelSchemaMigrationResponse. * @memberof vtctldata - * @interface IBackupRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias - * @property {boolean|null} [allow_primary] BackupRequest allow_primary - * @property {number|Long|null} [concurrency] BackupRequest concurrency + * @interface ICancelSchemaMigrationResponse + * @property {Object.|null} [rows_affected_by_shard] CancelSchemaMigrationResponse rows_affected_by_shard */ /** - * Constructs a new BackupRequest. + * Constructs a new CancelSchemaMigrationResponse. * @memberof vtctldata - * @classdesc Represents a BackupRequest. - * @implements IBackupRequest + * @classdesc Represents a CancelSchemaMigrationResponse. + * @implements ICancelSchemaMigrationResponse * @constructor - * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set */ - function BackupRequest(properties) { + function CancelSchemaMigrationResponse(properties) { + this.rows_affected_by_shard = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * BackupRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.tablet_alias = null; - - /** - * BackupRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.BackupRequest - * @instance - */ - BackupRequest.prototype.allow_primary = false; - - /** - * BackupRequest concurrency. - * @member {number|Long} concurrency - * @memberof vtctldata.BackupRequest + * CancelSchemaMigrationResponse rows_affected_by_shard. + * @member {Object.} rows_affected_by_shard + * @memberof vtctldata.CancelSchemaMigrationResponse * @instance */ - BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + CancelSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new CancelSchemaMigrationResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static - * @param {vtctldata.IBackupRequest=} [properties] Properties to set - * @returns {vtctldata.BackupRequest} BackupRequest instance + * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse instance */ - BackupRequest.create = function create(properties) { - return new BackupRequest(properties); + CancelSchemaMigrationResponse.create = function create(properties) { + return new CancelSchemaMigrationResponse(properties); }; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer) { + CancelSchemaMigrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); + if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) + for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decode = function decode(reader, length) { + CancelSchemaMigrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - message.allow_primary = reader.bool(); - break; - case 3: - message.concurrency = reader.uint64(); - break; + case 1: { + if (message.rows_affected_by_shard === $util.emptyObject) + message.rows_affected_by_shard = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = 0; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.uint64(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.rows_affected_by_shard[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -85321,262 +91701,275 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decodeDelimited = function decodeDelimited(reader) { + CancelSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupRequest message. + * Verifies a CancelSchemaMigrationResponse message. * @function verify - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupRequest.verify = function verify(message) { + CancelSchemaMigrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { + if (!$util.isObject(message.rows_affected_by_shard)) + return "rows_affected_by_shard: object expected"; + let key = Object.keys(message.rows_affected_by_shard); + for (let i = 0; i < key.length; ++i) + if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) + return "rows_affected_by_shard: integer|Long{k:string} expected"; } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) - return "concurrency: integer|Long expected"; return null; }; /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse */ - BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupRequest) + CancelSchemaMigrationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.CancelSchemaMigrationResponse) return object; - var message = new $root.vtctldata.BackupRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + let message = new $root.vtctldata.CancelSchemaMigrationResponse(); + if (object.rows_affected_by_shard) { + if (typeof object.rows_affected_by_shard !== "object") + throw TypeError(".vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard: object expected"); + message.rows_affected_by_shard = {}; + for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) + if ($util.Long) + (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; + else if (typeof object.rows_affected_by_shard[keys[i]] === "string") + message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); + else if (typeof object.rows_affected_by_shard[keys[i]] === "number") + message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; + else if (typeof object.rows_affected_by_shard[keys[i]] === "object") + message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.concurrency != null) - if ($util.Long) - (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; - else if (typeof object.concurrency === "string") - message.concurrency = parseInt(object.concurrency, 10); - else if (typeof object.concurrency === "number") - message.concurrency = object.concurrency; - else if (typeof object.concurrency === "object") - message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @static - * @param {vtctldata.BackupRequest} message BackupRequest + * @param {vtctldata.CancelSchemaMigrationResponse} message CancelSchemaMigrationResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options) { + CancelSchemaMigrationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.allow_primary = false; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.concurrency = options.longs === String ? "0" : 0; + let object = {}; + if (options.objects || options.defaults) + object.rows_affected_by_shard = {}; + let keys2; + if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { + object.rows_affected_by_shard = {}; + for (let j = 0; j < keys2.length; ++j) + if (typeof message.rows_affected_by_shard[keys2[j]] === "number") + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; + else + object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (typeof message.concurrency === "number") - object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; - else - object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this BackupRequest to JSON. + * Converts this CancelSchemaMigrationResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.CancelSchemaMigrationResponse * @instance * @returns {Object.} JSON object */ - BackupRequest.prototype.toJSON = function toJSON() { + CancelSchemaMigrationResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupRequest; + /** + * Gets the default type url for CancelSchemaMigrationResponse + * @function getTypeUrl + * @memberof vtctldata.CancelSchemaMigrationResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationResponse"; + }; + + return CancelSchemaMigrationResponse; })(); - vtctldata.BackupResponse = (function() { + vtctldata.ChangeTabletTagsRequest = (function() { /** - * Properties of a BackupResponse. + * Properties of a ChangeTabletTagsRequest. * @memberof vtctldata - * @interface IBackupResponse - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias - * @property {string|null} [keyspace] BackupResponse keyspace - * @property {string|null} [shard] BackupResponse shard - * @property {logutil.IEvent|null} [event] BackupResponse event + * @interface IChangeTabletTagsRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTagsRequest tablet_alias + * @property {Object.|null} [tags] ChangeTabletTagsRequest tags + * @property {boolean|null} [replace] ChangeTabletTagsRequest replace */ /** - * Constructs a new BackupResponse. + * Constructs a new ChangeTabletTagsRequest. * @memberof vtctldata - * @classdesc Represents a BackupResponse. - * @implements IBackupResponse + * @classdesc Represents a ChangeTabletTagsRequest. + * @implements IChangeTabletTagsRequest * @constructor - * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set */ - function BackupResponse(properties) { + function ChangeTabletTagsRequest(properties) { + this.tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * BackupResponse tablet_alias. + * ChangeTabletTagsRequest tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupResponse - * @instance - */ - BackupResponse.prototype.tablet_alias = null; - - /** - * BackupResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.keyspace = ""; + ChangeTabletTagsRequest.prototype.tablet_alias = null; /** - * BackupResponse shard. - * @member {string} shard - * @memberof vtctldata.BackupResponse + * ChangeTabletTagsRequest tags. + * @member {Object.} tags + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.shard = ""; + ChangeTabletTagsRequest.prototype.tags = $util.emptyObject; /** - * BackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.BackupResponse + * ChangeTabletTagsRequest replace. + * @member {boolean} replace + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.event = null; + ChangeTabletTagsRequest.prototype.replace = false; /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new ChangeTabletTagsRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse=} [properties] Properties to set - * @returns {vtctldata.BackupResponse} BackupResponse instance + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest instance */ - BackupResponse.create = function create(properties) { - return new BackupResponse(properties); + ChangeTabletTagsRequest.create = function create(properties) { + return new ChangeTabletTagsRequest(properties); }; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer) { + ChangeTabletTagsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); return writer; }; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decode = function decode(reader, length) { + ChangeTabletTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - message.keyspace = reader.string(); - break; - case 3: - message.shard = reader.string(); - break; - case 4: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); - break; + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } + case 3: { + message.replace = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -85586,261 +91979,294 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTagsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupResponse message. + * Verifies a ChangeTabletTagsRequest message. * @function verify - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupResponse.verify = function verify(message) { + ChangeTabletTagsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) return "tablet_alias." + error; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } + if (message.replace != null && message.hasOwnProperty("replace")) + if (typeof message.replace !== "boolean") + return "replace: boolean expected"; return null; }; /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest */ - BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupResponse) + ChangeTabletTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) return object; - var message = new $root.vtctldata.BackupResponse(); + let message = new $root.vtctldata.ChangeTabletTagsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); + throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.BackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } + if (object.replace != null) + message.replace = Boolean(object.replace); return message; }; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.BackupResponse} message BackupResponse + * @param {vtctldata.ChangeTabletTagsRequest} message ChangeTabletTagsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options) { + ChangeTabletTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; if (options.defaults) { object.tablet_alias = null; - object.keyspace = ""; - object.shard = ""; - object.event = null; + object.replace = false; } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; return object; }; /** - * Converts this BackupResponse to JSON. + * Converts this ChangeTabletTagsRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @instance * @returns {Object.} JSON object */ - BackupResponse.prototype.toJSON = function toJSON() { + ChangeTabletTagsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupResponse; + /** + * Gets the default type url for ChangeTabletTagsRequest + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTagsRequest"; + }; + + return ChangeTabletTagsRequest; })(); - vtctldata.BackupShardRequest = (function() { + vtctldata.ChangeTabletTagsResponse = (function() { /** - * Properties of a BackupShardRequest. + * Properties of a ChangeTabletTagsResponse. * @memberof vtctldata - * @interface IBackupShardRequest - * @property {string|null} [keyspace] BackupShardRequest keyspace - * @property {string|null} [shard] BackupShardRequest shard - * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary - * @property {number|Long|null} [concurrency] BackupShardRequest concurrency + * @interface IChangeTabletTagsResponse + * @property {Object.|null} [before_tags] ChangeTabletTagsResponse before_tags + * @property {Object.|null} [after_tags] ChangeTabletTagsResponse after_tags */ /** - * Constructs a new BackupShardRequest. + * Constructs a new ChangeTabletTagsResponse. * @memberof vtctldata - * @classdesc Represents a BackupShardRequest. - * @implements IBackupShardRequest + * @classdesc Represents a ChangeTabletTagsResponse. + * @implements IChangeTabletTagsResponse * @constructor - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set */ - function BackupShardRequest(properties) { + function ChangeTabletTagsResponse(properties) { + this.before_tags = {}; + this.after_tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * BackupShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.keyspace = ""; - - /** - * BackupShardRequest shard. - * @member {string} shard - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.shard = ""; - - /** - * BackupShardRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.BackupShardRequest + * ChangeTabletTagsResponse before_tags. + * @member {Object.} before_tags + * @memberof vtctldata.ChangeTabletTagsResponse * @instance */ - BackupShardRequest.prototype.allow_primary = false; + ChangeTabletTagsResponse.prototype.before_tags = $util.emptyObject; /** - * BackupShardRequest concurrency. - * @member {number|Long} concurrency - * @memberof vtctldata.BackupShardRequest + * ChangeTabletTagsResponse after_tags. + * @member {Object.} after_tags + * @memberof vtctldata.ChangeTabletTagsResponse * @instance */ - BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ChangeTabletTagsResponse.prototype.after_tags = $util.emptyObject; /** - * Creates a new BackupShardRequest instance using the specified properties. + * Creates a new ChangeTabletTagsResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set - * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse instance */ - BackupShardRequest.create = function create(properties) { - return new BackupShardRequest(properties); + ChangeTabletTagsResponse.create = function create(properties) { + return new ChangeTabletTagsResponse(properties); }; /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encode = function encode(message, writer) { + ChangeTabletTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); + if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) + for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); + if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) + for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer. + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decode = function decode(reader, length) { + ChangeTabletTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.allow_primary = reader.bool(); - break; - case 4: - message.concurrency = reader.uint64(); - break; + case 1: { + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.before_tags[key] = value; + break; + } + case 2: { + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.after_tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -85850,128 +92276,141 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTagsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupShardRequest message. + * Verifies a ChangeTabletTagsResponse message. * @function verify - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupShardRequest.verify = function verify(message) { + ChangeTabletTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) - return "concurrency: integer|Long expected"; + if (message.before_tags != null && message.hasOwnProperty("before_tags")) { + if (!$util.isObject(message.before_tags)) + return "before_tags: object expected"; + let key = Object.keys(message.before_tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.before_tags[key[i]])) + return "before_tags: string{k:string} expected"; + } + if (message.after_tags != null && message.hasOwnProperty("after_tags")) { + if (!$util.isObject(message.after_tags)) + return "after_tags: object expected"; + let key = Object.keys(message.after_tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.after_tags[key[i]])) + return "after_tags: string{k:string} expected"; + } return null; }; /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse */ - BackupShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupShardRequest) + ChangeTabletTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) return object; - var message = new $root.vtctldata.BackupShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.concurrency != null) - if ($util.Long) - (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; - else if (typeof object.concurrency === "string") - message.concurrency = parseInt(object.concurrency, 10); - else if (typeof object.concurrency === "number") - message.concurrency = object.concurrency; - else if (typeof object.concurrency === "object") - message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); + let message = new $root.vtctldata.ChangeTabletTagsResponse(); + if (object.before_tags) { + if (typeof object.before_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); + message.before_tags = {}; + for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); + } + if (object.after_tags) { + if (typeof object.after_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); + message.after_tags = {}; + for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); + } return message; }; /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.BackupShardRequest} message BackupShardRequest + * @param {vtctldata.ChangeTabletTagsResponse} message ChangeTabletTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupShardRequest.toObject = function toObject(message, options) { + ChangeTabletTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.allow_primary = false; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.concurrency = options.longs === String ? "0" : 0; + let object = {}; + if (options.objects || options.defaults) { + object.before_tags = {}; + object.after_tags = {}; + } + let keys2; + if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { + object.before_tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; + } + if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { + object.after_tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (typeof message.concurrency === "number") - object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; - else - object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this BackupShardRequest to JSON. + * Converts this ChangeTabletTagsResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @instance * @returns {Object.} JSON object */ - BackupShardRequest.prototype.toJSON = function toJSON() { + ChangeTabletTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupShardRequest; + /** + * Gets the default type url for ChangeTabletTagsResponse + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTagsResponse"; + }; + + return ChangeTabletTagsResponse; })(); +>>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) vtctldata.ChangeTabletTypeRequest = (function() { /** From c7c33ac1091c80055de5cf815440fb36ed523b99 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Mon, 30 Sep 2024 19:14:30 +0200 Subject: [PATCH 3/9] v15 tweaks Signed-off-by: Tim Vaillancourt --- go/vt/topotools/tablet.go | 17 +- go/vt/vtctl/grpcvtctldserver/server_test.go | 9 +- web/vtadmin/src/proto/vtadmin.d.ts | 40226 +----------------- web/vtadmin/src/proto/vtadmin.js | 5738 +-- 4 files changed, 562 insertions(+), 45428 deletions(-) diff --git a/go/vt/topotools/tablet.go b/go/vt/topotools/tablet.go index a81adec8a38..fe1455d913b 100644 --- a/go/vt/topotools/tablet.go +++ b/go/vt/topotools/tablet.go @@ -36,7 +36,6 @@ import ( "context" "errors" "fmt" - "maps" "google.golang.org/protobuf/proto" @@ -61,6 +60,20 @@ func ConfigureTabletHook(hk *hook.Hook, tabletAlias *topodatapb.TabletAlias) { hk.ExtraEnv["TABLET_ALIAS"] = topoproto.TabletAliasString(tabletAlias) } +// isMapsEqual simulates maps.Equal() from go1.23+. +func isMapsEqual(a, b map[string]string) bool { + if len(a) != len(b) { + return false + } + for key, valA := range a { + valB, ok := b[key] + if !ok || valB != valA { + return false + } + } + return true +} + // ChangeTags changes the tags of the tablet. Make this external, since these // transitions need to be forced from time to time. // @@ -68,7 +81,7 @@ func ConfigureTabletHook(hk *hook.Hook, tabletAlias *topodatapb.TabletAlias) { func ChangeTags(ctx context.Context, ts *topo.Server, tabletAlias *topodatapb.TabletAlias, tabletTags map[string]string, replace bool) (map[string]string, error) { var result map[string]string _, err := ts.UpdateTabletFields(ctx, tabletAlias, func(tablet *topodatapb.Tablet) error { - if replace && maps.Equal(tablet.Tags, tabletTags) { + if replace && isMapsEqual(tablet.Tags, tabletTags) { result = tablet.Tags return topo.NewError(topo.NoUpdateNeeded, topoproto.TabletAliasString(tabletAlias)) } diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 5521f879cd0..6f4d6f933a0 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -42,7 +42,6 @@ import ( "vitess.io/vitess/go/vt/topo/topoproto" "vitess.io/vitess/go/vt/vtctl/grpcvtctldserver/testutil" "vitess.io/vitess/go/vt/vtctl/localvtctldclient" - "vitess.io/vitess/go/vt/vtenv" "vitess.io/vitess/go/vt/vttablet/tmclient" "vitess.io/vitess/go/vt/vttablet/tmclienttest" @@ -1152,11 +1151,11 @@ func TestChangeTabletTags(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - ts := memorytopo.NewServer(ctx, tt.cells...) + ts := memorytopo.NewServer(tt.cells...) vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ TopoServer: ts, }, func(ts *topo.Server) vtctlservicepb.VtctldServer { - return NewVtctldServer(vtenv.NewTestEnv(), ts) + return NewVtctldServer(ts) }) testutil.AddTablets(ctx, t, ts, &testutil.AddTabletOptions{ @@ -1182,11 +1181,11 @@ func TestChangeTabletTags(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - ts := memorytopo.NewServer(ctx, "zone1") + ts := memorytopo.NewServer("zone1") vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ TopoServer: nil, }, func(ts *topo.Server) vtctlservicepb.VtctldServer { - return NewVtctldServer(vtenv.NewTestEnv(), ts) + return NewVtctldServer(ts) }) testutil.AddTablet(ctx, t, ts, &topodatapb.Tablet{ diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index 0ab35d3b415..f15096829ab 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -24286,6 +24286,192 @@ export namespace tabletmanagerdata { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a ChangeTagsRequest. */ + interface IChangeTagsRequest { + + /** ChangeTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTagsRequest. */ + class ChangeTagsRequest implements IChangeTagsRequest { + + /** + * Constructs a new ChangeTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsRequest); + + /** ChangeTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsRequest instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; + + /** + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; + + /** + * Verifies a ChangeTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; + + /** + * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeTagsResponse. */ + interface IChangeTagsResponse { + + /** ChangeTagsResponse tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTagsResponse. */ + class ChangeTagsResponse implements IChangeTagsResponse { + + /** + * Constructs a new ChangeTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsResponse); + + /** ChangeTagsResponse tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new ChangeTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsResponse instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; + + /** + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; + + /** + * Verifies a ChangeTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsResponse + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; + + /** + * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Namespace query. */ @@ -35962,6 +36148,204 @@ export namespace vtctldata { public toJSON(): { [k: string]: any }; } + /** Properties of a ChangeTabletTagsRequest. */ + interface IChangeTabletTagsRequest { + + /** ChangeTabletTagsRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTabletTagsRequest. */ + class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { + + /** + * Constructs a new ChangeTabletTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsRequest); + + /** ChangeTabletTagsRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTabletTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; + + /** + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsRequest; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsRequest; + + /** + * Verifies a ChangeTabletTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; + + /** + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ChangeTabletTagsResponse. */ + interface IChangeTabletTagsResponse { + + /** ChangeTabletTagsResponse before_tags */ + before_tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsResponse after_tags */ + after_tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTabletTagsResponse. */ + class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { + + /** + * Constructs a new ChangeTabletTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsResponse); + + /** ChangeTabletTagsResponse before_tags. */ + public before_tags: { [k: string]: string }; + + /** ChangeTabletTagsResponse after_tags. */ + public after_tags: { [k: string]: string }; + + /** + * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; + + /** + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsResponse; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsResponse; + + /** + * Verifies a ChangeTabletTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; + + /** + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ChangeTabletTypeRequest. */ interface IChangeTabletTypeRequest { @@ -50766,206 +51150,6 @@ export namespace vtctldata { */ public toJSON(): { [k: string]: any }; } - - /** Properties of a ChangeTagsRequest. */ - interface IChangeTagsRequest { - - /** ChangeTagsRequest tags */ - tags?: ({ [k: string]: string }|null); - - /** ChangeTagsRequest replace */ - replace?: (boolean|null); - } - - /** Represents a ChangeTagsRequest. */ - class ChangeTagsRequest implements IChangeTagsRequest { - - /** - * Constructs a new ChangeTagsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IChangeTagsRequest); - - /** ChangeTagsRequest tags. */ - public tags: { [k: string]: string }; - - /** ChangeTagsRequest replace. */ - public replace: boolean; - - /** - * Creates a new ChangeTagsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTagsRequest instance - */ - public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; - - /** - * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. - * @param message ChangeTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. - * @param message ChangeTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; - - /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; - - /** - * Verifies a ChangeTagsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTagsRequest - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; - - /** - * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTagsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTagsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTagsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTagsResponse. */ - interface IChangeTagsResponse { - - /** ChangeTagsResponse tags */ - tags?: ({ [k: string]: string }|null); - } - - /** Represents a ChangeTagsResponse. */ - class ChangeTagsResponse implements IChangeTagsResponse { - - /** - * Constructs a new ChangeTagsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IChangeTagsResponse); - - /** ChangeTagsResponse tags. */ - public tags: { [k: string]: string }; - - /** - * Creates a new ChangeTagsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTagsResponse instance - */ - public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; - - /** - * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. - * @param message ChangeTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. - * @param message ChangeTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; - - /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; - - /** - * Verifies a ChangeTagsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTagsResponse - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; - - /** - * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTagsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTagsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTagsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } } /** Namespace binlogdata. */ @@ -54167,39647 +54351,5 @@ export namespace binlogdata { * @returns JSON object */ public toJSON(): { [k: string]: any }; -<<<<<<< HEAD -======= - - /** - * Gets the default type url for VStreamResultsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace vtrpc. */ -export namespace vtrpc { - - /** Properties of a CallerID. */ - interface ICallerID { - - /** CallerID principal */ - principal?: (string|null); - - /** CallerID component */ - component?: (string|null); - - /** CallerID subcomponent */ - subcomponent?: (string|null); - - /** CallerID groups */ - groups?: (string[]|null); - } - - /** Represents a CallerID. */ - class CallerID implements ICallerID { - - /** - * Constructs a new CallerID. - * @param [properties] Properties to set - */ - constructor(properties?: vtrpc.ICallerID); - - /** CallerID principal. */ - public principal: string; - - /** CallerID component. */ - public component: string; - - /** CallerID subcomponent. */ - public subcomponent: string; - - /** CallerID groups. */ - public groups: string[]; - - /** - * Creates a new CallerID instance using the specified properties. - * @param [properties] Properties to set - * @returns CallerID instance - */ - public static create(properties?: vtrpc.ICallerID): vtrpc.CallerID; - - /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. - * @param message CallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtrpc.ICallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CallerID message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.CallerID; - - /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.CallerID; - - /** - * Verifies a CallerID message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CallerID - */ - public static fromObject(object: { [k: string]: any }): vtrpc.CallerID; - - /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. - * @param message CallerID - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtrpc.CallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CallerID to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CallerID - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Code enum. */ - enum Code { - OK = 0, - CANCELED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15, - UNAUTHENTICATED = 16, - CLUSTER_EVENT = 17, - READ_ONLY = 18 - } - - /** Properties of a RPCError. */ - interface IRPCError { - - /** RPCError message */ - message?: (string|null); - - /** RPCError code */ - code?: (vtrpc.Code|null); - } - - /** Represents a RPCError. */ - class RPCError implements IRPCError { - - /** - * Constructs a new RPCError. - * @param [properties] Properties to set - */ - constructor(properties?: vtrpc.IRPCError); - - /** RPCError message. */ - public message: string; - - /** RPCError code. */ - public code: vtrpc.Code; - - /** - * Creates a new RPCError instance using the specified properties. - * @param [properties] Properties to set - * @returns RPCError instance - */ - public static create(properties?: vtrpc.IRPCError): vtrpc.RPCError; - - /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. - * @param message RPCError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtrpc.IRPCError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RPCError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RPCError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtrpc.RPCError; - - /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RPCError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtrpc.RPCError; - - /** - * Verifies a RPCError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RPCError - */ - public static fromObject(object: { [k: string]: any }): vtrpc.RPCError; - - /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. - * @param message RPCError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtrpc.RPCError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RPCError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RPCError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace query. */ -export namespace query { - - /** Properties of a Target. */ - interface ITarget { - - /** Target keyspace */ - keyspace?: (string|null); - - /** Target shard */ - shard?: (string|null); - - /** Target tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** Target cell */ - cell?: (string|null); - } - - /** Represents a Target. */ - class Target implements ITarget { - - /** - * Constructs a new Target. - * @param [properties] Properties to set - */ - constructor(properties?: query.ITarget); - - /** Target keyspace. */ - public keyspace: string; - - /** Target shard. */ - public shard: string; - - /** Target tablet_type. */ - public tablet_type: topodata.TabletType; - - /** Target cell. */ - public cell: string; - - /** - * Creates a new Target instance using the specified properties. - * @param [properties] Properties to set - * @returns Target instance - */ - public static create(properties?: query.ITarget): query.Target; - - /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. - * @param message Target message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. - * @param message Target message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Target message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Target - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Target; - - /** - * Decodes a Target message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Target - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Target; - - /** - * Verifies a Target message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Target - */ - public static fromObject(object: { [k: string]: any }): query.Target; - - /** - * Creates a plain object from a Target message. Also converts values to other types if specified. - * @param message Target - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Target to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Target - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VTGateCallerID. */ - interface IVTGateCallerID { - - /** VTGateCallerID username */ - username?: (string|null); - - /** VTGateCallerID groups */ - groups?: (string[]|null); - } - - /** Represents a VTGateCallerID. */ - class VTGateCallerID implements IVTGateCallerID { - - /** - * Constructs a new VTGateCallerID. - * @param [properties] Properties to set - */ - constructor(properties?: query.IVTGateCallerID); - - /** VTGateCallerID username. */ - public username: string; - - /** VTGateCallerID groups. */ - public groups: string[]; - - /** - * Creates a new VTGateCallerID instance using the specified properties. - * @param [properties] Properties to set - * @returns VTGateCallerID instance - */ - public static create(properties?: query.IVTGateCallerID): query.VTGateCallerID; - - /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. - * @param message VTGateCallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. - * @param message VTGateCallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VTGateCallerID message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VTGateCallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.VTGateCallerID; - - /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VTGateCallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.VTGateCallerID; - - /** - * Verifies a VTGateCallerID message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VTGateCallerID - */ - public static fromObject(object: { [k: string]: any }): query.VTGateCallerID; - - /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. - * @param message VTGateCallerID - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.VTGateCallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VTGateCallerID to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VTGateCallerID - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EventToken. */ - interface IEventToken { - - /** EventToken timestamp */ - timestamp?: (number|Long|null); - - /** EventToken shard */ - shard?: (string|null); - - /** EventToken position */ - position?: (string|null); - } - - /** Represents an EventToken. */ - class EventToken implements IEventToken { - - /** - * Constructs a new EventToken. - * @param [properties] Properties to set - */ - constructor(properties?: query.IEventToken); - - /** EventToken timestamp. */ - public timestamp: (number|Long); - - /** EventToken shard. */ - public shard: string; - - /** EventToken position. */ - public position: string; - - /** - * Creates a new EventToken instance using the specified properties. - * @param [properties] Properties to set - * @returns EventToken instance - */ - public static create(properties?: query.IEventToken): query.EventToken; - - /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @param message EventToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @param message EventToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventToken message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.EventToken; - - /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.EventToken; - - /** - * Verifies an EventToken message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EventToken - */ - public static fromObject(object: { [k: string]: any }): query.EventToken; - - /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. - * @param message EventToken - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.EventToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EventToken to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EventToken - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** MySqlFlag enum. */ - enum MySqlFlag { - EMPTY = 0, - NOT_NULL_FLAG = 1, - PRI_KEY_FLAG = 2, - UNIQUE_KEY_FLAG = 4, - MULTIPLE_KEY_FLAG = 8, - BLOB_FLAG = 16, - UNSIGNED_FLAG = 32, - ZEROFILL_FLAG = 64, - BINARY_FLAG = 128, - ENUM_FLAG = 256, - AUTO_INCREMENT_FLAG = 512, - TIMESTAMP_FLAG = 1024, - SET_FLAG = 2048, - NO_DEFAULT_VALUE_FLAG = 4096, - ON_UPDATE_NOW_FLAG = 8192, - NUM_FLAG = 32768, - PART_KEY_FLAG = 16384, - GROUP_FLAG = 32768, - UNIQUE_FLAG = 65536, - BINCMP_FLAG = 131072 - } - - /** Flag enum. */ - enum Flag { - NONE = 0, - ISINTEGRAL = 256, - ISUNSIGNED = 512, - ISFLOAT = 1024, - ISQUOTED = 2048, - ISTEXT = 4096, - ISBINARY = 8192 - } - - /** Type enum. */ - enum Type { - NULL_TYPE = 0, - INT8 = 257, - UINT8 = 770, - INT16 = 259, - UINT16 = 772, - INT24 = 261, - UINT24 = 774, - INT32 = 263, - UINT32 = 776, - INT64 = 265, - UINT64 = 778, - FLOAT32 = 1035, - FLOAT64 = 1036, - TIMESTAMP = 2061, - DATE = 2062, - TIME = 2063, - DATETIME = 2064, - YEAR = 785, - DECIMAL = 18, - TEXT = 6163, - BLOB = 10260, - VARCHAR = 6165, - VARBINARY = 10262, - CHAR = 6167, - BINARY = 10264, - BIT = 2073, - ENUM = 2074, - SET = 2075, - TUPLE = 28, - GEOMETRY = 2077, - JSON = 2078, - EXPRESSION = 31, - HEXNUM = 4128, - HEXVAL = 4129, - BITNUM = 4130, - VECTOR = 2083, - RAW = 2084 - } - - /** Properties of a Value. */ - interface IValue { - - /** Value type */ - type?: (query.Type|null); - - /** Value value */ - value?: (Uint8Array|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: query.IValue); - - /** Value type. */ - public type: query.Type; - - /** Value value. */ - public value: Uint8Array; - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: query.IValue): query.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Value; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Value; - - /** - * Verifies a Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Value - */ - public static fromObject(object: { [k: string]: any }): query.Value; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Value - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BindVariable. */ - interface IBindVariable { - - /** BindVariable type */ - type?: (query.Type|null); - - /** BindVariable value */ - value?: (Uint8Array|null); - - /** BindVariable values */ - values?: (query.IValue[]|null); - } - - /** Represents a BindVariable. */ - class BindVariable implements IBindVariable { - - /** - * Constructs a new BindVariable. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBindVariable); - - /** BindVariable type. */ - public type: query.Type; - - /** BindVariable value. */ - public value: Uint8Array; - - /** BindVariable values. */ - public values: query.IValue[]; - - /** - * Creates a new BindVariable instance using the specified properties. - * @param [properties] Properties to set - * @returns BindVariable instance - */ - public static create(properties?: query.IBindVariable): query.BindVariable; - - /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. - * @param message BindVariable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. - * @param message BindVariable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindVariable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindVariable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BindVariable; - - /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BindVariable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BindVariable; - - /** - * Verifies a BindVariable message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BindVariable - */ - public static fromObject(object: { [k: string]: any }): query.BindVariable; - - /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. - * @param message BindVariable - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BindVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BindVariable to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BindVariable - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BoundQuery. */ - interface IBoundQuery { - - /** BoundQuery sql */ - sql?: (string|null); - - /** BoundQuery bind_variables */ - bind_variables?: ({ [k: string]: query.IBindVariable }|null); - } - - /** Represents a BoundQuery. */ - class BoundQuery implements IBoundQuery { - - /** - * Constructs a new BoundQuery. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBoundQuery); - - /** BoundQuery sql. */ - public sql: string; - - /** BoundQuery bind_variables. */ - public bind_variables: { [k: string]: query.IBindVariable }; - - /** - * Creates a new BoundQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns BoundQuery instance - */ - public static create(properties?: query.IBoundQuery): query.BoundQuery; - - /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @param message BoundQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @param message BoundQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BoundQuery message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BoundQuery; - - /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BoundQuery; - - /** - * Verifies a BoundQuery message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BoundQuery - */ - public static fromObject(object: { [k: string]: any }): query.BoundQuery; - - /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. - * @param message BoundQuery - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BoundQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BoundQuery to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BoundQuery - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteOptions. */ - interface IExecuteOptions { - - /** ExecuteOptions included_fields */ - included_fields?: (query.ExecuteOptions.IncludedFields|null); - - /** ExecuteOptions client_found_rows */ - client_found_rows?: (boolean|null); - - /** ExecuteOptions workload */ - workload?: (query.ExecuteOptions.Workload|null); - - /** ExecuteOptions sql_select_limit */ - sql_select_limit?: (number|Long|null); - - /** ExecuteOptions transaction_isolation */ - transaction_isolation?: (query.ExecuteOptions.TransactionIsolation|null); - - /** ExecuteOptions skip_query_plan_cache */ - skip_query_plan_cache?: (boolean|null); - - /** ExecuteOptions planner_version */ - planner_version?: (query.ExecuteOptions.PlannerVersion|null); - - /** ExecuteOptions has_created_temp_tables */ - has_created_temp_tables?: (boolean|null); - - /** ExecuteOptions consolidator */ - consolidator?: (query.ExecuteOptions.Consolidator|null); - - /** ExecuteOptions transaction_access_mode */ - transaction_access_mode?: (query.ExecuteOptions.TransactionAccessMode[]|null); - - /** ExecuteOptions WorkloadName */ - WorkloadName?: (string|null); - - /** ExecuteOptions priority */ - priority?: (string|null); - - /** ExecuteOptions authoritative_timeout */ - authoritative_timeout?: (number|Long|null); - } - - /** Represents an ExecuteOptions. */ - class ExecuteOptions implements IExecuteOptions { - - /** - * Constructs a new ExecuteOptions. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteOptions); - - /** ExecuteOptions included_fields. */ - public included_fields: query.ExecuteOptions.IncludedFields; - - /** ExecuteOptions client_found_rows. */ - public client_found_rows: boolean; - - /** ExecuteOptions workload. */ - public workload: query.ExecuteOptions.Workload; - - /** ExecuteOptions sql_select_limit. */ - public sql_select_limit: (number|Long); - - /** ExecuteOptions transaction_isolation. */ - public transaction_isolation: query.ExecuteOptions.TransactionIsolation; - - /** ExecuteOptions skip_query_plan_cache. */ - public skip_query_plan_cache: boolean; - - /** ExecuteOptions planner_version. */ - public planner_version: query.ExecuteOptions.PlannerVersion; - - /** ExecuteOptions has_created_temp_tables. */ - public has_created_temp_tables: boolean; - - /** ExecuteOptions consolidator. */ - public consolidator: query.ExecuteOptions.Consolidator; - - /** ExecuteOptions transaction_access_mode. */ - public transaction_access_mode: query.ExecuteOptions.TransactionAccessMode[]; - - /** ExecuteOptions WorkloadName. */ - public WorkloadName: string; - - /** ExecuteOptions priority. */ - public priority: string; - - /** ExecuteOptions authoritative_timeout. */ - public authoritative_timeout?: (number|Long|null); - - /** ExecuteOptions timeout. */ - public timeout?: "authoritative_timeout"; - - /** - * Creates a new ExecuteOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteOptions instance - */ - public static create(properties?: query.IExecuteOptions): query.ExecuteOptions; - - /** - * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @param message ExecuteOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @param message ExecuteOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteOptions; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteOptions; - - /** - * Verifies an ExecuteOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteOptions - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteOptions; - - /** - * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. - * @param message ExecuteOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ExecuteOptions { - - /** IncludedFields enum. */ - enum IncludedFields { - TYPE_AND_NAME = 0, - TYPE_ONLY = 1, - ALL = 2 - } - - /** Workload enum. */ - enum Workload { - UNSPECIFIED = 0, - OLTP = 1, - OLAP = 2, - DBA = 3 - } - - /** TransactionIsolation enum. */ - enum TransactionIsolation { - DEFAULT = 0, - REPEATABLE_READ = 1, - READ_COMMITTED = 2, - READ_UNCOMMITTED = 3, - SERIALIZABLE = 4, - CONSISTENT_SNAPSHOT_READ_ONLY = 5, - AUTOCOMMIT = 6 - } - - /** PlannerVersion enum. */ - enum PlannerVersion { - DEFAULT_PLANNER = 0, - V3 = 1, - Gen4 = 2, - Gen4Greedy = 3, - Gen4Left2Right = 4, - Gen4WithFallback = 5, - Gen4CompareV3 = 6, - V3Insert = 7 - } - - /** Consolidator enum. */ - enum Consolidator { - CONSOLIDATOR_UNSPECIFIED = 0, - CONSOLIDATOR_DISABLED = 1, - CONSOLIDATOR_ENABLED = 2, - CONSOLIDATOR_ENABLED_REPLICAS = 3 - } - - /** TransactionAccessMode enum. */ - enum TransactionAccessMode { - CONSISTENT_SNAPSHOT = 0, - READ_WRITE = 1, - READ_ONLY = 2 - } - } - - /** Properties of a Field. */ - interface IField { - - /** Field name */ - name?: (string|null); - - /** Field type */ - type?: (query.Type|null); - - /** Field table */ - table?: (string|null); - - /** Field org_table */ - org_table?: (string|null); - - /** Field database */ - database?: (string|null); - - /** Field org_name */ - org_name?: (string|null); - - /** Field column_length */ - column_length?: (number|null); - - /** Field charset */ - charset?: (number|null); - - /** Field decimals */ - decimals?: (number|null); - - /** Field flags */ - flags?: (number|null); - - /** Field column_type */ - column_type?: (string|null); - } - - /** Represents a Field. */ - class Field implements IField { - - /** - * Constructs a new Field. - * @param [properties] Properties to set - */ - constructor(properties?: query.IField); - - /** Field name. */ - public name: string; - - /** Field type. */ - public type: query.Type; - - /** Field table. */ - public table: string; - - /** Field org_table. */ - public org_table: string; - - /** Field database. */ - public database: string; - - /** Field org_name. */ - public org_name: string; - - /** Field column_length. */ - public column_length: number; - - /** Field charset. */ - public charset: number; - - /** Field decimals. */ - public decimals: number; - - /** Field flags. */ - public flags: number; - - /** Field column_type. */ - public column_type: string; - - /** - * Creates a new Field instance using the specified properties. - * @param [properties] Properties to set - * @returns Field instance - */ - public static create(properties?: query.IField): query.Field; - - /** - * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Field message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Field; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Field; - - /** - * Verifies a Field message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Field - */ - public static fromObject(object: { [k: string]: any }): query.Field; - - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @param message Field - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Field to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Field - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Row. */ - interface IRow { - - /** Row lengths */ - lengths?: ((number|Long)[]|null); - - /** Row values */ - values?: (Uint8Array|null); - } - - /** Represents a Row. */ - class Row implements IRow { - - /** - * Constructs a new Row. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRow); - - /** Row lengths. */ - public lengths: (number|Long)[]; - - /** Row values. */ - public values: Uint8Array; - - /** - * Creates a new Row instance using the specified properties. - * @param [properties] Properties to set - * @returns Row instance - */ - public static create(properties?: query.IRow): query.Row; - - /** - * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. - * @param message Row message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. - * @param message Row message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Row message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Row - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Row; - - /** - * Decodes a Row message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Row - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Row; - - /** - * Verifies a Row message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Row - */ - public static fromObject(object: { [k: string]: any }): query.Row; - - /** - * Creates a plain object from a Row message. Also converts values to other types if specified. - * @param message Row - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Row to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Row - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult fields */ - fields?: (query.IField[]|null); - - /** QueryResult rows_affected */ - rows_affected?: (number|Long|null); - - /** QueryResult insert_id */ - insert_id?: (number|Long|null); - - /** QueryResult rows */ - rows?: (query.IRow[]|null); - - /** QueryResult info */ - info?: (string|null); - - /** QueryResult session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { - - /** - * Constructs a new QueryResult. - * @param [properties] Properties to set - */ - constructor(properties?: query.IQueryResult); - - /** QueryResult fields. */ - public fields: query.IField[]; - - /** QueryResult rows_affected. */ - public rows_affected: (number|Long); - - /** QueryResult insert_id. */ - public insert_id: (number|Long); - - /** QueryResult rows. */ - public rows: query.IRow[]; - - /** QueryResult info. */ - public info: string; - - /** QueryResult session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new QueryResult instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryResult instance - */ - public static create(properties?: query.IQueryResult): query.QueryResult; - - /** - * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryResult; - - /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryResult; - - /** - * Verifies a QueryResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryResult - */ - public static fromObject(object: { [k: string]: any }): query.QueryResult; - - /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryWarning. */ - interface IQueryWarning { - - /** QueryWarning code */ - code?: (number|null); - - /** QueryWarning message */ - message?: (string|null); - } - - /** Represents a QueryWarning. */ - class QueryWarning implements IQueryWarning { - - /** - * Constructs a new QueryWarning. - * @param [properties] Properties to set - */ - constructor(properties?: query.IQueryWarning); - - /** QueryWarning code. */ - public code: number; - - /** QueryWarning message. */ - public message: string; - - /** - * Creates a new QueryWarning instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryWarning instance - */ - public static create(properties?: query.IQueryWarning): query.QueryWarning; - - /** - * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @param message QueryWarning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @param message QueryWarning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryWarning message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryWarning; - - /** - * Decodes a QueryWarning message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryWarning; - - /** - * Verifies a QueryWarning message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryWarning - */ - public static fromObject(object: { [k: string]: any }): query.QueryWarning; - - /** - * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. - * @param message QueryWarning - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.QueryWarning, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryWarning to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryWarning - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamEvent. */ - interface IStreamEvent { - - /** StreamEvent statements */ - statements?: (query.StreamEvent.IStatement[]|null); - - /** StreamEvent event_token */ - event_token?: (query.IEventToken|null); - } - - /** Represents a StreamEvent. */ - class StreamEvent implements IStreamEvent { - - /** - * Constructs a new StreamEvent. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamEvent); - - /** StreamEvent statements. */ - public statements: query.StreamEvent.IStatement[]; - - /** StreamEvent event_token. */ - public event_token?: (query.IEventToken|null); - - /** - * Creates a new StreamEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamEvent instance - */ - public static create(properties?: query.IStreamEvent): query.StreamEvent; - - /** - * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @param message StreamEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @param message StreamEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent; - - /** - * Decodes a StreamEvent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent; - - /** - * Verifies a StreamEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamEvent - */ - public static fromObject(object: { [k: string]: any }): query.StreamEvent; - - /** - * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. - * @param message StreamEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamEvent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace StreamEvent { - - /** Properties of a Statement. */ - interface IStatement { - - /** Statement category */ - category?: (query.StreamEvent.Statement.Category|null); - - /** Statement table_name */ - table_name?: (string|null); - - /** Statement primary_key_fields */ - primary_key_fields?: (query.IField[]|null); - - /** Statement primary_key_values */ - primary_key_values?: (query.IRow[]|null); - - /** Statement sql */ - sql?: (Uint8Array|null); - } - - /** Represents a Statement. */ - class Statement implements IStatement { - - /** - * Constructs a new Statement. - * @param [properties] Properties to set - */ - constructor(properties?: query.StreamEvent.IStatement); - - /** Statement category. */ - public category: query.StreamEvent.Statement.Category; - - /** Statement table_name. */ - public table_name: string; - - /** Statement primary_key_fields. */ - public primary_key_fields: query.IField[]; - - /** Statement primary_key_values. */ - public primary_key_values: query.IRow[]; - - /** Statement sql. */ - public sql: Uint8Array; - - /** - * Creates a new Statement instance using the specified properties. - * @param [properties] Properties to set - * @returns Statement instance - */ - public static create(properties?: query.StreamEvent.IStatement): query.StreamEvent.Statement; - - /** - * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Statement message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent.Statement; - - /** - * Decodes a Statement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent.Statement; - - /** - * Verifies a Statement message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Statement message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Statement - */ - public static fromObject(object: { [k: string]: any }): query.StreamEvent.Statement; - - /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. - * @param message Statement - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamEvent.Statement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Statement to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Statement - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Statement { - - /** Category enum. */ - enum Category { - Error = 0, - DML = 1, - DDL = 2 - } - } - } - - /** Properties of an ExecuteRequest. */ - interface IExecuteRequest { - - /** ExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ExecuteRequest target */ - target?: (query.ITarget|null); - - /** ExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents an ExecuteRequest. */ - class ExecuteRequest implements IExecuteRequest { - - /** - * Constructs a new ExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteRequest); - - /** ExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new ExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteRequest instance - */ - public static create(properties?: query.IExecuteRequest): query.ExecuteRequest; - - /** - * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. - * @param message ExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. - * @param message ExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteRequest; - - /** - * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteRequest; - - /** - * Verifies an ExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteRequest; - - /** - * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. - * @param message ExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteResponse. */ - interface IExecuteResponse { - - /** ExecuteResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteResponse. */ - class ExecuteResponse implements IExecuteResponse { - - /** - * Constructs a new ExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteResponse); - - /** ExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteResponse instance - */ - public static create(properties?: query.IExecuteResponse): query.ExecuteResponse; - - /** - * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @param message ExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @param message ExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteResponse; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteResponse; - - /** - * Verifies an ExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteResponse; - - /** - * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. - * @param message ExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ResultWithError. */ - interface IResultWithError { - - /** ResultWithError error */ - error?: (vtrpc.IRPCError|null); - - /** ResultWithError result */ - result?: (query.IQueryResult|null); - } - - /** Represents a ResultWithError. */ - class ResultWithError implements IResultWithError { - - /** - * Constructs a new ResultWithError. - * @param [properties] Properties to set - */ - constructor(properties?: query.IResultWithError); - - /** ResultWithError error. */ - public error?: (vtrpc.IRPCError|null); - - /** ResultWithError result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ResultWithError instance using the specified properties. - * @param [properties] Properties to set - * @returns ResultWithError instance - */ - public static create(properties?: query.IResultWithError): query.ResultWithError; - - /** - * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @param message ResultWithError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @param message ResultWithError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResultWithError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ResultWithError; - - /** - * Decodes a ResultWithError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ResultWithError; - - /** - * Verifies a ResultWithError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResultWithError - */ - public static fromObject(object: { [k: string]: any }): query.ResultWithError; - - /** - * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. - * @param message ResultWithError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ResultWithError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResultWithError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ResultWithError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamExecuteRequest. */ - interface IStreamExecuteRequest { - - /** StreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** StreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** StreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** StreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** StreamExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** StreamExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a StreamExecuteRequest. */ - class StreamExecuteRequest implements IStreamExecuteRequest { - - /** - * Constructs a new StreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamExecuteRequest); - - /** StreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** StreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** StreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** StreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** StreamExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** StreamExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new StreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamExecuteRequest instance - */ - public static create(properties?: query.IStreamExecuteRequest): query.StreamExecuteRequest; - - /** - * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. - * @param message StreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. - * @param message StreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteRequest; - - /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteRequest; - - /** - * Verifies a StreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.StreamExecuteRequest; - - /** - * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. - * @param message StreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamExecuteResponse. */ - interface IStreamExecuteResponse { - - /** StreamExecuteResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a StreamExecuteResponse. */ - class StreamExecuteResponse implements IStreamExecuteResponse { - - /** - * Constructs a new StreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamExecuteResponse); - - /** StreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new StreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamExecuteResponse instance - */ - public static create(properties?: query.IStreamExecuteResponse): query.StreamExecuteResponse; - - /** - * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. - * @param message StreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. - * @param message StreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteResponse; - - /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteResponse; - - /** - * Verifies a StreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.StreamExecuteResponse; - - /** - * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. - * @param message StreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginRequest. */ - interface IBeginRequest { - - /** BeginRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginRequest target */ - target?: (query.ITarget|null); - - /** BeginRequest options */ - options?: (query.IExecuteOptions|null); - } - - /** Represents a BeginRequest. */ - class BeginRequest implements IBeginRequest { - - /** - * Constructs a new BeginRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginRequest); - - /** BeginRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginRequest target. */ - public target?: (query.ITarget|null); - - /** BeginRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** - * Creates a new BeginRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginRequest instance - */ - public static create(properties?: query.IBeginRequest): query.BeginRequest; - - /** - * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. - * @param message BeginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. - * @param message BeginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginRequest; - - /** - * Decodes a BeginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginRequest; - - /** - * Verifies a BeginRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginRequest; - - /** - * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. - * @param message BeginRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginResponse. */ - interface IBeginResponse { - - /** BeginResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginResponse. */ - class BeginResponse implements IBeginResponse { - - /** - * Constructs a new BeginResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginResponse); - - /** BeginResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginResponse instance - */ - public static create(properties?: query.IBeginResponse): query.BeginResponse; - - /** - * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @param message BeginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @param message BeginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginResponse; - - /** - * Decodes a BeginResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginResponse; - - /** - * Verifies a BeginResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginResponse; - - /** - * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. - * @param message BeginResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitRequest. */ - interface ICommitRequest { - - /** CommitRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitRequest target */ - target?: (query.ITarget|null); - - /** CommitRequest transaction_id */ - transaction_id?: (number|Long|null); - } - - /** Represents a CommitRequest. */ - class CommitRequest implements ICommitRequest { - - /** - * Constructs a new CommitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitRequest); - - /** CommitRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitRequest target. */ - public target?: (query.ITarget|null); - - /** CommitRequest transaction_id. */ - public transaction_id: (number|Long); - - /** - * Creates a new CommitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitRequest instance - */ - public static create(properties?: query.ICommitRequest): query.CommitRequest; - - /** - * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. - * @param message CommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. - * @param message CommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitRequest; - - /** - * Decodes a CommitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitRequest; - - /** - * Verifies a CommitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitRequest - */ - public static fromObject(object: { [k: string]: any }): query.CommitRequest; - - /** - * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. - * @param message CommitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitResponse. */ - interface ICommitResponse { - - /** CommitResponse reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a CommitResponse. */ - class CommitResponse implements ICommitResponse { - - /** - * Constructs a new CommitResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitResponse); - - /** CommitResponse reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new CommitResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitResponse instance - */ - public static create(properties?: query.ICommitResponse): query.CommitResponse; - - /** - * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. - * @param message CommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. - * @param message CommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitResponse; - - /** - * Decodes a CommitResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitResponse; - - /** - * Verifies a CommitResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitResponse - */ - public static fromObject(object: { [k: string]: any }): query.CommitResponse; - - /** - * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. - * @param message CommitResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackRequest. */ - interface IRollbackRequest { - - /** RollbackRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackRequest target */ - target?: (query.ITarget|null); - - /** RollbackRequest transaction_id */ - transaction_id?: (number|Long|null); - } - - /** Represents a RollbackRequest. */ - class RollbackRequest implements IRollbackRequest { - - /** - * Constructs a new RollbackRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackRequest); - - /** RollbackRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackRequest target. */ - public target?: (query.ITarget|null); - - /** RollbackRequest transaction_id. */ - public transaction_id: (number|Long); - - /** - * Creates a new RollbackRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackRequest instance - */ - public static create(properties?: query.IRollbackRequest): query.RollbackRequest; - - /** - * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @param message RollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @param message RollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackRequest; - - /** - * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackRequest; - - /** - * Verifies a RollbackRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackRequest - */ - public static fromObject(object: { [k: string]: any }): query.RollbackRequest; - - /** - * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. - * @param message RollbackRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackResponse. */ - interface IRollbackResponse { - - /** RollbackResponse reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a RollbackResponse. */ - class RollbackResponse implements IRollbackResponse { - - /** - * Constructs a new RollbackResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackResponse); - - /** RollbackResponse reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new RollbackResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackResponse instance - */ - public static create(properties?: query.IRollbackResponse): query.RollbackResponse; - - /** - * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @param message RollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @param message RollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackResponse; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackResponse; - - /** - * Verifies a RollbackResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackResponse - */ - public static fromObject(object: { [k: string]: any }): query.RollbackResponse; - - /** - * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. - * @param message RollbackResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PrepareRequest. */ - interface IPrepareRequest { - - /** PrepareRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** PrepareRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** PrepareRequest target */ - target?: (query.ITarget|null); - - /** PrepareRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** PrepareRequest dtid */ - dtid?: (string|null); - } - - /** Represents a PrepareRequest. */ - class PrepareRequest implements IPrepareRequest { - - /** - * Constructs a new PrepareRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IPrepareRequest); - - /** PrepareRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** PrepareRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** PrepareRequest target. */ - public target?: (query.ITarget|null); - - /** PrepareRequest transaction_id. */ - public transaction_id: (number|Long); - - /** PrepareRequest dtid. */ - public dtid: string; - - /** - * Creates a new PrepareRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PrepareRequest instance - */ - public static create(properties?: query.IPrepareRequest): query.PrepareRequest; - - /** - * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. - * @param message PrepareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. - * @param message PrepareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrepareRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrepareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareRequest; - - /** - * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrepareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareRequest; - - /** - * Verifies a PrepareRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrepareRequest - */ - public static fromObject(object: { [k: string]: any }): query.PrepareRequest; - - /** - * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. - * @param message PrepareRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.PrepareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrepareRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrepareRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PrepareResponse. */ - interface IPrepareResponse { - } - - /** Represents a PrepareResponse. */ - class PrepareResponse implements IPrepareResponse { - - /** - * Constructs a new PrepareResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IPrepareResponse); - - /** - * Creates a new PrepareResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PrepareResponse instance - */ - public static create(properties?: query.IPrepareResponse): query.PrepareResponse; - - /** - * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. - * @param message PrepareResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. - * @param message PrepareResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrepareResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrepareResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareResponse; - - /** - * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrepareResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareResponse; - - /** - * Verifies a PrepareResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrepareResponse - */ - public static fromObject(object: { [k: string]: any }): query.PrepareResponse; - - /** - * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. - * @param message PrepareResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.PrepareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrepareResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrepareResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitPreparedRequest. */ - interface ICommitPreparedRequest { - - /** CommitPreparedRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitPreparedRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitPreparedRequest target */ - target?: (query.ITarget|null); - - /** CommitPreparedRequest dtid */ - dtid?: (string|null); - } - - /** Represents a CommitPreparedRequest. */ - class CommitPreparedRequest implements ICommitPreparedRequest { - - /** - * Constructs a new CommitPreparedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitPreparedRequest); - - /** CommitPreparedRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitPreparedRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitPreparedRequest target. */ - public target?: (query.ITarget|null); - - /** CommitPreparedRequest dtid. */ - public dtid: string; - - /** - * Creates a new CommitPreparedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitPreparedRequest instance - */ - public static create(properties?: query.ICommitPreparedRequest): query.CommitPreparedRequest; - - /** - * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @param message CommitPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @param message CommitPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedRequest; - - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedRequest; - - /** - * Verifies a CommitPreparedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitPreparedRequest - */ - public static fromObject(object: { [k: string]: any }): query.CommitPreparedRequest; - - /** - * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. - * @param message CommitPreparedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitPreparedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitPreparedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitPreparedResponse. */ - interface ICommitPreparedResponse { - } - - /** Represents a CommitPreparedResponse. */ - class CommitPreparedResponse implements ICommitPreparedResponse { - - /** - * Constructs a new CommitPreparedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitPreparedResponse); - - /** - * Creates a new CommitPreparedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitPreparedResponse instance - */ - public static create(properties?: query.ICommitPreparedResponse): query.CommitPreparedResponse; - - /** - * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. - * @param message CommitPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. - * @param message CommitPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedResponse; - - /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedResponse; - - /** - * Verifies a CommitPreparedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitPreparedResponse - */ - public static fromObject(object: { [k: string]: any }): query.CommitPreparedResponse; - - /** - * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. - * @param message CommitPreparedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitPreparedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitPreparedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackPreparedRequest. */ - interface IRollbackPreparedRequest { - - /** RollbackPreparedRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackPreparedRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackPreparedRequest target */ - target?: (query.ITarget|null); - - /** RollbackPreparedRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** RollbackPreparedRequest dtid */ - dtid?: (string|null); - } - - /** Represents a RollbackPreparedRequest. */ - class RollbackPreparedRequest implements IRollbackPreparedRequest { - - /** - * Constructs a new RollbackPreparedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackPreparedRequest); - - /** RollbackPreparedRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackPreparedRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackPreparedRequest target. */ - public target?: (query.ITarget|null); - - /** RollbackPreparedRequest transaction_id. */ - public transaction_id: (number|Long); - - /** RollbackPreparedRequest dtid. */ - public dtid: string; - - /** - * Creates a new RollbackPreparedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackPreparedRequest instance - */ - public static create(properties?: query.IRollbackPreparedRequest): query.RollbackPreparedRequest; - - /** - * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. - * @param message RollbackPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. - * @param message RollbackPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedRequest; - - /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedRequest; - - /** - * Verifies a RollbackPreparedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackPreparedRequest - */ - public static fromObject(object: { [k: string]: any }): query.RollbackPreparedRequest; - - /** - * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. - * @param message RollbackPreparedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackPreparedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackPreparedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackPreparedResponse. */ - interface IRollbackPreparedResponse { - } - - /** Represents a RollbackPreparedResponse. */ - class RollbackPreparedResponse implements IRollbackPreparedResponse { - - /** - * Constructs a new RollbackPreparedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackPreparedResponse); - - /** - * Creates a new RollbackPreparedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackPreparedResponse instance - */ - public static create(properties?: query.IRollbackPreparedResponse): query.RollbackPreparedResponse; - - /** - * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. - * @param message RollbackPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. - * @param message RollbackPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedResponse; - - /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedResponse; - - /** - * Verifies a RollbackPreparedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackPreparedResponse - */ - public static fromObject(object: { [k: string]: any }): query.RollbackPreparedResponse; - - /** - * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. - * @param message RollbackPreparedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackPreparedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackPreparedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateTransactionRequest. */ - interface ICreateTransactionRequest { - - /** CreateTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CreateTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CreateTransactionRequest target */ - target?: (query.ITarget|null); - - /** CreateTransactionRequest dtid */ - dtid?: (string|null); - - /** CreateTransactionRequest participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a CreateTransactionRequest. */ - class CreateTransactionRequest implements ICreateTransactionRequest { - - /** - * Constructs a new CreateTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICreateTransactionRequest); - - /** CreateTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CreateTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CreateTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** CreateTransactionRequest dtid. */ - public dtid: string; - - /** CreateTransactionRequest participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new CreateTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransactionRequest instance - */ - public static create(properties?: query.ICreateTransactionRequest): query.CreateTransactionRequest; - - /** - * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. - * @param message CreateTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. - * @param message CreateTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionRequest; - - /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionRequest; - - /** - * Verifies a CreateTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.CreateTransactionRequest; - - /** - * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. - * @param message CreateTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CreateTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateTransactionResponse. */ - interface ICreateTransactionResponse { - } - - /** Represents a CreateTransactionResponse. */ - class CreateTransactionResponse implements ICreateTransactionResponse { - - /** - * Constructs a new CreateTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICreateTransactionResponse); - - /** - * Creates a new CreateTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransactionResponse instance - */ - public static create(properties?: query.ICreateTransactionResponse): query.CreateTransactionResponse; - - /** - * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. - * @param message CreateTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. - * @param message CreateTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionResponse; - - /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionResponse; - - /** - * Verifies a CreateTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.CreateTransactionResponse; - - /** - * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. - * @param message CreateTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CreateTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartCommitRequest. */ - interface IStartCommitRequest { - - /** StartCommitRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** StartCommitRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StartCommitRequest target */ - target?: (query.ITarget|null); - - /** StartCommitRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** StartCommitRequest dtid */ - dtid?: (string|null); - } - - /** Represents a StartCommitRequest. */ - class StartCommitRequest implements IStartCommitRequest { - - /** - * Constructs a new StartCommitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStartCommitRequest); - - /** StartCommitRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** StartCommitRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StartCommitRequest target. */ - public target?: (query.ITarget|null); - - /** StartCommitRequest transaction_id. */ - public transaction_id: (number|Long); - - /** StartCommitRequest dtid. */ - public dtid: string; - - /** - * Creates a new StartCommitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StartCommitRequest instance - */ - public static create(properties?: query.IStartCommitRequest): query.StartCommitRequest; - - /** - * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. - * @param message StartCommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. - * @param message StartCommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartCommitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartCommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitRequest; - - /** - * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartCommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitRequest; - - /** - * Verifies a StartCommitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartCommitRequest - */ - public static fromObject(object: { [k: string]: any }): query.StartCommitRequest; - - /** - * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. - * @param message StartCommitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StartCommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartCommitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartCommitRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartCommitResponse. */ - interface IStartCommitResponse { - } - - /** Represents a StartCommitResponse. */ - class StartCommitResponse implements IStartCommitResponse { - - /** - * Constructs a new StartCommitResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStartCommitResponse); - - /** - * Creates a new StartCommitResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StartCommitResponse instance - */ - public static create(properties?: query.IStartCommitResponse): query.StartCommitResponse; - - /** - * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. - * @param message StartCommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. - * @param message StartCommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartCommitResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartCommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitResponse; - - /** - * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartCommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitResponse; - - /** - * Verifies a StartCommitResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartCommitResponse - */ - public static fromObject(object: { [k: string]: any }): query.StartCommitResponse; - - /** - * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. - * @param message StartCommitResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StartCommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartCommitResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartCommitResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetRollbackRequest. */ - interface ISetRollbackRequest { - - /** SetRollbackRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** SetRollbackRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** SetRollbackRequest target */ - target?: (query.ITarget|null); - - /** SetRollbackRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** SetRollbackRequest dtid */ - dtid?: (string|null); - } - - /** Represents a SetRollbackRequest. */ - class SetRollbackRequest implements ISetRollbackRequest { - - /** - * Constructs a new SetRollbackRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ISetRollbackRequest); - - /** SetRollbackRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** SetRollbackRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** SetRollbackRequest target. */ - public target?: (query.ITarget|null); - - /** SetRollbackRequest transaction_id. */ - public transaction_id: (number|Long); - - /** SetRollbackRequest dtid. */ - public dtid: string; - - /** - * Creates a new SetRollbackRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetRollbackRequest instance - */ - public static create(properties?: query.ISetRollbackRequest): query.SetRollbackRequest; - - /** - * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. - * @param message SetRollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. - * @param message SetRollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetRollbackRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetRollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackRequest; - - /** - * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetRollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackRequest; - - /** - * Verifies a SetRollbackRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetRollbackRequest - */ - public static fromObject(object: { [k: string]: any }): query.SetRollbackRequest; - - /** - * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. - * @param message SetRollbackRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.SetRollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetRollbackRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetRollbackRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetRollbackResponse. */ - interface ISetRollbackResponse { - } - - /** Represents a SetRollbackResponse. */ - class SetRollbackResponse implements ISetRollbackResponse { - - /** - * Constructs a new SetRollbackResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ISetRollbackResponse); - - /** - * Creates a new SetRollbackResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetRollbackResponse instance - */ - public static create(properties?: query.ISetRollbackResponse): query.SetRollbackResponse; - - /** - * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. - * @param message SetRollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. - * @param message SetRollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetRollbackResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetRollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackResponse; - - /** - * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetRollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackResponse; - - /** - * Verifies a SetRollbackResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetRollbackResponse - */ - public static fromObject(object: { [k: string]: any }): query.SetRollbackResponse; - - /** - * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. - * @param message SetRollbackResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.SetRollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetRollbackResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetRollbackResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionRequest. */ - interface IConcludeTransactionRequest { - - /** ConcludeTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ConcludeTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ConcludeTransactionRequest target */ - target?: (query.ITarget|null); - - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); - } - - /** Represents a ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { - - /** - * Constructs a new ConcludeTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IConcludeTransactionRequest); - - /** ConcludeTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ConcludeTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ConcludeTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** ConcludeTransactionRequest dtid. */ - public dtid: string; - - /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance - */ - public static create(properties?: query.IConcludeTransactionRequest): query.ConcludeTransactionRequest; - - /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionRequest; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionRequest; - - /** - * Verifies a ConcludeTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionRequest; - - /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { - } - - /** Represents a ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { - - /** - * Constructs a new ConcludeTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IConcludeTransactionResponse); - - /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance - */ - public static create(properties?: query.IConcludeTransactionResponse): query.ConcludeTransactionResponse; - - /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionResponse; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionResponse; - - /** - * Verifies a ConcludeTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionResponse; - - /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReadTransactionRequest. */ - interface IReadTransactionRequest { - - /** ReadTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReadTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReadTransactionRequest target */ - target?: (query.ITarget|null); - - /** ReadTransactionRequest dtid */ - dtid?: (string|null); - } - - /** Represents a ReadTransactionRequest. */ - class ReadTransactionRequest implements IReadTransactionRequest { - - /** - * Constructs a new ReadTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReadTransactionRequest); - - /** ReadTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReadTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReadTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** ReadTransactionRequest dtid. */ - public dtid: string; - - /** - * Creates a new ReadTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadTransactionRequest instance - */ - public static create(properties?: query.IReadTransactionRequest): query.ReadTransactionRequest; - - /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionRequest; - - /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionRequest; - - /** - * Verifies a ReadTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReadTransactionRequest; - - /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. - * @param message ReadTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReadTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReadTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReadTransactionResponse. */ - interface IReadTransactionResponse { - - /** ReadTransactionResponse metadata */ - metadata?: (query.ITransactionMetadata|null); - } - - /** Represents a ReadTransactionResponse. */ - class ReadTransactionResponse implements IReadTransactionResponse { - - /** - * Constructs a new ReadTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReadTransactionResponse); - - /** ReadTransactionResponse metadata. */ - public metadata?: (query.ITransactionMetadata|null); - - /** - * Creates a new ReadTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadTransactionResponse instance - */ - public static create(properties?: query.IReadTransactionResponse): query.ReadTransactionResponse; - - /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionResponse; - - /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionResponse; - - /** - * Verifies a ReadTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReadTransactionResponse; - - /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. - * @param message ReadTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReadTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReadTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UnresolvedTransactionsRequest. */ - interface IUnresolvedTransactionsRequest { - - /** UnresolvedTransactionsRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** UnresolvedTransactionsRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** UnresolvedTransactionsRequest target */ - target?: (query.ITarget|null); - - /** UnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); - } - - /** Represents an UnresolvedTransactionsRequest. */ - class UnresolvedTransactionsRequest implements IUnresolvedTransactionsRequest { - - /** - * Constructs a new UnresolvedTransactionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUnresolvedTransactionsRequest); - - /** UnresolvedTransactionsRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** UnresolvedTransactionsRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** UnresolvedTransactionsRequest target. */ - public target?: (query.ITarget|null); - - /** UnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); - - /** - * Creates a new UnresolvedTransactionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UnresolvedTransactionsRequest instance - */ - public static create(properties?: query.IUnresolvedTransactionsRequest): query.UnresolvedTransactionsRequest; - - /** - * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. - * @param message UnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. - * @param message UnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsRequest; - - /** - * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsRequest; - - /** - * Verifies an UnresolvedTransactionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnresolvedTransactionsRequest - */ - public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsRequest; - - /** - * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message UnresolvedTransactionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnresolvedTransactionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UnresolvedTransactionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UnresolvedTransactionsResponse. */ - interface IUnresolvedTransactionsResponse { - - /** UnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); - } - - /** Represents an UnresolvedTransactionsResponse. */ - class UnresolvedTransactionsResponse implements IUnresolvedTransactionsResponse { - - /** - * Constructs a new UnresolvedTransactionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUnresolvedTransactionsResponse); - - /** UnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; - - /** - * Creates a new UnresolvedTransactionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UnresolvedTransactionsResponse instance - */ - public static create(properties?: query.IUnresolvedTransactionsResponse): query.UnresolvedTransactionsResponse; - - /** - * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. - * @param message UnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. - * @param message UnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsResponse; - - /** - * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsResponse; - - /** - * Verifies an UnresolvedTransactionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnresolvedTransactionsResponse - */ - public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsResponse; - - /** - * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message UnresolvedTransactionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnresolvedTransactionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UnresolvedTransactionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginExecuteRequest. */ - interface IBeginExecuteRequest { - - /** BeginExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginExecuteRequest target */ - target?: (query.ITarget|null); - - /** BeginExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** BeginExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** BeginExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - - /** BeginExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a BeginExecuteRequest. */ - class BeginExecuteRequest implements IBeginExecuteRequest { - - /** - * Constructs a new BeginExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginExecuteRequest); - - /** BeginExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** BeginExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** BeginExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** BeginExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** BeginExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new BeginExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginExecuteRequest instance - */ - public static create(properties?: query.IBeginExecuteRequest): query.BeginExecuteRequest; - - /** - * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. - * @param message BeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. - * @param message BeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteRequest; - - /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteRequest; - - /** - * Verifies a BeginExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginExecuteRequest; - - /** - * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. - * @param message BeginExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginExecuteResponse. */ - interface IBeginExecuteResponse { - - /** BeginExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** BeginExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** BeginExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginExecuteResponse. */ - class BeginExecuteResponse implements IBeginExecuteResponse { - - /** - * Constructs a new BeginExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginExecuteResponse); - - /** BeginExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** BeginExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** BeginExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginExecuteResponse instance - */ - public static create(properties?: query.IBeginExecuteResponse): query.BeginExecuteResponse; - - /** - * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. - * @param message BeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. - * @param message BeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteResponse; - - /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteResponse; - - /** - * Verifies a BeginExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginExecuteResponse; - - /** - * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. - * @param message BeginExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginStreamExecuteRequest. */ - interface IBeginStreamExecuteRequest { - - /** BeginStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** BeginStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** BeginStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** BeginStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** BeginStreamExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a BeginStreamExecuteRequest. */ - class BeginStreamExecuteRequest implements IBeginStreamExecuteRequest { - - /** - * Constructs a new BeginStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginStreamExecuteRequest); - - /** BeginStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** BeginStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** BeginStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** BeginStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** BeginStreamExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new BeginStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginStreamExecuteRequest instance - */ - public static create(properties?: query.IBeginStreamExecuteRequest): query.BeginStreamExecuteRequest; - - /** - * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. - * @param message BeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. - * @param message BeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteRequest; - - /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteRequest; - - /** - * Verifies a BeginStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteRequest; - - /** - * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. - * @param message BeginStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginStreamExecuteResponse. */ - interface IBeginStreamExecuteResponse { - - /** BeginStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** BeginStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** BeginStreamExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginStreamExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginStreamExecuteResponse. */ - class BeginStreamExecuteResponse implements IBeginStreamExecuteResponse { - - /** - * Constructs a new BeginStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginStreamExecuteResponse); - - /** BeginStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** BeginStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** BeginStreamExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginStreamExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginStreamExecuteResponse instance - */ - public static create(properties?: query.IBeginStreamExecuteResponse): query.BeginStreamExecuteResponse; - - /** - * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. - * @param message BeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. - * @param message BeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteResponse; - - /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteResponse; - - /** - * Verifies a BeginStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteResponse; - - /** - * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. - * @param message BeginStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageStreamRequest. */ - interface IMessageStreamRequest { - - /** MessageStreamRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageStreamRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageStreamRequest target */ - target?: (query.ITarget|null); - - /** MessageStreamRequest name */ - name?: (string|null); - } - - /** Represents a MessageStreamRequest. */ - class MessageStreamRequest implements IMessageStreamRequest { - - /** - * Constructs a new MessageStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageStreamRequest); - - /** MessageStreamRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageStreamRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageStreamRequest target. */ - public target?: (query.ITarget|null); - - /** MessageStreamRequest name. */ - public name: string; - - /** - * Creates a new MessageStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageStreamRequest instance - */ - public static create(properties?: query.IMessageStreamRequest): query.MessageStreamRequest; - - /** - * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. - * @param message MessageStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. - * @param message MessageStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamRequest; - - /** - * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamRequest; - - /** - * Verifies a MessageStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageStreamRequest - */ - public static fromObject(object: { [k: string]: any }): query.MessageStreamRequest; - - /** - * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. - * @param message MessageStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageStreamRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageStreamResponse. */ - interface IMessageStreamResponse { - - /** MessageStreamResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a MessageStreamResponse. */ - class MessageStreamResponse implements IMessageStreamResponse { - - /** - * Constructs a new MessageStreamResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageStreamResponse); - - /** MessageStreamResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new MessageStreamResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageStreamResponse instance - */ - public static create(properties?: query.IMessageStreamResponse): query.MessageStreamResponse; - - /** - * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. - * @param message MessageStreamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. - * @param message MessageStreamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageStreamResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageStreamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamResponse; - - /** - * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageStreamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamResponse; - - /** - * Verifies a MessageStreamResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageStreamResponse - */ - public static fromObject(object: { [k: string]: any }): query.MessageStreamResponse; - - /** - * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. - * @param message MessageStreamResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageStreamResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageStreamResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageAckRequest. */ - interface IMessageAckRequest { - - /** MessageAckRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageAckRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageAckRequest target */ - target?: (query.ITarget|null); - - /** MessageAckRequest name */ - name?: (string|null); - - /** MessageAckRequest ids */ - ids?: (query.IValue[]|null); - } - - /** Represents a MessageAckRequest. */ - class MessageAckRequest implements IMessageAckRequest { - - /** - * Constructs a new MessageAckRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageAckRequest); - - /** MessageAckRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageAckRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageAckRequest target. */ - public target?: (query.ITarget|null); - - /** MessageAckRequest name. */ - public name: string; - - /** MessageAckRequest ids. */ - public ids: query.IValue[]; - - /** - * Creates a new MessageAckRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageAckRequest instance - */ - public static create(properties?: query.IMessageAckRequest): query.MessageAckRequest; - - /** - * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. - * @param message MessageAckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. - * @param message MessageAckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageAckRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageAckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckRequest; - - /** - * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageAckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckRequest; - - /** - * Verifies a MessageAckRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageAckRequest - */ - public static fromObject(object: { [k: string]: any }): query.MessageAckRequest; - - /** - * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. - * @param message MessageAckRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageAckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageAckRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageAckRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageAckResponse. */ - interface IMessageAckResponse { - - /** MessageAckResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a MessageAckResponse. */ - class MessageAckResponse implements IMessageAckResponse { - - /** - * Constructs a new MessageAckResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageAckResponse); - - /** MessageAckResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new MessageAckResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageAckResponse instance - */ - public static create(properties?: query.IMessageAckResponse): query.MessageAckResponse; - - /** - * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. - * @param message MessageAckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. - * @param message MessageAckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageAckResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageAckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckResponse; - - /** - * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageAckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckResponse; - - /** - * Verifies a MessageAckResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageAckResponse - */ - public static fromObject(object: { [k: string]: any }): query.MessageAckResponse; - - /** - * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. - * @param message MessageAckResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageAckResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageAckResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveExecuteRequest. */ - interface IReserveExecuteRequest { - - /** ReserveExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a ReserveExecuteRequest. */ - class ReserveExecuteRequest implements IReserveExecuteRequest { - - /** - * Constructs a new ReserveExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveExecuteRequest); - - /** ReserveExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new ReserveExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveExecuteRequest instance - */ - public static create(properties?: query.IReserveExecuteRequest): query.ReserveExecuteRequest; - - /** - * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. - * @param message ReserveExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. - * @param message ReserveExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteRequest; - - /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteRequest; - - /** - * Verifies a ReserveExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveExecuteRequest; - - /** - * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveExecuteResponse. */ - interface IReserveExecuteResponse { - - /** ReserveExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReserveExecuteResponse. */ - class ReserveExecuteResponse implements IReserveExecuteResponse { - - /** - * Constructs a new ReserveExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveExecuteResponse); - - /** ReserveExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReserveExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveExecuteResponse instance - */ - public static create(properties?: query.IReserveExecuteResponse): query.ReserveExecuteResponse; - - /** - * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. - * @param message ReserveExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. - * @param message ReserveExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteResponse; - - /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteResponse; - - /** - * Verifies a ReserveExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveExecuteResponse; - - /** - * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveStreamExecuteRequest. */ - interface IReserveStreamExecuteRequest { - - /** ReserveStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveStreamExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a ReserveStreamExecuteRequest. */ - class ReserveStreamExecuteRequest implements IReserveStreamExecuteRequest { - - /** - * Constructs a new ReserveStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveStreamExecuteRequest); - - /** ReserveStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveStreamExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new ReserveStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveStreamExecuteRequest instance - */ - public static create(properties?: query.IReserveStreamExecuteRequest): query.ReserveStreamExecuteRequest; - - /** - * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. - * @param message ReserveStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. - * @param message ReserveStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteRequest; - - /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteRequest; - - /** - * Verifies a ReserveStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteRequest; - - /** - * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveStreamExecuteResponse. */ - interface IReserveStreamExecuteResponse { - - /** ReserveStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveStreamExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReserveStreamExecuteResponse. */ - class ReserveStreamExecuteResponse implements IReserveStreamExecuteResponse { - - /** - * Constructs a new ReserveStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveStreamExecuteResponse); - - /** ReserveStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveStreamExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReserveStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveStreamExecuteResponse instance - */ - public static create(properties?: query.IReserveStreamExecuteResponse): query.ReserveStreamExecuteResponse; - - /** - * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. - * @param message ReserveStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. - * @param message ReserveStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteResponse; - - /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteResponse; - - /** - * Verifies a ReserveStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteResponse; - - /** - * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginExecuteRequest. */ - interface IReserveBeginExecuteRequest { - - /** ReserveBeginExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveBeginExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveBeginExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveBeginExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** ReserveBeginExecuteRequest post_begin_queries */ - post_begin_queries?: (string[]|null); - } - - /** Represents a ReserveBeginExecuteRequest. */ - class ReserveBeginExecuteRequest implements IReserveBeginExecuteRequest { - - /** - * Constructs a new ReserveBeginExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginExecuteRequest); - - /** ReserveBeginExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveBeginExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveBeginExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveBeginExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** ReserveBeginExecuteRequest post_begin_queries. */ - public post_begin_queries: string[]; - - /** - * Creates a new ReserveBeginExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginExecuteRequest instance - */ - public static create(properties?: query.IReserveBeginExecuteRequest): query.ReserveBeginExecuteRequest; - - /** - * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. - * @param message ReserveBeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. - * @param message ReserveBeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteRequest; - - /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteRequest; - - /** - * Verifies a ReserveBeginExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteRequest; - - /** - * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveBeginExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginExecuteResponse. */ - interface IReserveBeginExecuteResponse { - - /** ReserveBeginExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveBeginExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveBeginExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveBeginExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveBeginExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a ReserveBeginExecuteResponse. */ - class ReserveBeginExecuteResponse implements IReserveBeginExecuteResponse { - - /** - * Constructs a new ReserveBeginExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginExecuteResponse); - - /** ReserveBeginExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveBeginExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveBeginExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveBeginExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveBeginExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new ReserveBeginExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginExecuteResponse instance - */ - public static create(properties?: query.IReserveBeginExecuteResponse): query.ReserveBeginExecuteResponse; - - /** - * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. - * @param message ReserveBeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. - * @param message ReserveBeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteResponse; - - /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteResponse; - - /** - * Verifies a ReserveBeginExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteResponse; - - /** - * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveBeginExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginStreamExecuteRequest. */ - interface IReserveBeginStreamExecuteRequest { - - /** ReserveBeginStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveBeginStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveBeginStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveBeginStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** ReserveBeginStreamExecuteRequest post_begin_queries */ - post_begin_queries?: (string[]|null); - } - - /** Represents a ReserveBeginStreamExecuteRequest. */ - class ReserveBeginStreamExecuteRequest implements IReserveBeginStreamExecuteRequest { - - /** - * Constructs a new ReserveBeginStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginStreamExecuteRequest); - - /** ReserveBeginStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveBeginStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveBeginStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveBeginStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** ReserveBeginStreamExecuteRequest post_begin_queries. */ - public post_begin_queries: string[]; - - /** - * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginStreamExecuteRequest instance - */ - public static create(properties?: query.IReserveBeginStreamExecuteRequest): query.ReserveBeginStreamExecuteRequest; - - /** - * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. - * @param message ReserveBeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. - * @param message ReserveBeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteRequest; - - /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteRequest; - - /** - * Verifies a ReserveBeginStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteRequest; - - /** - * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveBeginStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginStreamExecuteResponse. */ - interface IReserveBeginStreamExecuteResponse { - - /** ReserveBeginStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveBeginStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveBeginStreamExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveBeginStreamExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveBeginStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginStreamExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a ReserveBeginStreamExecuteResponse. */ - class ReserveBeginStreamExecuteResponse implements IReserveBeginStreamExecuteResponse { - - /** - * Constructs a new ReserveBeginStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginStreamExecuteResponse); - - /** ReserveBeginStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveBeginStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveBeginStreamExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveBeginStreamExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveBeginStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginStreamExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginStreamExecuteResponse instance - */ - public static create(properties?: query.IReserveBeginStreamExecuteResponse): query.ReserveBeginStreamExecuteResponse; - - /** - * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. - * @param message ReserveBeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. - * @param message ReserveBeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteResponse; - - /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteResponse; - - /** - * Verifies a ReserveBeginStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteResponse; - - /** - * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveBeginStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReleaseRequest. */ - interface IReleaseRequest { - - /** ReleaseRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReleaseRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReleaseRequest target */ - target?: (query.ITarget|null); - - /** ReleaseRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReleaseRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a ReleaseRequest. */ - class ReleaseRequest implements IReleaseRequest { - - /** - * Constructs a new ReleaseRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReleaseRequest); - - /** ReleaseRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReleaseRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReleaseRequest target. */ - public target?: (query.ITarget|null); - - /** ReleaseRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReleaseRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new ReleaseRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReleaseRequest instance - */ - public static create(properties?: query.IReleaseRequest): query.ReleaseRequest; - - /** - * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. - * @param message ReleaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. - * @param message ReleaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReleaseRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReleaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseRequest; - - /** - * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReleaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseRequest; - - /** - * Verifies a ReleaseRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReleaseRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReleaseRequest; - - /** - * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. - * @param message ReleaseRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReleaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReleaseRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReleaseRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReleaseResponse. */ - interface IReleaseResponse { - } - - /** Represents a ReleaseResponse. */ - class ReleaseResponse implements IReleaseResponse { - - /** - * Constructs a new ReleaseResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReleaseResponse); - - /** - * Creates a new ReleaseResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReleaseResponse instance - */ - public static create(properties?: query.IReleaseResponse): query.ReleaseResponse; - - /** - * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. - * @param message ReleaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. - * @param message ReleaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReleaseResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReleaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseResponse; - - /** - * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReleaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseResponse; - - /** - * Verifies a ReleaseResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReleaseResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReleaseResponse; - - /** - * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. - * @param message ReleaseResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReleaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReleaseResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReleaseResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamHealthRequest. */ - interface IStreamHealthRequest { - } - - /** Represents a StreamHealthRequest. */ - class StreamHealthRequest implements IStreamHealthRequest { - - /** - * Constructs a new StreamHealthRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamHealthRequest); - - /** - * Creates a new StreamHealthRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamHealthRequest instance - */ - public static create(properties?: query.IStreamHealthRequest): query.StreamHealthRequest; - - /** - * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. - * @param message StreamHealthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. - * @param message StreamHealthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamHealthRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamHealthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthRequest; - - /** - * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamHealthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthRequest; - - /** - * Verifies a StreamHealthRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamHealthRequest - */ - public static fromObject(object: { [k: string]: any }): query.StreamHealthRequest; - - /** - * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. - * @param message StreamHealthRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamHealthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamHealthRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamHealthRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RealtimeStats. */ - interface IRealtimeStats { - - /** RealtimeStats health_error */ - health_error?: (string|null); - - /** RealtimeStats replication_lag_seconds */ - replication_lag_seconds?: (number|null); - - /** RealtimeStats binlog_players_count */ - binlog_players_count?: (number|null); - - /** RealtimeStats filtered_replication_lag_seconds */ - filtered_replication_lag_seconds?: (number|Long|null); - - /** RealtimeStats cpu_usage */ - cpu_usage?: (number|null); - - /** RealtimeStats qps */ - qps?: (number|null); - - /** RealtimeStats table_schema_changed */ - table_schema_changed?: (string[]|null); - - /** RealtimeStats view_schema_changed */ - view_schema_changed?: (string[]|null); - - /** RealtimeStats udfs_changed */ - udfs_changed?: (boolean|null); - - /** RealtimeStats tx_unresolved */ - tx_unresolved?: (boolean|null); - } - - /** Represents a RealtimeStats. */ - class RealtimeStats implements IRealtimeStats { - - /** - * Constructs a new RealtimeStats. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRealtimeStats); - - /** RealtimeStats health_error. */ - public health_error: string; - - /** RealtimeStats replication_lag_seconds. */ - public replication_lag_seconds: number; - - /** RealtimeStats binlog_players_count. */ - public binlog_players_count: number; - - /** RealtimeStats filtered_replication_lag_seconds. */ - public filtered_replication_lag_seconds: (number|Long); - - /** RealtimeStats cpu_usage. */ - public cpu_usage: number; - - /** RealtimeStats qps. */ - public qps: number; - - /** RealtimeStats table_schema_changed. */ - public table_schema_changed: string[]; - - /** RealtimeStats view_schema_changed. */ - public view_schema_changed: string[]; - - /** RealtimeStats udfs_changed. */ - public udfs_changed: boolean; - - /** RealtimeStats tx_unresolved. */ - public tx_unresolved: boolean; - - /** - * Creates a new RealtimeStats instance using the specified properties. - * @param [properties] Properties to set - * @returns RealtimeStats instance - */ - public static create(properties?: query.IRealtimeStats): query.RealtimeStats; - - /** - * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @param message RealtimeStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @param message RealtimeStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RealtimeStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RealtimeStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RealtimeStats; - - /** - * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RealtimeStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RealtimeStats; - - /** - * Verifies a RealtimeStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RealtimeStats - */ - public static fromObject(object: { [k: string]: any }): query.RealtimeStats; - - /** - * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. - * @param message RealtimeStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RealtimeStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RealtimeStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RealtimeStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AggregateStats. */ - interface IAggregateStats { - - /** AggregateStats healthy_tablet_count */ - healthy_tablet_count?: (number|null); - - /** AggregateStats unhealthy_tablet_count */ - unhealthy_tablet_count?: (number|null); - - /** AggregateStats replication_lag_seconds_min */ - replication_lag_seconds_min?: (number|null); - - /** AggregateStats replication_lag_seconds_max */ - replication_lag_seconds_max?: (number|null); - } - - /** Represents an AggregateStats. */ - class AggregateStats implements IAggregateStats { - - /** - * Constructs a new AggregateStats. - * @param [properties] Properties to set - */ - constructor(properties?: query.IAggregateStats); - - /** AggregateStats healthy_tablet_count. */ - public healthy_tablet_count: number; - - /** AggregateStats unhealthy_tablet_count. */ - public unhealthy_tablet_count: number; - - /** AggregateStats replication_lag_seconds_min. */ - public replication_lag_seconds_min: number; - - /** AggregateStats replication_lag_seconds_max. */ - public replication_lag_seconds_max: number; - - /** - * Creates a new AggregateStats instance using the specified properties. - * @param [properties] Properties to set - * @returns AggregateStats instance - */ - public static create(properties?: query.IAggregateStats): query.AggregateStats; - - /** - * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @param message AggregateStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @param message AggregateStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AggregateStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AggregateStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.AggregateStats; - - /** - * Decodes an AggregateStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AggregateStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.AggregateStats; - - /** - * Verifies an AggregateStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AggregateStats - */ - public static fromObject(object: { [k: string]: any }): query.AggregateStats; - - /** - * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. - * @param message AggregateStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.AggregateStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AggregateStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AggregateStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamHealthResponse. */ - interface IStreamHealthResponse { - - /** StreamHealthResponse target */ - target?: (query.ITarget|null); - - /** StreamHealthResponse serving */ - serving?: (boolean|null); - - /** StreamHealthResponse primary_term_start_timestamp */ - primary_term_start_timestamp?: (number|Long|null); - - /** StreamHealthResponse realtime_stats */ - realtime_stats?: (query.IRealtimeStats|null); - - /** StreamHealthResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StreamHealthResponse. */ - class StreamHealthResponse implements IStreamHealthResponse { - - /** - * Constructs a new StreamHealthResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamHealthResponse); - - /** StreamHealthResponse target. */ - public target?: (query.ITarget|null); - - /** StreamHealthResponse serving. */ - public serving: boolean; - - /** StreamHealthResponse primary_term_start_timestamp. */ - public primary_term_start_timestamp: (number|Long); - - /** StreamHealthResponse realtime_stats. */ - public realtime_stats?: (query.IRealtimeStats|null); - - /** StreamHealthResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StreamHealthResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamHealthResponse instance - */ - public static create(properties?: query.IStreamHealthResponse): query.StreamHealthResponse; - - /** - * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. - * @param message StreamHealthResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. - * @param message StreamHealthResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamHealthResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamHealthResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthResponse; - - /** - * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamHealthResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthResponse; - - /** - * Verifies a StreamHealthResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamHealthResponse - */ - public static fromObject(object: { [k: string]: any }): query.StreamHealthResponse; - - /** - * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. - * @param message StreamHealthResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamHealthResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamHealthResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamHealthResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** TransactionState enum. */ - enum TransactionState { - UNKNOWN = 0, - PREPARE = 1, - ROLLBACK = 2, - COMMIT = 3 - } - - /** Properties of a TransactionMetadata. */ - interface ITransactionMetadata { - - /** TransactionMetadata dtid */ - dtid?: (string|null); - - /** TransactionMetadata state */ - state?: (query.TransactionState|null); - - /** TransactionMetadata time_created */ - time_created?: (number|Long|null); - - /** TransactionMetadata participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a TransactionMetadata. */ - class TransactionMetadata implements ITransactionMetadata { - - /** - * Constructs a new TransactionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: query.ITransactionMetadata); - - /** TransactionMetadata dtid. */ - public dtid: string; - - /** TransactionMetadata state. */ - public state: query.TransactionState; - - /** TransactionMetadata time_created. */ - public time_created: (number|Long); - - /** TransactionMetadata participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new TransactionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TransactionMetadata instance - */ - public static create(properties?: query.ITransactionMetadata): query.TransactionMetadata; - - /** - * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. - * @param message TransactionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. - * @param message TransactionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TransactionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransactionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.TransactionMetadata; - - /** - * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransactionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.TransactionMetadata; - - /** - * Verifies a TransactionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransactionMetadata - */ - public static fromObject(object: { [k: string]: any }): query.TransactionMetadata; - - /** - * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. - * @param message TransactionMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.TransactionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TransactionMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TransactionMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** SchemaTableType enum. */ - enum SchemaTableType { - VIEWS = 0, - TABLES = 1, - ALL = 2, - UDFS = 3 - } - - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest target */ - target?: (query.ITarget|null); - - /** GetSchemaRequest table_type */ - table_type?: (query.SchemaTableType|null); - - /** GetSchemaRequest table_names */ - table_names?: (string[]|null); - } - - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { - - /** - * Constructs a new GetSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IGetSchemaRequest); - - /** GetSchemaRequest target. */ - public target?: (query.ITarget|null); - - /** GetSchemaRequest table_type. */ - public table_type: query.SchemaTableType; - - /** GetSchemaRequest table_names. */ - public table_names: string[]; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaRequest instance - */ - public static create(properties?: query.IGetSchemaRequest): query.GetSchemaRequest; - - /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaRequest; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaRequest; - - /** - * Verifies a GetSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): query.GetSchemaRequest; - - /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a UDFInfo. */ - interface IUDFInfo { - - /** UDFInfo name */ - name?: (string|null); - - /** UDFInfo aggregating */ - aggregating?: (boolean|null); - - /** UDFInfo return_type */ - return_type?: (query.Type|null); - } - - /** Represents a UDFInfo. */ - class UDFInfo implements IUDFInfo { - - /** - * Constructs a new UDFInfo. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUDFInfo); - - /** UDFInfo name. */ - public name: string; - - /** UDFInfo aggregating. */ - public aggregating: boolean; - - /** UDFInfo return_type. */ - public return_type: query.Type; - - /** - * Creates a new UDFInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns UDFInfo instance - */ - public static create(properties?: query.IUDFInfo): query.UDFInfo; - - /** - * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. - * @param message UDFInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. - * @param message UDFInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UDFInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UDFInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UDFInfo; - - /** - * Decodes a UDFInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UDFInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UDFInfo; - - /** - * Verifies a UDFInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UDFInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UDFInfo - */ - public static fromObject(object: { [k: string]: any }): query.UDFInfo; - - /** - * Creates a plain object from a UDFInfo message. Also converts values to other types if specified. - * @param message UDFInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UDFInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UDFInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UDFInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { - - /** GetSchemaResponse udfs */ - udfs?: (query.IUDFInfo[]|null); - - /** GetSchemaResponse table_definition */ - table_definition?: ({ [k: string]: string }|null); - } - - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { - - /** - * Constructs a new GetSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IGetSchemaResponse); - - /** GetSchemaResponse udfs. */ - public udfs: query.IUDFInfo[]; - - /** GetSchemaResponse table_definition. */ - public table_definition: { [k: string]: string }; - - /** - * Creates a new GetSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaResponse instance - */ - public static create(properties?: query.IGetSchemaResponse): query.GetSchemaResponse; - - /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaResponse; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaResponse; - - /** - * Verifies a GetSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): query.GetSchemaResponse; - - /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace replicationdata. */ -export namespace replicationdata { - - /** Properties of a Status. */ - interface IStatus { - - /** Status position */ - position?: (string|null); - - /** Status replication_lag_seconds */ - replication_lag_seconds?: (number|null); - - /** Status source_host */ - source_host?: (string|null); - - /** Status source_port */ - source_port?: (number|null); - - /** Status connect_retry */ - connect_retry?: (number|null); - - /** Status relay_log_position */ - relay_log_position?: (string|null); - - /** Status file_position */ - file_position?: (string|null); - - /** Status relay_log_source_binlog_equivalent_position */ - relay_log_source_binlog_equivalent_position?: (string|null); - - /** Status source_server_id */ - source_server_id?: (number|null); - - /** Status source_uuid */ - source_uuid?: (string|null); - - /** Status io_state */ - io_state?: (number|null); - - /** Status last_io_error */ - last_io_error?: (string|null); - - /** Status sql_state */ - sql_state?: (number|null); - - /** Status last_sql_error */ - last_sql_error?: (string|null); - - /** Status relay_log_file_position */ - relay_log_file_position?: (string|null); - - /** Status source_user */ - source_user?: (string|null); - - /** Status sql_delay */ - sql_delay?: (number|null); - - /** Status auto_position */ - auto_position?: (boolean|null); - - /** Status using_gtid */ - using_gtid?: (boolean|null); - - /** Status has_replication_filters */ - has_replication_filters?: (boolean|null); - - /** Status ssl_allowed */ - ssl_allowed?: (boolean|null); - - /** Status replication_lag_unknown */ - replication_lag_unknown?: (boolean|null); - } - - /** Represents a Status. */ - class Status implements IStatus { - - /** - * Constructs a new Status. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IStatus); - - /** Status position. */ - public position: string; - - /** Status replication_lag_seconds. */ - public replication_lag_seconds: number; - - /** Status source_host. */ - public source_host: string; - - /** Status source_port. */ - public source_port: number; - - /** Status connect_retry. */ - public connect_retry: number; - - /** Status relay_log_position. */ - public relay_log_position: string; - - /** Status file_position. */ - public file_position: string; - - /** Status relay_log_source_binlog_equivalent_position. */ - public relay_log_source_binlog_equivalent_position: string; - - /** Status source_server_id. */ - public source_server_id: number; - - /** Status source_uuid. */ - public source_uuid: string; - - /** Status io_state. */ - public io_state: number; - - /** Status last_io_error. */ - public last_io_error: string; - - /** Status sql_state. */ - public sql_state: number; - - /** Status last_sql_error. */ - public last_sql_error: string; - - /** Status relay_log_file_position. */ - public relay_log_file_position: string; - - /** Status source_user. */ - public source_user: string; - - /** Status sql_delay. */ - public sql_delay: number; - - /** Status auto_position. */ - public auto_position: boolean; - - /** Status using_gtid. */ - public using_gtid: boolean; - - /** Status has_replication_filters. */ - public has_replication_filters: boolean; - - /** Status ssl_allowed. */ - public ssl_allowed: boolean; - - /** Status replication_lag_unknown. */ - public replication_lag_unknown: boolean; - - /** - * Creates a new Status instance using the specified properties. - * @param [properties] Properties to set - * @returns Status instance - */ - public static create(properties?: replicationdata.IStatus): replicationdata.Status; - - /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Status message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Status - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Status; - - /** - * Decodes a Status message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Status - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Status; - - /** - * Verifies a Status message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Status - */ - public static fromObject(object: { [k: string]: any }): replicationdata.Status; - - /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @param message Status - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Status to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Status - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Configuration. */ - interface IConfiguration { - - /** Configuration heartbeat_interval */ - heartbeat_interval?: (number|null); - - /** Configuration replica_net_timeout */ - replica_net_timeout?: (number|null); - } - - /** Represents a Configuration. */ - class Configuration implements IConfiguration { - - /** - * Constructs a new Configuration. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IConfiguration); - - /** Configuration heartbeat_interval. */ - public heartbeat_interval: number; - - /** Configuration replica_net_timeout. */ - public replica_net_timeout: number; - - /** - * Creates a new Configuration instance using the specified properties. - * @param [properties] Properties to set - * @returns Configuration instance - */ - public static create(properties?: replicationdata.IConfiguration): replicationdata.Configuration; - - /** - * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. - * @param message Configuration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. - * @param message Configuration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Configuration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Configuration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Configuration; - - /** - * Decodes a Configuration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Configuration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Configuration; - - /** - * Verifies a Configuration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Configuration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Configuration - */ - public static fromObject(object: { [k: string]: any }): replicationdata.Configuration; - - /** - * Creates a plain object from a Configuration message. Also converts values to other types if specified. - * @param message Configuration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.Configuration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Configuration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Configuration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationStatus. */ - interface IStopReplicationStatus { - - /** StopReplicationStatus before */ - before?: (replicationdata.IStatus|null); - - /** StopReplicationStatus after */ - after?: (replicationdata.IStatus|null); - } - - /** Represents a StopReplicationStatus. */ - class StopReplicationStatus implements IStopReplicationStatus { - - /** - * Constructs a new StopReplicationStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IStopReplicationStatus); - - /** StopReplicationStatus before. */ - public before?: (replicationdata.IStatus|null); - - /** StopReplicationStatus after. */ - public after?: (replicationdata.IStatus|null); - - /** - * Creates a new StopReplicationStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationStatus instance - */ - public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; - - /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.StopReplicationStatus; - - /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.StopReplicationStatus; - - /** - * Verifies a StopReplicationStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; - - /** - * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. - * @param message StopReplicationStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** StopReplicationMode enum. */ - enum StopReplicationMode { - IOANDSQLTHREAD = 0, - IOTHREADONLY = 1 - } - - /** Properties of a PrimaryStatus. */ - interface IPrimaryStatus { - - /** PrimaryStatus position */ - position?: (string|null); - - /** PrimaryStatus file_position */ - file_position?: (string|null); - } - - /** Represents a PrimaryStatus. */ - class PrimaryStatus implements IPrimaryStatus { - - /** - * Constructs a new PrimaryStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IPrimaryStatus); - - /** PrimaryStatus position. */ - public position: string; - - /** PrimaryStatus file_position. */ - public file_position: string; - - /** - * Creates a new PrimaryStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PrimaryStatus instance - */ - public static create(properties?: replicationdata.IPrimaryStatus): replicationdata.PrimaryStatus; - - /** - * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. - * @param message PrimaryStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. - * @param message PrimaryStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrimaryStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrimaryStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.PrimaryStatus; - - /** - * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrimaryStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.PrimaryStatus; - - /** - * Verifies a PrimaryStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrimaryStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.PrimaryStatus; - - /** - * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. - * @param message PrimaryStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.PrimaryStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrimaryStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrimaryStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FullStatus. */ - interface IFullStatus { - - /** FullStatus server_id */ - server_id?: (number|null); - - /** FullStatus server_uuid */ - server_uuid?: (string|null); - - /** FullStatus replication_status */ - replication_status?: (replicationdata.IStatus|null); - - /** FullStatus primary_status */ - primary_status?: (replicationdata.IPrimaryStatus|null); - - /** FullStatus gtid_purged */ - gtid_purged?: (string|null); - - /** FullStatus version */ - version?: (string|null); - - /** FullStatus version_comment */ - version_comment?: (string|null); - - /** FullStatus read_only */ - read_only?: (boolean|null); - - /** FullStatus gtid_mode */ - gtid_mode?: (string|null); - - /** FullStatus binlog_format */ - binlog_format?: (string|null); - - /** FullStatus binlog_row_image */ - binlog_row_image?: (string|null); - - /** FullStatus log_bin_enabled */ - log_bin_enabled?: (boolean|null); - - /** FullStatus log_replica_updates */ - log_replica_updates?: (boolean|null); - - /** FullStatus semi_sync_primary_enabled */ - semi_sync_primary_enabled?: (boolean|null); - - /** FullStatus semi_sync_replica_enabled */ - semi_sync_replica_enabled?: (boolean|null); - - /** FullStatus semi_sync_primary_status */ - semi_sync_primary_status?: (boolean|null); - - /** FullStatus semi_sync_replica_status */ - semi_sync_replica_status?: (boolean|null); - - /** FullStatus semi_sync_primary_clients */ - semi_sync_primary_clients?: (number|null); - - /** FullStatus semi_sync_primary_timeout */ - semi_sync_primary_timeout?: (number|Long|null); - - /** FullStatus semi_sync_wait_for_replica_count */ - semi_sync_wait_for_replica_count?: (number|null); - - /** FullStatus super_read_only */ - super_read_only?: (boolean|null); - - /** FullStatus replication_configuration */ - replication_configuration?: (replicationdata.IConfiguration|null); - } - - /** Represents a FullStatus. */ - class FullStatus implements IFullStatus { - - /** - * Constructs a new FullStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IFullStatus); - - /** FullStatus server_id. */ - public server_id: number; - - /** FullStatus server_uuid. */ - public server_uuid: string; - - /** FullStatus replication_status. */ - public replication_status?: (replicationdata.IStatus|null); - - /** FullStatus primary_status. */ - public primary_status?: (replicationdata.IPrimaryStatus|null); - - /** FullStatus gtid_purged. */ - public gtid_purged: string; - - /** FullStatus version. */ - public version: string; - - /** FullStatus version_comment. */ - public version_comment: string; - - /** FullStatus read_only. */ - public read_only: boolean; - - /** FullStatus gtid_mode. */ - public gtid_mode: string; - - /** FullStatus binlog_format. */ - public binlog_format: string; - - /** FullStatus binlog_row_image. */ - public binlog_row_image: string; - - /** FullStatus log_bin_enabled. */ - public log_bin_enabled: boolean; - - /** FullStatus log_replica_updates. */ - public log_replica_updates: boolean; - - /** FullStatus semi_sync_primary_enabled. */ - public semi_sync_primary_enabled: boolean; - - /** FullStatus semi_sync_replica_enabled. */ - public semi_sync_replica_enabled: boolean; - - /** FullStatus semi_sync_primary_status. */ - public semi_sync_primary_status: boolean; - - /** FullStatus semi_sync_replica_status. */ - public semi_sync_replica_status: boolean; - - /** FullStatus semi_sync_primary_clients. */ - public semi_sync_primary_clients: number; - - /** FullStatus semi_sync_primary_timeout. */ - public semi_sync_primary_timeout: (number|Long); - - /** FullStatus semi_sync_wait_for_replica_count. */ - public semi_sync_wait_for_replica_count: number; - - /** FullStatus super_read_only. */ - public super_read_only: boolean; - - /** FullStatus replication_configuration. */ - public replication_configuration?: (replicationdata.IConfiguration|null); - - /** - * Creates a new FullStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns FullStatus instance - */ - public static create(properties?: replicationdata.IFullStatus): replicationdata.FullStatus; - - /** - * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. - * @param message FullStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. - * @param message FullStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FullStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.FullStatus; - - /** - * Decodes a FullStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.FullStatus; - - /** - * Verifies a FullStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.FullStatus; - - /** - * Creates a plain object from a FullStatus message. Also converts values to other types if specified. - * @param message FullStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.FullStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FullStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FullStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace vschema. */ -export namespace vschema { - - /** Properties of a RoutingRules. */ - interface IRoutingRules { - - /** RoutingRules rules */ - rules?: (vschema.IRoutingRule[]|null); - } - - /** Represents a RoutingRules. */ - class RoutingRules implements IRoutingRules { - - /** - * Constructs a new RoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IRoutingRules); - - /** RoutingRules rules. */ - public rules: vschema.IRoutingRule[]; - - /** - * Creates a new RoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns RoutingRules instance - */ - public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; - - /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRules; - - /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRules; - - /** - * Verifies a RoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; - - /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. - * @param message RoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RoutingRule. */ - interface IRoutingRule { - - /** RoutingRule from_table */ - from_table?: (string|null); - - /** RoutingRule to_tables */ - to_tables?: (string[]|null); - } - - /** Represents a RoutingRule. */ - class RoutingRule implements IRoutingRule { - - /** - * Constructs a new RoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IRoutingRule); - - /** RoutingRule from_table. */ - public from_table: string; - - /** RoutingRule to_tables. */ - public to_tables: string[]; - - /** - * Creates a new RoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns RoutingRule instance - */ - public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; - - /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRule; - - /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRule; - - /** - * Verifies a RoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; - - /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. - * @param message RoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Keyspace. */ - interface IKeyspace { - - /** Keyspace sharded */ - sharded?: (boolean|null); - - /** Keyspace vindexes */ - vindexes?: ({ [k: string]: vschema.IVindex }|null); - - /** Keyspace tables */ - tables?: ({ [k: string]: vschema.ITable }|null); - - /** Keyspace require_explicit_routing */ - require_explicit_routing?: (boolean|null); - - /** Keyspace foreign_key_mode */ - foreign_key_mode?: (vschema.Keyspace.ForeignKeyMode|null); - - /** Keyspace multi_tenant_spec */ - multi_tenant_spec?: (vschema.IMultiTenantSpec|null); - } - - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { - - /** - * Constructs a new Keyspace. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspace); - - /** Keyspace sharded. */ - public sharded: boolean; - - /** Keyspace vindexes. */ - public vindexes: { [k: string]: vschema.IVindex }; - - /** Keyspace tables. */ - public tables: { [k: string]: vschema.ITable }; - - /** Keyspace require_explicit_routing. */ - public require_explicit_routing: boolean; - - /** Keyspace foreign_key_mode. */ - public foreign_key_mode: vschema.Keyspace.ForeignKeyMode; - - /** Keyspace multi_tenant_spec. */ - public multi_tenant_spec?: (vschema.IMultiTenantSpec|null); - - /** - * Creates a new Keyspace instance using the specified properties. - * @param [properties] Properties to set - * @returns Keyspace instance - */ - public static create(properties?: vschema.IKeyspace): vschema.Keyspace; - - /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Keyspace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Keyspace; - - /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Keyspace; - - /** - * Verifies a Keyspace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Keyspace - */ - public static fromObject(object: { [k: string]: any }): vschema.Keyspace; - - /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @param message Keyspace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Keyspace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Keyspace - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Keyspace { - - /** ForeignKeyMode enum. */ - enum ForeignKeyMode { - unspecified = 0, - disallow = 1, - unmanaged = 2, - managed = 3 - } - } - - /** Properties of a MultiTenantSpec. */ - interface IMultiTenantSpec { - - /** MultiTenantSpec tenant_id_column_name */ - tenant_id_column_name?: (string|null); - - /** MultiTenantSpec tenant_id_column_type */ - tenant_id_column_type?: (query.Type|null); - } - - /** Represents a MultiTenantSpec. */ - class MultiTenantSpec implements IMultiTenantSpec { - - /** - * Constructs a new MultiTenantSpec. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMultiTenantSpec); - - /** MultiTenantSpec tenant_id_column_name. */ - public tenant_id_column_name: string; - - /** MultiTenantSpec tenant_id_column_type. */ - public tenant_id_column_type: query.Type; - - /** - * Creates a new MultiTenantSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MultiTenantSpec instance - */ - public static create(properties?: vschema.IMultiTenantSpec): vschema.MultiTenantSpec; - - /** - * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. - * @param message MultiTenantSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. - * @param message MultiTenantSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MultiTenantSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MultiTenantSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MultiTenantSpec; - - /** - * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MultiTenantSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MultiTenantSpec; - - /** - * Verifies a MultiTenantSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MultiTenantSpec - */ - public static fromObject(object: { [k: string]: any }): vschema.MultiTenantSpec; - - /** - * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. - * @param message MultiTenantSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MultiTenantSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MultiTenantSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MultiTenantSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Vindex. */ - interface IVindex { - - /** Vindex type */ - type?: (string|null); - - /** Vindex params */ - params?: ({ [k: string]: string }|null); - - /** Vindex owner */ - owner?: (string|null); - } - - /** Represents a Vindex. */ - class Vindex implements IVindex { - - /** - * Constructs a new Vindex. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IVindex); - - /** Vindex type. */ - public type: string; - - /** Vindex params. */ - public params: { [k: string]: string }; - - /** Vindex owner. */ - public owner: string; - - /** - * Creates a new Vindex instance using the specified properties. - * @param [properties] Properties to set - * @returns Vindex instance - */ - public static create(properties?: vschema.IVindex): vschema.Vindex; - - /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Vindex message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Vindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; - - /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Vindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; - - /** - * Verifies a Vindex message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Vindex message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Vindex - */ - public static fromObject(object: { [k: string]: any }): vschema.Vindex; - - /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. - * @param message Vindex - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Vindex to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Vindex - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Table. */ - interface ITable { - - /** Table type */ - type?: (string|null); - - /** Table column_vindexes */ - column_vindexes?: (vschema.IColumnVindex[]|null); - - /** Table auto_increment */ - auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns */ - columns?: (vschema.IColumn[]|null); - - /** Table pinned */ - pinned?: (string|null); - - /** Table column_list_authoritative */ - column_list_authoritative?: (boolean|null); - - /** Table source */ - source?: (string|null); - } - - /** Represents a Table. */ - class Table implements ITable { - - /** - * Constructs a new Table. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.ITable); - - /** Table type. */ - public type: string; - - /** Table column_vindexes. */ - public column_vindexes: vschema.IColumnVindex[]; - - /** Table auto_increment. */ - public auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns. */ - public columns: vschema.IColumn[]; - - /** Table pinned. */ - public pinned: string; - - /** Table column_list_authoritative. */ - public column_list_authoritative: boolean; - - /** Table source. */ - public source: string; - - /** - * Creates a new Table instance using the specified properties. - * @param [properties] Properties to set - * @returns Table instance - */ - public static create(properties?: vschema.ITable): vschema.Table; - - /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Table message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; - - /** - * Decodes a Table message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; - - /** - * Verifies a Table message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Table - */ - public static fromObject(object: { [k: string]: any }): vschema.Table; - - /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Table to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Table - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ColumnVindex. */ - interface IColumnVindex { - - /** ColumnVindex column */ - column?: (string|null); - - /** ColumnVindex name */ - name?: (string|null); - - /** ColumnVindex columns */ - columns?: (string[]|null); - } - - /** Represents a ColumnVindex. */ - class ColumnVindex implements IColumnVindex { - - /** - * Constructs a new ColumnVindex. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IColumnVindex); - - /** ColumnVindex column. */ - public column: string; - - /** ColumnVindex name. */ - public name: string; - - /** ColumnVindex columns. */ - public columns: string[]; - - /** - * Creates a new ColumnVindex instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnVindex instance - */ - public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; - - /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ColumnVindex message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ColumnVindex; - - /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ColumnVindex; - - /** - * Verifies a ColumnVindex message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnVindex - */ - public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; - - /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. - * @param message ColumnVindex - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ColumnVindex to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ColumnVindex - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AutoIncrement. */ - interface IAutoIncrement { - - /** AutoIncrement column */ - column?: (string|null); - - /** AutoIncrement sequence */ - sequence?: (string|null); - } - - /** Represents an AutoIncrement. */ - class AutoIncrement implements IAutoIncrement { - - /** - * Constructs a new AutoIncrement. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IAutoIncrement); - - /** AutoIncrement column. */ - public column: string; - - /** AutoIncrement sequence. */ - public sequence: string; - - /** - * Creates a new AutoIncrement instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoIncrement instance - */ - public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; - - /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AutoIncrement message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutoIncrement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.AutoIncrement; - - /** - * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoIncrement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.AutoIncrement; - - /** - * Verifies an AutoIncrement message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutoIncrement - */ - public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; - - /** - * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. - * @param message AutoIncrement - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AutoIncrement to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AutoIncrement - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Column. */ - interface IColumn { - - /** Column name */ - name?: (string|null); - - /** Column type */ - type?: (query.Type|null); - - /** Column invisible */ - invisible?: (boolean|null); - - /** Column default */ - "default"?: (string|null); - - /** Column collation_name */ - collation_name?: (string|null); - - /** Column size */ - size?: (number|null); - - /** Column scale */ - scale?: (number|null); - - /** Column nullable */ - nullable?: (boolean|null); - - /** Column values */ - values?: (string[]|null); - } - - /** Represents a Column. */ - class Column implements IColumn { - - /** - * Constructs a new Column. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IColumn); - - /** Column name. */ - public name: string; - - /** Column type. */ - public type: query.Type; - - /** Column invisible. */ - public invisible: boolean; - - /** Column default. */ - public default: string; - - /** Column collation_name. */ - public collation_name: string; - - /** Column size. */ - public size: number; - - /** Column scale. */ - public scale: number; - - /** Column nullable. */ - public nullable?: (boolean|null); - - /** Column values. */ - public values: string[]; - - /** Column _nullable. */ - public _nullable?: "nullable"; - - /** - * Creates a new Column instance using the specified properties. - * @param [properties] Properties to set - * @returns Column instance - */ - public static create(properties?: vschema.IColumn): vschema.Column; - - /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Column message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; - - /** - * Decodes a Column message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; - - /** - * Verifies a Column message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Column - */ - public static fromObject(object: { [k: string]: any }): vschema.Column; - - /** - * Creates a plain object from a Column message. Also converts values to other types if specified. - * @param message Column - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Column to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Column - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SrvVSchema. */ - interface ISrvVSchema { - - /** SrvVSchema keyspaces */ - keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); - - /** SrvVSchema routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - - /** SrvVSchema shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** SrvVSchema keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** SrvVSchema mirror_rules */ - mirror_rules?: (vschema.IMirrorRules|null); - } - - /** Represents a SrvVSchema. */ - class SrvVSchema implements ISrvVSchema { - - /** - * Constructs a new SrvVSchema. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.ISrvVSchema); - - /** SrvVSchema keyspaces. */ - public keyspaces: { [k: string]: vschema.IKeyspace }; - - /** SrvVSchema routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** SrvVSchema shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** SrvVSchema keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** SrvVSchema mirror_rules. */ - public mirror_rules?: (vschema.IMirrorRules|null); - - /** - * Creates a new SrvVSchema instance using the specified properties. - * @param [properties] Properties to set - * @returns SrvVSchema instance - */ - public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; - - /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SrvVSchema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SrvVSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.SrvVSchema; - - /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SrvVSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.SrvVSchema; - - /** - * Verifies a SrvVSchema message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SrvVSchema - */ - public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; - - /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. - * @param message SrvVSchema - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SrvVSchema to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SrvVSchema - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardRoutingRules. */ - interface IShardRoutingRules { - - /** ShardRoutingRules rules */ - rules?: (vschema.IShardRoutingRule[]|null); - } - - /** Represents a ShardRoutingRules. */ - class ShardRoutingRules implements IShardRoutingRules { - - /** - * Constructs a new ShardRoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IShardRoutingRules); - - /** ShardRoutingRules rules. */ - public rules: vschema.IShardRoutingRule[]; - - /** - * Creates a new ShardRoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardRoutingRules instance - */ - public static create(properties?: vschema.IShardRoutingRules): vschema.ShardRoutingRules; - - /** - * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @param message ShardRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @param message ShardRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardRoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRules; - - /** - * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRules; - - /** - * Verifies a ShardRoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardRoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRules; - - /** - * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. - * @param message ShardRoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ShardRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardRoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardRoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardRoutingRule. */ - interface IShardRoutingRule { - - /** ShardRoutingRule from_keyspace */ - from_keyspace?: (string|null); - - /** ShardRoutingRule to_keyspace */ - to_keyspace?: (string|null); - - /** ShardRoutingRule shard */ - shard?: (string|null); - } - - /** Represents a ShardRoutingRule. */ - class ShardRoutingRule implements IShardRoutingRule { - - /** - * Constructs a new ShardRoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IShardRoutingRule); - - /** ShardRoutingRule from_keyspace. */ - public from_keyspace: string; - - /** ShardRoutingRule to_keyspace. */ - public to_keyspace: string; - - /** ShardRoutingRule shard. */ - public shard: string; - - /** - * Creates a new ShardRoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardRoutingRule instance - */ - public static create(properties?: vschema.IShardRoutingRule): vschema.ShardRoutingRule; - - /** - * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. - * @param message ShardRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. - * @param message ShardRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardRoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRule; - - /** - * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRule; - - /** - * Verifies a ShardRoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardRoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRule; - - /** - * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. - * @param message ShardRoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ShardRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardRoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardRoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a KeyspaceRoutingRules. */ - interface IKeyspaceRoutingRules { - - /** KeyspaceRoutingRules rules */ - rules?: (vschema.IKeyspaceRoutingRule[]|null); - } - - /** Represents a KeyspaceRoutingRules. */ - class KeyspaceRoutingRules implements IKeyspaceRoutingRules { - - /** - * Constructs a new KeyspaceRoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspaceRoutingRules); - - /** KeyspaceRoutingRules rules. */ - public rules: vschema.IKeyspaceRoutingRule[]; - - /** - * Creates a new KeyspaceRoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyspaceRoutingRules instance - */ - public static create(properties?: vschema.IKeyspaceRoutingRules): vschema.KeyspaceRoutingRules; - - /** - * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. - * @param message KeyspaceRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. - * @param message KeyspaceRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyspaceRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRules; - - /** - * Decodes a KeyspaceRoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyspaceRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRules; - - /** - * Verifies a KeyspaceRoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KeyspaceRoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeyspaceRoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRules; - - /** - * Creates a plain object from a KeyspaceRoutingRules message. Also converts values to other types if specified. - * @param message KeyspaceRoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.KeyspaceRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KeyspaceRoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for KeyspaceRoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a KeyspaceRoutingRule. */ - interface IKeyspaceRoutingRule { - - /** KeyspaceRoutingRule from_keyspace */ - from_keyspace?: (string|null); - - /** KeyspaceRoutingRule to_keyspace */ - to_keyspace?: (string|null); - } - - /** Represents a KeyspaceRoutingRule. */ - class KeyspaceRoutingRule implements IKeyspaceRoutingRule { - - /** - * Constructs a new KeyspaceRoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspaceRoutingRule); - - /** KeyspaceRoutingRule from_keyspace. */ - public from_keyspace: string; - - /** KeyspaceRoutingRule to_keyspace. */ - public to_keyspace: string; - - /** - * Creates a new KeyspaceRoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyspaceRoutingRule instance - */ - public static create(properties?: vschema.IKeyspaceRoutingRule): vschema.KeyspaceRoutingRule; - - /** - * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. - * @param message KeyspaceRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. - * @param message KeyspaceRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyspaceRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRule; - - /** - * Decodes a KeyspaceRoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyspaceRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRule; - - /** - * Verifies a KeyspaceRoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KeyspaceRoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeyspaceRoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRule; - - /** - * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. - * @param message KeyspaceRoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.KeyspaceRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KeyspaceRoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for KeyspaceRoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MirrorRules. */ - interface IMirrorRules { - - /** MirrorRules rules */ - rules?: (vschema.IMirrorRule[]|null); - } - - /** Represents a MirrorRules. */ - class MirrorRules implements IMirrorRules { - - /** - * Constructs a new MirrorRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMirrorRules); - - /** MirrorRules rules. */ - public rules: vschema.IMirrorRule[]; - - /** - * Creates a new MirrorRules instance using the specified properties. - * @param [properties] Properties to set - * @returns MirrorRules instance - */ - public static create(properties?: vschema.IMirrorRules): vschema.MirrorRules; - - /** - * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. - * @param message MirrorRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. - * @param message MirrorRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MirrorRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MirrorRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRules; - - /** - * Decodes a MirrorRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MirrorRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRules; - - /** - * Verifies a MirrorRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MirrorRules - */ - public static fromObject(object: { [k: string]: any }): vschema.MirrorRules; - - /** - * Creates a plain object from a MirrorRules message. Also converts values to other types if specified. - * @param message MirrorRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MirrorRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MirrorRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MirrorRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MirrorRule. */ - interface IMirrorRule { - - /** MirrorRule from_table */ - from_table?: (string|null); - - /** MirrorRule to_table */ - to_table?: (string|null); - - /** MirrorRule percent */ - percent?: (number|null); - } - - /** Represents a MirrorRule. */ - class MirrorRule implements IMirrorRule { - - /** - * Constructs a new MirrorRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMirrorRule); - - /** MirrorRule from_table. */ - public from_table: string; - - /** MirrorRule to_table. */ - public to_table: string; - - /** MirrorRule percent. */ - public percent: number; - - /** - * Creates a new MirrorRule instance using the specified properties. - * @param [properties] Properties to set - * @returns MirrorRule instance - */ - public static create(properties?: vschema.IMirrorRule): vschema.MirrorRule; - - /** - * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. - * @param message MirrorRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. - * @param message MirrorRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MirrorRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MirrorRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRule; - - /** - * Decodes a MirrorRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MirrorRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRule; - - /** - * Verifies a MirrorRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MirrorRule - */ - public static fromObject(object: { [k: string]: any }): vschema.MirrorRule; - - /** - * Creates a plain object from a MirrorRule message. Also converts values to other types if specified. - * @param message MirrorRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MirrorRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MirrorRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MirrorRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace vtctldata. */ -export namespace vtctldata { - - /** Properties of an ExecuteVtctlCommandRequest. */ - interface IExecuteVtctlCommandRequest { - - /** ExecuteVtctlCommandRequest args */ - args?: (string[]|null); - - /** ExecuteVtctlCommandRequest action_timeout */ - action_timeout?: (number|Long|null); - } - - /** Represents an ExecuteVtctlCommandRequest. */ - class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { - - /** - * Constructs a new ExecuteVtctlCommandRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); - - /** ExecuteVtctlCommandRequest args. */ - public args: string[]; - - /** ExecuteVtctlCommandRequest action_timeout. */ - public action_timeout: (number|Long); - - /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteVtctlCommandRequest instance - */ - public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Verifies an ExecuteVtctlCommandRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteVtctlCommandRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteVtctlCommandRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteVtctlCommandRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteVtctlCommandResponse. */ - interface IExecuteVtctlCommandResponse { - - /** ExecuteVtctlCommandResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents an ExecuteVtctlCommandResponse. */ - class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { - - /** - * Constructs a new ExecuteVtctlCommandResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); - - /** ExecuteVtctlCommandResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteVtctlCommandResponse instance - */ - public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Verifies an ExecuteVtctlCommandResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteVtctlCommandResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteVtctlCommandResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteVtctlCommandResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** MaterializationIntent enum. */ - enum MaterializationIntent { - CUSTOM = 0, - MOVETABLES = 1, - CREATELOOKUPINDEX = 2 - } - - /** Properties of a TableMaterializeSettings. */ - interface ITableMaterializeSettings { - - /** TableMaterializeSettings target_table */ - target_table?: (string|null); - - /** TableMaterializeSettings source_expression */ - source_expression?: (string|null); - - /** TableMaterializeSettings create_ddl */ - create_ddl?: (string|null); - } - - /** Represents a TableMaterializeSettings. */ - class TableMaterializeSettings implements ITableMaterializeSettings { - - /** - * Constructs a new TableMaterializeSettings. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITableMaterializeSettings); - - /** TableMaterializeSettings target_table. */ - public target_table: string; - - /** TableMaterializeSettings source_expression. */ - public source_expression: string; - - /** TableMaterializeSettings create_ddl. */ - public create_ddl: string; - - /** - * Creates a new TableMaterializeSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns TableMaterializeSettings instance - */ - public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; - - /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; - - /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; - - /** - * Verifies a TableMaterializeSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TableMaterializeSettings - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; - - /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. - * @param message TableMaterializeSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TableMaterializeSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TableMaterializeSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeSettings. */ - interface IMaterializeSettings { - - /** MaterializeSettings workflow */ - workflow?: (string|null); - - /** MaterializeSettings source_keyspace */ - source_keyspace?: (string|null); - - /** MaterializeSettings target_keyspace */ - target_keyspace?: (string|null); - - /** MaterializeSettings stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MaterializeSettings table_settings */ - table_settings?: (vtctldata.ITableMaterializeSettings[]|null); - - /** MaterializeSettings cell */ - cell?: (string|null); - - /** MaterializeSettings tablet_types */ - tablet_types?: (string|null); - - /** MaterializeSettings external_cluster */ - external_cluster?: (string|null); - - /** MaterializeSettings materialization_intent */ - materialization_intent?: (vtctldata.MaterializationIntent|null); - - /** MaterializeSettings source_time_zone */ - source_time_zone?: (string|null); - - /** MaterializeSettings target_time_zone */ - target_time_zone?: (string|null); - - /** MaterializeSettings source_shards */ - source_shards?: (string[]|null); - - /** MaterializeSettings on_ddl */ - on_ddl?: (string|null); - - /** MaterializeSettings defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MaterializeSettings tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MaterializeSettings atomic_copy */ - atomic_copy?: (boolean|null); - - /** MaterializeSettings workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** MaterializeSettings reference_tables */ - reference_tables?: (string[]|null); - } - - /** Represents a MaterializeSettings. */ - class MaterializeSettings implements IMaterializeSettings { - - /** - * Constructs a new MaterializeSettings. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeSettings); - - /** MaterializeSettings workflow. */ - public workflow: string; - - /** MaterializeSettings source_keyspace. */ - public source_keyspace: string; - - /** MaterializeSettings target_keyspace. */ - public target_keyspace: string; - - /** MaterializeSettings stop_after_copy. */ - public stop_after_copy: boolean; - - /** MaterializeSettings table_settings. */ - public table_settings: vtctldata.ITableMaterializeSettings[]; - - /** MaterializeSettings cell. */ - public cell: string; - - /** MaterializeSettings tablet_types. */ - public tablet_types: string; - - /** MaterializeSettings external_cluster. */ - public external_cluster: string; - - /** MaterializeSettings materialization_intent. */ - public materialization_intent: vtctldata.MaterializationIntent; - - /** MaterializeSettings source_time_zone. */ - public source_time_zone: string; - - /** MaterializeSettings target_time_zone. */ - public target_time_zone: string; - - /** MaterializeSettings source_shards. */ - public source_shards: string[]; - - /** MaterializeSettings on_ddl. */ - public on_ddl: string; - - /** MaterializeSettings defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MaterializeSettings tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MaterializeSettings atomic_copy. */ - public atomic_copy: boolean; - - /** MaterializeSettings workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** MaterializeSettings reference_tables. */ - public reference_tables: string[]; - - /** - * Creates a new MaterializeSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeSettings instance - */ - public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; - - /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; - - /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; - - /** - * Verifies a MaterializeSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeSettings - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; - - /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. - * @param message MaterializeSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Keyspace. */ - interface IKeyspace { - - /** Keyspace name */ - name?: (string|null); - - /** Keyspace keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { - - /** - * Constructs a new Keyspace. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IKeyspace); - - /** Keyspace name. */ - public name: string; - - /** Keyspace keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new Keyspace instance using the specified properties. - * @param [properties] Properties to set - * @returns Keyspace instance - */ - public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; - - /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Keyspace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; - - /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; - - /** - * Verifies a Keyspace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Keyspace - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; - - /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @param message Keyspace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Keyspace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Keyspace - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** QueryOrdering enum. */ - enum QueryOrdering { - NONE = 0, - ASCENDING = 1, - DESCENDING = 2 - } - - /** Properties of a SchemaMigration. */ - interface ISchemaMigration { - - /** SchemaMigration uuid */ - uuid?: (string|null); - - /** SchemaMigration keyspace */ - keyspace?: (string|null); - - /** SchemaMigration shard */ - shard?: (string|null); - - /** SchemaMigration schema */ - schema?: (string|null); - - /** SchemaMigration table */ - table?: (string|null); - - /** SchemaMigration migration_statement */ - migration_statement?: (string|null); - - /** SchemaMigration strategy */ - strategy?: (vtctldata.SchemaMigration.Strategy|null); - - /** SchemaMigration options */ - options?: (string|null); - - /** SchemaMigration added_at */ - added_at?: (vttime.ITime|null); - - /** SchemaMigration requested_at */ - requested_at?: (vttime.ITime|null); - - /** SchemaMigration ready_at */ - ready_at?: (vttime.ITime|null); - - /** SchemaMigration started_at */ - started_at?: (vttime.ITime|null); - - /** SchemaMigration liveness_timestamp */ - liveness_timestamp?: (vttime.ITime|null); - - /** SchemaMigration completed_at */ - completed_at?: (vttime.ITime|null); - - /** SchemaMigration cleaned_up_at */ - cleaned_up_at?: (vttime.ITime|null); - - /** SchemaMigration status */ - status?: (vtctldata.SchemaMigration.Status|null); - - /** SchemaMigration log_path */ - log_path?: (string|null); - - /** SchemaMigration artifacts */ - artifacts?: (string|null); - - /** SchemaMigration retries */ - retries?: (number|Long|null); - - /** SchemaMigration tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** SchemaMigration tablet_failure */ - tablet_failure?: (boolean|null); - - /** SchemaMigration progress */ - progress?: (number|null); - - /** SchemaMigration migration_context */ - migration_context?: (string|null); - - /** SchemaMigration ddl_action */ - ddl_action?: (string|null); - - /** SchemaMigration message */ - message?: (string|null); - - /** SchemaMigration eta_seconds */ - eta_seconds?: (number|Long|null); - - /** SchemaMigration rows_copied */ - rows_copied?: (number|Long|null); - - /** SchemaMigration table_rows */ - table_rows?: (number|Long|null); - - /** SchemaMigration added_unique_keys */ - added_unique_keys?: (number|null); - - /** SchemaMigration removed_unique_keys */ - removed_unique_keys?: (number|null); - - /** SchemaMigration log_file */ - log_file?: (string|null); - - /** SchemaMigration artifact_retention */ - artifact_retention?: (vttime.IDuration|null); - - /** SchemaMigration postpone_completion */ - postpone_completion?: (boolean|null); - - /** SchemaMigration removed_unique_key_names */ - removed_unique_key_names?: (string|null); - - /** SchemaMigration dropped_no_default_column_names */ - dropped_no_default_column_names?: (string|null); - - /** SchemaMigration expanded_column_names */ - expanded_column_names?: (string|null); - - /** SchemaMigration revertible_notes */ - revertible_notes?: (string|null); - - /** SchemaMigration allow_concurrent */ - allow_concurrent?: (boolean|null); - - /** SchemaMigration reverted_uuid */ - reverted_uuid?: (string|null); - - /** SchemaMigration is_view */ - is_view?: (boolean|null); - - /** SchemaMigration ready_to_complete */ - ready_to_complete?: (boolean|null); - - /** SchemaMigration vitess_liveness_indicator */ - vitess_liveness_indicator?: (number|Long|null); - - /** SchemaMigration user_throttle_ratio */ - user_throttle_ratio?: (number|null); - - /** SchemaMigration special_plan */ - special_plan?: (string|null); - - /** SchemaMigration last_throttled_at */ - last_throttled_at?: (vttime.ITime|null); - - /** SchemaMigration component_throttled */ - component_throttled?: (string|null); - - /** SchemaMigration cancelled_at */ - cancelled_at?: (vttime.ITime|null); - - /** SchemaMigration postpone_launch */ - postpone_launch?: (boolean|null); - - /** SchemaMigration stage */ - stage?: (string|null); - - /** SchemaMigration cutover_attempts */ - cutover_attempts?: (number|null); - - /** SchemaMigration is_immediate_operation */ - is_immediate_operation?: (boolean|null); - - /** SchemaMigration reviewed_at */ - reviewed_at?: (vttime.ITime|null); - - /** SchemaMigration ready_to_complete_at */ - ready_to_complete_at?: (vttime.ITime|null); - - /** SchemaMigration removed_foreign_key_names */ - removed_foreign_key_names?: (string|null); - } - - /** Represents a SchemaMigration. */ - class SchemaMigration implements ISchemaMigration { - - /** - * Constructs a new SchemaMigration. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISchemaMigration); - - /** SchemaMigration uuid. */ - public uuid: string; - - /** SchemaMigration keyspace. */ - public keyspace: string; - - /** SchemaMigration shard. */ - public shard: string; - - /** SchemaMigration schema. */ - public schema: string; - - /** SchemaMigration table. */ - public table: string; - - /** SchemaMigration migration_statement. */ - public migration_statement: string; - - /** SchemaMigration strategy. */ - public strategy: vtctldata.SchemaMigration.Strategy; - - /** SchemaMigration options. */ - public options: string; - - /** SchemaMigration added_at. */ - public added_at?: (vttime.ITime|null); - - /** SchemaMigration requested_at. */ - public requested_at?: (vttime.ITime|null); - - /** SchemaMigration ready_at. */ - public ready_at?: (vttime.ITime|null); - - /** SchemaMigration started_at. */ - public started_at?: (vttime.ITime|null); - - /** SchemaMigration liveness_timestamp. */ - public liveness_timestamp?: (vttime.ITime|null); - - /** SchemaMigration completed_at. */ - public completed_at?: (vttime.ITime|null); - - /** SchemaMigration cleaned_up_at. */ - public cleaned_up_at?: (vttime.ITime|null); - - /** SchemaMigration status. */ - public status: vtctldata.SchemaMigration.Status; - - /** SchemaMigration log_path. */ - public log_path: string; - - /** SchemaMigration artifacts. */ - public artifacts: string; - - /** SchemaMigration retries. */ - public retries: (number|Long); - - /** SchemaMigration tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** SchemaMigration tablet_failure. */ - public tablet_failure: boolean; - - /** SchemaMigration progress. */ - public progress: number; - - /** SchemaMigration migration_context. */ - public migration_context: string; - - /** SchemaMigration ddl_action. */ - public ddl_action: string; - - /** SchemaMigration message. */ - public message: string; - - /** SchemaMigration eta_seconds. */ - public eta_seconds: (number|Long); - - /** SchemaMigration rows_copied. */ - public rows_copied: (number|Long); - - /** SchemaMigration table_rows. */ - public table_rows: (number|Long); - - /** SchemaMigration added_unique_keys. */ - public added_unique_keys: number; - - /** SchemaMigration removed_unique_keys. */ - public removed_unique_keys: number; - - /** SchemaMigration log_file. */ - public log_file: string; - - /** SchemaMigration artifact_retention. */ - public artifact_retention?: (vttime.IDuration|null); - - /** SchemaMigration postpone_completion. */ - public postpone_completion: boolean; - - /** SchemaMigration removed_unique_key_names. */ - public removed_unique_key_names: string; - - /** SchemaMigration dropped_no_default_column_names. */ - public dropped_no_default_column_names: string; - - /** SchemaMigration expanded_column_names. */ - public expanded_column_names: string; - - /** SchemaMigration revertible_notes. */ - public revertible_notes: string; - - /** SchemaMigration allow_concurrent. */ - public allow_concurrent: boolean; - - /** SchemaMigration reverted_uuid. */ - public reverted_uuid: string; - - /** SchemaMigration is_view. */ - public is_view: boolean; - - /** SchemaMigration ready_to_complete. */ - public ready_to_complete: boolean; - - /** SchemaMigration vitess_liveness_indicator. */ - public vitess_liveness_indicator: (number|Long); - - /** SchemaMigration user_throttle_ratio. */ - public user_throttle_ratio: number; - - /** SchemaMigration special_plan. */ - public special_plan: string; - - /** SchemaMigration last_throttled_at. */ - public last_throttled_at?: (vttime.ITime|null); - - /** SchemaMigration component_throttled. */ - public component_throttled: string; - - /** SchemaMigration cancelled_at. */ - public cancelled_at?: (vttime.ITime|null); - - /** SchemaMigration postpone_launch. */ - public postpone_launch: boolean; - - /** SchemaMigration stage. */ - public stage: string; - - /** SchemaMigration cutover_attempts. */ - public cutover_attempts: number; - - /** SchemaMigration is_immediate_operation. */ - public is_immediate_operation: boolean; - - /** SchemaMigration reviewed_at. */ - public reviewed_at?: (vttime.ITime|null); - - /** SchemaMigration ready_to_complete_at. */ - public ready_to_complete_at?: (vttime.ITime|null); - - /** SchemaMigration removed_foreign_key_names. */ - public removed_foreign_key_names: string; - - /** - * Creates a new SchemaMigration instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaMigration instance - */ - public static create(properties?: vtctldata.ISchemaMigration): vtctldata.SchemaMigration; - - /** - * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. - * @param message SchemaMigration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. - * @param message SchemaMigration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaMigration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaMigration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SchemaMigration; - - /** - * Decodes a SchemaMigration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SchemaMigration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SchemaMigration; - - /** - * Verifies a SchemaMigration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SchemaMigration - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SchemaMigration; - - /** - * Creates a plain object from a SchemaMigration message. Also converts values to other types if specified. - * @param message SchemaMigration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SchemaMigration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SchemaMigration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SchemaMigration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace SchemaMigration { - - /** Strategy enum. */ - enum Strategy { - VITESS = 0, - ONLINE = 0, - GHOST = 1, - PTOSC = 2, - DIRECT = 3, - MYSQL = 4 - } - - /** Status enum. */ - enum Status { - UNKNOWN = 0, - REQUESTED = 1, - CANCELLED = 2, - QUEUED = 3, - READY = 4, - RUNNING = 5, - COMPLETE = 6, - FAILED = 7 - } - } - - /** Properties of a Shard. */ - interface IShard { - - /** Shard keyspace */ - keyspace?: (string|null); - - /** Shard name */ - name?: (string|null); - - /** Shard shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a Shard. */ - class Shard implements IShard { - - /** - * Constructs a new Shard. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShard); - - /** Shard keyspace. */ - public keyspace: string; - - /** Shard name. */ - public name: string; - - /** Shard shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new Shard instance using the specified properties. - * @param [properties] Properties to set - * @returns Shard instance - */ - public static create(properties?: vtctldata.IShard): vtctldata.Shard; - - /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Shard message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Shard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; - - /** - * Decodes a Shard message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Shard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; - - /** - * Verifies a Shard message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Shard message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Shard - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Shard; - - /** - * Creates a plain object from a Shard message. Also converts values to other types if specified. - * @param message Shard - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Shard to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Shard - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowOptions. */ - interface IWorkflowOptions { - - /** WorkflowOptions tenant_id */ - tenant_id?: (string|null); - - /** WorkflowOptions strip_sharded_auto_increment */ - strip_sharded_auto_increment?: (boolean|null); - - /** WorkflowOptions shards */ - shards?: (string[]|null); - - /** WorkflowOptions config */ - config?: ({ [k: string]: string }|null); - } - - /** Represents a WorkflowOptions. */ - class WorkflowOptions implements IWorkflowOptions { - - /** - * Constructs a new WorkflowOptions. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowOptions); - - /** WorkflowOptions tenant_id. */ - public tenant_id: string; - - /** WorkflowOptions strip_sharded_auto_increment. */ - public strip_sharded_auto_increment: boolean; - - /** WorkflowOptions shards. */ - public shards: string[]; - - /** WorkflowOptions config. */ - public config: { [k: string]: string }; - - /** - * Creates a new WorkflowOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowOptions instance - */ - public static create(properties?: vtctldata.IWorkflowOptions): vtctldata.WorkflowOptions; - - /** - * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @param message WorkflowOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @param message WorkflowOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowOptions; - - /** - * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowOptions; - - /** - * Verifies a WorkflowOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowOptions - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowOptions; - - /** - * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. - * @param message WorkflowOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Workflow. */ - interface IWorkflow { - - /** Workflow name */ - name?: (string|null); - - /** Workflow source */ - source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target */ - target?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow max_v_replication_lag */ - max_v_replication_lag?: (number|Long|null); - - /** Workflow shard_streams */ - shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); - - /** Workflow workflow_type */ - workflow_type?: (string|null); - - /** Workflow workflow_sub_type */ - workflow_sub_type?: (string|null); - - /** Workflow max_v_replication_transaction_lag */ - max_v_replication_transaction_lag?: (number|Long|null); - - /** Workflow defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** Workflow options */ - options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a Workflow. */ - class Workflow implements IWorkflow { - - /** - * Constructs a new Workflow. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflow); - - /** Workflow name. */ - public name: string; - - /** Workflow source. */ - public source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target. */ - public target?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow max_v_replication_lag. */ - public max_v_replication_lag: (number|Long); - - /** Workflow shard_streams. */ - public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; - - /** Workflow workflow_type. */ - public workflow_type: string; - - /** Workflow workflow_sub_type. */ - public workflow_sub_type: string; - - /** Workflow max_v_replication_transaction_lag. */ - public max_v_replication_transaction_lag: (number|Long); - - /** Workflow defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** Workflow options. */ - public options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new Workflow instance using the specified properties. - * @param [properties] Properties to set - * @returns Workflow instance - */ - public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; - - /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; - - /** - * Verifies a Workflow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Workflow message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Workflow - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; - - /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. - * @param message Workflow - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Workflow to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Workflow - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Workflow { - - /** Properties of a ReplicationLocation. */ - interface IReplicationLocation { - - /** ReplicationLocation keyspace */ - keyspace?: (string|null); - - /** ReplicationLocation shards */ - shards?: (string[]|null); - } - - /** Represents a ReplicationLocation. */ - class ReplicationLocation implements IReplicationLocation { - - /** - * Constructs a new ReplicationLocation. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IReplicationLocation); - - /** ReplicationLocation keyspace. */ - public keyspace: string; - - /** ReplicationLocation shards. */ - public shards: string[]; - - /** - * Creates a new ReplicationLocation instance using the specified properties. - * @param [properties] Properties to set - * @returns ReplicationLocation instance - */ - public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; - - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; - - /** - * Verifies a ReplicationLocation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReplicationLocation - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; - - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @param message ReplicationLocation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReplicationLocation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReplicationLocation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStream. */ - interface IShardStream { - - /** ShardStream streams */ - streams?: (vtctldata.Workflow.IStream[]|null); - - /** ShardStream tablet_controls */ - tablet_controls?: (topodata.Shard.ITabletControl[]|null); - - /** ShardStream is_primary_serving */ - is_primary_serving?: (boolean|null); - } - - /** Represents a ShardStream. */ - class ShardStream implements IShardStream { - - /** - * Constructs a new ShardStream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IShardStream); - - /** ShardStream streams. */ - public streams: vtctldata.Workflow.IStream[]; - - /** ShardStream tablet_controls. */ - public tablet_controls: topodata.Shard.ITabletControl[]; - - /** ShardStream is_primary_serving. */ - public is_primary_serving: boolean; - - /** - * Creates a new ShardStream instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStream instance - */ - public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; - - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; - - /** - * Decodes a ShardStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; - - /** - * Verifies a ShardStream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; - - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @param message ShardStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStream - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Stream. */ - interface IStream { - - /** Stream id */ - id?: (number|Long|null); - - /** Stream shard */ - shard?: (string|null); - - /** Stream tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** Stream binlog_source */ - binlog_source?: (binlogdata.IBinlogSource|null); - - /** Stream position */ - position?: (string|null); - - /** Stream stop_position */ - stop_position?: (string|null); - - /** Stream state */ - state?: (string|null); - - /** Stream db_name */ - db_name?: (string|null); - - /** Stream transaction_timestamp */ - transaction_timestamp?: (vttime.ITime|null); - - /** Stream time_updated */ - time_updated?: (vttime.ITime|null); - - /** Stream message */ - message?: (string|null); - - /** Stream copy_states */ - copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); - - /** Stream logs */ - logs?: (vtctldata.Workflow.Stream.ILog[]|null); - - /** Stream log_fetch_error */ - log_fetch_error?: (string|null); - - /** Stream tags */ - tags?: (string[]|null); - - /** Stream rows_copied */ - rows_copied?: (number|Long|null); - - /** Stream throttler_status */ - throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); - - /** Stream tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** Stream tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** Stream cells */ - cells?: (string[]|null); - } - - /** Represents a Stream. */ - class Stream implements IStream { - - /** - * Constructs a new Stream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IStream); - - /** Stream id. */ - public id: (number|Long); - - /** Stream shard. */ - public shard: string; - - /** Stream tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** Stream binlog_source. */ - public binlog_source?: (binlogdata.IBinlogSource|null); - - /** Stream position. */ - public position: string; - - /** Stream stop_position. */ - public stop_position: string; - - /** Stream state. */ - public state: string; - - /** Stream db_name. */ - public db_name: string; - - /** Stream transaction_timestamp. */ - public transaction_timestamp?: (vttime.ITime|null); - - /** Stream time_updated. */ - public time_updated?: (vttime.ITime|null); - - /** Stream message. */ - public message: string; - - /** Stream copy_states. */ - public copy_states: vtctldata.Workflow.Stream.ICopyState[]; - - /** Stream logs. */ - public logs: vtctldata.Workflow.Stream.ILog[]; - - /** Stream log_fetch_error. */ - public log_fetch_error: string; - - /** Stream tags. */ - public tags: string[]; - - /** Stream rows_copied. */ - public rows_copied: (number|Long); - - /** Stream throttler_status. */ - public throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); - - /** Stream tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** Stream tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** Stream cells. */ - public cells: string[]; - - /** - * Creates a new Stream instance using the specified properties. - * @param [properties] Properties to set - * @returns Stream instance - */ - public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; - - /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Stream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; - - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; - - /** - * Verifies a Stream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Stream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; - - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @param message Stream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Stream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Stream - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Stream { - - /** Properties of a CopyState. */ - interface ICopyState { - - /** CopyState table */ - table?: (string|null); - - /** CopyState last_pk */ - last_pk?: (string|null); - - /** CopyState stream_id */ - stream_id?: (number|Long|null); - } - - /** Represents a CopyState. */ - class CopyState implements ICopyState { - - /** - * Constructs a new CopyState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.ICopyState); - - /** CopyState table. */ - public table: string; - - /** CopyState last_pk. */ - public last_pk: string; - - /** CopyState stream_id. */ - public stream_id: (number|Long); - - /** - * Creates a new CopyState instance using the specified properties. - * @param [properties] Properties to set - * @returns CopyState instance - */ - public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; - - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CopyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; - - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; - - /** - * Verifies a CopyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CopyState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; - - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @param message CopyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CopyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CopyState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Log. */ - interface ILog { - - /** Log id */ - id?: (number|Long|null); - - /** Log stream_id */ - stream_id?: (number|Long|null); - - /** Log type */ - type?: (string|null); - - /** Log state */ - state?: (string|null); - - /** Log created_at */ - created_at?: (vttime.ITime|null); - - /** Log updated_at */ - updated_at?: (vttime.ITime|null); - - /** Log message */ - message?: (string|null); - - /** Log count */ - count?: (number|Long|null); - } - - /** Represents a Log. */ - class Log implements ILog { - - /** - * Constructs a new Log. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.ILog); - - /** Log id. */ - public id: (number|Long); - - /** Log stream_id. */ - public stream_id: (number|Long); - - /** Log type. */ - public type: string; - - /** Log state. */ - public state: string; - - /** Log created_at. */ - public created_at?: (vttime.ITime|null); - - /** Log updated_at. */ - public updated_at?: (vttime.ITime|null); - - /** Log message. */ - public message: string; - - /** Log count. */ - public count: (number|Long); - - /** - * Creates a new Log instance using the specified properties. - * @param [properties] Properties to set - * @returns Log instance - */ - public static create(properties?: vtctldata.Workflow.Stream.ILog): vtctldata.Workflow.Stream.Log; - - /** - * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @param message Log message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @param message Log message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Log message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.Log; - - /** - * Decodes a Log message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.Log; - - /** - * Verifies a Log message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Log message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Log - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.Log; - - /** - * Creates a plain object from a Log message. Also converts values to other types if specified. - * @param message Log - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.Log, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Log to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Log - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ThrottlerStatus. */ - interface IThrottlerStatus { - - /** ThrottlerStatus component_throttled */ - component_throttled?: (string|null); - - /** ThrottlerStatus time_throttled */ - time_throttled?: (vttime.ITime|null); - } - - /** Represents a ThrottlerStatus. */ - class ThrottlerStatus implements IThrottlerStatus { - - /** - * Constructs a new ThrottlerStatus. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.IThrottlerStatus); - - /** ThrottlerStatus component_throttled. */ - public component_throttled: string; - - /** ThrottlerStatus time_throttled. */ - public time_throttled?: (vttime.ITime|null); - - /** - * Creates a new ThrottlerStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns ThrottlerStatus instance - */ - public static create(properties?: vtctldata.Workflow.Stream.IThrottlerStatus): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @param message ThrottlerStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @param message ThrottlerStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Verifies a ThrottlerStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThrottlerStatus - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. - * @param message ThrottlerStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.ThrottlerStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ThrottlerStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ThrottlerStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of an AddCellInfoRequest. */ - interface IAddCellInfoRequest { - - /** AddCellInfoRequest name */ - name?: (string|null); - - /** AddCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an AddCellInfoRequest. */ - class AddCellInfoRequest implements IAddCellInfoRequest { - - /** - * Constructs a new AddCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellInfoRequest); - - /** AddCellInfoRequest name. */ - public name: string; - - /** AddCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new AddCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellInfoRequest instance - */ - public static create(properties?: vtctldata.IAddCellInfoRequest): vtctldata.AddCellInfoRequest; - - /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @param message AddCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @param message AddCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoRequest; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoRequest; - - /** - * Verifies an AddCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoRequest; - - /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. - * @param message AddCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellInfoResponse. */ - interface IAddCellInfoResponse { - } - - /** Represents an AddCellInfoResponse. */ - class AddCellInfoResponse implements IAddCellInfoResponse { - - /** - * Constructs a new AddCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellInfoResponse); - - /** - * Creates a new AddCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellInfoResponse instance - */ - public static create(properties?: vtctldata.IAddCellInfoResponse): vtctldata.AddCellInfoResponse; - - /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @param message AddCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @param message AddCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoResponse; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoResponse; - - /** - * Verifies an AddCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoResponse; - - /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. - * @param message AddCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellsAliasRequest. */ - interface IAddCellsAliasRequest { - - /** AddCellsAliasRequest name */ - name?: (string|null); - - /** AddCellsAliasRequest cells */ - cells?: (string[]|null); - } - - /** Represents an AddCellsAliasRequest. */ - class AddCellsAliasRequest implements IAddCellsAliasRequest { - - /** - * Constructs a new AddCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellsAliasRequest); - - /** AddCellsAliasRequest name. */ - public name: string; - - /** AddCellsAliasRequest cells. */ - public cells: string[]; - - /** - * Creates a new AddCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IAddCellsAliasRequest): vtctldata.AddCellsAliasRequest; - - /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. - * @param message AddCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. - * @param message AddCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasRequest; - - /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasRequest; - - /** - * Verifies an AddCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasRequest; - - /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. - * @param message AddCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellsAliasResponse. */ - interface IAddCellsAliasResponse { - } - - /** Represents an AddCellsAliasResponse. */ - class AddCellsAliasResponse implements IAddCellsAliasResponse { - - /** - * Constructs a new AddCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellsAliasResponse); - - /** - * Creates a new AddCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IAddCellsAliasResponse): vtctldata.AddCellsAliasResponse; - - /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. - * @param message AddCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. - * @param message AddCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasResponse; - - /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasResponse; - - /** - * Verifies an AddCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasResponse; - - /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. - * @param message AddCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyKeyspaceRoutingRulesRequest. */ - interface IApplyKeyspaceRoutingRulesRequest { - - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyKeyspaceRoutingRulesRequest. */ - class ApplyKeyspaceRoutingRulesRequest implements IApplyKeyspaceRoutingRulesRequest { - - /** - * Constructs a new ApplyKeyspaceRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest); - - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Verifies an ApplyKeyspaceRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyKeyspaceRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyKeyspaceRoutingRulesResponse. */ - interface IApplyKeyspaceRoutingRulesResponse { - - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - } - - /** Represents an ApplyKeyspaceRoutingRulesResponse. */ - class ApplyKeyspaceRoutingRulesResponse implements IApplyKeyspaceRoutingRulesResponse { - - /** - * Constructs a new ApplyKeyspaceRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse); - - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** - * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Verifies an ApplyKeyspaceRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyKeyspaceRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyRoutingRulesRequest. */ - interface IApplyRoutingRulesRequest { - - /** ApplyRoutingRulesRequest routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - - /** ApplyRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyRoutingRulesRequest. */ - class ApplyRoutingRulesRequest implements IApplyRoutingRulesRequest { - - /** - * Constructs a new ApplyRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyRoutingRulesRequest); - - /** ApplyRoutingRulesRequest routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** ApplyRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyRoutingRulesRequest): vtctldata.ApplyRoutingRulesRequest; - - /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. - * @param message ApplyRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. - * @param message ApplyRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesRequest; - - /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesRequest; - - /** - * Verifies an ApplyRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyRoutingRulesResponse. */ - interface IApplyRoutingRulesResponse { - } - - /** Represents an ApplyRoutingRulesResponse. */ - class ApplyRoutingRulesResponse implements IApplyRoutingRulesResponse { - - /** - * Constructs a new ApplyRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyRoutingRulesResponse); - - /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyRoutingRulesResponse): vtctldata.ApplyRoutingRulesResponse; - - /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. - * @param message ApplyRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. - * @param message ApplyRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesResponse; - - /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesResponse; - - /** - * Verifies an ApplyRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyShardRoutingRulesRequest. */ - interface IApplyShardRoutingRulesRequest { - - /** ApplyShardRoutingRulesRequest shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** ApplyShardRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyShardRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyShardRoutingRulesRequest. */ - class ApplyShardRoutingRulesRequest implements IApplyShardRoutingRulesRequest { - - /** - * Constructs a new ApplyShardRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesRequest); - - /** ApplyShardRoutingRulesRequest shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** ApplyShardRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyShardRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesRequest): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @param message ApplyShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @param message ApplyShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Verifies an ApplyShardRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyShardRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyShardRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyShardRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyShardRoutingRulesResponse. */ - interface IApplyShardRoutingRulesResponse { - } - - /** Represents an ApplyShardRoutingRulesResponse. */ - class ApplyShardRoutingRulesResponse implements IApplyShardRoutingRulesResponse { - - /** - * Constructs a new ApplyShardRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesResponse); - - /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesResponse): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. - * @param message ApplyShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. - * @param message ApplyShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Verifies an ApplyShardRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyShardRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyShardRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyShardRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplySchemaRequest. */ - interface IApplySchemaRequest { - - /** ApplySchemaRequest keyspace */ - keyspace?: (string|null); - - /** ApplySchemaRequest sql */ - sql?: (string[]|null); - - /** ApplySchemaRequest ddl_strategy */ - ddl_strategy?: (string|null); - - /** ApplySchemaRequest uuid_list */ - uuid_list?: (string[]|null); - - /** ApplySchemaRequest migration_context */ - migration_context?: (string|null); - - /** ApplySchemaRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** ApplySchemaRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); - - /** ApplySchemaRequest batch_size */ - batch_size?: (number|Long|null); - } - - /** Represents an ApplySchemaRequest. */ - class ApplySchemaRequest implements IApplySchemaRequest { - - /** - * Constructs a new ApplySchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplySchemaRequest); - - /** ApplySchemaRequest keyspace. */ - public keyspace: string; - - /** ApplySchemaRequest sql. */ - public sql: string[]; - - /** ApplySchemaRequest ddl_strategy. */ - public ddl_strategy: string; - - /** ApplySchemaRequest uuid_list. */ - public uuid_list: string[]; - - /** ApplySchemaRequest migration_context. */ - public migration_context: string; - - /** ApplySchemaRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** ApplySchemaRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); - - /** ApplySchemaRequest batch_size. */ - public batch_size: (number|Long); - - /** - * Creates a new ApplySchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplySchemaRequest instance - */ - public static create(properties?: vtctldata.IApplySchemaRequest): vtctldata.ApplySchemaRequest; - - /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplySchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaRequest; - - /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplySchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaRequest; - - /** - * Verifies an ApplySchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplySchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaRequest; - - /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. - * @param message ApplySchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplySchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplySchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplySchemaResponse. */ - interface IApplySchemaResponse { - - /** ApplySchemaResponse uuid_list */ - uuid_list?: (string[]|null); - - /** ApplySchemaResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents an ApplySchemaResponse. */ - class ApplySchemaResponse implements IApplySchemaResponse { - - /** - * Constructs a new ApplySchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplySchemaResponse); - - /** ApplySchemaResponse uuid_list. */ - public uuid_list: string[]; - - /** ApplySchemaResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new ApplySchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplySchemaResponse instance - */ - public static create(properties?: vtctldata.IApplySchemaResponse): vtctldata.ApplySchemaResponse; - - /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplySchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaResponse; - - /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplySchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaResponse; - - /** - * Verifies an ApplySchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplySchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaResponse; - - /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. - * @param message ApplySchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplySchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplySchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyVSchemaRequest. */ - interface IApplyVSchemaRequest { - - /** ApplyVSchemaRequest keyspace */ - keyspace?: (string|null); - - /** ApplyVSchemaRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyVSchemaRequest dry_run */ - dry_run?: (boolean|null); - - /** ApplyVSchemaRequest cells */ - cells?: (string[]|null); - - /** ApplyVSchemaRequest v_schema */ - v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaRequest sql */ - sql?: (string|null); - - /** ApplyVSchemaRequest strict */ - strict?: (boolean|null); - } - - /** Represents an ApplyVSchemaRequest. */ - class ApplyVSchemaRequest implements IApplyVSchemaRequest { - - /** - * Constructs a new ApplyVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyVSchemaRequest); - - /** ApplyVSchemaRequest keyspace. */ - public keyspace: string; - - /** ApplyVSchemaRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyVSchemaRequest dry_run. */ - public dry_run: boolean; - - /** ApplyVSchemaRequest cells. */ - public cells: string[]; - - /** ApplyVSchemaRequest v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaRequest sql. */ - public sql: string; - - /** ApplyVSchemaRequest strict. */ - public strict: boolean; - - /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyVSchemaRequest instance - */ - public static create(properties?: vtctldata.IApplyVSchemaRequest): vtctldata.ApplyVSchemaRequest; - - /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. - * @param message ApplyVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. - * @param message ApplyVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaRequest; - - /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaRequest; - - /** - * Verifies an ApplyVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaRequest; - - /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. - * @param message ApplyVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyVSchemaResponse. */ - interface IApplyVSchemaResponse { - - /** ApplyVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaResponse unknown_vindex_params */ - unknown_vindex_params?: ({ [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }|null); - } - - /** Represents an ApplyVSchemaResponse. */ - class ApplyVSchemaResponse implements IApplyVSchemaResponse { - - /** - * Constructs a new ApplyVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyVSchemaResponse); - - /** ApplyVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaResponse unknown_vindex_params. */ - public unknown_vindex_params: { [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }; - - /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyVSchemaResponse instance - */ - public static create(properties?: vtctldata.IApplyVSchemaResponse): vtctldata.ApplyVSchemaResponse; - - /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. - * @param message ApplyVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. - * @param message ApplyVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse; - - /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse; - - /** - * Verifies an ApplyVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse; - - /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. - * @param message ApplyVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ApplyVSchemaResponse { - - /** Properties of a ParamList. */ - interface IParamList { - - /** ParamList params */ - params?: (string[]|null); - } - - /** Represents a ParamList. */ - class ParamList implements IParamList { - - /** - * Constructs a new ParamList. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ApplyVSchemaResponse.IParamList); - - /** ParamList params. */ - public params: string[]; - - /** - * Creates a new ParamList instance using the specified properties. - * @param [properties] Properties to set - * @returns ParamList instance - */ - public static create(properties?: vtctldata.ApplyVSchemaResponse.IParamList): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @param message ParamList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @param message ParamList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParamList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Decodes a ParamList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Verifies a ParamList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ParamList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParamList - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Creates a plain object from a ParamList message. Also converts values to other types if specified. - * @param message ParamList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaResponse.ParamList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ParamList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ParamList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a BackupRequest. */ - interface IBackupRequest { - - /** BackupRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupRequest allow_primary */ - allow_primary?: (boolean|null); - - /** BackupRequest concurrency */ - concurrency?: (number|null); - - /** BackupRequest incremental_from_pos */ - incremental_from_pos?: (string|null); - - /** BackupRequest upgrade_safe */ - upgrade_safe?: (boolean|null); - - /** BackupRequest backup_engine */ - backup_engine?: (string|null); - } - - /** Represents a BackupRequest. */ - class BackupRequest implements IBackupRequest { - - /** - * Constructs a new BackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupRequest); - - /** BackupRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupRequest allow_primary. */ - public allow_primary: boolean; - - /** BackupRequest concurrency. */ - public concurrency: number; - - /** BackupRequest incremental_from_pos. */ - public incremental_from_pos: string; - - /** BackupRequest upgrade_safe. */ - public upgrade_safe: boolean; - - /** BackupRequest backup_engine. */ - public backup_engine?: (string|null); - - /** BackupRequest _backup_engine. */ - public _backup_engine?: "backup_engine"; - - /** - * Creates a new BackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupRequest instance - */ - public static create(properties?: vtctldata.IBackupRequest): vtctldata.BackupRequest; - - /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupRequest; - - /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupRequest; - - /** - * Verifies a BackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupRequest; - - /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. - * @param message BackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BackupResponse. */ - interface IBackupResponse { - - /** BackupResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupResponse keyspace */ - keyspace?: (string|null); - - /** BackupResponse shard */ - shard?: (string|null); - - /** BackupResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents a BackupResponse. */ - class BackupResponse implements IBackupResponse { - - /** - * Constructs a new BackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupResponse); - - /** BackupResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupResponse keyspace. */ - public keyspace: string; - - /** BackupResponse shard. */ - public shard: string; - - /** BackupResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new BackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupResponse instance - */ - public static create(properties?: vtctldata.IBackupResponse): vtctldata.BackupResponse; - - /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupResponse; - - /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupResponse; - - /** - * Verifies a BackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupResponse; - - /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. - * @param message BackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BackupShardRequest. */ - interface IBackupShardRequest { - - /** BackupShardRequest keyspace */ - keyspace?: (string|null); - - /** BackupShardRequest shard */ - shard?: (string|null); - - /** BackupShardRequest allow_primary */ - allow_primary?: (boolean|null); - - /** BackupShardRequest concurrency */ - concurrency?: (number|null); - - /** BackupShardRequest upgrade_safe */ - upgrade_safe?: (boolean|null); - - /** BackupShardRequest incremental_from_pos */ - incremental_from_pos?: (string|null); - } - - /** Represents a BackupShardRequest. */ - class BackupShardRequest implements IBackupShardRequest { - - /** - * Constructs a new BackupShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupShardRequest); - - /** BackupShardRequest keyspace. */ - public keyspace: string; - - /** BackupShardRequest shard. */ - public shard: string; - - /** BackupShardRequest allow_primary. */ - public allow_primary: boolean; - - /** BackupShardRequest concurrency. */ - public concurrency: number; - - /** BackupShardRequest upgrade_safe. */ - public upgrade_safe: boolean; - - /** BackupShardRequest incremental_from_pos. */ - public incremental_from_pos: string; - - /** - * Creates a new BackupShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupShardRequest instance - */ - public static create(properties?: vtctldata.IBackupShardRequest): vtctldata.BackupShardRequest; - - /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. - * @param message BackupShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. - * @param message BackupShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupShardRequest; - - /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupShardRequest; - - /** - * Verifies a BackupShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupShardRequest; - - /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. - * @param message BackupShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CancelSchemaMigrationRequest. */ - interface ICancelSchemaMigrationRequest { - - /** CancelSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CancelSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CancelSchemaMigrationRequest. */ - class CancelSchemaMigrationRequest implements ICancelSchemaMigrationRequest { - - /** - * Constructs a new CancelSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICancelSchemaMigrationRequest); - - /** CancelSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CancelSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CancelSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICancelSchemaMigrationRequest): vtctldata.CancelSchemaMigrationRequest; - - /** - * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @param message CancelSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @param message CancelSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationRequest; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationRequest; - - /** - * Verifies a CancelSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationRequest; - - /** - * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CancelSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CancelSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CancelSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CancelSchemaMigrationResponse. */ - interface ICancelSchemaMigrationResponse { - - /** CancelSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CancelSchemaMigrationResponse. */ - class CancelSchemaMigrationResponse implements ICancelSchemaMigrationResponse { - - /** - * Constructs a new CancelSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICancelSchemaMigrationResponse); - - /** CancelSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CancelSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICancelSchemaMigrationResponse): vtctldata.CancelSchemaMigrationResponse; - - /** - * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @param message CancelSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @param message CancelSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationResponse; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationResponse; - - /** - * Verifies a CancelSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationResponse; - - /** - * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CancelSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CancelSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CancelSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTagsRequest. */ - interface IChangeTabletTagsRequest { - - /** ChangeTabletTagsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTagsRequest tags */ - tags?: ({ [k: string]: string }|null); - - /** ChangeTabletTagsRequest replace */ - replace?: (boolean|null); - } - - /** Represents a ChangeTabletTagsRequest. */ - class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { - - /** - * Constructs a new ChangeTabletTagsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTagsRequest); - - /** ChangeTabletTagsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTagsRequest tags. */ - public tags: { [k: string]: string }; - - /** ChangeTabletTagsRequest replace. */ - public replace: boolean; - - /** - * Creates a new ChangeTabletTagsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTagsRequest instance - */ - public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; - - /** - * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. - * @param message ChangeTabletTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. - * @param message ChangeTabletTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsRequest; - - /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsRequest; - - /** - * Verifies a ChangeTabletTagsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTagsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; - - /** - * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTagsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTagsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTagsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTagsResponse. */ - interface IChangeTabletTagsResponse { - - /** ChangeTabletTagsResponse before_tags */ - before_tags?: ({ [k: string]: string }|null); - - /** ChangeTabletTagsResponse after_tags */ - after_tags?: ({ [k: string]: string }|null); - } - - /** Represents a ChangeTabletTagsResponse. */ - class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { - - /** - * Constructs a new ChangeTabletTagsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTagsResponse); - - /** ChangeTabletTagsResponse before_tags. */ - public before_tags: { [k: string]: string }; - - /** ChangeTabletTagsResponse after_tags. */ - public after_tags: { [k: string]: string }; - - /** - * Creates a new ChangeTabletTagsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTagsResponse instance - */ - public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; - - /** - * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. - * @param message ChangeTabletTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. - * @param message ChangeTabletTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsResponse; - - /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsResponse; - - /** - * Verifies a ChangeTabletTagsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTagsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; - - /** - * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTagsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTagsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTagsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTypeRequest. */ - interface IChangeTabletTypeRequest { - - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); - - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); - } - - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { - - /** - * Constructs a new ChangeTabletTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTypeRequest); - - /** ChangeTabletTypeRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTypeRequest db_type. */ - public db_type: topodata.TabletType; - - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; - - /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance - */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; - - /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; - - /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; - - /** - * Verifies a ChangeTabletTypeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTypeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; - - /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTypeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTypeResponse. */ - interface IChangeTabletTypeResponse { - - /** ChangeTabletTypeResponse before_tablet */ - before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet */ - after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run */ - was_dry_run?: (boolean|null); - } - - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { - - /** - * Constructs a new ChangeTabletTypeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTypeResponse); - - /** ChangeTabletTypeResponse before_tablet. */ - public before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet. */ - public after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run. */ - public was_dry_run: boolean; - - /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance - */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; - - /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; - - /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; - - /** - * Verifies a ChangeTabletTypeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTypeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; - - /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTypeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTypeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTypeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CheckThrottlerRequest. */ - interface ICheckThrottlerRequest { - - /** CheckThrottlerRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerRequest app_name */ - app_name?: (string|null); - - /** CheckThrottlerRequest scope */ - scope?: (string|null); - - /** CheckThrottlerRequest skip_request_heartbeats */ - skip_request_heartbeats?: (boolean|null); - - /** CheckThrottlerRequest ok_if_not_exists */ - ok_if_not_exists?: (boolean|null); - } - - /** Represents a CheckThrottlerRequest. */ - class CheckThrottlerRequest implements ICheckThrottlerRequest { - - /** - * Constructs a new CheckThrottlerRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICheckThrottlerRequest); - - /** CheckThrottlerRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerRequest app_name. */ - public app_name: string; - - /** CheckThrottlerRequest scope. */ - public scope: string; - - /** CheckThrottlerRequest skip_request_heartbeats. */ - public skip_request_heartbeats: boolean; - - /** CheckThrottlerRequest ok_if_not_exists. */ - public ok_if_not_exists: boolean; - - /** - * Creates a new CheckThrottlerRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CheckThrottlerRequest instance - */ - public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; - - /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerRequest; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerRequest; - - /** - * Verifies a CheckThrottlerRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CheckThrottlerRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; - - /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. - * @param message CheckThrottlerRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CheckThrottlerRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CheckThrottlerRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CheckThrottlerResponse. */ - interface ICheckThrottlerResponse { - - /** CheckThrottlerResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerResponse Check */ - Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); - } - - /** Represents a CheckThrottlerResponse. */ - class CheckThrottlerResponse implements ICheckThrottlerResponse { - - /** - * Constructs a new CheckThrottlerResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICheckThrottlerResponse); - - /** CheckThrottlerResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerResponse Check. */ - public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); - - /** - * Creates a new CheckThrottlerResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CheckThrottlerResponse instance - */ - public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; - - /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerResponse; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerResponse; - - /** - * Verifies a CheckThrottlerResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CheckThrottlerResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; - - /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. - * @param message CheckThrottlerResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CheckThrottlerResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CheckThrottlerResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CleanupSchemaMigrationRequest. */ - interface ICleanupSchemaMigrationRequest { - - /** CleanupSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CleanupSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CleanupSchemaMigrationRequest. */ - class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { - - /** - * Constructs a new CleanupSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); - - /** CleanupSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CleanupSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CleanupSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. - * @param message CleanupSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. - * @param message CleanupSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CleanupSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Verifies a CleanupSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CleanupSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CleanupSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CleanupSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CleanupSchemaMigrationResponse. */ - interface ICleanupSchemaMigrationResponse { - - /** CleanupSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CleanupSchemaMigrationResponse. */ - class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { - - /** - * Constructs a new CleanupSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); - - /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CleanupSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. - * @param message CleanupSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. - * @param message CleanupSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CleanupSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Verifies a CleanupSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CleanupSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CleanupSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CleanupSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CompleteSchemaMigrationRequest. */ - interface ICompleteSchemaMigrationRequest { - - /** CompleteSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CompleteSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CompleteSchemaMigrationRequest. */ - class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { - - /** - * Constructs a new CompleteSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); - - /** CompleteSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CompleteSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CompleteSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. - * @param message CompleteSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. - * @param message CompleteSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompleteSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Verifies a CompleteSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompleteSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompleteSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CompleteSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CompleteSchemaMigrationResponse. */ - interface ICompleteSchemaMigrationResponse { - - /** CompleteSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CompleteSchemaMigrationResponse. */ - class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { - - /** - * Constructs a new CompleteSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); - - /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CompleteSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. - * @param message CompleteSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. - * @param message CompleteSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompleteSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Verifies a CompleteSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompleteSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompleteSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CompleteSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateKeyspaceRequest. */ - interface ICreateKeyspaceRequest { - - /** CreateKeyspaceRequest name */ - name?: (string|null); - - /** CreateKeyspaceRequest force */ - force?: (boolean|null); - - /** CreateKeyspaceRequest allow_empty_v_schema */ - allow_empty_v_schema?: (boolean|null); - - /** CreateKeyspaceRequest type */ - type?: (topodata.KeyspaceType|null); - - /** CreateKeyspaceRequest base_keyspace */ - base_keyspace?: (string|null); - - /** CreateKeyspaceRequest snapshot_time */ - snapshot_time?: (vttime.ITime|null); - - /** CreateKeyspaceRequest durability_policy */ - durability_policy?: (string|null); - - /** CreateKeyspaceRequest sidecar_db_name */ - sidecar_db_name?: (string|null); - } - - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { - - /** - * Constructs a new CreateKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateKeyspaceRequest); - - /** CreateKeyspaceRequest name. */ - public name: string; - - /** CreateKeyspaceRequest force. */ - public force: boolean; - - /** CreateKeyspaceRequest allow_empty_v_schema. */ - public allow_empty_v_schema: boolean; - - /** CreateKeyspaceRequest type. */ - public type: topodata.KeyspaceType; - - /** CreateKeyspaceRequest base_keyspace. */ - public base_keyspace: string; - - /** CreateKeyspaceRequest snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); - - /** CreateKeyspaceRequest durability_policy. */ - public durability_policy: string; - - /** CreateKeyspaceRequest sidecar_db_name. */ - public sidecar_db_name: string; - - /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance - */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; - - /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; - - /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; - - /** - * Verifies a CreateKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; - - /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { - - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - } - - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { - - /** - * Constructs a new CreateKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); - - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance - */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; - - /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; - - /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; - - /** - * Verifies a CreateKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; - - /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateShardRequest. */ - interface ICreateShardRequest { - - /** CreateShardRequest keyspace */ - keyspace?: (string|null); - - /** CreateShardRequest shard_name */ - shard_name?: (string|null); - - /** CreateShardRequest force */ - force?: (boolean|null); - - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); - } - - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { - - /** - * Constructs a new CreateShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardRequest); - - /** CreateShardRequest keyspace. */ - public keyspace: string; - - /** CreateShardRequest shard_name. */ - public shard_name: string; - - /** CreateShardRequest force. */ - public force: boolean; - - /** CreateShardRequest include_parent. */ - public include_parent: boolean; - - /** - * Creates a new CreateShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardRequest instance - */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; - - /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; - - /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; - - /** - * Verifies a CreateShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; - - /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateShardResponse. */ - interface ICreateShardResponse { - - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); - - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); - } - - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { - - /** - * Constructs a new CreateShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardResponse); - - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); - - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; - - /** - * Creates a new CreateShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardResponse instance - */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; - - /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; - - /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; - - /** - * Verifies a CreateShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; - - /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. - * @param message CreateShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellInfoRequest. */ - interface IDeleteCellInfoRequest { - - /** DeleteCellInfoRequest name */ - name?: (string|null); - - /** DeleteCellInfoRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteCellInfoRequest. */ - class DeleteCellInfoRequest implements IDeleteCellInfoRequest { - - /** - * Constructs a new DeleteCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellInfoRequest); - - /** DeleteCellInfoRequest name. */ - public name: string; - - /** DeleteCellInfoRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellInfoRequest instance - */ - public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; - - /** - * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. - * @param message DeleteCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. - * @param message DeleteCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoRequest; - - /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoRequest; - - /** - * Verifies a DeleteCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; - - /** - * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. - * @param message DeleteCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellInfoResponse. */ - interface IDeleteCellInfoResponse { - } - - /** Represents a DeleteCellInfoResponse. */ - class DeleteCellInfoResponse implements IDeleteCellInfoResponse { - - /** - * Constructs a new DeleteCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellInfoResponse); - - /** - * Creates a new DeleteCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellInfoResponse instance - */ - public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; - - /** - * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. - * @param message DeleteCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. - * @param message DeleteCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoResponse; - - /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoResponse; - - /** - * Verifies a DeleteCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; - - /** - * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. - * @param message DeleteCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellsAliasRequest. */ - interface IDeleteCellsAliasRequest { - - /** DeleteCellsAliasRequest name */ - name?: (string|null); - } - - /** Represents a DeleteCellsAliasRequest. */ - class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { - - /** - * Constructs a new DeleteCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellsAliasRequest); - - /** DeleteCellsAliasRequest name. */ - public name: string; - - /** - * Creates a new DeleteCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IDeleteCellsAliasRequest): vtctldata.DeleteCellsAliasRequest; - - /** - * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. - * @param message DeleteCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. - * @param message DeleteCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasRequest; - - /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasRequest; - - /** - * Verifies a DeleteCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasRequest; - - /** - * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. - * @param message DeleteCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellsAliasResponse. */ - interface IDeleteCellsAliasResponse { - } - - /** Represents a DeleteCellsAliasResponse. */ - class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { - - /** - * Constructs a new DeleteCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellsAliasResponse); - - /** - * Creates a new DeleteCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IDeleteCellsAliasResponse): vtctldata.DeleteCellsAliasResponse; - - /** - * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. - * @param message DeleteCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. - * @param message DeleteCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasResponse; - - /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasResponse; - - /** - * Verifies a DeleteCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; - - /** - * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. - * @param message DeleteCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { - - /** DeleteKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); - - /** DeleteKeyspaceRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { - - /** - * Constructs a new DeleteKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - - /** DeleteKeyspaceRequest keyspace. */ - public keyspace: string; - - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; - - /** DeleteKeyspaceRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; - - /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; - - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; - - /** - * Verifies a DeleteKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; - - /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. - * @param message DeleteKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { - } - - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { - - /** - * Constructs a new DeleteKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); - - /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; - - /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; - - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; - - /** - * Verifies a DeleteKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; - - /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @param message DeleteKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteShardsRequest. */ - interface IDeleteShardsRequest { - - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); - - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); - - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); - - /** DeleteShardsRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { - - /** - * Constructs a new DeleteShardsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteShardsRequest); - - /** DeleteShardsRequest shards. */ - public shards: vtctldata.IShard[]; - - /** DeleteShardsRequest recursive. */ - public recursive: boolean; - - /** DeleteShardsRequest even_if_serving. */ - public even_if_serving: boolean; - - /** DeleteShardsRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteShardsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteShardsRequest instance - */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; - - /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteShardsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; - - /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteShardsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; - - /** - * Verifies a DeleteShardsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteShardsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; - - /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. - * @param message DeleteShardsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteShardsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteShardsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteShardsResponse. */ - interface IDeleteShardsResponse { - } - - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { - - /** - * Constructs a new DeleteShardsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteShardsResponse); - - /** - * Creates a new DeleteShardsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteShardsResponse instance - */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; - - /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteShardsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; - - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteShardsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; - - /** - * Verifies a DeleteShardsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteShardsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; - - /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. - * @param message DeleteShardsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteShardsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteShardsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteSrvVSchemaRequest. */ - interface IDeleteSrvVSchemaRequest { - - /** DeleteSrvVSchemaRequest cell */ - cell?: (string|null); - } - - /** Represents a DeleteSrvVSchemaRequest. */ - class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { - - /** - * Constructs a new DeleteSrvVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); - - /** DeleteSrvVSchemaRequest cell. */ - public cell: string; - - /** - * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSrvVSchemaRequest instance - */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. - * @param message DeleteSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. - * @param message DeleteSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Verifies a DeleteSrvVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSrvVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteSrvVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteSrvVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteSrvVSchemaResponse. */ - interface IDeleteSrvVSchemaResponse { - } - - /** Represents a DeleteSrvVSchemaResponse. */ - class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { - - /** - * Constructs a new DeleteSrvVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); - - /** - * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSrvVSchemaResponse instance - */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. - * @param message DeleteSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. - * @param message DeleteSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Verifies a DeleteSrvVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSrvVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteSrvVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteSrvVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { - - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); - - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); - } - - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { - - /** - * Constructs a new DeleteTabletsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); - - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; - - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; - - /** - * Creates a new DeleteTabletsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance - */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; - - /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; - - /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; - - /** - * Verifies a DeleteTabletsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTabletsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; - - /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. - * @param message DeleteTabletsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTabletsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteTabletsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { - } - - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { - - /** - * Constructs a new DeleteTabletsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); - - /** - * Creates a new DeleteTabletsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance - */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; - - /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; - - /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; - - /** - * Verifies a DeleteTabletsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTabletsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; - - /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. - * @param message DeleteTabletsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTabletsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteTabletsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EmergencyReparentShardRequest. */ - interface IEmergencyReparentShardRequest { - - /** EmergencyReparentShardRequest keyspace */ - keyspace?: (string|null); - - /** EmergencyReparentShardRequest shard */ - shard?: (string|null); - - /** EmergencyReparentShardRequest new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardRequest ignore_replicas */ - ignore_replicas?: (topodata.ITabletAlias[]|null); - - /** EmergencyReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** EmergencyReparentShardRequest prevent_cross_cell_promotion */ - prevent_cross_cell_promotion?: (boolean|null); - - /** EmergencyReparentShardRequest wait_for_all_tablets */ - wait_for_all_tablets?: (boolean|null); - } - - /** Represents an EmergencyReparentShardRequest. */ - class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { - - /** - * Constructs a new EmergencyReparentShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IEmergencyReparentShardRequest); - - /** EmergencyReparentShardRequest keyspace. */ - public keyspace: string; - - /** EmergencyReparentShardRequest shard. */ - public shard: string; - - /** EmergencyReparentShardRequest new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardRequest ignore_replicas. */ - public ignore_replicas: topodata.ITabletAlias[]; - - /** EmergencyReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** EmergencyReparentShardRequest prevent_cross_cell_promotion. */ - public prevent_cross_cell_promotion: boolean; - - /** EmergencyReparentShardRequest wait_for_all_tablets. */ - public wait_for_all_tablets: boolean; - - /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns EmergencyReparentShardRequest instance - */ - public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; - - /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. - * @param message EmergencyReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. - * @param message EmergencyReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmergencyReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; - - /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; - - /** - * Verifies an EmergencyReparentShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmergencyReparentShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; - - /** - * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. - * @param message EmergencyReparentShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EmergencyReparentShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EmergencyReparentShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EmergencyReparentShardResponse. */ - interface IEmergencyReparentShardResponse { - - /** EmergencyReparentShardResponse keyspace */ - keyspace?: (string|null); - - /** EmergencyReparentShardResponse shard */ - shard?: (string|null); - - /** EmergencyReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents an EmergencyReparentShardResponse. */ - class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { - - /** - * Constructs a new EmergencyReparentShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IEmergencyReparentShardResponse); - - /** EmergencyReparentShardResponse keyspace. */ - public keyspace: string; - - /** EmergencyReparentShardResponse shard. */ - public shard: string; - - /** EmergencyReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns EmergencyReparentShardResponse instance - */ - public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; - - /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. - * @param message EmergencyReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. - * @param message EmergencyReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmergencyReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; - - /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; - - /** - * Verifies an EmergencyReparentShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmergencyReparentShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; - - /** - * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. - * @param message EmergencyReparentShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EmergencyReparentShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EmergencyReparentShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsAppRequest. */ - interface IExecuteFetchAsAppRequest { - - /** ExecuteFetchAsAppRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsAppRequest query */ - query?: (string|null); - - /** ExecuteFetchAsAppRequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteFetchAsAppRequest use_pool */ - use_pool?: (boolean|null); - } - - /** Represents an ExecuteFetchAsAppRequest. */ - class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { - - /** - * Constructs a new ExecuteFetchAsAppRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsAppRequest); - - /** ExecuteFetchAsAppRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsAppRequest query. */ - public query: string; - - /** ExecuteFetchAsAppRequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteFetchAsAppRequest use_pool. */ - public use_pool: boolean; - - /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsAppRequest instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Verifies an ExecuteFetchAsAppRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsAppRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsAppRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsAppRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsAppResponse. */ - interface IExecuteFetchAsAppResponse { - - /** ExecuteFetchAsAppResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteFetchAsAppResponse. */ - class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { - - /** - * Constructs a new ExecuteFetchAsAppResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); - - /** ExecuteFetchAsAppResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsAppResponse instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Verifies an ExecuteFetchAsAppResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsAppResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsAppResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsAppResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsDBARequest. */ - interface IExecuteFetchAsDBARequest { - - /** ExecuteFetchAsDBARequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsDBARequest query */ - query?: (string|null); - - /** ExecuteFetchAsDBARequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteFetchAsDBARequest disable_binlogs */ - disable_binlogs?: (boolean|null); - - /** ExecuteFetchAsDBARequest reload_schema */ - reload_schema?: (boolean|null); - } - - /** Represents an ExecuteFetchAsDBARequest. */ - class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { - - /** - * Constructs a new ExecuteFetchAsDBARequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsDBARequest); - - /** ExecuteFetchAsDBARequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsDBARequest query. */ - public query: string; - - /** ExecuteFetchAsDBARequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteFetchAsDBARequest disable_binlogs. */ - public disable_binlogs: boolean; - - /** ExecuteFetchAsDBARequest reload_schema. */ - public reload_schema: boolean; - - /** - * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsDBARequest instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Verifies an ExecuteFetchAsDBARequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsDBARequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBARequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsDBARequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsDBARequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsDBAResponse. */ - interface IExecuteFetchAsDBAResponse { - - /** ExecuteFetchAsDBAResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteFetchAsDBAResponse. */ - class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { - - /** - * Constructs a new ExecuteFetchAsDBAResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); - - /** ExecuteFetchAsDBAResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsDBAResponse instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Verifies an ExecuteFetchAsDBAResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsDBAResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBAResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsDBAResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsDBAResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteHookRequest. */ - interface IExecuteHookRequest { - - /** ExecuteHookRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteHookRequest tablet_hook_request */ - tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); - } - - /** Represents an ExecuteHookRequest. */ - class ExecuteHookRequest implements IExecuteHookRequest { - - /** - * Constructs a new ExecuteHookRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteHookRequest); - - /** ExecuteHookRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteHookRequest tablet_hook_request. */ - public tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); - - /** - * Creates a new ExecuteHookRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteHookRequest instance - */ - public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; - - /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteHookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookRequest; - - /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteHookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookRequest; - - /** - * Verifies an ExecuteHookRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteHookRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; - - /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. - * @param message ExecuteHookRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteHookRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteHookRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteHookResponse. */ - interface IExecuteHookResponse { - - /** ExecuteHookResponse hook_result */ - hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); - } - - /** Represents an ExecuteHookResponse. */ - class ExecuteHookResponse implements IExecuteHookResponse { - - /** - * Constructs a new ExecuteHookResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteHookResponse); - - /** ExecuteHookResponse hook_result. */ - public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); - - /** - * Creates a new ExecuteHookResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteHookResponse instance - */ - public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; - - /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteHookResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookResponse; - - /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteHookResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookResponse; - - /** - * Verifies an ExecuteHookResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteHookResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; - - /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. - * @param message ExecuteHookResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteHookResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteHookResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteMultiFetchAsDBARequest. */ - interface IExecuteMultiFetchAsDBARequest { - - /** ExecuteMultiFetchAsDBARequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteMultiFetchAsDBARequest sql */ - sql?: (string|null); - - /** ExecuteMultiFetchAsDBARequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteMultiFetchAsDBARequest disable_binlogs */ - disable_binlogs?: (boolean|null); - - /** ExecuteMultiFetchAsDBARequest reload_schema */ - reload_schema?: (boolean|null); - } - - /** Represents an ExecuteMultiFetchAsDBARequest. */ - class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { - - /** - * Constructs a new ExecuteMultiFetchAsDBARequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteMultiFetchAsDBARequest); - - /** ExecuteMultiFetchAsDBARequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteMultiFetchAsDBARequest sql. */ - public sql: string; - - /** ExecuteMultiFetchAsDBARequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteMultiFetchAsDBARequest disable_binlogs. */ - public disable_binlogs: boolean; - - /** ExecuteMultiFetchAsDBARequest reload_schema. */ - public reload_schema: boolean; - - /** - * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBARequest instance - */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Verifies an ExecuteMultiFetchAsDBARequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteMultiFetchAsDBARequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBARequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteMultiFetchAsDBARequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteMultiFetchAsDBARequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteMultiFetchAsDBAResponse. */ - interface IExecuteMultiFetchAsDBAResponse { - - /** ExecuteMultiFetchAsDBAResponse results */ - results?: (query.IQueryResult[]|null); - } - - /** Represents an ExecuteMultiFetchAsDBAResponse. */ - class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { - - /** - * Constructs a new ExecuteMultiFetchAsDBAResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); - - /** ExecuteMultiFetchAsDBAResponse results. */ - public results: query.IQueryResult[]; - - /** - * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBAResponse instance - */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Verifies an ExecuteMultiFetchAsDBAResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteMultiFetchAsDBAResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBAResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteMultiFetchAsDBAResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteMultiFetchAsDBAResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FindAllShardsInKeyspaceRequest. */ - interface IFindAllShardsInKeyspaceRequest { - - /** FindAllShardsInKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a FindAllShardsInKeyspaceRequest. */ - class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { - - /** - * Constructs a new FindAllShardsInKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); - - /** FindAllShardsInKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. - * @param message FindAllShardsInKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. - * @param message FindAllShardsInKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FindAllShardsInKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Verifies a FindAllShardsInKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FindAllShardsInKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FindAllShardsInKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FindAllShardsInKeyspaceResponse. */ - interface IFindAllShardsInKeyspaceResponse { - - /** FindAllShardsInKeyspaceResponse shards */ - shards?: ({ [k: string]: vtctldata.IShard }|null); - } - - /** Represents a FindAllShardsInKeyspaceResponse. */ - class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { - - /** - * Constructs a new FindAllShardsInKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); - - /** FindAllShardsInKeyspaceResponse shards. */ - public shards: { [k: string]: vtctldata.IShard }; - - /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. - * @param message FindAllShardsInKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. - * @param message FindAllShardsInKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FindAllShardsInKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Verifies a FindAllShardsInKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FindAllShardsInKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FindAllShardsInKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ForceCutOverSchemaMigrationRequest. */ - interface IForceCutOverSchemaMigrationRequest { - - /** ForceCutOverSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** ForceCutOverSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a ForceCutOverSchemaMigrationRequest. */ - class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { - - /** - * Constructs a new ForceCutOverSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); - - /** ForceCutOverSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** ForceCutOverSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForceCutOverSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Verifies a ForceCutOverSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForceCutOverSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForceCutOverSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ForceCutOverSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ForceCutOverSchemaMigrationResponse. */ - interface IForceCutOverSchemaMigrationResponse { - - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a ForceCutOverSchemaMigrationResponse. */ - class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { - - /** - * Constructs a new ForceCutOverSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); - - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForceCutOverSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Verifies a ForceCutOverSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForceCutOverSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForceCutOverSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ForceCutOverSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetBackupsRequest. */ - interface IGetBackupsRequest { - - /** GetBackupsRequest keyspace */ - keyspace?: (string|null); - - /** GetBackupsRequest shard */ - shard?: (string|null); - - /** GetBackupsRequest limit */ - limit?: (number|null); - - /** GetBackupsRequest detailed */ - detailed?: (boolean|null); - - /** GetBackupsRequest detailed_limit */ - detailed_limit?: (number|null); - } - - /** Represents a GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { - - /** - * Constructs a new GetBackupsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetBackupsRequest); - - /** GetBackupsRequest keyspace. */ - public keyspace: string; - - /** GetBackupsRequest shard. */ - public shard: string; - - /** GetBackupsRequest limit. */ - public limit: number; - - /** GetBackupsRequest detailed. */ - public detailed: boolean; - - /** GetBackupsRequest detailed_limit. */ - public detailed_limit: number; - - /** - * Creates a new GetBackupsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetBackupsRequest instance - */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; - - /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetBackupsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; - - /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetBackupsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; - - /** - * Verifies a GetBackupsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetBackupsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; - - /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. - * @param message GetBackupsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetBackupsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetBackupsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetBackupsResponse. */ - interface IGetBackupsResponse { - - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); - } - - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { - - /** - * Constructs a new GetBackupsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetBackupsResponse); - - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; - - /** - * Creates a new GetBackupsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetBackupsResponse instance - */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; - - /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetBackupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; - - /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetBackupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; - - /** - * Verifies a GetBackupsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetBackupsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; - - /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. - * @param message GetBackupsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetBackupsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetBackupsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoRequest. */ - interface IGetCellInfoRequest { - - /** GetCellInfoRequest cell */ - cell?: (string|null); - } - - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { - - /** - * Constructs a new GetCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoRequest); - - /** GetCellInfoRequest cell. */ - public cell: string; - - /** - * Creates a new GetCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoRequest instance - */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; - - /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; - - /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; - - /** - * Verifies a GetCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; - - /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. - * @param message GetCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoResponse. */ - interface IGetCellInfoResponse { - - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { - - /** - * Constructs a new GetCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoResponse); - - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new GetCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoResponse instance - */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; - - /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; - - /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; - - /** - * Verifies a GetCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; - - /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. - * @param message GetCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { - } - - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { - - /** - * Constructs a new GetCellInfoNamesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); - - /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance - */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; - - /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; - - /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; - - /** - * Verifies a GetCellInfoNamesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoNamesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; - - /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. - * @param message GetCellInfoNamesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoNamesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { - - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); - } - - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { - - /** - * Constructs a new GetCellInfoNamesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); - - /** GetCellInfoNamesResponse names. */ - public names: string[]; - - /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance - */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; - - /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; - - /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; - - /** - * Verifies a GetCellInfoNamesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoNamesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; - - /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. - * @param message GetCellInfoNamesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoNamesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoNamesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { - } - - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { - - /** - * Constructs a new GetCellsAliasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); - - /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance - */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; - - /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellsAliasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; - - /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; - - /** - * Verifies a GetCellsAliasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellsAliasesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; - - /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. - * @param message GetCellsAliasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellsAliasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellsAliasesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { - - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); - } - - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { - - /** - * Constructs a new GetCellsAliasesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); - - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; - - /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance - */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; - - /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellsAliasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; - - /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; - - /** - * Verifies a GetCellsAliasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellsAliasesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; - - /** - * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. - * @param message GetCellsAliasesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellsAliasesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellsAliasesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFullStatusRequest. */ - interface IGetFullStatusRequest { - - /** GetFullStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetFullStatusRequest. */ - class GetFullStatusRequest implements IGetFullStatusRequest { - - /** - * Constructs a new GetFullStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetFullStatusRequest); - - /** GetFullStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetFullStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFullStatusRequest instance - */ - public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; - - /** - * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. - * @param message GetFullStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. - * @param message GetFullStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFullStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusRequest; - - /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFullStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusRequest; - - /** - * Verifies a GetFullStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFullStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; - - /** - * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. - * @param message GetFullStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetFullStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetFullStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFullStatusResponse. */ - interface IGetFullStatusResponse { - - /** GetFullStatusResponse status */ - status?: (replicationdata.IFullStatus|null); - } - - /** Represents a GetFullStatusResponse. */ - class GetFullStatusResponse implements IGetFullStatusResponse { - - /** - * Constructs a new GetFullStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetFullStatusResponse); - - /** GetFullStatusResponse status. */ - public status?: (replicationdata.IFullStatus|null); - - /** - * Creates a new GetFullStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFullStatusResponse instance - */ - public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; - - /** - * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. - * @param message GetFullStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. - * @param message GetFullStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFullStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusResponse; - - /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFullStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusResponse; - - /** - * Verifies a GetFullStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFullStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; - - /** - * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. - * @param message GetFullStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetFullStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetFullStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { - } - - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { - - /** - * Constructs a new GetKeyspacesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); - - /** - * Creates a new GetKeyspacesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; - - /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; - - /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; - - /** - * Verifies a GetKeyspacesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspacesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; - - /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetKeyspacesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspacesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspacesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { - - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|null); - } - - /** Represents a GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { - - /** - * Constructs a new GetKeyspacesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); - - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; - - /** - * Creates a new GetKeyspacesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; - - /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; - - /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; - - /** - * Verifies a GetKeyspacesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspacesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; - - /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetKeyspacesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspacesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspacesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { - - /** GetKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { - - /** - * Constructs a new GetKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); - - /** GetKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new GetKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; - - /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; - - /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; - - /** - * Verifies a GetKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; - - /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { - - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - } - - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { - - /** - * Constructs a new GetKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); - - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** - * Creates a new GetKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; - - /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; - - /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; - - /** - * Verifies a GetKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; - - /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetPermissionsRequest. */ - interface IGetPermissionsRequest { - - /** GetPermissionsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetPermissionsRequest. */ - class GetPermissionsRequest implements IGetPermissionsRequest { - - /** - * Constructs a new GetPermissionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetPermissionsRequest); - - /** GetPermissionsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetPermissionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetPermissionsRequest instance - */ - public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; - - /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsRequest; - - /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsRequest; - - /** - * Verifies a GetPermissionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetPermissionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; - - /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. - * @param message GetPermissionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetPermissionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetPermissionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetPermissionsResponse. */ - interface IGetPermissionsResponse { - - /** GetPermissionsResponse permissions */ - permissions?: (tabletmanagerdata.IPermissions|null); - } - - /** Represents a GetPermissionsResponse. */ - class GetPermissionsResponse implements IGetPermissionsResponse { - - /** - * Constructs a new GetPermissionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetPermissionsResponse); - - /** GetPermissionsResponse permissions. */ - public permissions?: (tabletmanagerdata.IPermissions|null); - - /** - * Creates a new GetPermissionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetPermissionsResponse instance - */ - public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; - - /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsResponse; - - /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsResponse; - - /** - * Verifies a GetPermissionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetPermissionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; - - /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. - * @param message GetPermissionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetPermissionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetPermissionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRoutingRulesRequest. */ - interface IGetKeyspaceRoutingRulesRequest { - } - - /** Represents a GetKeyspaceRoutingRulesRequest. */ - class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { - - /** - * Constructs a new GetKeyspaceRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); - - /** - * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Verifies a GetKeyspaceRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRoutingRulesResponse. */ - interface IGetKeyspaceRoutingRulesResponse { - - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - } - - /** Represents a GetKeyspaceRoutingRulesResponse. */ - class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { - - /** - * Constructs a new GetKeyspaceRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); - - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** - * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Verifies a GetKeyspaceRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetRoutingRulesRequest. */ - interface IGetRoutingRulesRequest { - } - - /** Represents a GetRoutingRulesRequest. */ - class GetRoutingRulesRequest implements IGetRoutingRulesRequest { - - /** - * Constructs a new GetRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetRoutingRulesRequest); - - /** - * Creates a new GetRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; - - /** - * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. - * @param message GetRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. - * @param message GetRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesRequest; - - /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesRequest; - - /** - * Verifies a GetRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; - - /** - * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetRoutingRulesResponse. */ - interface IGetRoutingRulesResponse { - - /** GetRoutingRulesResponse routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - } - - /** Represents a GetRoutingRulesResponse. */ - class GetRoutingRulesResponse implements IGetRoutingRulesResponse { - - /** - * Constructs a new GetRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetRoutingRulesResponse); - - /** GetRoutingRulesResponse routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** - * Creates a new GetRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; - - /** - * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. - * @param message GetRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. - * @param message GetRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesResponse; - - /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesResponse; - - /** - * Verifies a GetRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; - - /** - * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables */ - tables?: (string[]|null); - - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); - - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); - - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); - - /** GetSchemaRequest table_schema_only */ - table_schema_only?: (boolean|null); - } - - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { - - /** - * Constructs a new GetSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaRequest); - - /** GetSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** GetSchemaRequest include_views. */ - public include_views: boolean; - - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; - - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; - - /** GetSchemaRequest table_schema_only. */ - public table_schema_only: boolean; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; - - /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; - - /** - * Verifies a GetSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; - - /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { - - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); - } - - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { - - /** - * Constructs a new GetSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaResponse); - - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** - * Creates a new GetSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; - - /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; - - /** - * Verifies a GetSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; - - /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaMigrationsRequest. */ - interface IGetSchemaMigrationsRequest { - - /** GetSchemaMigrationsRequest keyspace */ - keyspace?: (string|null); - - /** GetSchemaMigrationsRequest uuid */ - uuid?: (string|null); - - /** GetSchemaMigrationsRequest migration_context */ - migration_context?: (string|null); - - /** GetSchemaMigrationsRequest status */ - status?: (vtctldata.SchemaMigration.Status|null); - - /** GetSchemaMigrationsRequest recent */ - recent?: (vttime.IDuration|null); - - /** GetSchemaMigrationsRequest order */ - order?: (vtctldata.QueryOrdering|null); - - /** GetSchemaMigrationsRequest limit */ - limit?: (number|Long|null); - - /** GetSchemaMigrationsRequest skip */ - skip?: (number|Long|null); - } - - /** Represents a GetSchemaMigrationsRequest. */ - class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { - - /** - * Constructs a new GetSchemaMigrationsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaMigrationsRequest); - - /** GetSchemaMigrationsRequest keyspace. */ - public keyspace: string; - - /** GetSchemaMigrationsRequest uuid. */ - public uuid: string; - - /** GetSchemaMigrationsRequest migration_context. */ - public migration_context: string; - - /** GetSchemaMigrationsRequest status. */ - public status: vtctldata.SchemaMigration.Status; - - /** GetSchemaMigrationsRequest recent. */ - public recent?: (vttime.IDuration|null); - - /** GetSchemaMigrationsRequest order. */ - public order: vtctldata.QueryOrdering; - - /** GetSchemaMigrationsRequest limit. */ - public limit: (number|Long); - - /** GetSchemaMigrationsRequest skip. */ - public skip: (number|Long); - - /** - * Creates a new GetSchemaMigrationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaMigrationsRequest instance - */ - public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; - - /** - * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. - * @param message GetSchemaMigrationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. - * @param message GetSchemaMigrationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaMigrationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsRequest; - - /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsRequest; - - /** - * Verifies a GetSchemaMigrationsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaMigrationsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; - - /** - * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaMigrationsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaMigrationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaMigrationsResponse. */ - interface IGetSchemaMigrationsResponse { - - /** GetSchemaMigrationsResponse migrations */ - migrations?: (vtctldata.ISchemaMigration[]|null); - } - - /** Represents a GetSchemaMigrationsResponse. */ - class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { - - /** - * Constructs a new GetSchemaMigrationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); - - /** GetSchemaMigrationsResponse migrations. */ - public migrations: vtctldata.ISchemaMigration[]; - - /** - * Creates a new GetSchemaMigrationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaMigrationsResponse instance - */ - public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; - - /** - * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. - * @param message GetSchemaMigrationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. - * @param message GetSchemaMigrationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaMigrationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsResponse; - - /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsResponse; - - /** - * Verifies a GetSchemaMigrationsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaMigrationsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; - - /** - * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaMigrationsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaMigrationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardReplicationRequest. */ - interface IGetShardReplicationRequest { - - /** GetShardReplicationRequest keyspace */ - keyspace?: (string|null); - - /** GetShardReplicationRequest shard */ - shard?: (string|null); - - /** GetShardReplicationRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetShardReplicationRequest. */ - class GetShardReplicationRequest implements IGetShardReplicationRequest { - - /** - * Constructs a new GetShardReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardReplicationRequest); - - /** GetShardReplicationRequest keyspace. */ - public keyspace: string; - - /** GetShardReplicationRequest shard. */ - public shard: string; - - /** GetShardReplicationRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetShardReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardReplicationRequest instance - */ - public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; - - /** - * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. - * @param message GetShardReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. - * @param message GetShardReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationRequest; - - /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationRequest; - - /** - * Verifies a GetShardReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; - - /** - * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. - * @param message GetShardReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardReplicationResponse. */ - interface IGetShardReplicationResponse { - - /** GetShardReplicationResponse shard_replication_by_cell */ - shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); - } - - /** Represents a GetShardReplicationResponse. */ - class GetShardReplicationResponse implements IGetShardReplicationResponse { - - /** - * Constructs a new GetShardReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardReplicationResponse); - - /** GetShardReplicationResponse shard_replication_by_cell. */ - public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; - - /** - * Creates a new GetShardReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardReplicationResponse instance - */ - public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; - - /** - * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. - * @param message GetShardReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. - * @param message GetShardReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationResponse; - - /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationResponse; - - /** - * Verifies a GetShardReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; - - /** - * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. - * @param message GetShardReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRequest. */ - interface IGetShardRequest { - - /** GetShardRequest keyspace */ - keyspace?: (string|null); - - /** GetShardRequest shard_name */ - shard_name?: (string|null); - } - - /** Represents a GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { - - /** - * Constructs a new GetShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRequest); - - /** GetShardRequest keyspace. */ - public keyspace: string; - - /** GetShardRequest shard_name. */ - public shard_name: string; - - /** - * Creates a new GetShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRequest instance - */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; - - /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; - - /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; - - /** - * Verifies a GetShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; - - /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. - * @param message GetShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardResponse. */ - interface IGetShardResponse { - - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); - } - - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { - - /** - * Constructs a new GetShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardResponse); - - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); - - /** - * Creates a new GetShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardResponse instance - */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; - - /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; - - /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; - - /** - * Verifies a GetShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; - - /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. - * @param message GetShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRoutingRulesRequest. */ - interface IGetShardRoutingRulesRequest { - } - - /** Represents a GetShardRoutingRulesRequest. */ - class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { - - /** - * Constructs a new GetShardRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); - - /** - * Creates a new GetShardRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; - - /** - * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. - * @param message GetShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. - * @param message GetShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesRequest; - - /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesRequest; - - /** - * Verifies a GetShardRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; - - /** - * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRoutingRulesResponse. */ - interface IGetShardRoutingRulesResponse { - - /** GetShardRoutingRulesResponse shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - } - - /** Represents a GetShardRoutingRulesResponse. */ - class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { - - /** - * Constructs a new GetShardRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); - - /** GetShardRoutingRulesResponse shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** - * Creates a new GetShardRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; - - /** - * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. - * @param message GetShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. - * @param message GetShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesResponse; - - /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesResponse; - - /** - * Verifies a GetShardRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; - - /** - * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspaceNamesRequest. */ - interface IGetSrvKeyspaceNamesRequest { - - /** GetSrvKeyspaceNamesRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvKeyspaceNamesRequest. */ - class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { - - /** - * Constructs a new GetSrvKeyspaceNamesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); - - /** GetSrvKeyspaceNamesRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesRequest instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. - * @param message GetSrvKeyspaceNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. - * @param message GetSrvKeyspaceNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Verifies a GetSrvKeyspaceNamesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspaceNamesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspaceNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspaceNamesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspaceNamesResponse. */ - interface IGetSrvKeyspaceNamesResponse { - - /** GetSrvKeyspaceNamesResponse names */ - names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); - } - - /** Represents a GetSrvKeyspaceNamesResponse. */ - class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { - - /** - * Constructs a new GetSrvKeyspaceNamesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); - - /** GetSrvKeyspaceNamesResponse names. */ - public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; - - /** - * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesResponse instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. - * @param message GetSrvKeyspaceNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. - * @param message GetSrvKeyspaceNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Verifies a GetSrvKeyspaceNamesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspaceNamesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspaceNamesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspaceNamesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace GetSrvKeyspaceNamesResponse { - - /** Properties of a NameList. */ - interface INameList { - - /** NameList names */ - names?: (string[]|null); - } - - /** Represents a NameList. */ - class NameList implements INameList { - - /** - * Constructs a new NameList. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList); - - /** NameList names. */ - public names: string[]; - - /** - * Creates a new NameList instance using the specified properties. - * @param [properties] Properties to set - * @returns NameList instance - */ - public static create(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @param message NameList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @param message NameList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NameList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Decodes a NameList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Verifies a NameList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NameList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NameList - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Creates a plain object from a NameList message. Also converts values to other types if specified. - * @param message NameList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse.NameList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NameList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NameList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a GetSrvKeyspacesRequest. */ - interface IGetSrvKeyspacesRequest { - - /** GetSrvKeyspacesRequest keyspace */ - keyspace?: (string|null); - - /** GetSrvKeyspacesRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvKeyspacesRequest. */ - class GetSrvKeyspacesRequest implements IGetSrvKeyspacesRequest { - - /** - * Constructs a new GetSrvKeyspacesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); - - /** GetSrvKeyspacesRequest keyspace. */ - public keyspace: string; - - /** GetSrvKeyspacesRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvKeyspacesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspacesRequest instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; - - /** - * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. - * @param message GetSrvKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. - * @param message GetSrvKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesRequest; - - /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesRequest; - - /** - * Verifies a GetSrvKeyspacesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspacesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; - - /** - * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspacesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspacesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspacesResponse. */ - interface IGetSrvKeyspacesResponse { - - /** GetSrvKeyspacesResponse srv_keyspaces */ - srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); - } - - /** Represents a GetSrvKeyspacesResponse. */ - class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { - - /** - * Constructs a new GetSrvKeyspacesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); - - /** GetSrvKeyspacesResponse srv_keyspaces. */ - public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; - - /** - * Creates a new GetSrvKeyspacesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspacesResponse instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; - - /** - * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. - * @param message GetSrvKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. - * @param message GetSrvKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesResponse; - - /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesResponse; - - /** - * Verifies a GetSrvKeyspacesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspacesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; - - /** - * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspacesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspacesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateThrottlerConfigRequest. */ - interface IUpdateThrottlerConfigRequest { - - /** UpdateThrottlerConfigRequest keyspace */ - keyspace?: (string|null); - - /** UpdateThrottlerConfigRequest enable */ - enable?: (boolean|null); - - /** UpdateThrottlerConfigRequest disable */ - disable?: (boolean|null); - - /** UpdateThrottlerConfigRequest threshold */ - threshold?: (number|null); - - /** UpdateThrottlerConfigRequest custom_query */ - custom_query?: (string|null); - - /** UpdateThrottlerConfigRequest custom_query_set */ - custom_query_set?: (boolean|null); - - /** UpdateThrottlerConfigRequest check_as_check_self */ - check_as_check_self?: (boolean|null); - - /** UpdateThrottlerConfigRequest check_as_check_shard */ - check_as_check_shard?: (boolean|null); - - /** UpdateThrottlerConfigRequest throttled_app */ - throttled_app?: (topodata.IThrottledAppRule|null); - - /** UpdateThrottlerConfigRequest metric_name */ - metric_name?: (string|null); - - /** UpdateThrottlerConfigRequest app_name */ - app_name?: (string|null); - - /** UpdateThrottlerConfigRequest app_checked_metrics */ - app_checked_metrics?: (string[]|null); - } - - /** Represents an UpdateThrottlerConfigRequest. */ - class UpdateThrottlerConfigRequest implements IUpdateThrottlerConfigRequest { - - /** - * Constructs a new UpdateThrottlerConfigRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); - - /** UpdateThrottlerConfigRequest keyspace. */ - public keyspace: string; - - /** UpdateThrottlerConfigRequest enable. */ - public enable: boolean; - - /** UpdateThrottlerConfigRequest disable. */ - public disable: boolean; - - /** UpdateThrottlerConfigRequest threshold. */ - public threshold: number; - - /** UpdateThrottlerConfigRequest custom_query. */ - public custom_query: string; - - /** UpdateThrottlerConfigRequest custom_query_set. */ - public custom_query_set: boolean; - - /** UpdateThrottlerConfigRequest check_as_check_self. */ - public check_as_check_self: boolean; - - /** UpdateThrottlerConfigRequest check_as_check_shard. */ - public check_as_check_shard: boolean; - - /** UpdateThrottlerConfigRequest throttled_app. */ - public throttled_app?: (topodata.IThrottledAppRule|null); - - /** UpdateThrottlerConfigRequest metric_name. */ - public metric_name: string; - - /** UpdateThrottlerConfigRequest app_name. */ - public app_name: string; - - /** UpdateThrottlerConfigRequest app_checked_metrics. */ - public app_checked_metrics: string[]; - - /** - * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateThrottlerConfigRequest instance - */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. - * @param message UpdateThrottlerConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. - * @param message UpdateThrottlerConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateThrottlerConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Verifies an UpdateThrottlerConfigRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateThrottlerConfigRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateThrottlerConfigRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateThrottlerConfigRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateThrottlerConfigResponse. */ - interface IUpdateThrottlerConfigResponse { - } - - /** Represents an UpdateThrottlerConfigResponse. */ - class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { - - /** - * Constructs a new UpdateThrottlerConfigResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); - - /** - * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateThrottlerConfigResponse instance - */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. - * @param message UpdateThrottlerConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. - * @param message UpdateThrottlerConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateThrottlerConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Verifies an UpdateThrottlerConfigResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateThrottlerConfigResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateThrottlerConfigResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateThrottlerConfigResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { - - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); - } - - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { - - /** - * Constructs a new GetSrvVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); - - /** GetSrvVSchemaRequest cell. */ - public cell: string; - - /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; - - /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; - - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; - - /** - * Verifies a GetSrvVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; - - /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { - - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); - } - - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { - - /** - * Constructs a new GetSrvVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); - - /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; - - /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; - - /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; - - /** - * Verifies a GetSrvVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; - - /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemasRequest. */ - interface IGetSrvVSchemasRequest { - - /** GetSrvVSchemasRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvVSchemasRequest. */ - class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { - - /** - * Constructs a new GetSrvVSchemasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemasRequest); - - /** GetSrvVSchemasRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvVSchemasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemasRequest instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; - - /** - * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. - * @param message GetSrvVSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. - * @param message GetSrvVSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasRequest; - - /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasRequest; - - /** - * Verifies a GetSrvVSchemasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; - - /** - * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemasResponse. */ - interface IGetSrvVSchemasResponse { - - /** GetSrvVSchemasResponse srv_v_schemas */ - srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); - } - - /** Represents a GetSrvVSchemasResponse. */ - class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { - - /** - * Constructs a new GetSrvVSchemasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemasResponse); - - /** GetSrvVSchemasResponse srv_v_schemas. */ - public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; - - /** - * Creates a new GetSrvVSchemasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemasResponse instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; - - /** - * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. - * @param message GetSrvVSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. - * @param message GetSrvVSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasResponse; - - /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasResponse; - - /** - * Verifies a GetSrvVSchemasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; - - /** - * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletRequest. */ - interface IGetTabletRequest { - - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { - - /** - * Constructs a new GetTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletRequest); - - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletRequest instance - */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; - - /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; - - /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; - - /** - * Verifies a GetTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; - - /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletResponse. */ - interface IGetTabletResponse { - - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); - } - - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { - - /** - * Constructs a new GetTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletResponse); - - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); - - /** - * Creates a new GetTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletResponse instance - */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; - - /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; - - /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; - - /** - * Verifies a GetTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; - - /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletsRequest. */ - interface IGetTabletsRequest { - - /** GetTabletsRequest keyspace */ - keyspace?: (string|null); - - /** GetTabletsRequest shard */ - shard?: (string|null); - - /** GetTabletsRequest cells */ - cells?: (string[]|null); - - /** GetTabletsRequest strict */ - strict?: (boolean|null); - - /** GetTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); - - /** GetTabletsRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); - } - - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { - - /** - * Constructs a new GetTabletsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletsRequest); - - /** GetTabletsRequest keyspace. */ - public keyspace: string; - - /** GetTabletsRequest shard. */ - public shard: string; - - /** GetTabletsRequest cells. */ - public cells: string[]; - - /** GetTabletsRequest strict. */ - public strict: boolean; - - /** GetTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; - - /** GetTabletsRequest tablet_type. */ - public tablet_type: topodata.TabletType; - - /** - * Creates a new GetTabletsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletsRequest instance - */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; - - /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; - - /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; - - /** - * Verifies a GetTabletsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; - - /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. - * @param message GetTabletsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletsResponse. */ - interface IGetTabletsResponse { - - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); - } - - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { - - /** - * Constructs a new GetTabletsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletsResponse); - - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; - - /** - * Creates a new GetTabletsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletsResponse instance - */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; - - /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; - - /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; - - /** - * Verifies a GetTabletsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; - - /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. - * @param message GetTabletsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetThrottlerStatusRequest. */ - interface IGetThrottlerStatusRequest { - - /** GetThrottlerStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetThrottlerStatusRequest. */ - class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { - - /** - * Constructs a new GetThrottlerStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetThrottlerStatusRequest); - - /** GetThrottlerStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetThrottlerStatusRequest instance - */ - public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; - - /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusRequest; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusRequest; - - /** - * Verifies a GetThrottlerStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetThrottlerStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; - - /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. - * @param message GetThrottlerStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetThrottlerStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetThrottlerStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetThrottlerStatusResponse. */ - interface IGetThrottlerStatusResponse { - - /** GetThrottlerStatusResponse status */ - status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); - } - - /** Represents a GetThrottlerStatusResponse. */ - class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { - - /** - * Constructs a new GetThrottlerStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetThrottlerStatusResponse); - - /** GetThrottlerStatusResponse status. */ - public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); - - /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetThrottlerStatusResponse instance - */ - public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; - - /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusResponse; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusResponse; - - /** - * Verifies a GetThrottlerStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetThrottlerStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; - - /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. - * @param message GetThrottlerStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetThrottlerStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetThrottlerStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTopologyPathRequest. */ - interface IGetTopologyPathRequest { - - /** GetTopologyPathRequest path */ - path?: (string|null); - - /** GetTopologyPathRequest version */ - version?: (number|Long|null); - - /** GetTopologyPathRequest as_json */ - as_json?: (boolean|null); - } - - /** Represents a GetTopologyPathRequest. */ - class GetTopologyPathRequest implements IGetTopologyPathRequest { - - /** - * Constructs a new GetTopologyPathRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTopologyPathRequest); - - /** GetTopologyPathRequest path. */ - public path: string; - - /** GetTopologyPathRequest version. */ - public version: (number|Long); - - /** GetTopologyPathRequest as_json. */ - public as_json: boolean; - - /** - * Creates a new GetTopologyPathRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTopologyPathRequest instance - */ - public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; - - /** - * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. - * @param message GetTopologyPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. - * @param message GetTopologyPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTopologyPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathRequest; - - /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTopologyPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathRequest; - - /** - * Verifies a GetTopologyPathRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTopologyPathRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; - - /** - * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. - * @param message GetTopologyPathRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTopologyPathRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTopologyPathRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTopologyPathResponse. */ - interface IGetTopologyPathResponse { - - /** GetTopologyPathResponse cell */ - cell?: (vtctldata.ITopologyCell|null); - } - - /** Represents a GetTopologyPathResponse. */ - class GetTopologyPathResponse implements IGetTopologyPathResponse { - - /** - * Constructs a new GetTopologyPathResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTopologyPathResponse); - - /** GetTopologyPathResponse cell. */ - public cell?: (vtctldata.ITopologyCell|null); - - /** - * Creates a new GetTopologyPathResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTopologyPathResponse instance - */ - public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; - - /** - * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. - * @param message GetTopologyPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. - * @param message GetTopologyPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTopologyPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathResponse; - - /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTopologyPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathResponse; - - /** - * Verifies a GetTopologyPathResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTopologyPathResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; - - /** - * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. - * @param message GetTopologyPathResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTopologyPathResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTopologyPathResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TopologyCell. */ - interface ITopologyCell { - - /** TopologyCell name */ - name?: (string|null); - - /** TopologyCell path */ - path?: (string|null); - - /** TopologyCell data */ - data?: (string|null); - - /** TopologyCell children */ - children?: (string[]|null); - - /** TopologyCell version */ - version?: (number|Long|null); - } - - /** Represents a TopologyCell. */ - class TopologyCell implements ITopologyCell { - - /** - * Constructs a new TopologyCell. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITopologyCell); - - /** TopologyCell name. */ - public name: string; - - /** TopologyCell path. */ - public path: string; - - /** TopologyCell data. */ - public data: string; - - /** TopologyCell children. */ - public children: string[]; - - /** TopologyCell version. */ - public version: (number|Long); - - /** - * Creates a new TopologyCell instance using the specified properties. - * @param [properties] Properties to set - * @returns TopologyCell instance - */ - public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; - - /** - * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. - * @param message TopologyCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. - * @param message TopologyCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TopologyCell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TopologyCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TopologyCell; - - /** - * Decodes a TopologyCell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TopologyCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TopologyCell; - - /** - * Verifies a TopologyCell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TopologyCell - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; - - /** - * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. - * @param message TopologyCell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TopologyCell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TopologyCell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetUnresolvedTransactionsRequest. */ - interface IGetUnresolvedTransactionsRequest { - - /** GetUnresolvedTransactionsRequest keyspace */ - keyspace?: (string|null); - - /** GetUnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); - } - - /** Represents a GetUnresolvedTransactionsRequest. */ - class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { - - /** - * Constructs a new GetUnresolvedTransactionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); - - /** GetUnresolvedTransactionsRequest keyspace. */ - public keyspace: string; - - /** GetUnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); - - /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsRequest instance - */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetUnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Verifies a GetUnresolvedTransactionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetUnresolvedTransactionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetUnresolvedTransactionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetUnresolvedTransactionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetUnresolvedTransactionsResponse. */ - interface IGetUnresolvedTransactionsResponse { - - /** GetUnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); - } - - /** Represents a GetUnresolvedTransactionsResponse. */ - class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { - - /** - * Constructs a new GetUnresolvedTransactionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); - - /** GetUnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; - - /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsResponse instance - */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetUnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Verifies a GetUnresolvedTransactionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetUnresolvedTransactionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetUnresolvedTransactionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetUnresolvedTransactionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionRequest. */ - interface IConcludeTransactionRequest { - - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); - - /** ConcludeTransactionRequest participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { - - /** - * Constructs a new ConcludeTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IConcludeTransactionRequest); - - /** ConcludeTransactionRequest dtid. */ - public dtid: string; - - /** ConcludeTransactionRequest participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance - */ - public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; - - /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionRequest; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionRequest; - - /** - * Verifies a ConcludeTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; - - /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { - } - - /** Represents a ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { - - /** - * Constructs a new ConcludeTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IConcludeTransactionResponse); - - /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance - */ - public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; - - /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionResponse; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionResponse; - - /** - * Verifies a ConcludeTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; - - /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVSchemaRequest. */ - interface IGetVSchemaRequest { - - /** GetVSchemaRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { - - /** - * Constructs a new GetVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVSchemaRequest); - - /** GetVSchemaRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new GetVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; - - /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; - - /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; - - /** - * Verifies a GetVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; - - /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. - * @param message GetVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { - - /** GetVersionRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { - - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVersionRequest); - - /** GetVersionRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionRequest instance - */ - public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionRequest; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionRequest; - - /** - * Verifies a GetVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVersionRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; - - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVersionResponse. */ - interface IGetVersionResponse { - - /** GetVersionResponse version */ - version?: (string|null); - } - - /** Represents a GetVersionResponse. */ - class GetVersionResponse implements IGetVersionResponse { - - /** - * Constructs a new GetVersionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVersionResponse); - - /** GetVersionResponse version. */ - public version: string; - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionResponse instance - */ - public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionResponse; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionResponse; - - /** - * Verifies a GetVersionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVersionResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; - - /** - * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. - * @param message GetVersionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVersionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVersionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVSchemaResponse. */ - interface IGetVSchemaResponse { - - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); - } - - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { - - /** - * Constructs a new GetVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVSchemaResponse); - - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** - * Creates a new GetVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; - - /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; - - /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; - - /** - * Verifies a GetVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; - - /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. - * @param message GetVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetWorkflowsRequest. */ - interface IGetWorkflowsRequest { - - /** GetWorkflowsRequest keyspace */ - keyspace?: (string|null); - - /** GetWorkflowsRequest active_only */ - active_only?: (boolean|null); - - /** GetWorkflowsRequest name_only */ - name_only?: (boolean|null); - - /** GetWorkflowsRequest workflow */ - workflow?: (string|null); - - /** GetWorkflowsRequest include_logs */ - include_logs?: (boolean|null); - - /** GetWorkflowsRequest shards */ - shards?: (string[]|null); - } - - /** Represents a GetWorkflowsRequest. */ - class GetWorkflowsRequest implements IGetWorkflowsRequest { - - /** - * Constructs a new GetWorkflowsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetWorkflowsRequest); - - /** GetWorkflowsRequest keyspace. */ - public keyspace: string; - - /** GetWorkflowsRequest active_only. */ - public active_only: boolean; - - /** GetWorkflowsRequest name_only. */ - public name_only: boolean; - - /** GetWorkflowsRequest workflow. */ - public workflow: string; - - /** GetWorkflowsRequest include_logs. */ - public include_logs: boolean; - - /** GetWorkflowsRequest shards. */ - public shards: string[]; - - /** - * Creates a new GetWorkflowsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWorkflowsRequest instance - */ - public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; - - /** - * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. - * @param message GetWorkflowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. - * @param message GetWorkflowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; - - /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; - - /** - * Verifies a GetWorkflowsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWorkflowsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; - - /** - * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. - * @param message GetWorkflowsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetWorkflowsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetWorkflowsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetWorkflowsResponse. */ - interface IGetWorkflowsResponse { - - /** GetWorkflowsResponse workflows */ - workflows?: (vtctldata.IWorkflow[]|null); - } - - /** Represents a GetWorkflowsResponse. */ - class GetWorkflowsResponse implements IGetWorkflowsResponse { - - /** - * Constructs a new GetWorkflowsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetWorkflowsResponse); - - /** GetWorkflowsResponse workflows. */ - public workflows: vtctldata.IWorkflow[]; - - /** - * Creates a new GetWorkflowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWorkflowsResponse instance - */ - public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; - - /** - * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. - * @param message GetWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. - * @param message GetWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; - - /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; - - /** - * Verifies a GetWorkflowsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWorkflowsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; - - /** - * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. - * @param message GetWorkflowsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetWorkflowsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetWorkflowsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { - - /** InitShardPrimaryRequest keyspace */ - keyspace?: (string|null); - - /** InitShardPrimaryRequest shard */ - shard?: (string|null); - - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force */ - force?: (boolean|null); - - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - } - - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { - - /** - * Constructs a new InitShardPrimaryRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); - - /** InitShardPrimaryRequest keyspace. */ - public keyspace: string; - - /** InitShardPrimaryRequest shard. */ - public shard: string; - - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force. */ - public force: boolean; - - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance - */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; - - /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InitShardPrimaryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; - - /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; - - /** - * Verifies an InitShardPrimaryRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InitShardPrimaryRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; - - /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. - * @param message InitShardPrimaryRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InitShardPrimaryRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InitShardPrimaryRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { - - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { - - /** - * Constructs a new InitShardPrimaryResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); - - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance - */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; - - /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InitShardPrimaryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; - - /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; - - /** - * Verifies an InitShardPrimaryResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InitShardPrimaryResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; - - /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. - * @param message InitShardPrimaryResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InitShardPrimaryResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InitShardPrimaryResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LaunchSchemaMigrationRequest. */ - interface ILaunchSchemaMigrationRequest { - - /** LaunchSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** LaunchSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a LaunchSchemaMigrationRequest. */ - class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { - - /** - * Constructs a new LaunchSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); - - /** LaunchSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** LaunchSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. - * @param message LaunchSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. - * @param message LaunchSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Verifies a LaunchSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LaunchSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LaunchSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LaunchSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LaunchSchemaMigrationResponse. */ - interface ILaunchSchemaMigrationResponse { - - /** LaunchSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a LaunchSchemaMigrationResponse. */ - class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { - - /** - * Constructs a new LaunchSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); - - /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. - * @param message LaunchSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. - * @param message LaunchSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Verifies a LaunchSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LaunchSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LaunchSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LaunchSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexCreateRequest. */ - interface ILookupVindexCreateRequest { - - /** LookupVindexCreateRequest keyspace */ - keyspace?: (string|null); - - /** LookupVindexCreateRequest workflow */ - workflow?: (string|null); - - /** LookupVindexCreateRequest cells */ - cells?: (string[]|null); - - /** LookupVindexCreateRequest vindex */ - vindex?: (vschema.IKeyspace|null); - - /** LookupVindexCreateRequest continue_after_copy_with_owner */ - continue_after_copy_with_owner?: (boolean|null); - - /** LookupVindexCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** LookupVindexCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - } - - /** Represents a LookupVindexCreateRequest. */ - class LookupVindexCreateRequest implements ILookupVindexCreateRequest { - - /** - * Constructs a new LookupVindexCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexCreateRequest); - - /** LookupVindexCreateRequest keyspace. */ - public keyspace: string; - - /** LookupVindexCreateRequest workflow. */ - public workflow: string; - - /** LookupVindexCreateRequest cells. */ - public cells: string[]; - - /** LookupVindexCreateRequest vindex. */ - public vindex?: (vschema.IKeyspace|null); - - /** LookupVindexCreateRequest continue_after_copy_with_owner. */ - public continue_after_copy_with_owner: boolean; - - /** LookupVindexCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** LookupVindexCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** - * Creates a new LookupVindexCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexCreateRequest instance - */ - public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; - - /** - * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. - * @param message LookupVindexCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. - * @param message LookupVindexCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateRequest; - - /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateRequest; - - /** - * Verifies a LookupVindexCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; - - /** - * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. - * @param message LookupVindexCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexCreateResponse. */ - interface ILookupVindexCreateResponse { - } - - /** Represents a LookupVindexCreateResponse. */ - class LookupVindexCreateResponse implements ILookupVindexCreateResponse { - - /** - * Constructs a new LookupVindexCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexCreateResponse); - - /** - * Creates a new LookupVindexCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexCreateResponse instance - */ - public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; - - /** - * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. - * @param message LookupVindexCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. - * @param message LookupVindexCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateResponse; - - /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateResponse; - - /** - * Verifies a LookupVindexCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; - - /** - * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. - * @param message LookupVindexCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexExternalizeRequest. */ - interface ILookupVindexExternalizeRequest { - - /** LookupVindexExternalizeRequest keyspace */ - keyspace?: (string|null); - - /** LookupVindexExternalizeRequest name */ - name?: (string|null); - - /** LookupVindexExternalizeRequest table_keyspace */ - table_keyspace?: (string|null); - } - - /** Represents a LookupVindexExternalizeRequest. */ - class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { - - /** - * Constructs a new LookupVindexExternalizeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexExternalizeRequest); - - /** LookupVindexExternalizeRequest keyspace. */ - public keyspace: string; - - /** LookupVindexExternalizeRequest name. */ - public name: string; - - /** LookupVindexExternalizeRequest table_keyspace. */ - public table_keyspace: string; - - /** - * Creates a new LookupVindexExternalizeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexExternalizeRequest instance - */ - public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; - - /** - * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. - * @param message LookupVindexExternalizeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. - * @param message LookupVindexExternalizeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexExternalizeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeRequest; - - /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeRequest; - - /** - * Verifies a LookupVindexExternalizeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexExternalizeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; - - /** - * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexExternalizeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexExternalizeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexExternalizeResponse. */ - interface ILookupVindexExternalizeResponse { - - /** LookupVindexExternalizeResponse workflow_deleted */ - workflow_deleted?: (boolean|null); - } - - /** Represents a LookupVindexExternalizeResponse. */ - class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { - - /** - * Constructs a new LookupVindexExternalizeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); - - /** LookupVindexExternalizeResponse workflow_deleted. */ - public workflow_deleted: boolean; - - /** - * Creates a new LookupVindexExternalizeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexExternalizeResponse instance - */ - public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; - - /** - * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. - * @param message LookupVindexExternalizeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. - * @param message LookupVindexExternalizeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexExternalizeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeResponse; - - /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeResponse; - - /** - * Verifies a LookupVindexExternalizeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexExternalizeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; - - /** - * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexExternalizeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexExternalizeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeCreateRequest. */ - interface IMaterializeCreateRequest { - - /** MaterializeCreateRequest settings */ - settings?: (vtctldata.IMaterializeSettings|null); - } - - /** Represents a MaterializeCreateRequest. */ - class MaterializeCreateRequest implements IMaterializeCreateRequest { - - /** - * Constructs a new MaterializeCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeCreateRequest); - - /** MaterializeCreateRequest settings. */ - public settings?: (vtctldata.IMaterializeSettings|null); - - /** - * Creates a new MaterializeCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeCreateRequest instance - */ - public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; - - /** - * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. - * @param message MaterializeCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. - * @param message MaterializeCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateRequest; - - /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateRequest; - - /** - * Verifies a MaterializeCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; - - /** - * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. - * @param message MaterializeCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeCreateResponse. */ - interface IMaterializeCreateResponse { - } - - /** Represents a MaterializeCreateResponse. */ - class MaterializeCreateResponse implements IMaterializeCreateResponse { - - /** - * Constructs a new MaterializeCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeCreateResponse); - - /** - * Creates a new MaterializeCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeCreateResponse instance - */ - public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; - - /** - * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. - * @param message MaterializeCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. - * @param message MaterializeCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateResponse; - - /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateResponse; - - /** - * Verifies a MaterializeCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; - - /** - * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. - * @param message MaterializeCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCreateRequest. */ - interface IMigrateCreateRequest { - - /** MigrateCreateRequest workflow */ - workflow?: (string|null); - - /** MigrateCreateRequest source_keyspace */ - source_keyspace?: (string|null); - - /** MigrateCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MigrateCreateRequest mount_name */ - mount_name?: (string|null); - - /** MigrateCreateRequest cells */ - cells?: (string[]|null); - - /** MigrateCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** MigrateCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MigrateCreateRequest all_tables */ - all_tables?: (boolean|null); - - /** MigrateCreateRequest include_tables */ - include_tables?: (string[]|null); - - /** MigrateCreateRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** MigrateCreateRequest source_time_zone */ - source_time_zone?: (string|null); - - /** MigrateCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** MigrateCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MigrateCreateRequest drop_foreign_keys */ - drop_foreign_keys?: (boolean|null); - - /** MigrateCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MigrateCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** MigrateCreateRequest no_routing_rules */ - no_routing_rules?: (boolean|null); - } - - /** Represents a MigrateCreateRequest. */ - class MigrateCreateRequest implements IMigrateCreateRequest { - - /** - * Constructs a new MigrateCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCreateRequest); - - /** MigrateCreateRequest workflow. */ - public workflow: string; - - /** MigrateCreateRequest source_keyspace. */ - public source_keyspace: string; - - /** MigrateCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** MigrateCreateRequest mount_name. */ - public mount_name: string; - - /** MigrateCreateRequest cells. */ - public cells: string[]; - - /** MigrateCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** MigrateCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MigrateCreateRequest all_tables. */ - public all_tables: boolean; - - /** MigrateCreateRequest include_tables. */ - public include_tables: string[]; - - /** MigrateCreateRequest exclude_tables. */ - public exclude_tables: string[]; - - /** MigrateCreateRequest source_time_zone. */ - public source_time_zone: string; - - /** MigrateCreateRequest on_ddl. */ - public on_ddl: string; - - /** MigrateCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** MigrateCreateRequest drop_foreign_keys. */ - public drop_foreign_keys: boolean; - - /** MigrateCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MigrateCreateRequest auto_start. */ - public auto_start: boolean; - - /** MigrateCreateRequest no_routing_rules. */ - public no_routing_rules: boolean; - - /** - * Creates a new MigrateCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCreateRequest instance - */ - public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; - - /** - * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. - * @param message MigrateCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. - * @param message MigrateCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCreateRequest; - - /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCreateRequest; - - /** - * Verifies a MigrateCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; - - /** - * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. - * @param message MigrateCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCompleteRequest. */ - interface IMigrateCompleteRequest { - - /** MigrateCompleteRequest workflow */ - workflow?: (string|null); - - /** MigrateCompleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MigrateCompleteRequest keep_data */ - keep_data?: (boolean|null); - - /** MigrateCompleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** MigrateCompleteRequest rename_tables */ - rename_tables?: (boolean|null); - - /** MigrateCompleteRequest dry_run */ - dry_run?: (boolean|null); - } - - /** Represents a MigrateCompleteRequest. */ - class MigrateCompleteRequest implements IMigrateCompleteRequest { - - /** - * Constructs a new MigrateCompleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCompleteRequest); - - /** MigrateCompleteRequest workflow. */ - public workflow: string; - - /** MigrateCompleteRequest target_keyspace. */ - public target_keyspace: string; - - /** MigrateCompleteRequest keep_data. */ - public keep_data: boolean; - - /** MigrateCompleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** MigrateCompleteRequest rename_tables. */ - public rename_tables: boolean; - - /** MigrateCompleteRequest dry_run. */ - public dry_run: boolean; - - /** - * Creates a new MigrateCompleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCompleteRequest instance - */ - public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; - - /** - * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. - * @param message MigrateCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. - * @param message MigrateCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteRequest; - - /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteRequest; - - /** - * Verifies a MigrateCompleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCompleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; - - /** - * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. - * @param message MigrateCompleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCompleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCompleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCompleteResponse. */ - interface IMigrateCompleteResponse { - - /** MigrateCompleteResponse summary */ - summary?: (string|null); - - /** MigrateCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a MigrateCompleteResponse. */ - class MigrateCompleteResponse implements IMigrateCompleteResponse { - - /** - * Constructs a new MigrateCompleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCompleteResponse); - - /** MigrateCompleteResponse summary. */ - public summary: string; - - /** MigrateCompleteResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new MigrateCompleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCompleteResponse instance - */ - public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; - - /** - * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. - * @param message MigrateCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. - * @param message MigrateCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteResponse; - - /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteResponse; - - /** - * Verifies a MigrateCompleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCompleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; - - /** - * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. - * @param message MigrateCompleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCompleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCompleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountRegisterRequest. */ - interface IMountRegisterRequest { - - /** MountRegisterRequest topo_type */ - topo_type?: (string|null); - - /** MountRegisterRequest topo_server */ - topo_server?: (string|null); - - /** MountRegisterRequest topo_root */ - topo_root?: (string|null); - - /** MountRegisterRequest name */ - name?: (string|null); - } - - /** Represents a MountRegisterRequest. */ - class MountRegisterRequest implements IMountRegisterRequest { - - /** - * Constructs a new MountRegisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountRegisterRequest); - - /** MountRegisterRequest topo_type. */ - public topo_type: string; - - /** MountRegisterRequest topo_server. */ - public topo_server: string; - - /** MountRegisterRequest topo_root. */ - public topo_root: string; - - /** MountRegisterRequest name. */ - public name: string; - - /** - * Creates a new MountRegisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountRegisterRequest instance - */ - public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; - - /** - * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. - * @param message MountRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. - * @param message MountRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountRegisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterRequest; - - /** - * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterRequest; - - /** - * Verifies a MountRegisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountRegisterRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; - - /** - * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. - * @param message MountRegisterRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountRegisterRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountRegisterRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountRegisterResponse. */ - interface IMountRegisterResponse { - } - - /** Represents a MountRegisterResponse. */ - class MountRegisterResponse implements IMountRegisterResponse { - - /** - * Constructs a new MountRegisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountRegisterResponse); - - /** - * Creates a new MountRegisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountRegisterResponse instance - */ - public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; - - /** - * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. - * @param message MountRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. - * @param message MountRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountRegisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterResponse; - - /** - * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterResponse; - - /** - * Verifies a MountRegisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountRegisterResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; - - /** - * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. - * @param message MountRegisterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountRegisterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountRegisterResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountUnregisterRequest. */ - interface IMountUnregisterRequest { - - /** MountUnregisterRequest name */ - name?: (string|null); - } - - /** Represents a MountUnregisterRequest. */ - class MountUnregisterRequest implements IMountUnregisterRequest { - - /** - * Constructs a new MountUnregisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountUnregisterRequest); - - /** MountUnregisterRequest name. */ - public name: string; - - /** - * Creates a new MountUnregisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountUnregisterRequest instance - */ - public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; - - /** - * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. - * @param message MountUnregisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. - * @param message MountUnregisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountUnregisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterRequest; - - /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountUnregisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterRequest; - - /** - * Verifies a MountUnregisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountUnregisterRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; - - /** - * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. - * @param message MountUnregisterRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountUnregisterRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountUnregisterRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountUnregisterResponse. */ - interface IMountUnregisterResponse { - } - - /** Represents a MountUnregisterResponse. */ - class MountUnregisterResponse implements IMountUnregisterResponse { - - /** - * Constructs a new MountUnregisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountUnregisterResponse); - - /** - * Creates a new MountUnregisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountUnregisterResponse instance - */ - public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; - - /** - * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. - * @param message MountUnregisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. - * @param message MountUnregisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountUnregisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterResponse; - - /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountUnregisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterResponse; - - /** - * Verifies a MountUnregisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountUnregisterResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; - - /** - * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. - * @param message MountUnregisterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountUnregisterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountUnregisterResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountShowRequest. */ - interface IMountShowRequest { - - /** MountShowRequest name */ - name?: (string|null); - } - - /** Represents a MountShowRequest. */ - class MountShowRequest implements IMountShowRequest { - - /** - * Constructs a new MountShowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountShowRequest); - - /** MountShowRequest name. */ - public name: string; - - /** - * Creates a new MountShowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountShowRequest instance - */ - public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; - - /** - * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. - * @param message MountShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. - * @param message MountShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountShowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowRequest; - - /** - * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowRequest; - - /** - * Verifies a MountShowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountShowRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; - - /** - * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. - * @param message MountShowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountShowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountShowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountShowResponse. */ - interface IMountShowResponse { - - /** MountShowResponse topo_type */ - topo_type?: (string|null); - - /** MountShowResponse topo_server */ - topo_server?: (string|null); - - /** MountShowResponse topo_root */ - topo_root?: (string|null); - - /** MountShowResponse name */ - name?: (string|null); - } - - /** Represents a MountShowResponse. */ - class MountShowResponse implements IMountShowResponse { - - /** - * Constructs a new MountShowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountShowResponse); - - /** MountShowResponse topo_type. */ - public topo_type: string; - - /** MountShowResponse topo_server. */ - public topo_server: string; - - /** MountShowResponse topo_root. */ - public topo_root: string; - - /** MountShowResponse name. */ - public name: string; - - /** - * Creates a new MountShowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountShowResponse instance - */ - public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; - - /** - * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. - * @param message MountShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. - * @param message MountShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountShowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowResponse; - - /** - * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowResponse; - - /** - * Verifies a MountShowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountShowResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; - - /** - * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. - * @param message MountShowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountShowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountShowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountListRequest. */ - interface IMountListRequest { - } - - /** Represents a MountListRequest. */ - class MountListRequest implements IMountListRequest { - - /** - * Constructs a new MountListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountListRequest); - - /** - * Creates a new MountListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountListRequest instance - */ - public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; - - /** - * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. - * @param message MountListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. - * @param message MountListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListRequest; - - /** - * Decodes a MountListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListRequest; - - /** - * Verifies a MountListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountListRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; - - /** - * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. - * @param message MountListRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountListRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountListRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountListResponse. */ - interface IMountListResponse { - - /** MountListResponse names */ - names?: (string[]|null); - } - - /** Represents a MountListResponse. */ - class MountListResponse implements IMountListResponse { - - /** - * Constructs a new MountListResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountListResponse); - - /** MountListResponse names. */ - public names: string[]; - - /** - * Creates a new MountListResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountListResponse instance - */ - public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; - - /** - * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. - * @param message MountListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. - * @param message MountListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountListResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListResponse; - - /** - * Decodes a MountListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListResponse; - - /** - * Verifies a MountListResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountListResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; - - /** - * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. - * @param message MountListResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountListResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountListResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCreateRequest. */ - interface IMoveTablesCreateRequest { - - /** MoveTablesCreateRequest workflow */ - workflow?: (string|null); - - /** MoveTablesCreateRequest source_keyspace */ - source_keyspace?: (string|null); - - /** MoveTablesCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MoveTablesCreateRequest cells */ - cells?: (string[]|null); - - /** MoveTablesCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** MoveTablesCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MoveTablesCreateRequest source_shards */ - source_shards?: (string[]|null); - - /** MoveTablesCreateRequest all_tables */ - all_tables?: (boolean|null); - - /** MoveTablesCreateRequest include_tables */ - include_tables?: (string[]|null); - - /** MoveTablesCreateRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** MoveTablesCreateRequest external_cluster_name */ - external_cluster_name?: (string|null); - - /** MoveTablesCreateRequest source_time_zone */ - source_time_zone?: (string|null); - - /** MoveTablesCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** MoveTablesCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MoveTablesCreateRequest drop_foreign_keys */ - drop_foreign_keys?: (boolean|null); - - /** MoveTablesCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MoveTablesCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** MoveTablesCreateRequest no_routing_rules */ - no_routing_rules?: (boolean|null); - - /** MoveTablesCreateRequest atomic_copy */ - atomic_copy?: (boolean|null); - - /** MoveTablesCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a MoveTablesCreateRequest. */ - class MoveTablesCreateRequest implements IMoveTablesCreateRequest { - - /** - * Constructs a new MoveTablesCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCreateRequest); - - /** MoveTablesCreateRequest workflow. */ - public workflow: string; - - /** MoveTablesCreateRequest source_keyspace. */ - public source_keyspace: string; - - /** MoveTablesCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** MoveTablesCreateRequest cells. */ - public cells: string[]; - - /** MoveTablesCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** MoveTablesCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MoveTablesCreateRequest source_shards. */ - public source_shards: string[]; - - /** MoveTablesCreateRequest all_tables. */ - public all_tables: boolean; - - /** MoveTablesCreateRequest include_tables. */ - public include_tables: string[]; - - /** MoveTablesCreateRequest exclude_tables. */ - public exclude_tables: string[]; - - /** MoveTablesCreateRequest external_cluster_name. */ - public external_cluster_name: string; - - /** MoveTablesCreateRequest source_time_zone. */ - public source_time_zone: string; - - /** MoveTablesCreateRequest on_ddl. */ - public on_ddl: string; - - /** MoveTablesCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** MoveTablesCreateRequest drop_foreign_keys. */ - public drop_foreign_keys: boolean; - - /** MoveTablesCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MoveTablesCreateRequest auto_start. */ - public auto_start: boolean; - - /** MoveTablesCreateRequest no_routing_rules. */ - public no_routing_rules: boolean; - - /** MoveTablesCreateRequest atomic_copy. */ - public atomic_copy: boolean; - - /** MoveTablesCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new MoveTablesCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCreateRequest instance - */ - public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; - - /** - * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. - * @param message MoveTablesCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. - * @param message MoveTablesCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateRequest; - - /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateRequest; - - /** - * Verifies a MoveTablesCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; - - /** - * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. - * @param message MoveTablesCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCreateResponse. */ - interface IMoveTablesCreateResponse { - - /** MoveTablesCreateResponse summary */ - summary?: (string|null); - - /** MoveTablesCreateResponse details */ - details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); - } - - /** Represents a MoveTablesCreateResponse. */ - class MoveTablesCreateResponse implements IMoveTablesCreateResponse { - - /** - * Constructs a new MoveTablesCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCreateResponse); - - /** MoveTablesCreateResponse summary. */ - public summary: string; - - /** MoveTablesCreateResponse details. */ - public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; - - /** - * Creates a new MoveTablesCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCreateResponse instance - */ - public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; - - /** - * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. - * @param message MoveTablesCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. - * @param message MoveTablesCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse; - - /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse; - - /** - * Verifies a MoveTablesCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; - - /** - * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. - * @param message MoveTablesCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MoveTablesCreateResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo created */ - created?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo created. */ - public created: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MoveTablesCompleteRequest. */ - interface IMoveTablesCompleteRequest { - - /** MoveTablesCompleteRequest workflow */ - workflow?: (string|null); - - /** MoveTablesCompleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MoveTablesCompleteRequest keep_data */ - keep_data?: (boolean|null); - - /** MoveTablesCompleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** MoveTablesCompleteRequest rename_tables */ - rename_tables?: (boolean|null); - - /** MoveTablesCompleteRequest dry_run */ - dry_run?: (boolean|null); - - /** MoveTablesCompleteRequest shards */ - shards?: (string[]|null); - } - - /** Represents a MoveTablesCompleteRequest. */ - class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { - - /** - * Constructs a new MoveTablesCompleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCompleteRequest); - - /** MoveTablesCompleteRequest workflow. */ - public workflow: string; - - /** MoveTablesCompleteRequest target_keyspace. */ - public target_keyspace: string; - - /** MoveTablesCompleteRequest keep_data. */ - public keep_data: boolean; - - /** MoveTablesCompleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** MoveTablesCompleteRequest rename_tables. */ - public rename_tables: boolean; - - /** MoveTablesCompleteRequest dry_run. */ - public dry_run: boolean; - - /** MoveTablesCompleteRequest shards. */ - public shards: string[]; - - /** - * Creates a new MoveTablesCompleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCompleteRequest instance - */ - public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; - - /** - * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. - * @param message MoveTablesCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. - * @param message MoveTablesCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteRequest; - - /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteRequest; - - /** - * Verifies a MoveTablesCompleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCompleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; - - /** - * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. - * @param message MoveTablesCompleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCompleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCompleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCompleteResponse. */ - interface IMoveTablesCompleteResponse { - - /** MoveTablesCompleteResponse summary */ - summary?: (string|null); - - /** MoveTablesCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a MoveTablesCompleteResponse. */ - class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { - - /** - * Constructs a new MoveTablesCompleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCompleteResponse); - - /** MoveTablesCompleteResponse summary. */ - public summary: string; - - /** MoveTablesCompleteResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new MoveTablesCompleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCompleteResponse instance - */ - public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; - - /** - * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. - * @param message MoveTablesCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. - * @param message MoveTablesCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteResponse; - - /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteResponse; - - /** - * Verifies a MoveTablesCompleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCompleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; - - /** - * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. - * @param message MoveTablesCompleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCompleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCompleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PingTabletRequest. */ - interface IPingTabletRequest { - - /** PingTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a PingTabletRequest. */ - class PingTabletRequest implements IPingTabletRequest { - - /** - * Constructs a new PingTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPingTabletRequest); - - /** PingTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new PingTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PingTabletRequest instance - */ - public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; - - /** - * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. - * @param message PingTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. - * @param message PingTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PingTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletRequest; - - /** - * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletRequest; - - /** - * Verifies a PingTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; - - /** - * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. - * @param message PingTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PingTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PingTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PingTabletResponse. */ - interface IPingTabletResponse { - } - - /** Represents a PingTabletResponse. */ - class PingTabletResponse implements IPingTabletResponse { - - /** - * Constructs a new PingTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPingTabletResponse); - - /** - * Creates a new PingTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PingTabletResponse instance - */ - public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; - - /** - * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. - * @param message PingTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. - * @param message PingTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PingTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletResponse; - - /** - * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletResponse; - - /** - * Verifies a PingTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; - - /** - * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. - * @param message PingTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PingTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PingTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PlannedReparentShardRequest. */ - interface IPlannedReparentShardRequest { - - /** PlannedReparentShardRequest keyspace */ - keyspace?: (string|null); - - /** PlannedReparentShardRequest shard */ - shard?: (string|null); - - /** PlannedReparentShardRequest new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest avoid_primary */ - avoid_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest tolerable_replication_lag */ - tolerable_replication_lag?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest allow_cross_cell_promotion */ - allow_cross_cell_promotion?: (boolean|null); - } - - /** Represents a PlannedReparentShardRequest. */ - class PlannedReparentShardRequest implements IPlannedReparentShardRequest { - - /** - * Constructs a new PlannedReparentShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPlannedReparentShardRequest); - - /** PlannedReparentShardRequest keyspace. */ - public keyspace: string; - - /** PlannedReparentShardRequest shard. */ - public shard: string; - - /** PlannedReparentShardRequest new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest avoid_primary. */ - public avoid_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest tolerable_replication_lag. */ - public tolerable_replication_lag?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest allow_cross_cell_promotion. */ - public allow_cross_cell_promotion: boolean; - - /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PlannedReparentShardRequest instance - */ - public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; - - /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. - * @param message PlannedReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. - * @param message PlannedReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlannedReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; - - /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; - - /** - * Verifies a PlannedReparentShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlannedReparentShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; - - /** - * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. - * @param message PlannedReparentShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlannedReparentShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PlannedReparentShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PlannedReparentShardResponse. */ - interface IPlannedReparentShardResponse { - - /** PlannedReparentShardResponse keyspace */ - keyspace?: (string|null); - - /** PlannedReparentShardResponse shard */ - shard?: (string|null); - - /** PlannedReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a PlannedReparentShardResponse. */ - class PlannedReparentShardResponse implements IPlannedReparentShardResponse { - - /** - * Constructs a new PlannedReparentShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPlannedReparentShardResponse); - - /** PlannedReparentShardResponse keyspace. */ - public keyspace: string; - - /** PlannedReparentShardResponse shard. */ - public shard: string; - - /** PlannedReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PlannedReparentShardResponse instance - */ - public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; - - /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. - * @param message PlannedReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. - * @param message PlannedReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlannedReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; - - /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; - - /** - * Verifies a PlannedReparentShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlannedReparentShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; - - /** - * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. - * @param message PlannedReparentShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlannedReparentShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PlannedReparentShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildKeyspaceGraphRequest. */ - interface IRebuildKeyspaceGraphRequest { - - /** RebuildKeyspaceGraphRequest keyspace */ - keyspace?: (string|null); - - /** RebuildKeyspaceGraphRequest cells */ - cells?: (string[]|null); - - /** RebuildKeyspaceGraphRequest allow_partial */ - allow_partial?: (boolean|null); - } - - /** Represents a RebuildKeyspaceGraphRequest. */ - class RebuildKeyspaceGraphRequest implements IRebuildKeyspaceGraphRequest { - - /** - * Constructs a new RebuildKeyspaceGraphRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); - - /** RebuildKeyspaceGraphRequest keyspace. */ - public keyspace: string; - - /** RebuildKeyspaceGraphRequest cells. */ - public cells: string[]; - - /** RebuildKeyspaceGraphRequest allow_partial. */ - public allow_partial: boolean; - - /** - * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphRequest instance - */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. - * @param message RebuildKeyspaceGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. - * @param message RebuildKeyspaceGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildKeyspaceGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Verifies a RebuildKeyspaceGraphRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildKeyspaceGraphRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildKeyspaceGraphRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildKeyspaceGraphRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildKeyspaceGraphResponse. */ - interface IRebuildKeyspaceGraphResponse { - } - - /** Represents a RebuildKeyspaceGraphResponse. */ - class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { - - /** - * Constructs a new RebuildKeyspaceGraphResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); - - /** - * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphResponse instance - */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. - * @param message RebuildKeyspaceGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. - * @param message RebuildKeyspaceGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildKeyspaceGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Verifies a RebuildKeyspaceGraphResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildKeyspaceGraphResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildKeyspaceGraphResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildKeyspaceGraphResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildVSchemaGraphRequest. */ - interface IRebuildVSchemaGraphRequest { - - /** RebuildVSchemaGraphRequest cells */ - cells?: (string[]|null); - } - - /** Represents a RebuildVSchemaGraphRequest. */ - class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { - - /** - * Constructs a new RebuildVSchemaGraphRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); - - /** RebuildVSchemaGraphRequest cells. */ - public cells: string[]; - - /** - * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildVSchemaGraphRequest instance - */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. - * @param message RebuildVSchemaGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. - * @param message RebuildVSchemaGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildVSchemaGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Verifies a RebuildVSchemaGraphRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildVSchemaGraphRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildVSchemaGraphRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildVSchemaGraphRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildVSchemaGraphResponse. */ - interface IRebuildVSchemaGraphResponse { - } - - /** Represents a RebuildVSchemaGraphResponse. */ - class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { - - /** - * Constructs a new RebuildVSchemaGraphResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); - - /** - * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildVSchemaGraphResponse instance - */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. - * @param message RebuildVSchemaGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. - * @param message RebuildVSchemaGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildVSchemaGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Verifies a RebuildVSchemaGraphResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildVSchemaGraphResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildVSchemaGraphResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildVSchemaGraphResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateRequest. */ - interface IRefreshStateRequest { - - /** RefreshStateRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a RefreshStateRequest. */ - class RefreshStateRequest implements IRefreshStateRequest { - - /** - * Constructs a new RefreshStateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateRequest); - - /** RefreshStateRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new RefreshStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateRequest instance - */ - public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; - - /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateRequest; - - /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateRequest; - - /** - * Verifies a RefreshStateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; - - /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. - * @param message RefreshStateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateResponse. */ - interface IRefreshStateResponse { - } - - /** Represents a RefreshStateResponse. */ - class RefreshStateResponse implements IRefreshStateResponse { - - /** - * Constructs a new RefreshStateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateResponse); - - /** - * Creates a new RefreshStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateResponse instance - */ - public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; - - /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateResponse; - - /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateResponse; - - /** - * Verifies a RefreshStateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; - - /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. - * @param message RefreshStateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateByShardRequest. */ - interface IRefreshStateByShardRequest { - - /** RefreshStateByShardRequest keyspace */ - keyspace?: (string|null); - - /** RefreshStateByShardRequest shard */ - shard?: (string|null); - - /** RefreshStateByShardRequest cells */ - cells?: (string[]|null); - } - - /** Represents a RefreshStateByShardRequest. */ - class RefreshStateByShardRequest implements IRefreshStateByShardRequest { - - /** - * Constructs a new RefreshStateByShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateByShardRequest); - - /** RefreshStateByShardRequest keyspace. */ - public keyspace: string; - - /** RefreshStateByShardRequest shard. */ - public shard: string; - - /** RefreshStateByShardRequest cells. */ - public cells: string[]; - - /** - * Creates a new RefreshStateByShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateByShardRequest instance - */ - public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; - - /** - * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. - * @param message RefreshStateByShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. - * @param message RefreshStateByShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateByShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardRequest; - - /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardRequest; - - /** - * Verifies a RefreshStateByShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateByShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; - - /** - * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. - * @param message RefreshStateByShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateByShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateByShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateByShardResponse. */ - interface IRefreshStateByShardResponse { - - /** RefreshStateByShardResponse is_partial_refresh */ - is_partial_refresh?: (boolean|null); - - /** RefreshStateByShardResponse partial_refresh_details */ - partial_refresh_details?: (string|null); - } - - /** Represents a RefreshStateByShardResponse. */ - class RefreshStateByShardResponse implements IRefreshStateByShardResponse { - - /** - * Constructs a new RefreshStateByShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateByShardResponse); - - /** RefreshStateByShardResponse is_partial_refresh. */ - public is_partial_refresh: boolean; - - /** RefreshStateByShardResponse partial_refresh_details. */ - public partial_refresh_details: string; - - /** - * Creates a new RefreshStateByShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateByShardResponse instance - */ - public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; - - /** - * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. - * @param message RefreshStateByShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. - * @param message RefreshStateByShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateByShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardResponse; - - /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardResponse; - - /** - * Verifies a RefreshStateByShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateByShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; - - /** - * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. - * @param message RefreshStateByShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateByShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateByShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaRequest. */ - interface IReloadSchemaRequest { - - /** ReloadSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReloadSchemaRequest. */ - class ReloadSchemaRequest implements IReloadSchemaRequest { - - /** - * Constructs a new ReloadSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaRequest); - - /** ReloadSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReloadSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; - - /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaRequest; - - /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaRequest; - - /** - * Verifies a ReloadSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; - - /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaResponse. */ - interface IReloadSchemaResponse { - } - - /** Represents a ReloadSchemaResponse. */ - class ReloadSchemaResponse implements IReloadSchemaResponse { - - /** - * Constructs a new ReloadSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaResponse); - - /** - * Creates a new ReloadSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; - - /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaResponse; - - /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaResponse; - - /** - * Verifies a ReloadSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; - - /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaKeyspaceRequest. */ - interface IReloadSchemaKeyspaceRequest { - - /** ReloadSchemaKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ReloadSchemaKeyspaceRequest wait_position */ - wait_position?: (string|null); - - /** ReloadSchemaKeyspaceRequest include_primary */ - include_primary?: (boolean|null); - - /** ReloadSchemaKeyspaceRequest concurrency */ - concurrency?: (number|null); - } - - /** Represents a ReloadSchemaKeyspaceRequest. */ - class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { - - /** - * Constructs a new ReloadSchemaKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaKeyspaceRequest); - - /** ReloadSchemaKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ReloadSchemaKeyspaceRequest wait_position. */ - public wait_position: string; - - /** ReloadSchemaKeyspaceRequest include_primary. */ - public include_primary: boolean; - - /** ReloadSchemaKeyspaceRequest concurrency. */ - public concurrency: number; - - /** - * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. - * @param message ReloadSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. - * @param message ReloadSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Verifies a ReloadSchemaKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaKeyspaceResponse. */ - interface IReloadSchemaKeyspaceResponse { - - /** ReloadSchemaKeyspaceResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a ReloadSchemaKeyspaceResponse. */ - class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { - - /** - * Constructs a new ReloadSchemaKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); - - /** ReloadSchemaKeyspaceResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. - * @param message ReloadSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. - * @param message ReloadSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Verifies a ReloadSchemaKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaShardRequest. */ - interface IReloadSchemaShardRequest { - - /** ReloadSchemaShardRequest keyspace */ - keyspace?: (string|null); - - /** ReloadSchemaShardRequest shard */ - shard?: (string|null); - - /** ReloadSchemaShardRequest wait_position */ - wait_position?: (string|null); - - /** ReloadSchemaShardRequest include_primary */ - include_primary?: (boolean|null); - - /** ReloadSchemaShardRequest concurrency */ - concurrency?: (number|null); - } - - /** Represents a ReloadSchemaShardRequest. */ - class ReloadSchemaShardRequest implements IReloadSchemaShardRequest { - - /** - * Constructs a new ReloadSchemaShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaShardRequest); - - /** ReloadSchemaShardRequest keyspace. */ - public keyspace: string; - - /** ReloadSchemaShardRequest shard. */ - public shard: string; - - /** ReloadSchemaShardRequest wait_position. */ - public wait_position: string; - - /** ReloadSchemaShardRequest include_primary. */ - public include_primary: boolean; - - /** ReloadSchemaShardRequest concurrency. */ - public concurrency: number; - - /** - * Creates a new ReloadSchemaShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaShardRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; - - /** - * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. - * @param message ReloadSchemaShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. - * @param message ReloadSchemaShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardRequest; - - /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardRequest; - - /** - * Verifies a ReloadSchemaShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; - - /** - * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaShardResponse. */ - interface IReloadSchemaShardResponse { - - /** ReloadSchemaShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a ReloadSchemaShardResponse. */ - class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { - - /** - * Constructs a new ReloadSchemaShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaShardResponse); - - /** ReloadSchemaShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new ReloadSchemaShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaShardResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; - - /** - * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. - * @param message ReloadSchemaShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. - * @param message ReloadSchemaShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardResponse; - - /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardResponse; - - /** - * Verifies a ReloadSchemaShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; - - /** - * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveBackupRequest. */ - interface IRemoveBackupRequest { - - /** RemoveBackupRequest keyspace */ - keyspace?: (string|null); - - /** RemoveBackupRequest shard */ - shard?: (string|null); - - /** RemoveBackupRequest name */ - name?: (string|null); - } - - /** Represents a RemoveBackupRequest. */ - class RemoveBackupRequest implements IRemoveBackupRequest { - - /** - * Constructs a new RemoveBackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveBackupRequest); - - /** RemoveBackupRequest keyspace. */ - public keyspace: string; - - /** RemoveBackupRequest shard. */ - public shard: string; - - /** RemoveBackupRequest name. */ - public name: string; - - /** - * Creates a new RemoveBackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveBackupRequest instance - */ - public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; - - /** - * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. - * @param message RemoveBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. - * @param message RemoveBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupRequest; - - /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupRequest; - - /** - * Verifies a RemoveBackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveBackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; - - /** - * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. - * @param message RemoveBackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveBackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveBackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveBackupResponse. */ - interface IRemoveBackupResponse { - } - - /** Represents a RemoveBackupResponse. */ - class RemoveBackupResponse implements IRemoveBackupResponse { - - /** - * Constructs a new RemoveBackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveBackupResponse); - - /** - * Creates a new RemoveBackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveBackupResponse instance - */ - public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; - - /** - * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. - * @param message RemoveBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. - * @param message RemoveBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupResponse; - - /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupResponse; - - /** - * Verifies a RemoveBackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveBackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; - - /** - * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. - * @param message RemoveBackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveBackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveBackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); - - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); - - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); - } - - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { - - /** - * Constructs a new RemoveKeyspaceCellRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - - /** RemoveKeyspaceCellRequest keyspace. */ - public keyspace: string; - - /** RemoveKeyspaceCellRequest cell. */ - public cell: string; - - /** RemoveKeyspaceCellRequest force. */ - public force: boolean; - - /** RemoveKeyspaceCellRequest recursive. */ - public recursive: boolean; - - /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance - */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Verifies a RemoveKeyspaceCellRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveKeyspaceCellRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveKeyspaceCellRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveKeyspaceCellRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { - } - - /** Represents a RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { - - /** - * Constructs a new RemoveKeyspaceCellResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); - - /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance - */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Verifies a RemoveKeyspaceCellResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveKeyspaceCellResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveKeyspaceCellResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveKeyspaceCellResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveShardCellRequest. */ - interface IRemoveShardCellRequest { - - /** RemoveShardCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveShardCellRequest shard_name */ - shard_name?: (string|null); - - /** RemoveShardCellRequest cell */ - cell?: (string|null); - - /** RemoveShardCellRequest force */ - force?: (boolean|null); - - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); - } - - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { - - /** - * Constructs a new RemoveShardCellRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveShardCellRequest); - - /** RemoveShardCellRequest keyspace. */ - public keyspace: string; - - /** RemoveShardCellRequest shard_name. */ - public shard_name: string; - - /** RemoveShardCellRequest cell. */ - public cell: string; - - /** RemoveShardCellRequest force. */ - public force: boolean; - - /** RemoveShardCellRequest recursive. */ - public recursive: boolean; - - /** - * Creates a new RemoveShardCellRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance - */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; - - /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; - - /** - * Verifies a RemoveShardCellRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveShardCellRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; - - /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. - * @param message RemoveShardCellRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveShardCellRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveShardCellRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { - } - - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { - - /** - * Constructs a new RemoveShardCellResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); - - /** - * Creates a new RemoveShardCellResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance - */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; - - /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveShardCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; - - /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveShardCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; - - /** - * Verifies a RemoveShardCellResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveShardCellResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; - - /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. - * @param message RemoveShardCellResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveShardCellResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveShardCellResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReparentTabletRequest. */ - interface IReparentTabletRequest { - - /** ReparentTabletRequest tablet */ - tablet?: (topodata.ITabletAlias|null); - } - - /** Represents a ReparentTabletRequest. */ - class ReparentTabletRequest implements IReparentTabletRequest { - - /** - * Constructs a new ReparentTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReparentTabletRequest); - - /** ReparentTabletRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReparentTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReparentTabletRequest instance - */ - public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; - - /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. - * @param message ReparentTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. - * @param message ReparentTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReparentTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; - - /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReparentTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; - - /** - * Verifies a ReparentTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReparentTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; - - /** - * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. - * @param message ReparentTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReparentTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReparentTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReparentTabletResponse. */ - interface IReparentTabletResponse { - - /** ReparentTabletResponse keyspace */ - keyspace?: (string|null); - - /** ReparentTabletResponse shard */ - shard?: (string|null); - - /** ReparentTabletResponse primary */ - primary?: (topodata.ITabletAlias|null); - } - - /** Represents a ReparentTabletResponse. */ - class ReparentTabletResponse implements IReparentTabletResponse { - - /** - * Constructs a new ReparentTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReparentTabletResponse); - - /** ReparentTabletResponse keyspace. */ - public keyspace: string; - - /** ReparentTabletResponse shard. */ - public shard: string; - - /** ReparentTabletResponse primary. */ - public primary?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReparentTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReparentTabletResponse instance - */ - public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; - - /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. - * @param message ReparentTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. - * @param message ReparentTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReparentTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; - - /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReparentTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; - - /** - * Verifies a ReparentTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReparentTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; - - /** - * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. - * @param message ReparentTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReparentTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReparentTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReshardCreateRequest. */ - interface IReshardCreateRequest { - - /** ReshardCreateRequest workflow */ - workflow?: (string|null); - - /** ReshardCreateRequest keyspace */ - keyspace?: (string|null); - - /** ReshardCreateRequest source_shards */ - source_shards?: (string[]|null); - - /** ReshardCreateRequest target_shards */ - target_shards?: (string[]|null); - - /** ReshardCreateRequest cells */ - cells?: (string[]|null); - - /** ReshardCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** ReshardCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** ReshardCreateRequest skip_schema_copy */ - skip_schema_copy?: (boolean|null); - - /** ReshardCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** ReshardCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** ReshardCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** ReshardCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** ReshardCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a ReshardCreateRequest. */ - class ReshardCreateRequest implements IReshardCreateRequest { - - /** - * Constructs a new ReshardCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReshardCreateRequest); - - /** ReshardCreateRequest workflow. */ - public workflow: string; - - /** ReshardCreateRequest keyspace. */ - public keyspace: string; - - /** ReshardCreateRequest source_shards. */ - public source_shards: string[]; - - /** ReshardCreateRequest target_shards. */ - public target_shards: string[]; - - /** ReshardCreateRequest cells. */ - public cells: string[]; - - /** ReshardCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** ReshardCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** ReshardCreateRequest skip_schema_copy. */ - public skip_schema_copy: boolean; - - /** ReshardCreateRequest on_ddl. */ - public on_ddl: string; - - /** ReshardCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** ReshardCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** ReshardCreateRequest auto_start. */ - public auto_start: boolean; - - /** ReshardCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new ReshardCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReshardCreateRequest instance - */ - public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; - - /** - * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. - * @param message ReshardCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. - * @param message ReshardCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReshardCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReshardCreateRequest; - - /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReshardCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReshardCreateRequest; - - /** - * Verifies a ReshardCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReshardCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; - - /** - * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. - * @param message ReshardCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReshardCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReshardCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RestoreFromBackupRequest. */ - interface IRestoreFromBackupRequest { - - /** RestoreFromBackupRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupRequest backup_time */ - backup_time?: (vttime.ITime|null); - - /** RestoreFromBackupRequest restore_to_pos */ - restore_to_pos?: (string|null); - - /** RestoreFromBackupRequest dry_run */ - dry_run?: (boolean|null); - - /** RestoreFromBackupRequest restore_to_timestamp */ - restore_to_timestamp?: (vttime.ITime|null); - - /** RestoreFromBackupRequest allowed_backup_engines */ - allowed_backup_engines?: (string[]|null); - } - - /** Represents a RestoreFromBackupRequest. */ - class RestoreFromBackupRequest implements IRestoreFromBackupRequest { - - /** - * Constructs a new RestoreFromBackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRestoreFromBackupRequest); - - /** RestoreFromBackupRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupRequest backup_time. */ - public backup_time?: (vttime.ITime|null); - - /** RestoreFromBackupRequest restore_to_pos. */ - public restore_to_pos: string; - - /** RestoreFromBackupRequest dry_run. */ - public dry_run: boolean; - - /** RestoreFromBackupRequest restore_to_timestamp. */ - public restore_to_timestamp?: (vttime.ITime|null); - - /** RestoreFromBackupRequest allowed_backup_engines. */ - public allowed_backup_engines: string[]; - - /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreFromBackupRequest instance - */ - public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; - - /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreFromBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupRequest; - - /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupRequest; - - /** - * Verifies a RestoreFromBackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreFromBackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; - - /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. - * @param message RestoreFromBackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RestoreFromBackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RestoreFromBackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RestoreFromBackupResponse. */ - interface IRestoreFromBackupResponse { - - /** RestoreFromBackupResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupResponse keyspace */ - keyspace?: (string|null); - - /** RestoreFromBackupResponse shard */ - shard?: (string|null); - - /** RestoreFromBackupResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents a RestoreFromBackupResponse. */ - class RestoreFromBackupResponse implements IRestoreFromBackupResponse { - - /** - * Constructs a new RestoreFromBackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRestoreFromBackupResponse); - - /** RestoreFromBackupResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupResponse keyspace. */ - public keyspace: string; - - /** RestoreFromBackupResponse shard. */ - public shard: string; - - /** RestoreFromBackupResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreFromBackupResponse instance - */ - public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; - - /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreFromBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupResponse; - - /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupResponse; - - /** - * Verifies a RestoreFromBackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreFromBackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; - - /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. - * @param message RestoreFromBackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RestoreFromBackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RestoreFromBackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RetrySchemaMigrationRequest. */ - interface IRetrySchemaMigrationRequest { - - /** RetrySchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** RetrySchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a RetrySchemaMigrationRequest. */ - class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { - - /** - * Constructs a new RetrySchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); - - /** RetrySchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** RetrySchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new RetrySchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RetrySchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; - - /** - * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. - * @param message RetrySchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. - * @param message RetrySchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetrySchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationRequest; - - /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationRequest; - - /** - * Verifies a RetrySchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RetrySchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; - - /** - * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RetrySchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RetrySchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RetrySchemaMigrationResponse. */ - interface IRetrySchemaMigrationResponse { - - /** RetrySchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a RetrySchemaMigrationResponse. */ - class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { - - /** - * Constructs a new RetrySchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); - - /** RetrySchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new RetrySchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RetrySchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; - - /** - * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. - * @param message RetrySchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. - * @param message RetrySchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetrySchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationResponse; - - /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationResponse; - - /** - * Verifies a RetrySchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RetrySchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; - - /** - * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RetrySchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RetrySchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RunHealthCheckRequest. */ - interface IRunHealthCheckRequest { - - /** RunHealthCheckRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a RunHealthCheckRequest. */ - class RunHealthCheckRequest implements IRunHealthCheckRequest { - - /** - * Constructs a new RunHealthCheckRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRunHealthCheckRequest); - - /** RunHealthCheckRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new RunHealthCheckRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RunHealthCheckRequest instance - */ - public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; - - /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunHealthCheckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckRequest; - - /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunHealthCheckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckRequest; - - /** - * Verifies a RunHealthCheckRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunHealthCheckRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; - - /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. - * @param message RunHealthCheckRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RunHealthCheckRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RunHealthCheckRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RunHealthCheckResponse. */ - interface IRunHealthCheckResponse { - } - - /** Represents a RunHealthCheckResponse. */ - class RunHealthCheckResponse implements IRunHealthCheckResponse { - - /** - * Constructs a new RunHealthCheckResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRunHealthCheckResponse); - - /** - * Creates a new RunHealthCheckResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RunHealthCheckResponse instance - */ - public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; - - /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunHealthCheckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckResponse; - - /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunHealthCheckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckResponse; - - /** - * Verifies a RunHealthCheckResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunHealthCheckResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; - - /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. - * @param message RunHealthCheckResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RunHealthCheckResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RunHealthCheckResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceDurabilityPolicyRequest. */ - interface ISetKeyspaceDurabilityPolicyRequest { - - /** SetKeyspaceDurabilityPolicyRequest keyspace */ - keyspace?: (string|null); - - /** SetKeyspaceDurabilityPolicyRequest durability_policy */ - durability_policy?: (string|null); - } - - /** Represents a SetKeyspaceDurabilityPolicyRequest. */ - class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { - - /** - * Constructs a new SetKeyspaceDurabilityPolicyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); - - /** SetKeyspaceDurabilityPolicyRequest keyspace. */ - public keyspace: string; - - /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ - public durability_policy: string; - - /** - * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyRequest instance - */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceDurabilityPolicyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Verifies a SetKeyspaceDurabilityPolicyRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceDurabilityPolicyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceDurabilityPolicyResponse. */ - interface ISetKeyspaceDurabilityPolicyResponse { - - /** SetKeyspaceDurabilityPolicyResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a SetKeyspaceDurabilityPolicyResponse. */ - class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { - - /** - * Constructs a new SetKeyspaceDurabilityPolicyResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); - - /** SetKeyspaceDurabilityPolicyResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyResponse instance - */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceDurabilityPolicyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Verifies a SetKeyspaceDurabilityPolicyResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceDurabilityPolicyResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceShardingInfoRequest. */ - interface ISetKeyspaceShardingInfoRequest { - - /** SetKeyspaceShardingInfoRequest keyspace */ - keyspace?: (string|null); - - /** SetKeyspaceShardingInfoRequest force */ - force?: (boolean|null); - } - - /** Represents a SetKeyspaceShardingInfoRequest. */ - class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { - - /** - * Constructs a new SetKeyspaceShardingInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); - - /** SetKeyspaceShardingInfoRequest keyspace. */ - public keyspace: string; - - /** SetKeyspaceShardingInfoRequest force. */ - public force: boolean; - - /** - * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoRequest instance - */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. - * @param message SetKeyspaceShardingInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. - * @param message SetKeyspaceShardingInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceShardingInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Verifies a SetKeyspaceShardingInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceShardingInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceShardingInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceShardingInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceShardingInfoResponse. */ - interface ISetKeyspaceShardingInfoResponse { - - /** SetKeyspaceShardingInfoResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a SetKeyspaceShardingInfoResponse. */ - class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { - - /** - * Constructs a new SetKeyspaceShardingInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); - - /** SetKeyspaceShardingInfoResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoResponse instance - */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. - * @param message SetKeyspaceShardingInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. - * @param message SetKeyspaceShardingInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceShardingInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Verifies a SetKeyspaceShardingInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceShardingInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceShardingInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceShardingInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardIsPrimaryServingRequest. */ - interface ISetShardIsPrimaryServingRequest { - - /** SetShardIsPrimaryServingRequest keyspace */ - keyspace?: (string|null); - - /** SetShardIsPrimaryServingRequest shard */ - shard?: (string|null); - - /** SetShardIsPrimaryServingRequest is_serving */ - is_serving?: (boolean|null); - } - - /** Represents a SetShardIsPrimaryServingRequest. */ - class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { - - /** - * Constructs a new SetShardIsPrimaryServingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); - - /** SetShardIsPrimaryServingRequest keyspace. */ - public keyspace: string; - - /** SetShardIsPrimaryServingRequest shard. */ - public shard: string; - - /** SetShardIsPrimaryServingRequest is_serving. */ - public is_serving: boolean; - - /** - * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingRequest instance - */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. - * @param message SetShardIsPrimaryServingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. - * @param message SetShardIsPrimaryServingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardIsPrimaryServingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Verifies a SetShardIsPrimaryServingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardIsPrimaryServingRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardIsPrimaryServingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardIsPrimaryServingRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardIsPrimaryServingResponse. */ - interface ISetShardIsPrimaryServingResponse { - - /** SetShardIsPrimaryServingResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SetShardIsPrimaryServingResponse. */ - class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { - - /** - * Constructs a new SetShardIsPrimaryServingResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); - - /** SetShardIsPrimaryServingResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingResponse instance - */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. - * @param message SetShardIsPrimaryServingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. - * @param message SetShardIsPrimaryServingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardIsPrimaryServingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Verifies a SetShardIsPrimaryServingResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardIsPrimaryServingResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardIsPrimaryServingResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardIsPrimaryServingResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardTabletControlRequest. */ - interface ISetShardTabletControlRequest { - - /** SetShardTabletControlRequest keyspace */ - keyspace?: (string|null); - - /** SetShardTabletControlRequest shard */ - shard?: (string|null); - - /** SetShardTabletControlRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** SetShardTabletControlRequest cells */ - cells?: (string[]|null); - - /** SetShardTabletControlRequest denied_tables */ - denied_tables?: (string[]|null); - - /** SetShardTabletControlRequest disable_query_service */ - disable_query_service?: (boolean|null); - - /** SetShardTabletControlRequest remove */ - remove?: (boolean|null); - } - - /** Represents a SetShardTabletControlRequest. */ - class SetShardTabletControlRequest implements ISetShardTabletControlRequest { - - /** - * Constructs a new SetShardTabletControlRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardTabletControlRequest); - - /** SetShardTabletControlRequest keyspace. */ - public keyspace: string; - - /** SetShardTabletControlRequest shard. */ - public shard: string; - - /** SetShardTabletControlRequest tablet_type. */ - public tablet_type: topodata.TabletType; - - /** SetShardTabletControlRequest cells. */ - public cells: string[]; - - /** SetShardTabletControlRequest denied_tables. */ - public denied_tables: string[]; - - /** SetShardTabletControlRequest disable_query_service. */ - public disable_query_service: boolean; - - /** SetShardTabletControlRequest remove. */ - public remove: boolean; - - /** - * Creates a new SetShardTabletControlRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardTabletControlRequest instance - */ - public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; - - /** - * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. - * @param message SetShardTabletControlRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. - * @param message SetShardTabletControlRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardTabletControlRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlRequest; - - /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlRequest; - - /** - * Verifies a SetShardTabletControlRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardTabletControlRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; - - /** - * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. - * @param message SetShardTabletControlRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardTabletControlRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardTabletControlRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardTabletControlResponse. */ - interface ISetShardTabletControlResponse { - - /** SetShardTabletControlResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SetShardTabletControlResponse. */ - class SetShardTabletControlResponse implements ISetShardTabletControlResponse { - - /** - * Constructs a new SetShardTabletControlResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardTabletControlResponse); - - /** SetShardTabletControlResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SetShardTabletControlResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardTabletControlResponse instance - */ - public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; - - /** - * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. - * @param message SetShardTabletControlResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. - * @param message SetShardTabletControlResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardTabletControlResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlResponse; - - /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlResponse; - - /** - * Verifies a SetShardTabletControlResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardTabletControlResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; - - /** - * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. - * @param message SetShardTabletControlResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardTabletControlResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardTabletControlResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetWritableRequest. */ - interface ISetWritableRequest { - - /** SetWritableRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** SetWritableRequest writable */ - writable?: (boolean|null); - } - - /** Represents a SetWritableRequest. */ - class SetWritableRequest implements ISetWritableRequest { - - /** - * Constructs a new SetWritableRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetWritableRequest); - - /** SetWritableRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** SetWritableRequest writable. */ - public writable: boolean; - - /** - * Creates a new SetWritableRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetWritableRequest instance - */ - public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; - - /** - * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. - * @param message SetWritableRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. - * @param message SetWritableRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetWritableRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetWritableRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableRequest; - - /** - * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetWritableRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableRequest; - - /** - * Verifies a SetWritableRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetWritableRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; - - /** - * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. - * @param message SetWritableRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetWritableRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetWritableRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetWritableResponse. */ - interface ISetWritableResponse { - } - - /** Represents a SetWritableResponse. */ - class SetWritableResponse implements ISetWritableResponse { - - /** - * Constructs a new SetWritableResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetWritableResponse); - - /** - * Creates a new SetWritableResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetWritableResponse instance - */ - public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; - - /** - * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. - * @param message SetWritableResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. - * @param message SetWritableResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetWritableResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetWritableResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableResponse; - - /** - * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetWritableResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableResponse; - - /** - * Verifies a SetWritableResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetWritableResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; - - /** - * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. - * @param message SetWritableResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetWritableResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetWritableResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationAddRequest. */ - interface IShardReplicationAddRequest { - - /** ShardReplicationAddRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationAddRequest shard */ - shard?: (string|null); - - /** ShardReplicationAddRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ShardReplicationAddRequest. */ - class ShardReplicationAddRequest implements IShardReplicationAddRequest { - - /** - * Constructs a new ShardReplicationAddRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationAddRequest); - - /** ShardReplicationAddRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationAddRequest shard. */ - public shard: string; - - /** ShardReplicationAddRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ShardReplicationAddRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationAddRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; - - /** - * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. - * @param message ShardReplicationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. - * @param message ShardReplicationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddRequest; - - /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddRequest; - - /** - * Verifies a ShardReplicationAddRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationAddRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; - - /** - * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. - * @param message ShardReplicationAddRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationAddRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationAddRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationAddResponse. */ - interface IShardReplicationAddResponse { - } - - /** Represents a ShardReplicationAddResponse. */ - class ShardReplicationAddResponse implements IShardReplicationAddResponse { - - /** - * Constructs a new ShardReplicationAddResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationAddResponse); - - /** - * Creates a new ShardReplicationAddResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationAddResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; - - /** - * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. - * @param message ShardReplicationAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. - * @param message ShardReplicationAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddResponse; - - /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddResponse; - - /** - * Verifies a ShardReplicationAddResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationAddResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; - - /** - * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. - * @param message ShardReplicationAddResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationAddResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationAddResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationFixRequest. */ - interface IShardReplicationFixRequest { - - /** ShardReplicationFixRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationFixRequest shard */ - shard?: (string|null); - - /** ShardReplicationFixRequest cell */ - cell?: (string|null); - } - - /** Represents a ShardReplicationFixRequest. */ - class ShardReplicationFixRequest implements IShardReplicationFixRequest { - - /** - * Constructs a new ShardReplicationFixRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationFixRequest); - - /** ShardReplicationFixRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationFixRequest shard. */ - public shard: string; - - /** ShardReplicationFixRequest cell. */ - public cell: string; - - /** - * Creates a new ShardReplicationFixRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationFixRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; - - /** - * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. - * @param message ShardReplicationFixRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. - * @param message ShardReplicationFixRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationFixRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixRequest; - - /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixRequest; - - /** - * Verifies a ShardReplicationFixRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationFixRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; - - /** - * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. - * @param message ShardReplicationFixRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationFixRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationFixRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationFixResponse. */ - interface IShardReplicationFixResponse { - - /** ShardReplicationFixResponse error */ - error?: (topodata.IShardReplicationError|null); - } - - /** Represents a ShardReplicationFixResponse. */ - class ShardReplicationFixResponse implements IShardReplicationFixResponse { - - /** - * Constructs a new ShardReplicationFixResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationFixResponse); - - /** ShardReplicationFixResponse error. */ - public error?: (topodata.IShardReplicationError|null); - - /** - * Creates a new ShardReplicationFixResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationFixResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; - - /** - * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. - * @param message ShardReplicationFixResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. - * @param message ShardReplicationFixResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationFixResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixResponse; - - /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixResponse; - - /** - * Verifies a ShardReplicationFixResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationFixResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; - - /** - * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. - * @param message ShardReplicationFixResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationFixResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationFixResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationPositionsRequest. */ - interface IShardReplicationPositionsRequest { - - /** ShardReplicationPositionsRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationPositionsRequest shard */ - shard?: (string|null); - } - - /** Represents a ShardReplicationPositionsRequest. */ - class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { - - /** - * Constructs a new ShardReplicationPositionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationPositionsRequest); - - /** ShardReplicationPositionsRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationPositionsRequest shard. */ - public shard: string; - - /** - * Creates a new ShardReplicationPositionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationPositionsRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; - - /** - * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. - * @param message ShardReplicationPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. - * @param message ShardReplicationPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsRequest; - - /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsRequest; - - /** - * Verifies a ShardReplicationPositionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationPositionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; - - /** - * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationPositionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationPositionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationPositionsResponse. */ - interface IShardReplicationPositionsResponse { - - /** ShardReplicationPositionsResponse replication_statuses */ - replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); - - /** ShardReplicationPositionsResponse tablet_map */ - tablet_map?: ({ [k: string]: topodata.ITablet }|null); - } - - /** Represents a ShardReplicationPositionsResponse. */ - class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { - - /** - * Constructs a new ShardReplicationPositionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationPositionsResponse); - - /** ShardReplicationPositionsResponse replication_statuses. */ - public replication_statuses: { [k: string]: replicationdata.IStatus }; - - /** ShardReplicationPositionsResponse tablet_map. */ - public tablet_map: { [k: string]: topodata.ITablet }; - - /** - * Creates a new ShardReplicationPositionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationPositionsResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; - - /** - * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. - * @param message ShardReplicationPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. - * @param message ShardReplicationPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsResponse; - - /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsResponse; - - /** - * Verifies a ShardReplicationPositionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationPositionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; - - /** - * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationPositionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationPositionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationRemoveRequest. */ - interface IShardReplicationRemoveRequest { - - /** ShardReplicationRemoveRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationRemoveRequest shard */ - shard?: (string|null); - - /** ShardReplicationRemoveRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ShardReplicationRemoveRequest. */ - class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { - - /** - * Constructs a new ShardReplicationRemoveRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationRemoveRequest); - - /** ShardReplicationRemoveRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationRemoveRequest shard. */ - public shard: string; - - /** ShardReplicationRemoveRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ShardReplicationRemoveRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationRemoveRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; - - /** - * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. - * @param message ShardReplicationRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. - * @param message ShardReplicationRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveRequest; - - /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveRequest; - - /** - * Verifies a ShardReplicationRemoveRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationRemoveRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; - - /** - * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationRemoveRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationRemoveRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationRemoveResponse. */ - interface IShardReplicationRemoveResponse { - } - - /** Represents a ShardReplicationRemoveResponse. */ - class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { - - /** - * Constructs a new ShardReplicationRemoveResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationRemoveResponse); - - /** - * Creates a new ShardReplicationRemoveResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationRemoveResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; - - /** - * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. - * @param message ShardReplicationRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. - * @param message ShardReplicationRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveResponse; - - /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveResponse; - - /** - * Verifies a ShardReplicationRemoveResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationRemoveResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; - - /** - * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationRemoveResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationRemoveResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SleepTabletRequest. */ - interface ISleepTabletRequest { - - /** SleepTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** SleepTabletRequest duration */ - duration?: (vttime.IDuration|null); - } - - /** Represents a SleepTabletRequest. */ - class SleepTabletRequest implements ISleepTabletRequest { - - /** - * Constructs a new SleepTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISleepTabletRequest); - - /** SleepTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** SleepTabletRequest duration. */ - public duration?: (vttime.IDuration|null); - - /** - * Creates a new SleepTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepTabletRequest instance - */ - public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; - - /** - * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. - * @param message SleepTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. - * @param message SleepTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletRequest; - - /** - * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SleepTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletRequest; - - /** - * Verifies a SleepTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SleepTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; - - /** - * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. - * @param message SleepTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SleepTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SleepTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SleepTabletResponse. */ - interface ISleepTabletResponse { - } - - /** Represents a SleepTabletResponse. */ - class SleepTabletResponse implements ISleepTabletResponse { - - /** - * Constructs a new SleepTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISleepTabletResponse); - - /** - * Creates a new SleepTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepTabletResponse instance - */ - public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; - - /** - * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. - * @param message SleepTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. - * @param message SleepTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletResponse; - - /** - * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SleepTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletResponse; - - /** - * Verifies a SleepTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SleepTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; - - /** - * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. - * @param message SleepTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SleepTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SleepTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardAddRequest. */ - interface ISourceShardAddRequest { - - /** SourceShardAddRequest keyspace */ - keyspace?: (string|null); - - /** SourceShardAddRequest shard */ - shard?: (string|null); - - /** SourceShardAddRequest uid */ - uid?: (number|null); - - /** SourceShardAddRequest source_keyspace */ - source_keyspace?: (string|null); - - /** SourceShardAddRequest source_shard */ - source_shard?: (string|null); - - /** SourceShardAddRequest key_range */ - key_range?: (topodata.IKeyRange|null); - - /** SourceShardAddRequest tables */ - tables?: (string[]|null); - } - - /** Represents a SourceShardAddRequest. */ - class SourceShardAddRequest implements ISourceShardAddRequest { - - /** - * Constructs a new SourceShardAddRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardAddRequest); - - /** SourceShardAddRequest keyspace. */ - public keyspace: string; - - /** SourceShardAddRequest shard. */ - public shard: string; - - /** SourceShardAddRequest uid. */ - public uid: number; - - /** SourceShardAddRequest source_keyspace. */ - public source_keyspace: string; - - /** SourceShardAddRequest source_shard. */ - public source_shard: string; - - /** SourceShardAddRequest key_range. */ - public key_range?: (topodata.IKeyRange|null); - - /** SourceShardAddRequest tables. */ - public tables: string[]; - - /** - * Creates a new SourceShardAddRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardAddRequest instance - */ - public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; - - /** - * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. - * @param message SourceShardAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. - * @param message SourceShardAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddRequest; - - /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddRequest; - - /** - * Verifies a SourceShardAddRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardAddRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; - - /** - * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. - * @param message SourceShardAddRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardAddRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardAddRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardAddResponse. */ - interface ISourceShardAddResponse { - - /** SourceShardAddResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SourceShardAddResponse. */ - class SourceShardAddResponse implements ISourceShardAddResponse { - - /** - * Constructs a new SourceShardAddResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardAddResponse); - - /** SourceShardAddResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SourceShardAddResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardAddResponse instance - */ - public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; - - /** - * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. - * @param message SourceShardAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. - * @param message SourceShardAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddResponse; - - /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddResponse; - - /** - * Verifies a SourceShardAddResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardAddResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; - - /** - * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. - * @param message SourceShardAddResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardAddResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardAddResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardDeleteRequest. */ - interface ISourceShardDeleteRequest { - - /** SourceShardDeleteRequest keyspace */ - keyspace?: (string|null); - - /** SourceShardDeleteRequest shard */ - shard?: (string|null); - - /** SourceShardDeleteRequest uid */ - uid?: (number|null); - } - - /** Represents a SourceShardDeleteRequest. */ - class SourceShardDeleteRequest implements ISourceShardDeleteRequest { - - /** - * Constructs a new SourceShardDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardDeleteRequest); - - /** SourceShardDeleteRequest keyspace. */ - public keyspace: string; - - /** SourceShardDeleteRequest shard. */ - public shard: string; - - /** SourceShardDeleteRequest uid. */ - public uid: number; - - /** - * Creates a new SourceShardDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardDeleteRequest instance - */ - public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; - - /** - * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. - * @param message SourceShardDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. - * @param message SourceShardDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteRequest; - - /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteRequest; - - /** - * Verifies a SourceShardDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; - - /** - * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. - * @param message SourceShardDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardDeleteResponse. */ - interface ISourceShardDeleteResponse { - - /** SourceShardDeleteResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SourceShardDeleteResponse. */ - class SourceShardDeleteResponse implements ISourceShardDeleteResponse { - - /** - * Constructs a new SourceShardDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardDeleteResponse); - - /** SourceShardDeleteResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SourceShardDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardDeleteResponse instance - */ - public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; - - /** - * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. - * @param message SourceShardDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. - * @param message SourceShardDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteResponse; - - /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteResponse; - - /** - * Verifies a SourceShardDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; - - /** - * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. - * @param message SourceShardDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartReplicationRequest. */ - interface IStartReplicationRequest { - - /** StartReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StartReplicationRequest. */ - class StartReplicationRequest implements IStartReplicationRequest { - - /** - * Constructs a new StartReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStartReplicationRequest); - - /** StartReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StartReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StartReplicationRequest instance - */ - public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; - - /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationRequest; - - /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationRequest; - - /** - * Verifies a StartReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; - - /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. - * @param message StartReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartReplicationResponse. */ - interface IStartReplicationResponse { - } - - /** Represents a StartReplicationResponse. */ - class StartReplicationResponse implements IStartReplicationResponse { - - /** - * Constructs a new StartReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStartReplicationResponse); - - /** - * Creates a new StartReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StartReplicationResponse instance - */ - public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; - - /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationResponse; - - /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationResponse; - - /** - * Verifies a StartReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; - - /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. - * @param message StartReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationRequest. */ - interface IStopReplicationRequest { - - /** StopReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StopReplicationRequest. */ - class StopReplicationRequest implements IStopReplicationRequest { - - /** - * Constructs a new StopReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStopReplicationRequest); - - /** StopReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StopReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationRequest instance - */ - public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; - - /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationRequest; - - /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationRequest; - - /** - * Verifies a StopReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; - - /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. - * @param message StopReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationResponse. */ - interface IStopReplicationResponse { - } - - /** Represents a StopReplicationResponse. */ - class StopReplicationResponse implements IStopReplicationResponse { - - /** - * Constructs a new StopReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStopReplicationResponse); - - /** - * Creates a new StopReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationResponse instance - */ - public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; - - /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationResponse; - - /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationResponse; - - /** - * Verifies a StopReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; - - /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. - * @param message StopReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TabletExternallyReparentedRequest. */ - interface ITabletExternallyReparentedRequest { - - /** TabletExternallyReparentedRequest tablet */ - tablet?: (topodata.ITabletAlias|null); - } - - /** Represents a TabletExternallyReparentedRequest. */ - class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { - - /** - * Constructs a new TabletExternallyReparentedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - - /** TabletExternallyReparentedRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletExternallyReparentedRequest instance - */ - public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; - - /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. - * @param message TabletExternallyReparentedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. - * @param message TabletExternallyReparentedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletExternallyReparentedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; - - /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; - - /** - * Verifies a TabletExternallyReparentedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletExternallyReparentedRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; - - /** - * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletExternallyReparentedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletExternallyReparentedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TabletExternallyReparentedResponse. */ - interface ITabletExternallyReparentedResponse { - - /** TabletExternallyReparentedResponse keyspace */ - keyspace?: (string|null); - - /** TabletExternallyReparentedResponse shard */ - shard?: (string|null); - - /** TabletExternallyReparentedResponse new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** TabletExternallyReparentedResponse old_primary */ - old_primary?: (topodata.ITabletAlias|null); - } - - /** Represents a TabletExternallyReparentedResponse. */ - class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { - - /** - * Constructs a new TabletExternallyReparentedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - - /** TabletExternallyReparentedResponse keyspace. */ - public keyspace: string; - - /** TabletExternallyReparentedResponse shard. */ - public shard: string; - - /** TabletExternallyReparentedResponse new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** TabletExternallyReparentedResponse old_primary. */ - public old_primary?: (topodata.ITabletAlias|null); - - /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletExternallyReparentedResponse instance - */ - public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; - - /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. - * @param message TabletExternallyReparentedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. - * @param message TabletExternallyReparentedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletExternallyReparentedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; - - /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; - - /** - * Verifies a TabletExternallyReparentedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletExternallyReparentedResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; - - /** - * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletExternallyReparentedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletExternallyReparentedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellInfoRequest. */ - interface IUpdateCellInfoRequest { - - /** UpdateCellInfoRequest name */ - name?: (string|null); - - /** UpdateCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an UpdateCellInfoRequest. */ - class UpdateCellInfoRequest implements IUpdateCellInfoRequest { - - /** - * Constructs a new UpdateCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellInfoRequest); - - /** UpdateCellInfoRequest name. */ - public name: string; - - /** UpdateCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new UpdateCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellInfoRequest instance - */ - public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; - - /** - * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. - * @param message UpdateCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. - * @param message UpdateCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoRequest; - - /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoRequest; - - /** - * Verifies an UpdateCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; - - /** - * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. - * @param message UpdateCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellInfoResponse. */ - interface IUpdateCellInfoResponse { - - /** UpdateCellInfoResponse name */ - name?: (string|null); - - /** UpdateCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an UpdateCellInfoResponse. */ - class UpdateCellInfoResponse implements IUpdateCellInfoResponse { - - /** - * Constructs a new UpdateCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellInfoResponse); - - /** UpdateCellInfoResponse name. */ - public name: string; - - /** UpdateCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new UpdateCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellInfoResponse instance - */ - public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; - - /** - * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. - * @param message UpdateCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. - * @param message UpdateCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoResponse; - - /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoResponse; - - /** - * Verifies an UpdateCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; - - /** - * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. - * @param message UpdateCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellsAliasRequest. */ - interface IUpdateCellsAliasRequest { - - /** UpdateCellsAliasRequest name */ - name?: (string|null); - - /** UpdateCellsAliasRequest cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); - } - - /** Represents an UpdateCellsAliasRequest. */ - class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { - - /** - * Constructs a new UpdateCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellsAliasRequest); - - /** UpdateCellsAliasRequest name. */ - public name: string; - - /** UpdateCellsAliasRequest cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); - - /** - * Creates a new UpdateCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; - - /** - * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. - * @param message UpdateCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. - * @param message UpdateCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasRequest; - - /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasRequest; - - /** - * Verifies an UpdateCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; - - /** - * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. - * @param message UpdateCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellsAliasResponse. */ - interface IUpdateCellsAliasResponse { - - /** UpdateCellsAliasResponse name */ - name?: (string|null); - - /** UpdateCellsAliasResponse cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); - } - - /** Represents an UpdateCellsAliasResponse. */ - class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { - - /** - * Constructs a new UpdateCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellsAliasResponse); - - /** UpdateCellsAliasResponse name. */ - public name: string; - - /** UpdateCellsAliasResponse cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); - - /** - * Creates a new UpdateCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; - - /** - * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. - * @param message UpdateCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. - * @param message UpdateCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasResponse; - - /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasResponse; - - /** - * Verifies an UpdateCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; - - /** - * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. - * @param message UpdateCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateRequest. */ - interface IValidateRequest { - - /** ValidateRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateRequest. */ - class ValidateRequest implements IValidateRequest { - - /** - * Constructs a new ValidateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateRequest); - - /** ValidateRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateRequest instance - */ - public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; - - /** - * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. - * @param message ValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. - * @param message ValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateRequest; - - /** - * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateRequest; - - /** - * Verifies a ValidateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; - - /** - * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. - * @param message ValidateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateResponse. */ - interface IValidateResponse { - - /** ValidateResponse results */ - results?: (string[]|null); - - /** ValidateResponse results_by_keyspace */ - results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); - } - - /** Represents a ValidateResponse. */ - class ValidateResponse implements IValidateResponse { - - /** - * Constructs a new ValidateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateResponse); - - /** ValidateResponse results. */ - public results: string[]; - - /** ValidateResponse results_by_keyspace. */ - public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; - - /** - * Creates a new ValidateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateResponse instance - */ - public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; - - /** - * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. - * @param message ValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. - * @param message ValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateResponse; - - /** - * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateResponse; - - /** - * Verifies a ValidateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; - - /** - * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. - * @param message ValidateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateKeyspaceRequest. */ - interface IValidateKeyspaceRequest { - - /** ValidateKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ValidateKeyspaceRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateKeyspaceRequest. */ - class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { - - /** - * Constructs a new ValidateKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateKeyspaceRequest); - - /** ValidateKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ValidateKeyspaceRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; - - /** - * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. - * @param message ValidateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. - * @param message ValidateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceRequest; - - /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceRequest; - - /** - * Verifies a ValidateKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; - - /** - * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateKeyspaceResponse. */ - interface IValidateKeyspaceResponse { - - /** ValidateKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateKeyspaceResponse. */ - class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { - - /** - * Constructs a new ValidateKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateKeyspaceResponse); - - /** ValidateKeyspaceResponse results. */ - public results: string[]; - - /** ValidateKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; - - /** - * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. - * @param message ValidateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. - * @param message ValidateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceResponse; - - /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceResponse; - - /** - * Verifies a ValidateKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; - - /** - * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateSchemaKeyspaceRequest. */ - interface IValidateSchemaKeyspaceRequest { - - /** ValidateSchemaKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ValidateSchemaKeyspaceRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** ValidateSchemaKeyspaceRequest include_views */ - include_views?: (boolean|null); - - /** ValidateSchemaKeyspaceRequest skip_no_primary */ - skip_no_primary?: (boolean|null); - - /** ValidateSchemaKeyspaceRequest include_vschema */ - include_vschema?: (boolean|null); - } - - /** Represents a ValidateSchemaKeyspaceRequest. */ - class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { - - /** - * Constructs a new ValidateSchemaKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateSchemaKeyspaceRequest); - - /** ValidateSchemaKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ValidateSchemaKeyspaceRequest exclude_tables. */ - public exclude_tables: string[]; - - /** ValidateSchemaKeyspaceRequest include_views. */ - public include_views: boolean; - - /** ValidateSchemaKeyspaceRequest skip_no_primary. */ - public skip_no_primary: boolean; - - /** ValidateSchemaKeyspaceRequest include_vschema. */ - public include_vschema: boolean; - - /** - * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. - * @param message ValidateSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. - * @param message ValidateSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Verifies a ValidateSchemaKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateSchemaKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateSchemaKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateSchemaKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateSchemaKeyspaceResponse. */ - interface IValidateSchemaKeyspaceResponse { - - /** ValidateSchemaKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateSchemaKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateSchemaKeyspaceResponse. */ - class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { - - /** - * Constructs a new ValidateSchemaKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); - - /** ValidateSchemaKeyspaceResponse results. */ - public results: string[]; - - /** ValidateSchemaKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. - * @param message ValidateSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. - * @param message ValidateSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Verifies a ValidateSchemaKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateSchemaKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateSchemaKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateSchemaKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateShardRequest. */ - interface IValidateShardRequest { - - /** ValidateShardRequest keyspace */ - keyspace?: (string|null); - - /** ValidateShardRequest shard */ - shard?: (string|null); - - /** ValidateShardRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateShardRequest. */ - class ValidateShardRequest implements IValidateShardRequest { - - /** - * Constructs a new ValidateShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateShardRequest); - - /** ValidateShardRequest keyspace. */ - public keyspace: string; - - /** ValidateShardRequest shard. */ - public shard: string; - - /** ValidateShardRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateShardRequest instance - */ - public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; - - /** - * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. - * @param message ValidateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. - * @param message ValidateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardRequest; - - /** - * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardRequest; - - /** - * Verifies a ValidateShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; - - /** - * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. - * @param message ValidateShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateShardResponse. */ - interface IValidateShardResponse { - - /** ValidateShardResponse results */ - results?: (string[]|null); - } - - /** Represents a ValidateShardResponse. */ - class ValidateShardResponse implements IValidateShardResponse { - - /** - * Constructs a new ValidateShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateShardResponse); - - /** ValidateShardResponse results. */ - public results: string[]; - - /** - * Creates a new ValidateShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateShardResponse instance - */ - public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; - - /** - * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. - * @param message ValidateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. - * @param message ValidateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardResponse; - - /** - * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardResponse; - - /** - * Verifies a ValidateShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; - - /** - * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. - * @param message ValidateShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionKeyspaceRequest. */ - interface IValidateVersionKeyspaceRequest { - - /** ValidateVersionKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a ValidateVersionKeyspaceRequest. */ - class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { - - /** - * Constructs a new ValidateVersionKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); - - /** ValidateVersionKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. - * @param message ValidateVersionKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. - * @param message ValidateVersionKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Verifies a ValidateVersionKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionKeyspaceResponse. */ - interface IValidateVersionKeyspaceResponse { - - /** ValidateVersionKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateVersionKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateVersionKeyspaceResponse. */ - class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { - - /** - * Constructs a new ValidateVersionKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionKeyspaceResponse); - - /** ValidateVersionKeyspaceResponse results. */ - public results: string[]; - - /** ValidateVersionKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. - * @param message ValidateVersionKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. - * @param message ValidateVersionKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Verifies a ValidateVersionKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionShardRequest. */ - interface IValidateVersionShardRequest { - - /** ValidateVersionShardRequest keyspace */ - keyspace?: (string|null); - - /** ValidateVersionShardRequest shard */ - shard?: (string|null); - } - - /** Represents a ValidateVersionShardRequest. */ - class ValidateVersionShardRequest implements IValidateVersionShardRequest { - - /** - * Constructs a new ValidateVersionShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionShardRequest); - - /** ValidateVersionShardRequest keyspace. */ - public keyspace: string; - - /** ValidateVersionShardRequest shard. */ - public shard: string; - - /** - * Creates a new ValidateVersionShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionShardRequest instance - */ - public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; - - /** - * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. - * @param message ValidateVersionShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. - * @param message ValidateVersionShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardRequest; - - /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardRequest; - - /** - * Verifies a ValidateVersionShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; - - /** - * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. - * @param message ValidateVersionShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionShardResponse. */ - interface IValidateVersionShardResponse { - - /** ValidateVersionShardResponse results */ - results?: (string[]|null); - } - - /** Represents a ValidateVersionShardResponse. */ - class ValidateVersionShardResponse implements IValidateVersionShardResponse { - - /** - * Constructs a new ValidateVersionShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionShardResponse); - - /** ValidateVersionShardResponse results. */ - public results: string[]; - - /** - * Creates a new ValidateVersionShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionShardResponse instance - */ - public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; - - /** - * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. - * @param message ValidateVersionShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. - * @param message ValidateVersionShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardResponse; - - /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardResponse; - - /** - * Verifies a ValidateVersionShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; - - /** - * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. - * @param message ValidateVersionShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVSchemaRequest. */ - interface IValidateVSchemaRequest { - - /** ValidateVSchemaRequest keyspace */ - keyspace?: (string|null); - - /** ValidateVSchemaRequest shards */ - shards?: (string[]|null); - - /** ValidateVSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** ValidateVSchemaRequest include_views */ - include_views?: (boolean|null); - } - - /** Represents a ValidateVSchemaRequest. */ - class ValidateVSchemaRequest implements IValidateVSchemaRequest { - - /** - * Constructs a new ValidateVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVSchemaRequest); - - /** ValidateVSchemaRequest keyspace. */ - public keyspace: string; - - /** ValidateVSchemaRequest shards. */ - public shards: string[]; - - /** ValidateVSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** ValidateVSchemaRequest include_views. */ - public include_views: boolean; - - /** - * Creates a new ValidateVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVSchemaRequest instance - */ - public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; - - /** - * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. - * @param message ValidateVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. - * @param message ValidateVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaRequest; - - /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaRequest; - - /** - * Verifies a ValidateVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; - - /** - * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. - * @param message ValidateVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVSchemaResponse. */ - interface IValidateVSchemaResponse { - - /** ValidateVSchemaResponse results */ - results?: (string[]|null); - - /** ValidateVSchemaResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateVSchemaResponse. */ - class ValidateVSchemaResponse implements IValidateVSchemaResponse { - - /** - * Constructs a new ValidateVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVSchemaResponse); - - /** ValidateVSchemaResponse results. */ - public results: string[]; - - /** ValidateVSchemaResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVSchemaResponse instance - */ - public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; - - /** - * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. - * @param message ValidateVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. - * @param message ValidateVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaResponse; - - /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaResponse; - - /** - * Verifies a ValidateVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; - - /** - * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. - * @param message ValidateVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffCreateRequest. */ - interface IVDiffCreateRequest { - - /** VDiffCreateRequest workflow */ - workflow?: (string|null); - - /** VDiffCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffCreateRequest uuid */ - uuid?: (string|null); - - /** VDiffCreateRequest source_cells */ - source_cells?: (string[]|null); - - /** VDiffCreateRequest target_cells */ - target_cells?: (string[]|null); - - /** VDiffCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** VDiffCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** VDiffCreateRequest tables */ - tables?: (string[]|null); - - /** VDiffCreateRequest limit */ - limit?: (number|Long|null); - - /** VDiffCreateRequest filtered_replication_wait_time */ - filtered_replication_wait_time?: (vttime.IDuration|null); - - /** VDiffCreateRequest debug_query */ - debug_query?: (boolean|null); - - /** VDiffCreateRequest only_p_ks */ - only_p_ks?: (boolean|null); - - /** VDiffCreateRequest update_table_stats */ - update_table_stats?: (boolean|null); - - /** VDiffCreateRequest max_extra_rows_to_compare */ - max_extra_rows_to_compare?: (number|Long|null); - - /** VDiffCreateRequest wait */ - wait?: (boolean|null); - - /** VDiffCreateRequest wait_update_interval */ - wait_update_interval?: (vttime.IDuration|null); - - /** VDiffCreateRequest auto_retry */ - auto_retry?: (boolean|null); - - /** VDiffCreateRequest verbose */ - verbose?: (boolean|null); - - /** VDiffCreateRequest max_report_sample_rows */ - max_report_sample_rows?: (number|Long|null); - - /** VDiffCreateRequest max_diff_duration */ - max_diff_duration?: (vttime.IDuration|null); - - /** VDiffCreateRequest row_diff_column_truncate_at */ - row_diff_column_truncate_at?: (number|Long|null); - - /** VDiffCreateRequest auto_start */ - auto_start?: (boolean|null); - } - - /** Represents a VDiffCreateRequest. */ - class VDiffCreateRequest implements IVDiffCreateRequest { - - /** - * Constructs a new VDiffCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffCreateRequest); - - /** VDiffCreateRequest workflow. */ - public workflow: string; - - /** VDiffCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffCreateRequest uuid. */ - public uuid: string; - - /** VDiffCreateRequest source_cells. */ - public source_cells: string[]; - - /** VDiffCreateRequest target_cells. */ - public target_cells: string[]; - - /** VDiffCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** VDiffCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** VDiffCreateRequest tables. */ - public tables: string[]; - - /** VDiffCreateRequest limit. */ - public limit: (number|Long); - - /** VDiffCreateRequest filtered_replication_wait_time. */ - public filtered_replication_wait_time?: (vttime.IDuration|null); - - /** VDiffCreateRequest debug_query. */ - public debug_query: boolean; - - /** VDiffCreateRequest only_p_ks. */ - public only_p_ks: boolean; - - /** VDiffCreateRequest update_table_stats. */ - public update_table_stats: boolean; - - /** VDiffCreateRequest max_extra_rows_to_compare. */ - public max_extra_rows_to_compare: (number|Long); - - /** VDiffCreateRequest wait. */ - public wait: boolean; - - /** VDiffCreateRequest wait_update_interval. */ - public wait_update_interval?: (vttime.IDuration|null); - - /** VDiffCreateRequest auto_retry. */ - public auto_retry: boolean; - - /** VDiffCreateRequest verbose. */ - public verbose: boolean; - - /** VDiffCreateRequest max_report_sample_rows. */ - public max_report_sample_rows: (number|Long); - - /** VDiffCreateRequest max_diff_duration. */ - public max_diff_duration?: (vttime.IDuration|null); - - /** VDiffCreateRequest row_diff_column_truncate_at. */ - public row_diff_column_truncate_at: (number|Long); - - /** VDiffCreateRequest auto_start. */ - public auto_start?: (boolean|null); - - /** VDiffCreateRequest _auto_start. */ - public _auto_start?: "auto_start"; - - /** - * Creates a new VDiffCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffCreateRequest instance - */ - public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; - - /** - * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. - * @param message VDiffCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. - * @param message VDiffCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateRequest; - - /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateRequest; - - /** - * Verifies a VDiffCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; - - /** - * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. - * @param message VDiffCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffCreateResponse. */ - interface IVDiffCreateResponse { - - /** VDiffCreateResponse UUID */ - UUID?: (string|null); - } - - /** Represents a VDiffCreateResponse. */ - class VDiffCreateResponse implements IVDiffCreateResponse { - - /** - * Constructs a new VDiffCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffCreateResponse); - - /** VDiffCreateResponse UUID. */ - public UUID: string; - - /** - * Creates a new VDiffCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffCreateResponse instance - */ - public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; - - /** - * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. - * @param message VDiffCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. - * @param message VDiffCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateResponse; - - /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateResponse; - - /** - * Verifies a VDiffCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; - - /** - * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. - * @param message VDiffCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffDeleteRequest. */ - interface IVDiffDeleteRequest { - - /** VDiffDeleteRequest workflow */ - workflow?: (string|null); - - /** VDiffDeleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffDeleteRequest arg */ - arg?: (string|null); - } - - /** Represents a VDiffDeleteRequest. */ - class VDiffDeleteRequest implements IVDiffDeleteRequest { - - /** - * Constructs a new VDiffDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffDeleteRequest); - - /** VDiffDeleteRequest workflow. */ - public workflow: string; - - /** VDiffDeleteRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffDeleteRequest arg. */ - public arg: string; - - /** - * Creates a new VDiffDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffDeleteRequest instance - */ - public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; - - /** - * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. - * @param message VDiffDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. - * @param message VDiffDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteRequest; - - /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteRequest; - - /** - * Verifies a VDiffDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; - - /** - * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. - * @param message VDiffDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffDeleteResponse. */ - interface IVDiffDeleteResponse { - } - - /** Represents a VDiffDeleteResponse. */ - class VDiffDeleteResponse implements IVDiffDeleteResponse { - - /** - * Constructs a new VDiffDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffDeleteResponse); - - /** - * Creates a new VDiffDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffDeleteResponse instance - */ - public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; - - /** - * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. - * @param message VDiffDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. - * @param message VDiffDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteResponse; - - /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteResponse; - - /** - * Verifies a VDiffDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; - - /** - * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. - * @param message VDiffDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffResumeRequest. */ - interface IVDiffResumeRequest { - - /** VDiffResumeRequest workflow */ - workflow?: (string|null); - - /** VDiffResumeRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffResumeRequest uuid */ - uuid?: (string|null); - - /** VDiffResumeRequest target_shards */ - target_shards?: (string[]|null); - } - - /** Represents a VDiffResumeRequest. */ - class VDiffResumeRequest implements IVDiffResumeRequest { - - /** - * Constructs a new VDiffResumeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffResumeRequest); - - /** VDiffResumeRequest workflow. */ - public workflow: string; - - /** VDiffResumeRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffResumeRequest uuid. */ - public uuid: string; - - /** VDiffResumeRequest target_shards. */ - public target_shards: string[]; - - /** - * Creates a new VDiffResumeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffResumeRequest instance - */ - public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; - - /** - * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. - * @param message VDiffResumeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. - * @param message VDiffResumeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffResumeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeRequest; - - /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffResumeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeRequest; - - /** - * Verifies a VDiffResumeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffResumeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; - - /** - * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. - * @param message VDiffResumeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffResumeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffResumeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffResumeResponse. */ - interface IVDiffResumeResponse { - } - - /** Represents a VDiffResumeResponse. */ - class VDiffResumeResponse implements IVDiffResumeResponse { - - /** - * Constructs a new VDiffResumeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffResumeResponse); - - /** - * Creates a new VDiffResumeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffResumeResponse instance - */ - public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; - - /** - * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. - * @param message VDiffResumeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. - * @param message VDiffResumeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffResumeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeResponse; - - /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffResumeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeResponse; - - /** - * Verifies a VDiffResumeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffResumeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; - - /** - * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. - * @param message VDiffResumeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffResumeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffResumeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffShowRequest. */ - interface IVDiffShowRequest { - - /** VDiffShowRequest workflow */ - workflow?: (string|null); - - /** VDiffShowRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffShowRequest arg */ - arg?: (string|null); - } - - /** Represents a VDiffShowRequest. */ - class VDiffShowRequest implements IVDiffShowRequest { - - /** - * Constructs a new VDiffShowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffShowRequest); - - /** VDiffShowRequest workflow. */ - public workflow: string; - - /** VDiffShowRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffShowRequest arg. */ - public arg: string; - - /** - * Creates a new VDiffShowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffShowRequest instance - */ - public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; - - /** - * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. - * @param message VDiffShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. - * @param message VDiffShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffShowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowRequest; - - /** - * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowRequest; - - /** - * Verifies a VDiffShowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffShowRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; - - /** - * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. - * @param message VDiffShowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffShowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffShowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffShowResponse. */ - interface IVDiffShowResponse { - - /** VDiffShowResponse tablet_responses */ - tablet_responses?: ({ [k: string]: tabletmanagerdata.IVDiffResponse }|null); - } - - /** Represents a VDiffShowResponse. */ - class VDiffShowResponse implements IVDiffShowResponse { - - /** - * Constructs a new VDiffShowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffShowResponse); - - /** VDiffShowResponse tablet_responses. */ - public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; - - /** - * Creates a new VDiffShowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffShowResponse instance - */ - public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; - - /** - * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. - * @param message VDiffShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. - * @param message VDiffShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffShowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowResponse; - - /** - * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowResponse; - - /** - * Verifies a VDiffShowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffShowResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; - - /** - * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. - * @param message VDiffShowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffShowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffShowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffStopRequest. */ - interface IVDiffStopRequest { - - /** VDiffStopRequest workflow */ - workflow?: (string|null); - - /** VDiffStopRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffStopRequest uuid */ - uuid?: (string|null); - - /** VDiffStopRequest target_shards */ - target_shards?: (string[]|null); - } - - /** Represents a VDiffStopRequest. */ - class VDiffStopRequest implements IVDiffStopRequest { - - /** - * Constructs a new VDiffStopRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffStopRequest); - - /** VDiffStopRequest workflow. */ - public workflow: string; - - /** VDiffStopRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffStopRequest uuid. */ - public uuid: string; - - /** VDiffStopRequest target_shards. */ - public target_shards: string[]; - - /** - * Creates a new VDiffStopRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffStopRequest instance - */ - public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; - - /** - * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. - * @param message VDiffStopRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. - * @param message VDiffStopRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffStopRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffStopRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopRequest; - - /** - * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffStopRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopRequest; - - /** - * Verifies a VDiffStopRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffStopRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; - - /** - * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. - * @param message VDiffStopRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffStopRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffStopRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffStopResponse. */ - interface IVDiffStopResponse { - } - - /** Represents a VDiffStopResponse. */ - class VDiffStopResponse implements IVDiffStopResponse { - - /** - * Constructs a new VDiffStopResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffStopResponse); - - /** - * Creates a new VDiffStopResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffStopResponse instance - */ - public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; - - /** - * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. - * @param message VDiffStopResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. - * @param message VDiffStopResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffStopResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffStopResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopResponse; - - /** - * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffStopResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopResponse; - - /** - * Verifies a VDiffStopResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffStopResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; - - /** - * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. - * @param message VDiffStopResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffStopResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffStopResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowDeleteRequest. */ - interface IWorkflowDeleteRequest { - - /** WorkflowDeleteRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowDeleteRequest workflow */ - workflow?: (string|null); - - /** WorkflowDeleteRequest keep_data */ - keep_data?: (boolean|null); - - /** WorkflowDeleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** WorkflowDeleteRequest shards */ - shards?: (string[]|null); - } - - /** Represents a WorkflowDeleteRequest. */ - class WorkflowDeleteRequest implements IWorkflowDeleteRequest { - - /** - * Constructs a new WorkflowDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowDeleteRequest); - - /** WorkflowDeleteRequest keyspace. */ - public keyspace: string; - - /** WorkflowDeleteRequest workflow. */ - public workflow: string; - - /** WorkflowDeleteRequest keep_data. */ - public keep_data: boolean; - - /** WorkflowDeleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** WorkflowDeleteRequest shards. */ - public shards: string[]; - - /** - * Creates a new WorkflowDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowDeleteRequest instance - */ - public static create(properties?: vtctldata.IWorkflowDeleteRequest): vtctldata.WorkflowDeleteRequest; - - /** - * Encodes the specified WorkflowDeleteRequest message. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. - * @param message WorkflowDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. - * @param message WorkflowDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteRequest; - - /** - * Decodes a WorkflowDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteRequest; - - /** - * Verifies a WorkflowDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteRequest; - - /** - * Creates a plain object from a WorkflowDeleteRequest message. Also converts values to other types if specified. - * @param message WorkflowDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowDeleteResponse. */ - interface IWorkflowDeleteResponse { - - /** WorkflowDeleteResponse summary */ - summary?: (string|null); - - /** WorkflowDeleteResponse details */ - details?: (vtctldata.WorkflowDeleteResponse.ITabletInfo[]|null); - } - - /** Represents a WorkflowDeleteResponse. */ - class WorkflowDeleteResponse implements IWorkflowDeleteResponse { - - /** - * Constructs a new WorkflowDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowDeleteResponse); - - /** WorkflowDeleteResponse summary. */ - public summary: string; - - /** WorkflowDeleteResponse details. */ - public details: vtctldata.WorkflowDeleteResponse.ITabletInfo[]; - - /** - * Creates a new WorkflowDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowDeleteResponse instance - */ - public static create(properties?: vtctldata.IWorkflowDeleteResponse): vtctldata.WorkflowDeleteResponse; - - /** - * Encodes the specified WorkflowDeleteResponse message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. - * @param message WorkflowDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. - * @param message WorkflowDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse; - - /** - * Decodes a WorkflowDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse; - - /** - * Verifies a WorkflowDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse; - - /** - * Creates a plain object from a WorkflowDeleteResponse message. Also converts values to other types if specified. - * @param message WorkflowDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowDeleteResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo deleted */ - deleted?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo deleted. */ - public deleted: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a WorkflowStatusRequest. */ - interface IWorkflowStatusRequest { - - /** WorkflowStatusRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowStatusRequest workflow */ - workflow?: (string|null); - - /** WorkflowStatusRequest shards */ - shards?: (string[]|null); - } - - /** Represents a WorkflowStatusRequest. */ - class WorkflowStatusRequest implements IWorkflowStatusRequest { - - /** - * Constructs a new WorkflowStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowStatusRequest); - - /** WorkflowStatusRequest keyspace. */ - public keyspace: string; - - /** WorkflowStatusRequest workflow. */ - public workflow: string; - - /** WorkflowStatusRequest shards. */ - public shards: string[]; - - /** - * Creates a new WorkflowStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowStatusRequest instance - */ - public static create(properties?: vtctldata.IWorkflowStatusRequest): vtctldata.WorkflowStatusRequest; - - /** - * Encodes the specified WorkflowStatusRequest message. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. - * @param message WorkflowStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowStatusRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. - * @param message WorkflowStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusRequest; - - /** - * Decodes a WorkflowStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusRequest; - - /** - * Verifies a WorkflowStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusRequest; - - /** - * Creates a plain object from a WorkflowStatusRequest message. Also converts values to other types if specified. - * @param message WorkflowStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowStatusResponse. */ - interface IWorkflowStatusResponse { - - /** WorkflowStatusResponse table_copy_state */ - table_copy_state?: ({ [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }|null); - - /** WorkflowStatusResponse shard_streams */ - shard_streams?: ({ [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }|null); - - /** WorkflowStatusResponse traffic_state */ - traffic_state?: (string|null); - } - - /** Represents a WorkflowStatusResponse. */ - class WorkflowStatusResponse implements IWorkflowStatusResponse { - - /** - * Constructs a new WorkflowStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowStatusResponse); - - /** WorkflowStatusResponse table_copy_state. */ - public table_copy_state: { [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }; - - /** WorkflowStatusResponse shard_streams. */ - public shard_streams: { [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }; - - /** WorkflowStatusResponse traffic_state. */ - public traffic_state: string; - - /** - * Creates a new WorkflowStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowStatusResponse instance - */ - public static create(properties?: vtctldata.IWorkflowStatusResponse): vtctldata.WorkflowStatusResponse; - - /** - * Encodes the specified WorkflowStatusResponse message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. - * @param message WorkflowStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowStatusResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. - * @param message WorkflowStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse; - - /** - * Decodes a WorkflowStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse; - - /** - * Verifies a WorkflowStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse; - - /** - * Creates a plain object from a WorkflowStatusResponse message. Also converts values to other types if specified. - * @param message WorkflowStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowStatusResponse { - - /** Properties of a TableCopyState. */ - interface ITableCopyState { - - /** TableCopyState rows_copied */ - rows_copied?: (number|Long|null); - - /** TableCopyState rows_total */ - rows_total?: (number|Long|null); - - /** TableCopyState rows_percentage */ - rows_percentage?: (number|null); - - /** TableCopyState bytes_copied */ - bytes_copied?: (number|Long|null); - - /** TableCopyState bytes_total */ - bytes_total?: (number|Long|null); - - /** TableCopyState bytes_percentage */ - bytes_percentage?: (number|null); - } - - /** Represents a TableCopyState. */ - class TableCopyState implements ITableCopyState { - - /** - * Constructs a new TableCopyState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState); - - /** TableCopyState rows_copied. */ - public rows_copied: (number|Long); - - /** TableCopyState rows_total. */ - public rows_total: (number|Long); - - /** TableCopyState rows_percentage. */ - public rows_percentage: number; - - /** TableCopyState bytes_copied. */ - public bytes_copied: (number|Long); - - /** TableCopyState bytes_total. */ - public bytes_total: (number|Long); - - /** TableCopyState bytes_percentage. */ - public bytes_percentage: number; - - /** - * Creates a new TableCopyState instance using the specified properties. - * @param [properties] Properties to set - * @returns TableCopyState instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Encodes the specified TableCopyState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. - * @param message TableCopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TableCopyState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. - * @param message TableCopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TableCopyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TableCopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Decodes a TableCopyState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TableCopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Verifies a TableCopyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TableCopyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TableCopyState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Creates a plain object from a TableCopyState message. Also converts values to other types if specified. - * @param message TableCopyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.TableCopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TableCopyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TableCopyState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStreamState. */ - interface IShardStreamState { - - /** ShardStreamState id */ - id?: (number|null); - - /** ShardStreamState tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** ShardStreamState source_shard */ - source_shard?: (string|null); - - /** ShardStreamState position */ - position?: (string|null); - - /** ShardStreamState status */ - status?: (string|null); - - /** ShardStreamState info */ - info?: (string|null); - } - - /** Represents a ShardStreamState. */ - class ShardStreamState implements IShardStreamState { - - /** - * Constructs a new ShardStreamState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState); - - /** ShardStreamState id. */ - public id: number; - - /** ShardStreamState tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** ShardStreamState source_shard. */ - public source_shard: string; - - /** ShardStreamState position. */ - public position: string; - - /** ShardStreamState status. */ - public status: string; - - /** ShardStreamState info. */ - public info: string; - - /** - * Creates a new ShardStreamState instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStreamState instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Encodes the specified ShardStreamState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. - * @param message ShardStreamState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStreamState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. - * @param message ShardStreamState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStreamState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStreamState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Decodes a ShardStreamState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStreamState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Verifies a ShardStreamState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStreamState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStreamState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified. - * @param message ShardStreamState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreamState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStreamState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStreamState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStreams. */ - interface IShardStreams { - - /** ShardStreams streams */ - streams?: (vtctldata.WorkflowStatusResponse.IShardStreamState[]|null); - } - - /** Represents a ShardStreams. */ - class ShardStreams implements IShardStreams { - - /** - * Constructs a new ShardStreams. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreams); - - /** ShardStreams streams. */ - public streams: vtctldata.WorkflowStatusResponse.IShardStreamState[]; - - /** - * Creates a new ShardStreams instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStreams instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreams): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. - * @param message ShardStreams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. - * @param message ShardStreams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStreams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStreams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Decodes a ShardStreams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStreams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Verifies a ShardStreams message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStreams - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Creates a plain object from a ShardStreams message. Also converts values to other types if specified. - * @param message ShardStreams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStreams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStreams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a WorkflowSwitchTrafficRequest. */ - interface IWorkflowSwitchTrafficRequest { - - /** WorkflowSwitchTrafficRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowSwitchTrafficRequest workflow */ - workflow?: (string|null); - - /** WorkflowSwitchTrafficRequest cells */ - cells?: (string[]|null); - - /** WorkflowSwitchTrafficRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** WorkflowSwitchTrafficRequest max_replication_lag_allowed */ - max_replication_lag_allowed?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest enable_reverse_replication */ - enable_reverse_replication?: (boolean|null); - - /** WorkflowSwitchTrafficRequest direction */ - direction?: (number|null); - - /** WorkflowSwitchTrafficRequest timeout */ - timeout?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest dry_run */ - dry_run?: (boolean|null); - - /** WorkflowSwitchTrafficRequest initialize_target_sequences */ - initialize_target_sequences?: (boolean|null); - - /** WorkflowSwitchTrafficRequest shards */ - shards?: (string[]|null); - - /** WorkflowSwitchTrafficRequest force */ - force?: (boolean|null); - } - - /** Represents a WorkflowSwitchTrafficRequest. */ - class WorkflowSwitchTrafficRequest implements IWorkflowSwitchTrafficRequest { - - /** - * Constructs a new WorkflowSwitchTrafficRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowSwitchTrafficRequest); - - /** WorkflowSwitchTrafficRequest keyspace. */ - public keyspace: string; - - /** WorkflowSwitchTrafficRequest workflow. */ - public workflow: string; - - /** WorkflowSwitchTrafficRequest cells. */ - public cells: string[]; - - /** WorkflowSwitchTrafficRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** WorkflowSwitchTrafficRequest max_replication_lag_allowed. */ - public max_replication_lag_allowed?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest enable_reverse_replication. */ - public enable_reverse_replication: boolean; - - /** WorkflowSwitchTrafficRequest direction. */ - public direction: number; - - /** WorkflowSwitchTrafficRequest timeout. */ - public timeout?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest dry_run. */ - public dry_run: boolean; - - /** WorkflowSwitchTrafficRequest initialize_target_sequences. */ - public initialize_target_sequences: boolean; - - /** WorkflowSwitchTrafficRequest shards. */ - public shards: string[]; - - /** WorkflowSwitchTrafficRequest force. */ - public force: boolean; - - /** - * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSwitchTrafficRequest instance - */ - public static create(properties?: vtctldata.IWorkflowSwitchTrafficRequest): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. - * @param message WorkflowSwitchTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. - * @param message WorkflowSwitchTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSwitchTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowSwitchTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Verifies a WorkflowSwitchTrafficRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowSwitchTrafficRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Creates a plain object from a WorkflowSwitchTrafficRequest message. Also converts values to other types if specified. - * @param message WorkflowSwitchTrafficRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowSwitchTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowSwitchTrafficRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowSwitchTrafficRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowSwitchTrafficResponse. */ - interface IWorkflowSwitchTrafficResponse { - - /** WorkflowSwitchTrafficResponse summary */ - summary?: (string|null); - - /** WorkflowSwitchTrafficResponse start_state */ - start_state?: (string|null); - - /** WorkflowSwitchTrafficResponse current_state */ - current_state?: (string|null); - - /** WorkflowSwitchTrafficResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a WorkflowSwitchTrafficResponse. */ - class WorkflowSwitchTrafficResponse implements IWorkflowSwitchTrafficResponse { - - /** - * Constructs a new WorkflowSwitchTrafficResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowSwitchTrafficResponse); - - /** WorkflowSwitchTrafficResponse summary. */ - public summary: string; - - /** WorkflowSwitchTrafficResponse start_state. */ - public start_state: string; - - /** WorkflowSwitchTrafficResponse current_state. */ - public current_state: string; - - /** WorkflowSwitchTrafficResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSwitchTrafficResponse instance - */ - public static create(properties?: vtctldata.IWorkflowSwitchTrafficResponse): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. - * @param message WorkflowSwitchTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. - * @param message WorkflowSwitchTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSwitchTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowSwitchTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Verifies a WorkflowSwitchTrafficResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowSwitchTrafficResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified. - * @param message WorkflowSwitchTrafficResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowSwitchTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowSwitchTrafficResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowSwitchTrafficResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowUpdateRequest. */ - interface IWorkflowUpdateRequest { - - /** WorkflowUpdateRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowUpdateRequest tablet_request */ - tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); - } - - /** Represents a WorkflowUpdateRequest. */ - class WorkflowUpdateRequest implements IWorkflowUpdateRequest { - - /** - * Constructs a new WorkflowUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowUpdateRequest); - - /** WorkflowUpdateRequest keyspace. */ - public keyspace: string; - - /** WorkflowUpdateRequest tablet_request. */ - public tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); - - /** - * Creates a new WorkflowUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowUpdateRequest instance - */ - public static create(properties?: vtctldata.IWorkflowUpdateRequest): vtctldata.WorkflowUpdateRequest; - - /** - * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. - * @param message WorkflowUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. - * @param message WorkflowUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateRequest; - - /** - * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateRequest; - - /** - * Verifies a WorkflowUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowUpdateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateRequest; - - /** - * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified. - * @param message WorkflowUpdateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowUpdateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowUpdateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowUpdateResponse. */ - interface IWorkflowUpdateResponse { - - /** WorkflowUpdateResponse summary */ - summary?: (string|null); - - /** WorkflowUpdateResponse details */ - details?: (vtctldata.WorkflowUpdateResponse.ITabletInfo[]|null); - } - - /** Represents a WorkflowUpdateResponse. */ - class WorkflowUpdateResponse implements IWorkflowUpdateResponse { - - /** - * Constructs a new WorkflowUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowUpdateResponse); - - /** WorkflowUpdateResponse summary. */ - public summary: string; - - /** WorkflowUpdateResponse details. */ - public details: vtctldata.WorkflowUpdateResponse.ITabletInfo[]; - - /** - * Creates a new WorkflowUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowUpdateResponse instance - */ - public static create(properties?: vtctldata.IWorkflowUpdateResponse): vtctldata.WorkflowUpdateResponse; - - /** - * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. - * @param message WorkflowUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. - * @param message WorkflowUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse; - - /** - * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse; - - /** - * Verifies a WorkflowUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowUpdateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse; - - /** - * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified. - * @param message WorkflowUpdateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowUpdateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowUpdateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowUpdateResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo changed */ - changed?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo changed. */ - public changed: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a GetMirrorRulesRequest. */ - interface IGetMirrorRulesRequest { - } - - /** Represents a GetMirrorRulesRequest. */ - class GetMirrorRulesRequest implements IGetMirrorRulesRequest { - - /** - * Constructs a new GetMirrorRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetMirrorRulesRequest); - - /** - * Creates a new GetMirrorRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMirrorRulesRequest instance - */ - public static create(properties?: vtctldata.IGetMirrorRulesRequest): vtctldata.GetMirrorRulesRequest; - - /** - * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. - * @param message GetMirrorRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. - * @param message GetMirrorRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetMirrorRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMirrorRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesRequest; - - /** - * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMirrorRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesRequest; - - /** - * Verifies a GetMirrorRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMirrorRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesRequest; - - /** - * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified. - * @param message GetMirrorRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetMirrorRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetMirrorRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetMirrorRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetMirrorRulesResponse. */ - interface IGetMirrorRulesResponse { - - /** GetMirrorRulesResponse mirror_rules */ - mirror_rules?: (vschema.IMirrorRules|null); - } - - /** Represents a GetMirrorRulesResponse. */ - class GetMirrorRulesResponse implements IGetMirrorRulesResponse { - - /** - * Constructs a new GetMirrorRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetMirrorRulesResponse); - - /** GetMirrorRulesResponse mirror_rules. */ - public mirror_rules?: (vschema.IMirrorRules|null); - - /** - * Creates a new GetMirrorRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMirrorRulesResponse instance - */ - public static create(properties?: vtctldata.IGetMirrorRulesResponse): vtctldata.GetMirrorRulesResponse; - - /** - * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. - * @param message GetMirrorRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. - * @param message GetMirrorRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetMirrorRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMirrorRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesResponse; - - /** - * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMirrorRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesResponse; - - /** - * Verifies a GetMirrorRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMirrorRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesResponse; - - /** - * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified. - * @param message GetMirrorRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetMirrorRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetMirrorRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetMirrorRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowMirrorTrafficRequest. */ - interface IWorkflowMirrorTrafficRequest { - - /** WorkflowMirrorTrafficRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowMirrorTrafficRequest workflow */ - workflow?: (string|null); - - /** WorkflowMirrorTrafficRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** WorkflowMirrorTrafficRequest percent */ - percent?: (number|null); - } - - /** Represents a WorkflowMirrorTrafficRequest. */ - class WorkflowMirrorTrafficRequest implements IWorkflowMirrorTrafficRequest { - - /** - * Constructs a new WorkflowMirrorTrafficRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowMirrorTrafficRequest); - - /** WorkflowMirrorTrafficRequest keyspace. */ - public keyspace: string; - - /** WorkflowMirrorTrafficRequest workflow. */ - public workflow: string; - - /** WorkflowMirrorTrafficRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** WorkflowMirrorTrafficRequest percent. */ - public percent: number; - - /** - * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMirrorTrafficRequest instance - */ - public static create(properties?: vtctldata.IWorkflowMirrorTrafficRequest): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. - * @param message WorkflowMirrorTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. - * @param message WorkflowMirrorTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMirrorTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowMirrorTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Verifies a WorkflowMirrorTrafficRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowMirrorTrafficRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified. - * @param message WorkflowMirrorTrafficRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowMirrorTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowMirrorTrafficRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowMirrorTrafficRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowMirrorTrafficResponse. */ - interface IWorkflowMirrorTrafficResponse { - - /** WorkflowMirrorTrafficResponse summary */ - summary?: (string|null); - - /** WorkflowMirrorTrafficResponse start_state */ - start_state?: (string|null); - - /** WorkflowMirrorTrafficResponse current_state */ - current_state?: (string|null); - } - - /** Represents a WorkflowMirrorTrafficResponse. */ - class WorkflowMirrorTrafficResponse implements IWorkflowMirrorTrafficResponse { - - /** - * Constructs a new WorkflowMirrorTrafficResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowMirrorTrafficResponse); - - /** WorkflowMirrorTrafficResponse summary. */ - public summary: string; - - /** WorkflowMirrorTrafficResponse start_state. */ - public start_state: string; - - /** WorkflowMirrorTrafficResponse current_state. */ - public current_state: string; - - /** - * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMirrorTrafficResponse instance - */ - public static create(properties?: vtctldata.IWorkflowMirrorTrafficResponse): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. - * @param message WorkflowMirrorTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. - * @param message WorkflowMirrorTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMirrorTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowMirrorTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Verifies a WorkflowMirrorTrafficResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowMirrorTrafficResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified. - * @param message WorkflowMirrorTrafficResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowMirrorTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowMirrorTrafficResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowMirrorTrafficResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; ->>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) } } diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 5eafaf2788b..0e5d1bf7de5 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -55299,4879 +55299,6 @@ $root.tabletmanagerdata = (function() { return VDiffOptions; })(); -<<<<<<< HEAD -======= - tabletmanagerdata.UpdateVReplicationWorkflowRequest = (function() { - - /** - * Properties of an UpdateVReplicationWorkflowRequest. - * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowRequest - * @property {string|null} [workflow] UpdateVReplicationWorkflowRequest workflow - * @property {Array.|null} [cells] UpdateVReplicationWorkflowRequest cells - * @property {Array.|null} [tablet_types] UpdateVReplicationWorkflowRequest tablet_types - * @property {tabletmanagerdata.TabletSelectionPreference|null} [tablet_selection_preference] UpdateVReplicationWorkflowRequest tablet_selection_preference - * @property {binlogdata.OnDDLAction|null} [on_ddl] UpdateVReplicationWorkflowRequest on_ddl - * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowRequest state - * @property {Object.|null} [config_overrides] UpdateVReplicationWorkflowRequest config_overrides - */ - - /** - * Constructs a new UpdateVReplicationWorkflowRequest. - * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowRequest. - * @implements IUpdateVReplicationWorkflowRequest - * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set - */ - function UpdateVReplicationWorkflowRequest(properties) { - this.cells = []; - this.tablet_types = []; - this.config_overrides = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateVReplicationWorkflowRequest workflow. - * @member {string} workflow - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.workflow = ""; - - /** - * UpdateVReplicationWorkflowRequest cells. - * @member {Array.} cells - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.cells = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowRequest tablet_types. - * @member {Array.} tablet_types - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.tablet_types = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowRequest tablet_selection_preference. - * @member {tabletmanagerdata.TabletSelectionPreference|null|undefined} tablet_selection_preference - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.tablet_selection_preference = null; - - /** - * UpdateVReplicationWorkflowRequest on_ddl. - * @member {binlogdata.OnDDLAction|null|undefined} on_ddl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.on_ddl = null; - - /** - * UpdateVReplicationWorkflowRequest state. - * @member {binlogdata.VReplicationWorkflowState|null|undefined} state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.state = null; - - /** - * UpdateVReplicationWorkflowRequest config_overrides. - * @member {Object.} config_overrides - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - UpdateVReplicationWorkflowRequest.prototype.config_overrides = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * UpdateVReplicationWorkflowRequest _tablet_selection_preference. - * @member {"tablet_selection_preference"|undefined} _tablet_selection_preference - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_tablet_selection_preference", { - get: $util.oneOfGetter($oneOfFields = ["tablet_selection_preference"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * UpdateVReplicationWorkflowRequest _on_ddl. - * @member {"on_ddl"|undefined} _on_ddl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_on_ddl", { - get: $util.oneOfGetter($oneOfFields = ["on_ddl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * UpdateVReplicationWorkflowRequest _state. - * @member {"state"|undefined} _state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowRequest.prototype, "_state", { - get: $util.oneOfGetter($oneOfFields = ["state"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new UpdateVReplicationWorkflowRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest instance - */ - UpdateVReplicationWorkflowRequest.create = function create(properties) { - return new UpdateVReplicationWorkflowRequest(properties); - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.cells != null && message.cells.length) - for (let i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); - if (message.tablet_types != null && message.tablet_types.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.tablet_types.length; ++i) - writer.int32(message.tablet_types[i]); - writer.ldelim(); - } - if (message.tablet_selection_preference != null && Object.hasOwnProperty.call(message, "tablet_selection_preference")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tablet_selection_preference); - if (message.on_ddl != null && Object.hasOwnProperty.call(message, "on_ddl")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.on_ddl); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.config_overrides != null && Object.hasOwnProperty.call(message, "config_overrides")) - for (let keys = Object.keys(message.config_overrides), i = 0; i < keys.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config_overrides[keys[i]]).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.workflow = reader.string(); - break; - } - case 2: { - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - } - case 3: { - if (!(message.tablet_types && message.tablet_types.length)) - message.tablet_types = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.tablet_types.push(reader.int32()); - } else - message.tablet_types.push(reader.int32()); - break; - } - case 4: { - message.tablet_selection_preference = reader.int32(); - break; - } - case 5: { - message.on_ddl = reader.int32(); - break; - } - case 6: { - message.state = reader.int32(); - break; - } - case 8: { - if (message.config_overrides === $util.emptyObject) - message.config_overrides = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.config_overrides[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateVReplicationWorkflowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateVReplicationWorkflowRequest message. - * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVReplicationWorkflowRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (let i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) { - if (!Array.isArray(message.tablet_types)) - return "tablet_types: array expected"; - for (let i = 0; i < message.tablet_types.length; ++i) - switch (message.tablet_types[i]) { - default: - return "tablet_types: enum value[] expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { - properties._tablet_selection_preference = 1; - switch (message.tablet_selection_preference) { - default: - return "tablet_selection_preference: enum value expected"; - case 0: - case 1: - case 3: - break; - } - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { - properties._on_ddl = 1; - switch (message.on_ddl) { - default: - return "on_ddl: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.state != null && message.hasOwnProperty("state")) { - properties._state = 1; - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - } - if (message.config_overrides != null && message.hasOwnProperty("config_overrides")) { - if (!$util.isObject(message.config_overrides)) - return "config_overrides: object expected"; - let key = Object.keys(message.config_overrides); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.config_overrides[key[i]])) - return "config_overrides: string{k:string} expected"; - } - return null; - }; - - /** - * Creates an UpdateVReplicationWorkflowRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowRequest} UpdateVReplicationWorkflowRequest - */ - UpdateVReplicationWorkflowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest) - return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowRequest(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.cells: array expected"); - message.cells = []; - for (let i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.tablet_types) { - if (!Array.isArray(object.tablet_types)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.tablet_types: array expected"); - message.tablet_types = []; - for (let i = 0; i < object.tablet_types.length; ++i) - switch (object.tablet_types[i]) { - default: - if (typeof object.tablet_types[i] === "number") { - message.tablet_types[i] = object.tablet_types[i]; - break; - } - case "UNKNOWN": - case 0: - message.tablet_types[i] = 0; - break; - case "PRIMARY": - case 1: - message.tablet_types[i] = 1; - break; - case "MASTER": - case 1: - message.tablet_types[i] = 1; - break; - case "REPLICA": - case 2: - message.tablet_types[i] = 2; - break; - case "RDONLY": - case 3: - message.tablet_types[i] = 3; - break; - case "BATCH": - case 3: - message.tablet_types[i] = 3; - break; - case "SPARE": - case 4: - message.tablet_types[i] = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_types[i] = 5; - break; - case "BACKUP": - case 6: - message.tablet_types[i] = 6; - break; - case "RESTORE": - case 7: - message.tablet_types[i] = 7; - break; - case "DRAINED": - case 8: - message.tablet_types[i] = 8; - break; - } - } - switch (object.tablet_selection_preference) { - default: - if (typeof object.tablet_selection_preference === "number") { - message.tablet_selection_preference = object.tablet_selection_preference; - break; - } - break; - case "ANY": - case 0: - message.tablet_selection_preference = 0; - break; - case "INORDER": - case 1: - message.tablet_selection_preference = 1; - break; - case "UNKNOWN": - case 3: - message.tablet_selection_preference = 3; - break; - } - switch (object.on_ddl) { - default: - if (typeof object.on_ddl === "number") { - message.on_ddl = object.on_ddl; - break; - } - break; - case "IGNORE": - case 0: - message.on_ddl = 0; - break; - case "STOP": - case 1: - message.on_ddl = 1; - break; - case "EXEC": - case 2: - message.on_ddl = 2; - break; - case "EXEC_IGNORE": - case 3: - message.on_ddl = 3; - break; - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Init": - case 1: - message.state = 1; - break; - case "Stopped": - case 2: - message.state = 2; - break; - case "Copying": - case 3: - message.state = 3; - break; - case "Running": - case 4: - message.state = 4; - break; - case "Error": - case 5: - message.state = 5; - break; - case "Lagging": - case 6: - message.state = 6; - break; - } - if (object.config_overrides) { - if (typeof object.config_overrides !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowRequest.config_overrides: object expected"); - message.config_overrides = {}; - for (let keys = Object.keys(object.config_overrides), i = 0; i < keys.length; ++i) - message.config_overrides[keys[i]] = String(object.config_overrides[keys[i]]); - } - return message; - }; - - /** - * Creates a plain object from an UpdateVReplicationWorkflowRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowRequest} message UpdateVReplicationWorkflowRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVReplicationWorkflowRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.cells = []; - object.tablet_types = []; - } - if (options.objects || options.defaults) - object.config_overrides = {}; - if (options.defaults) - object.workflow = ""; - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.cells && message.cells.length) { - object.cells = []; - for (let j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } - if (message.tablet_types && message.tablet_types.length) { - object.tablet_types = []; - for (let j = 0; j < message.tablet_types.length; ++j) - object.tablet_types[j] = options.enums === String ? $root.topodata.TabletType[message.tablet_types[j]] === undefined ? message.tablet_types[j] : $root.topodata.TabletType[message.tablet_types[j]] : message.tablet_types[j]; - } - if (message.tablet_selection_preference != null && message.hasOwnProperty("tablet_selection_preference")) { - object.tablet_selection_preference = options.enums === String ? $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] === undefined ? message.tablet_selection_preference : $root.tabletmanagerdata.TabletSelectionPreference[message.tablet_selection_preference] : message.tablet_selection_preference; - if (options.oneofs) - object._tablet_selection_preference = "tablet_selection_preference"; - } - if (message.on_ddl != null && message.hasOwnProperty("on_ddl")) { - object.on_ddl = options.enums === String ? $root.binlogdata.OnDDLAction[message.on_ddl] === undefined ? message.on_ddl : $root.binlogdata.OnDDLAction[message.on_ddl] : message.on_ddl; - if (options.oneofs) - object._on_ddl = "on_ddl"; - } - if (message.state != null && message.hasOwnProperty("state")) { - object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; - if (options.oneofs) - object._state = "state"; - } - let keys2; - if (message.config_overrides && (keys2 = Object.keys(message.config_overrides)).length) { - object.config_overrides = {}; - for (let j = 0; j < keys2.length; ++j) - object.config_overrides[keys2[j]] = message.config_overrides[keys2[j]]; - } - return object; - }; - - /** - * Converts this UpdateVReplicationWorkflowRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateVReplicationWorkflowRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpdateVReplicationWorkflowRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateVReplicationWorkflowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowRequest"; - }; - - return UpdateVReplicationWorkflowRequest; - })(); - - tabletmanagerdata.UpdateVReplicationWorkflowResponse = (function() { - - /** - * Properties of an UpdateVReplicationWorkflowResponse. - * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowResponse - * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowResponse result - */ - - /** - * Constructs a new UpdateVReplicationWorkflowResponse. - * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowResponse. - * @implements IUpdateVReplicationWorkflowResponse - * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set - */ - function UpdateVReplicationWorkflowResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateVReplicationWorkflowResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @instance - */ - UpdateVReplicationWorkflowResponse.prototype.result = null; - - /** - * Creates a new UpdateVReplicationWorkflowResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse instance - */ - UpdateVReplicationWorkflowResponse.create = function create(properties) { - return new UpdateVReplicationWorkflowResponse(properties); - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateVReplicationWorkflowResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateVReplicationWorkflowResponse message. - * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVReplicationWorkflowResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; - - /** - * Creates an UpdateVReplicationWorkflowResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowResponse} UpdateVReplicationWorkflowResponse - */ - UpdateVReplicationWorkflowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse) - return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; - }; - - /** - * Creates a plain object from an UpdateVReplicationWorkflowResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowResponse} message UpdateVReplicationWorkflowResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVReplicationWorkflowResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; - }; - - /** - * Converts this UpdateVReplicationWorkflowResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @instance - * @returns {Object.} JSON object - */ - UpdateVReplicationWorkflowResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpdateVReplicationWorkflowResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateVReplicationWorkflowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowResponse"; - }; - - return UpdateVReplicationWorkflowResponse; - })(); - - tabletmanagerdata.UpdateVReplicationWorkflowsRequest = (function() { - - /** - * Properties of an UpdateVReplicationWorkflowsRequest. - * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowsRequest - * @property {boolean|null} [all_workflows] UpdateVReplicationWorkflowsRequest all_workflows - * @property {Array.|null} [include_workflows] UpdateVReplicationWorkflowsRequest include_workflows - * @property {Array.|null} [exclude_workflows] UpdateVReplicationWorkflowsRequest exclude_workflows - * @property {binlogdata.VReplicationWorkflowState|null} [state] UpdateVReplicationWorkflowsRequest state - * @property {string|null} [message] UpdateVReplicationWorkflowsRequest message - * @property {string|null} [stop_position] UpdateVReplicationWorkflowsRequest stop_position - */ - - /** - * Constructs a new UpdateVReplicationWorkflowsRequest. - * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowsRequest. - * @implements IUpdateVReplicationWorkflowsRequest - * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set - */ - function UpdateVReplicationWorkflowsRequest(properties) { - this.include_workflows = []; - this.exclude_workflows = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateVReplicationWorkflowsRequest all_workflows. - * @member {boolean} all_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.all_workflows = false; - - /** - * UpdateVReplicationWorkflowsRequest include_workflows. - * @member {Array.} include_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.include_workflows = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowsRequest exclude_workflows. - * @member {Array.} exclude_workflows - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.exclude_workflows = $util.emptyArray; - - /** - * UpdateVReplicationWorkflowsRequest state. - * @member {binlogdata.VReplicationWorkflowState|null|undefined} state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.state = null; - - /** - * UpdateVReplicationWorkflowsRequest message. - * @member {string|null|undefined} message - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.message = null; - - /** - * UpdateVReplicationWorkflowsRequest stop_position. - * @member {string|null|undefined} stop_position - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - UpdateVReplicationWorkflowsRequest.prototype.stop_position = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * UpdateVReplicationWorkflowsRequest _state. - * @member {"state"|undefined} _state - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_state", { - get: $util.oneOfGetter($oneOfFields = ["state"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * UpdateVReplicationWorkflowsRequest _message. - * @member {"message"|undefined} _message - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_message", { - get: $util.oneOfGetter($oneOfFields = ["message"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * UpdateVReplicationWorkflowsRequest _stop_position. - * @member {"stop_position"|undefined} _stop_position - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - */ - Object.defineProperty(UpdateVReplicationWorkflowsRequest.prototype, "_stop_position", { - get: $util.oneOfGetter($oneOfFields = ["stop_position"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new UpdateVReplicationWorkflowsRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest instance - */ - UpdateVReplicationWorkflowsRequest.create = function create(properties) { - return new UpdateVReplicationWorkflowsRequest(properties); - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.all_workflows != null && Object.hasOwnProperty.call(message, "all_workflows")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all_workflows); - if (message.include_workflows != null && message.include_workflows.length) - for (let i = 0; i < message.include_workflows.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.include_workflows[i]); - if (message.exclude_workflows != null && message.exclude_workflows.length) - for (let i = 0; i < message.exclude_workflows.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.exclude_workflows[i]); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); - if (message.stop_position != null && Object.hasOwnProperty.call(message, "stop_position")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stop_position); - return writer; - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.all_workflows = reader.bool(); - break; - } - case 2: { - if (!(message.include_workflows && message.include_workflows.length)) - message.include_workflows = []; - message.include_workflows.push(reader.string()); - break; - } - case 3: { - if (!(message.exclude_workflows && message.exclude_workflows.length)) - message.exclude_workflows = []; - message.exclude_workflows.push(reader.string()); - break; - } - case 4: { - message.state = reader.int32(); - break; - } - case 5: { - message.message = reader.string(); - break; - } - case 6: { - message.stop_position = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateVReplicationWorkflowsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateVReplicationWorkflowsRequest message. - * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVReplicationWorkflowsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) - if (typeof message.all_workflows !== "boolean") - return "all_workflows: boolean expected"; - if (message.include_workflows != null && message.hasOwnProperty("include_workflows")) { - if (!Array.isArray(message.include_workflows)) - return "include_workflows: array expected"; - for (let i = 0; i < message.include_workflows.length; ++i) - if (!$util.isString(message.include_workflows[i])) - return "include_workflows: string[] expected"; - } - if (message.exclude_workflows != null && message.hasOwnProperty("exclude_workflows")) { - if (!Array.isArray(message.exclude_workflows)) - return "exclude_workflows: array expected"; - for (let i = 0; i < message.exclude_workflows.length; ++i) - if (!$util.isString(message.exclude_workflows[i])) - return "exclude_workflows: string[] expected"; - } - if (message.state != null && message.hasOwnProperty("state")) { - properties._state = 1; - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - } - if (message.message != null && message.hasOwnProperty("message")) { - properties._message = 1; - if (!$util.isString(message.message)) - return "message: string expected"; - } - if (message.stop_position != null && message.hasOwnProperty("stop_position")) { - properties._stop_position = 1; - if (!$util.isString(message.stop_position)) - return "stop_position: string expected"; - } - return null; - }; - - /** - * Creates an UpdateVReplicationWorkflowsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} UpdateVReplicationWorkflowsRequest - */ - UpdateVReplicationWorkflowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest) - return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsRequest(); - if (object.all_workflows != null) - message.all_workflows = Boolean(object.all_workflows); - if (object.include_workflows) { - if (!Array.isArray(object.include_workflows)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.include_workflows: array expected"); - message.include_workflows = []; - for (let i = 0; i < object.include_workflows.length; ++i) - message.include_workflows[i] = String(object.include_workflows[i]); - } - if (object.exclude_workflows) { - if (!Array.isArray(object.exclude_workflows)) - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsRequest.exclude_workflows: array expected"); - message.exclude_workflows = []; - for (let i = 0; i < object.exclude_workflows.length; ++i) - message.exclude_workflows[i] = String(object.exclude_workflows[i]); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "Unknown": - case 0: - message.state = 0; - break; - case "Init": - case 1: - message.state = 1; - break; - case "Stopped": - case 2: - message.state = 2; - break; - case "Copying": - case 3: - message.state = 3; - break; - case "Running": - case 4: - message.state = 4; - break; - case "Error": - case 5: - message.state = 5; - break; - case "Lagging": - case 6: - message.state = 6; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.stop_position != null) - message.stop_position = String(object.stop_position); - return message; - }; - - /** - * Creates a plain object from an UpdateVReplicationWorkflowsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowsRequest} message UpdateVReplicationWorkflowsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVReplicationWorkflowsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.include_workflows = []; - object.exclude_workflows = []; - } - if (options.defaults) - object.all_workflows = false; - if (message.all_workflows != null && message.hasOwnProperty("all_workflows")) - object.all_workflows = message.all_workflows; - if (message.include_workflows && message.include_workflows.length) { - object.include_workflows = []; - for (let j = 0; j < message.include_workflows.length; ++j) - object.include_workflows[j] = message.include_workflows[j]; - } - if (message.exclude_workflows && message.exclude_workflows.length) { - object.exclude_workflows = []; - for (let j = 0; j < message.exclude_workflows.length; ++j) - object.exclude_workflows[j] = message.exclude_workflows[j]; - } - if (message.state != null && message.hasOwnProperty("state")) { - object.state = options.enums === String ? $root.binlogdata.VReplicationWorkflowState[message.state] === undefined ? message.state : $root.binlogdata.VReplicationWorkflowState[message.state] : message.state; - if (options.oneofs) - object._state = "state"; - } - if (message.message != null && message.hasOwnProperty("message")) { - object.message = message.message; - if (options.oneofs) - object._message = "message"; - } - if (message.stop_position != null && message.hasOwnProperty("stop_position")) { - object.stop_position = message.stop_position; - if (options.oneofs) - object._stop_position = "stop_position"; - } - return object; - }; - - /** - * Converts this UpdateVReplicationWorkflowsRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateVReplicationWorkflowsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpdateVReplicationWorkflowsRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateVReplicationWorkflowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsRequest"; - }; - - return UpdateVReplicationWorkflowsRequest; - })(); - - tabletmanagerdata.UpdateVReplicationWorkflowsResponse = (function() { - - /** - * Properties of an UpdateVReplicationWorkflowsResponse. - * @memberof tabletmanagerdata - * @interface IUpdateVReplicationWorkflowsResponse - * @property {query.IQueryResult|null} [result] UpdateVReplicationWorkflowsResponse result - */ - - /** - * Constructs a new UpdateVReplicationWorkflowsResponse. - * @memberof tabletmanagerdata - * @classdesc Represents an UpdateVReplicationWorkflowsResponse. - * @implements IUpdateVReplicationWorkflowsResponse - * @constructor - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set - */ - function UpdateVReplicationWorkflowsResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateVReplicationWorkflowsResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @instance - */ - UpdateVReplicationWorkflowsResponse.prototype.result = null; - - /** - * Creates a new UpdateVReplicationWorkflowsResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse instance - */ - UpdateVReplicationWorkflowsResponse.create = function create(properties) { - return new UpdateVReplicationWorkflowsResponse(properties); - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateVReplicationWorkflowsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.UpdateVReplicationWorkflowsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {tabletmanagerdata.IUpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVReplicationWorkflowsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateVReplicationWorkflowsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVReplicationWorkflowsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateVReplicationWorkflowsResponse message. - * @function verify - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVReplicationWorkflowsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - let error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; - - /** - * Creates an UpdateVReplicationWorkflowsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} UpdateVReplicationWorkflowsResponse - */ - UpdateVReplicationWorkflowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse) - return object; - let message = new $root.tabletmanagerdata.UpdateVReplicationWorkflowsResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".tabletmanagerdata.UpdateVReplicationWorkflowsResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; - }; - - /** - * Creates a plain object from an UpdateVReplicationWorkflowsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {tabletmanagerdata.UpdateVReplicationWorkflowsResponse} message UpdateVReplicationWorkflowsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVReplicationWorkflowsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; - }; - - /** - * Converts this UpdateVReplicationWorkflowsResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @instance - * @returns {Object.} JSON object - */ - UpdateVReplicationWorkflowsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UpdateVReplicationWorkflowsResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.UpdateVReplicationWorkflowsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateVReplicationWorkflowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.UpdateVReplicationWorkflowsResponse"; - }; - - return UpdateVReplicationWorkflowsResponse; - })(); - - tabletmanagerdata.ResetSequencesRequest = (function() { - - /** - * Properties of a ResetSequencesRequest. - * @memberof tabletmanagerdata - * @interface IResetSequencesRequest - * @property {Array.|null} [tables] ResetSequencesRequest tables - */ - - /** - * Constructs a new ResetSequencesRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a ResetSequencesRequest. - * @implements IResetSequencesRequest - * @constructor - * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set - */ - function ResetSequencesRequest(properties) { - this.tables = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResetSequencesRequest tables. - * @member {Array.} tables - * @memberof tabletmanagerdata.ResetSequencesRequest - * @instance - */ - ResetSequencesRequest.prototype.tables = $util.emptyArray; - - /** - * Creates a new ResetSequencesRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {tabletmanagerdata.IResetSequencesRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest instance - */ - ResetSequencesRequest.create = function create(properties) { - return new ResetSequencesRequest(properties); - }; - - /** - * Encodes the specified ResetSequencesRequest message. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResetSequencesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tables != null && message.tables.length) - for (let i = 0; i < message.tables.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tables[i]); - return writer; - }; - - /** - * Encodes the specified ResetSequencesRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {tabletmanagerdata.IResetSequencesRequest} message ResetSequencesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResetSequencesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResetSequencesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.tables && message.tables.length)) - message.tables = []; - message.tables.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResetSequencesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResetSequencesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResetSequencesRequest message. - * @function verify - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResetSequencesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!Array.isArray(message.tables)) - return "tables: array expected"; - for (let i = 0; i < message.tables.length; ++i) - if (!$util.isString(message.tables[i])) - return "tables: string[] expected"; - } - return null; - }; - - /** - * Creates a ResetSequencesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetSequencesRequest} ResetSequencesRequest - */ - ResetSequencesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetSequencesRequest) - return object; - let message = new $root.tabletmanagerdata.ResetSequencesRequest(); - if (object.tables) { - if (!Array.isArray(object.tables)) - throw TypeError(".tabletmanagerdata.ResetSequencesRequest.tables: array expected"); - message.tables = []; - for (let i = 0; i < object.tables.length; ++i) - message.tables[i] = String(object.tables[i]); - } - return message; - }; - - /** - * Creates a plain object from a ResetSequencesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {tabletmanagerdata.ResetSequencesRequest} message ResetSequencesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResetSequencesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.tables = []; - if (message.tables && message.tables.length) { - object.tables = []; - for (let j = 0; j < message.tables.length; ++j) - object.tables[j] = message.tables[j]; - } - return object; - }; - - /** - * Converts this ResetSequencesRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.ResetSequencesRequest - * @instance - * @returns {Object.} JSON object - */ - ResetSequencesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResetSequencesRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.ResetSequencesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResetSequencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesRequest"; - }; - - return ResetSequencesRequest; - })(); - - tabletmanagerdata.ResetSequencesResponse = (function() { - - /** - * Properties of a ResetSequencesResponse. - * @memberof tabletmanagerdata - * @interface IResetSequencesResponse - */ - - /** - * Constructs a new ResetSequencesResponse. - * @memberof tabletmanagerdata - * @classdesc Represents a ResetSequencesResponse. - * @implements IResetSequencesResponse - * @constructor - * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set - */ - function ResetSequencesResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ResetSequencesResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {tabletmanagerdata.IResetSequencesResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse instance - */ - ResetSequencesResponse.create = function create(properties) { - return new ResetSequencesResponse(properties); - }; - - /** - * Encodes the specified ResetSequencesResponse message. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResetSequencesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified ResetSequencesResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ResetSequencesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {tabletmanagerdata.IResetSequencesResponse} message ResetSequencesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResetSequencesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResetSequencesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ResetSequencesResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResetSequencesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResetSequencesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResetSequencesResponse message. - * @function verify - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResetSequencesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a ResetSequencesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ResetSequencesResponse} ResetSequencesResponse - */ - ResetSequencesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ResetSequencesResponse) - return object; - return new $root.tabletmanagerdata.ResetSequencesResponse(); - }; - - /** - * Creates a plain object from a ResetSequencesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {tabletmanagerdata.ResetSequencesResponse} message ResetSequencesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResetSequencesResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this ResetSequencesResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.ResetSequencesResponse - * @instance - * @returns {Object.} JSON object - */ - ResetSequencesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResetSequencesResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.ResetSequencesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResetSequencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ResetSequencesResponse"; - }; - - return ResetSequencesResponse; - })(); - - tabletmanagerdata.CheckThrottlerRequest = (function() { - - /** - * Properties of a CheckThrottlerRequest. - * @memberof tabletmanagerdata - * @interface ICheckThrottlerRequest - * @property {string|null} [app_name] CheckThrottlerRequest app_name - * @property {string|null} [scope] CheckThrottlerRequest scope - * @property {boolean|null} [skip_request_heartbeats] CheckThrottlerRequest skip_request_heartbeats - * @property {boolean|null} [ok_if_not_exists] CheckThrottlerRequest ok_if_not_exists - * @property {boolean|null} [multi_metrics_enabled] CheckThrottlerRequest multi_metrics_enabled - */ - - /** - * Constructs a new CheckThrottlerRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a CheckThrottlerRequest. - * @implements ICheckThrottlerRequest - * @constructor - * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set - */ - function CheckThrottlerRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CheckThrottlerRequest app_name. - * @member {string} app_name - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.app_name = ""; - - /** - * CheckThrottlerRequest scope. - * @member {string} scope - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.scope = ""; - - /** - * CheckThrottlerRequest skip_request_heartbeats. - * @member {boolean} skip_request_heartbeats - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.skip_request_heartbeats = false; - - /** - * CheckThrottlerRequest ok_if_not_exists. - * @member {boolean} ok_if_not_exists - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.ok_if_not_exists = false; - - /** - * CheckThrottlerRequest multi_metrics_enabled. - * @member {boolean} multi_metrics_enabled - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - */ - CheckThrottlerRequest.prototype.multi_metrics_enabled = false; - - /** - * Creates a new CheckThrottlerRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest instance - */ - CheckThrottlerRequest.create = function create(properties) { - return new CheckThrottlerRequest(properties); - }; - - /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CheckThrottlerRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.app_name); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.scope); - if (message.skip_request_heartbeats != null && Object.hasOwnProperty.call(message, "skip_request_heartbeats")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.skip_request_heartbeats); - if (message.ok_if_not_exists != null && Object.hasOwnProperty.call(message, "ok_if_not_exists")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.ok_if_not_exists); - if (message.multi_metrics_enabled != null && Object.hasOwnProperty.call(message, "multi_metrics_enabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.multi_metrics_enabled); - return writer; - }; - - /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {tabletmanagerdata.ICheckThrottlerRequest} message CheckThrottlerRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CheckThrottlerRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CheckThrottlerRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.app_name = reader.string(); - break; - } - case 2: { - message.scope = reader.string(); - break; - } - case 3: { - message.skip_request_heartbeats = reader.bool(); - break; - } - case 4: { - message.ok_if_not_exists = reader.bool(); - break; - } - case 5: { - message.multi_metrics_enabled = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CheckThrottlerRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CheckThrottlerRequest message. - * @function verify - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CheckThrottlerRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - if (!$util.isString(message.scope)) - return "scope: string expected"; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - if (typeof message.skip_request_heartbeats !== "boolean") - return "skip_request_heartbeats: boolean expected"; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - if (typeof message.ok_if_not_exists !== "boolean") - return "ok_if_not_exists: boolean expected"; - if (message.multi_metrics_enabled != null && message.hasOwnProperty("multi_metrics_enabled")) - if (typeof message.multi_metrics_enabled !== "boolean") - return "multi_metrics_enabled: boolean expected"; - return null; - }; - - /** - * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerRequest} CheckThrottlerRequest - */ - CheckThrottlerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerRequest) - return object; - let message = new $root.tabletmanagerdata.CheckThrottlerRequest(); - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.scope != null) - message.scope = String(object.scope); - if (object.skip_request_heartbeats != null) - message.skip_request_heartbeats = Boolean(object.skip_request_heartbeats); - if (object.ok_if_not_exists != null) - message.ok_if_not_exists = Boolean(object.ok_if_not_exists); - if (object.multi_metrics_enabled != null) - message.multi_metrics_enabled = Boolean(object.multi_metrics_enabled); - return message; - }; - - /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {tabletmanagerdata.CheckThrottlerRequest} message CheckThrottlerRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CheckThrottlerRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.app_name = ""; - object.scope = ""; - object.skip_request_heartbeats = false; - object.ok_if_not_exists = false; - object.multi_metrics_enabled = false; - } - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = message.scope; - if (message.skip_request_heartbeats != null && message.hasOwnProperty("skip_request_heartbeats")) - object.skip_request_heartbeats = message.skip_request_heartbeats; - if (message.ok_if_not_exists != null && message.hasOwnProperty("ok_if_not_exists")) - object.ok_if_not_exists = message.ok_if_not_exists; - if (message.multi_metrics_enabled != null && message.hasOwnProperty("multi_metrics_enabled")) - object.multi_metrics_enabled = message.multi_metrics_enabled; - return object; - }; - - /** - * Converts this CheckThrottlerRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @instance - * @returns {Object.} JSON object - */ - CheckThrottlerRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CheckThrottlerRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CheckThrottlerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerRequest"; - }; - - return CheckThrottlerRequest; - })(); - - /** - * CheckThrottlerResponseCode enum. - * @name tabletmanagerdata.CheckThrottlerResponseCode - * @enum {number} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} OK=1 OK value - * @property {number} THRESHOLD_EXCEEDED=2 THRESHOLD_EXCEEDED value - * @property {number} APP_DENIED=3 APP_DENIED value - * @property {number} UNKNOWN_METRIC=4 UNKNOWN_METRIC value - * @property {number} INTERNAL_ERROR=5 INTERNAL_ERROR value - */ - tabletmanagerdata.CheckThrottlerResponseCode = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "OK"] = 1; - values[valuesById[2] = "THRESHOLD_EXCEEDED"] = 2; - values[valuesById[3] = "APP_DENIED"] = 3; - values[valuesById[4] = "UNKNOWN_METRIC"] = 4; - values[valuesById[5] = "INTERNAL_ERROR"] = 5; - return values; - })(); - - tabletmanagerdata.CheckThrottlerResponse = (function() { - - /** - * Properties of a CheckThrottlerResponse. - * @memberof tabletmanagerdata - * @interface ICheckThrottlerResponse - * @property {number|null} [status_code] CheckThrottlerResponse status_code - * @property {number|null} [value] CheckThrottlerResponse value - * @property {number|null} [threshold] CheckThrottlerResponse threshold - * @property {string|null} [error] CheckThrottlerResponse error - * @property {string|null} [message] CheckThrottlerResponse message - * @property {boolean|null} [recently_checked] CheckThrottlerResponse recently_checked - * @property {Object.|null} [metrics] CheckThrottlerResponse metrics - * @property {string|null} [app_name] CheckThrottlerResponse app_name - * @property {string|null} [summary] CheckThrottlerResponse summary - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] CheckThrottlerResponse response_code - */ - - /** - * Constructs a new CheckThrottlerResponse. - * @memberof tabletmanagerdata - * @classdesc Represents a CheckThrottlerResponse. - * @implements ICheckThrottlerResponse - * @constructor - * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set - */ - function CheckThrottlerResponse(properties) { - this.metrics = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CheckThrottlerResponse status_code. - * @member {number} status_code - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.status_code = 0; - - /** - * CheckThrottlerResponse value. - * @member {number} value - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.value = 0; - - /** - * CheckThrottlerResponse threshold. - * @member {number} threshold - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.threshold = 0; - - /** - * CheckThrottlerResponse error. - * @member {string} error - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.error = ""; - - /** - * CheckThrottlerResponse message. - * @member {string} message - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.message = ""; - - /** - * CheckThrottlerResponse recently_checked. - * @member {boolean} recently_checked - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.recently_checked = false; - - /** - * CheckThrottlerResponse metrics. - * @member {Object.} metrics - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.metrics = $util.emptyObject; - - /** - * CheckThrottlerResponse app_name. - * @member {string} app_name - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.app_name = ""; - - /** - * CheckThrottlerResponse summary. - * @member {string} summary - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.summary = ""; - - /** - * CheckThrottlerResponse response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - */ - CheckThrottlerResponse.prototype.response_code = 0; - - /** - * Creates a new CheckThrottlerResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse instance - */ - CheckThrottlerResponse.create = function create(properties) { - return new CheckThrottlerResponse(properties); - }; - - /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CheckThrottlerResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status_code); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.threshold); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.error); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); - if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.recently_checked); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - for (let keys = Object.keys(message.metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.CheckThrottlerResponse.Metric.encode(message.metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.app_name != null && Object.hasOwnProperty.call(message, "app_name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.app_name); - if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.summary); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.response_code); - return writer; - }; - - /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {tabletmanagerdata.ICheckThrottlerResponse} message CheckThrottlerResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CheckThrottlerResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CheckThrottlerResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.status_code = reader.int32(); - break; - } - case 2: { - message.value = reader.double(); - break; - } - case 3: { - message.threshold = reader.double(); - break; - } - case 4: { - message.error = reader.string(); - break; - } - case 5: { - message.message = reader.string(); - break; - } - case 6: { - message.recently_checked = reader.bool(); - break; - } - case 7: { - if (message.metrics === $util.emptyObject) - message.metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metrics[key] = value; - break; - } - case 8: { - message.app_name = reader.string(); - break; - } - case 9: { - message.summary = reader.string(); - break; - } - case 10: { - message.response_code = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CheckThrottlerResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CheckThrottlerResponse message. - * @function verify - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CheckThrottlerResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status_code != null && message.hasOwnProperty("status_code")) - if (!$util.isInteger(message.status_code)) - return "status_code: integer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - if (typeof message.recently_checked !== "boolean") - return "recently_checked: boolean expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!$util.isObject(message.metrics)) - return "metrics: object expected"; - let key = Object.keys(message.metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.verify(message.metrics[key[i]]); - if (error) - return "metrics." + error; - } - } - if (message.app_name != null && message.hasOwnProperty("app_name")) - if (!$util.isString(message.app_name)) - return "app_name: string expected"; - if (message.summary != null && message.hasOwnProperty("summary")) - if (!$util.isString(message.summary)) - return "summary: string expected"; - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { - default: - return "response_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerResponse} CheckThrottlerResponse - */ - CheckThrottlerResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse) - return object; - let message = new $root.tabletmanagerdata.CheckThrottlerResponse(); - if (object.status_code != null) - message.status_code = object.status_code | 0; - if (object.value != null) - message.value = Number(object.value); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.error != null) - message.error = String(object.error); - if (object.message != null) - message.message = String(object.message); - if (object.recently_checked != null) - message.recently_checked = Boolean(object.recently_checked); - if (object.metrics) { - if (typeof object.metrics !== "object") - throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); - message.metrics = {}; - for (let keys = Object.keys(object.metrics), i = 0; i < keys.length; ++i) { - if (typeof object.metrics[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.CheckThrottlerResponse.metrics: object expected"); - message.metrics[keys[i]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.fromObject(object.metrics[keys[i]]); - } - } - if (object.app_name != null) - message.app_name = String(object.app_name); - if (object.summary != null) - message.summary = String(object.summary); - switch (object.response_code) { - default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; - break; - } - break; - case "UNDEFINED": - case 0: - message.response_code = 0; - break; - case "OK": - case 1: - message.response_code = 1; - break; - case "THRESHOLD_EXCEEDED": - case 2: - message.response_code = 2; - break; - case "APP_DENIED": - case 3: - message.response_code = 3; - break; - case "UNKNOWN_METRIC": - case 4: - message.response_code = 4; - break; - case "INTERNAL_ERROR": - case 5: - message.response_code = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse} message CheckThrottlerResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CheckThrottlerResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.metrics = {}; - if (options.defaults) { - object.status_code = 0; - object.value = 0; - object.threshold = 0; - object.error = ""; - object.message = ""; - object.recently_checked = false; - object.app_name = ""; - object.summary = ""; - object.response_code = options.enums === String ? "UNDEFINED" : 0; - } - if (message.status_code != null && message.hasOwnProperty("status_code")) - object.status_code = message.status_code; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - object.recently_checked = message.recently_checked; - let keys2; - if (message.metrics && (keys2 = Object.keys(message.metrics)).length) { - object.metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.metrics[keys2[j]] = $root.tabletmanagerdata.CheckThrottlerResponse.Metric.toObject(message.metrics[keys2[j]], options); - } - if (message.app_name != null && message.hasOwnProperty("app_name")) - object.app_name = message.app_name; - if (message.summary != null && message.hasOwnProperty("summary")) - object.summary = message.summary; - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; - return object; - }; - - /** - * Converts this CheckThrottlerResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @instance - * @returns {Object.} JSON object - */ - CheckThrottlerResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CheckThrottlerResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CheckThrottlerResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse"; - }; - - CheckThrottlerResponse.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @interface IMetric - * @property {string|null} [name] Metric name - * @property {number|null} [status_code] Metric status_code - * @property {number|null} [value] Metric value - * @property {number|null} [threshold] Metric threshold - * @property {string|null} [error] Metric error - * @property {string|null} [message] Metric message - * @property {string|null} [scope] Metric scope - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] Metric response_code - */ - - /** - * Constructs a new Metric. - * @memberof tabletmanagerdata.CheckThrottlerResponse - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Metric name. - * @member {string} name - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.name = ""; - - /** - * Metric status_code. - * @member {number} status_code - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.status_code = 0; - - /** - * Metric value. - * @member {number} value - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.value = 0; - - /** - * Metric threshold. - * @member {number} threshold - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.threshold = 0; - - /** - * Metric error. - * @member {string} error - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.error = ""; - - /** - * Metric message. - * @member {string} message - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.message = ""; - - /** - * Metric scope. - * @member {string} scope - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.scope = ""; - - /** - * Metric response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - */ - Metric.prototype.response_code = 0; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric=} [properties] Properties to set - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.value); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.threshold); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.error); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.scope); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.response_code); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link tabletmanagerdata.CheckThrottlerResponse.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.status_code = reader.int32(); - break; - } - case 3: { - message.value = reader.double(); - break; - } - case 4: { - message.threshold = reader.double(); - break; - } - case 5: { - message.error = reader.string(); - break; - } - case 6: { - message.message = reader.string(); - break; - } - case 7: { - message.scope = reader.string(); - break; - } - case 8: { - message.response_code = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.status_code != null && message.hasOwnProperty("status_code")) - if (!$util.isInteger(message.status_code)) - return "status_code: integer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) - if (typeof message.threshold !== "number") - return "threshold: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - if (!$util.isString(message.scope)) - return "scope: string expected"; - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { - default: - return "response_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.CheckThrottlerResponse.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.CheckThrottlerResponse.Metric) - return object; - let message = new $root.tabletmanagerdata.CheckThrottlerResponse.Metric(); - if (object.name != null) - message.name = String(object.name); - if (object.status_code != null) - message.status_code = object.status_code | 0; - if (object.value != null) - message.value = Number(object.value); - if (object.threshold != null) - message.threshold = Number(object.threshold); - if (object.error != null) - message.error = String(object.error); - if (object.message != null) - message.message = String(object.message); - if (object.scope != null) - message.scope = String(object.scope); - switch (object.response_code) { - default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; - break; - } - break; - case "UNDEFINED": - case 0: - message.response_code = 0; - break; - case "OK": - case 1: - message.response_code = 1; - break; - case "THRESHOLD_EXCEEDED": - case 2: - message.response_code = 2; - break; - case "APP_DENIED": - case 3: - message.response_code = 3; - break; - case "UNKNOWN_METRIC": - case 4: - message.response_code = 4; - break; - case "INTERNAL_ERROR": - case 5: - message.response_code = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {tabletmanagerdata.CheckThrottlerResponse.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.status_code = 0; - object.value = 0; - object.threshold = 0; - object.error = ""; - object.message = ""; - object.scope = ""; - object.response_code = options.enums === String ? "UNDEFINED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.status_code != null && message.hasOwnProperty("status_code")) - object.status_code = message.status_code; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = options.json && !isFinite(message.threshold) ? String(message.threshold) : message.threshold; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = message.scope; - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof tabletmanagerdata.CheckThrottlerResponse.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.CheckThrottlerResponse.Metric"; - }; - - return Metric; - })(); - - return CheckThrottlerResponse; - })(); - - tabletmanagerdata.GetThrottlerStatusRequest = (function() { - - /** - * Properties of a GetThrottlerStatusRequest. - * @memberof tabletmanagerdata - * @interface IGetThrottlerStatusRequest - */ - - /** - * Constructs a new GetThrottlerStatusRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a GetThrottlerStatusRequest. - * @implements IGetThrottlerStatusRequest - * @constructor - * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set - */ - function GetThrottlerStatusRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest instance - */ - GetThrottlerStatusRequest.create = function create(properties) { - return new GetThrottlerStatusRequest(properties); - }; - - /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetThrottlerStatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusRequest} message GetThrottlerStatusRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetThrottlerStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetThrottlerStatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetThrottlerStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetThrottlerStatusRequest message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetThrottlerStatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusRequest} GetThrottlerStatusRequest - */ - GetThrottlerStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusRequest) - return object; - return new $root.tabletmanagerdata.GetThrottlerStatusRequest(); - }; - - /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {tabletmanagerdata.GetThrottlerStatusRequest} message GetThrottlerStatusRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetThrottlerStatusRequest.toObject = function toObject() { - return {}; - }; - - /** - * Converts this GetThrottlerStatusRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @instance - * @returns {Object.} JSON object - */ - GetThrottlerStatusRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetThrottlerStatusRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetThrottlerStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusRequest"; - }; - - return GetThrottlerStatusRequest; - })(); - - tabletmanagerdata.GetThrottlerStatusResponse = (function() { - - /** - * Properties of a GetThrottlerStatusResponse. - * @memberof tabletmanagerdata - * @interface IGetThrottlerStatusResponse - * @property {string|null} [tablet_alias] GetThrottlerStatusResponse tablet_alias - * @property {string|null} [keyspace] GetThrottlerStatusResponse keyspace - * @property {string|null} [shard] GetThrottlerStatusResponse shard - * @property {boolean|null} [is_leader] GetThrottlerStatusResponse is_leader - * @property {boolean|null} [is_open] GetThrottlerStatusResponse is_open - * @property {boolean|null} [is_enabled] GetThrottlerStatusResponse is_enabled - * @property {boolean|null} [is_dormant] GetThrottlerStatusResponse is_dormant - * @property {string|null} [lag_metric_query] GetThrottlerStatusResponse lag_metric_query - * @property {string|null} [custom_metric_query] GetThrottlerStatusResponse custom_metric_query - * @property {number|null} [default_threshold] GetThrottlerStatusResponse default_threshold - * @property {string|null} [metric_name_used_as_default] GetThrottlerStatusResponse metric_name_used_as_default - * @property {Object.|null} [aggregated_metrics] GetThrottlerStatusResponse aggregated_metrics - * @property {Object.|null} [metric_thresholds] GetThrottlerStatusResponse metric_thresholds - * @property {Object.|null} [metrics_health] GetThrottlerStatusResponse metrics_health - * @property {Object.|null} [throttled_apps] GetThrottlerStatusResponse throttled_apps - * @property {Object.|null} [app_checked_metrics] GetThrottlerStatusResponse app_checked_metrics - * @property {boolean|null} [recently_checked] GetThrottlerStatusResponse recently_checked - * @property {Object.|null} [recent_apps] GetThrottlerStatusResponse recent_apps - */ - - /** - * Constructs a new GetThrottlerStatusResponse. - * @memberof tabletmanagerdata - * @classdesc Represents a GetThrottlerStatusResponse. - * @implements IGetThrottlerStatusResponse - * @constructor - * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set - */ - function GetThrottlerStatusResponse(properties) { - this.aggregated_metrics = {}; - this.metric_thresholds = {}; - this.metrics_health = {}; - this.throttled_apps = {}; - this.app_checked_metrics = {}; - this.recent_apps = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetThrottlerStatusResponse tablet_alias. - * @member {string} tablet_alias - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.tablet_alias = ""; - - /** - * GetThrottlerStatusResponse keyspace. - * @member {string} keyspace - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.keyspace = ""; - - /** - * GetThrottlerStatusResponse shard. - * @member {string} shard - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.shard = ""; - - /** - * GetThrottlerStatusResponse is_leader. - * @member {boolean} is_leader - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_leader = false; - - /** - * GetThrottlerStatusResponse is_open. - * @member {boolean} is_open - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_open = false; - - /** - * GetThrottlerStatusResponse is_enabled. - * @member {boolean} is_enabled - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_enabled = false; - - /** - * GetThrottlerStatusResponse is_dormant. - * @member {boolean} is_dormant - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.is_dormant = false; - - /** - * GetThrottlerStatusResponse lag_metric_query. - * @member {string} lag_metric_query - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.lag_metric_query = ""; - - /** - * GetThrottlerStatusResponse custom_metric_query. - * @member {string} custom_metric_query - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.custom_metric_query = ""; - - /** - * GetThrottlerStatusResponse default_threshold. - * @member {number} default_threshold - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.default_threshold = 0; - - /** - * GetThrottlerStatusResponse metric_name_used_as_default. - * @member {string} metric_name_used_as_default - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.metric_name_used_as_default = ""; - - /** - * GetThrottlerStatusResponse aggregated_metrics. - * @member {Object.} aggregated_metrics - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.aggregated_metrics = $util.emptyObject; - - /** - * GetThrottlerStatusResponse metric_thresholds. - * @member {Object.} metric_thresholds - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.metric_thresholds = $util.emptyObject; - - /** - * GetThrottlerStatusResponse metrics_health. - * @member {Object.} metrics_health - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.metrics_health = $util.emptyObject; - - /** - * GetThrottlerStatusResponse throttled_apps. - * @member {Object.} throttled_apps - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.throttled_apps = $util.emptyObject; - - /** - * GetThrottlerStatusResponse app_checked_metrics. - * @member {Object.} app_checked_metrics - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.app_checked_metrics = $util.emptyObject; - - /** - * GetThrottlerStatusResponse recently_checked. - * @member {boolean} recently_checked - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.recently_checked = false; - - /** - * GetThrottlerStatusResponse recent_apps. - * @member {Object.} recent_apps - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - */ - GetThrottlerStatusResponse.prototype.recent_apps = $util.emptyObject; - - /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse instance - */ - GetThrottlerStatusResponse.create = function create(properties) { - return new GetThrottlerStatusResponse(properties); - }; - - /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetThrottlerStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tablet_alias); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.is_leader != null && Object.hasOwnProperty.call(message, "is_leader")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_leader); - if (message.is_open != null && Object.hasOwnProperty.call(message, "is_open")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.is_open); - if (message.is_enabled != null && Object.hasOwnProperty.call(message, "is_enabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.is_enabled); - if (message.is_dormant != null && Object.hasOwnProperty.call(message, "is_dormant")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.is_dormant); - if (message.lag_metric_query != null && Object.hasOwnProperty.call(message, "lag_metric_query")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.lag_metric_query); - if (message.custom_metric_query != null && Object.hasOwnProperty.call(message, "custom_metric_query")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.custom_metric_query); - if (message.default_threshold != null && Object.hasOwnProperty.call(message, "default_threshold")) - writer.uint32(/* id 10, wireType 1 =*/81).double(message.default_threshold); - if (message.metric_name_used_as_default != null && Object.hasOwnProperty.call(message, "metric_name_used_as_default")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.metric_name_used_as_default); - if (message.aggregated_metrics != null && Object.hasOwnProperty.call(message, "aggregated_metrics")) - for (let keys = Object.keys(message.aggregated_metrics), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.encode(message.aggregated_metrics[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.metric_thresholds != null && Object.hasOwnProperty.call(message, "metric_thresholds")) - for (let keys = Object.keys(message.metric_thresholds), i = 0; i < keys.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 1 =*/17).double(message.metric_thresholds[keys[i]]).ldelim(); - if (message.metrics_health != null && Object.hasOwnProperty.call(message, "metrics_health")) - for (let keys = Object.keys(message.metrics_health), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 14, wireType 2 =*/114).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.encode(message.metrics_health[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.throttled_apps != null && Object.hasOwnProperty.call(message, "throttled_apps")) - for (let keys = Object.keys(message.throttled_apps), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.topodata.ThrottledAppRule.encode(message.throttled_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.app_checked_metrics != null && Object.hasOwnProperty.call(message, "app_checked_metrics")) - for (let keys = Object.keys(message.app_checked_metrics), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.app_checked_metrics[keys[i]]).ldelim(); - if (message.recently_checked != null && Object.hasOwnProperty.call(message, "recently_checked")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.recently_checked); - if (message.recent_apps != null && Object.hasOwnProperty.call(message, "recent_apps")) - for (let keys = Object.keys(message.recent_apps), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.encode(message.recent_apps[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {tabletmanagerdata.IGetThrottlerStatusResponse} message GetThrottlerStatusResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetThrottlerStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetThrottlerStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.tablet_alias = reader.string(); - break; - } - case 2: { - message.keyspace = reader.string(); - break; - } - case 3: { - message.shard = reader.string(); - break; - } - case 4: { - message.is_leader = reader.bool(); - break; - } - case 5: { - message.is_open = reader.bool(); - break; - } - case 6: { - message.is_enabled = reader.bool(); - break; - } - case 7: { - message.is_dormant = reader.bool(); - break; - } - case 8: { - message.lag_metric_query = reader.string(); - break; - } - case 9: { - message.custom_metric_query = reader.string(); - break; - } - case 10: { - message.default_threshold = reader.double(); - break; - } - case 11: { - message.metric_name_used_as_default = reader.string(); - break; - } - case 12: { - if (message.aggregated_metrics === $util.emptyObject) - message.aggregated_metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.aggregated_metrics[key] = value; - break; - } - case 13: { - if (message.metric_thresholds === $util.emptyObject) - message.metric_thresholds = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.double(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metric_thresholds[key] = value; - break; - } - case 14: { - if (message.metrics_health === $util.emptyObject) - message.metrics_health = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.metrics_health[key] = value; - break; - } - case 15: { - if (message.throttled_apps === $util.emptyObject) - message.throttled_apps = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.topodata.ThrottledAppRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.throttled_apps[key] = value; - break; - } - case 16: { - if (message.app_checked_metrics === $util.emptyObject) - message.app_checked_metrics = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.app_checked_metrics[key] = value; - break; - } - case 17: { - message.recently_checked = reader.bool(); - break; - } - case 18: { - if (message.recent_apps === $util.emptyObject) - message.recent_apps = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.recent_apps[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetThrottlerStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetThrottlerStatusResponse message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetThrottlerStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - if (!$util.isString(message.tablet_alias)) - return "tablet_alias: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.is_leader != null && message.hasOwnProperty("is_leader")) - if (typeof message.is_leader !== "boolean") - return "is_leader: boolean expected"; - if (message.is_open != null && message.hasOwnProperty("is_open")) - if (typeof message.is_open !== "boolean") - return "is_open: boolean expected"; - if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) - if (typeof message.is_enabled !== "boolean") - return "is_enabled: boolean expected"; - if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) - if (typeof message.is_dormant !== "boolean") - return "is_dormant: boolean expected"; - if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) - if (!$util.isString(message.lag_metric_query)) - return "lag_metric_query: string expected"; - if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) - if (!$util.isString(message.custom_metric_query)) - return "custom_metric_query: string expected"; - if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) - if (typeof message.default_threshold !== "number") - return "default_threshold: number expected"; - if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) - if (!$util.isString(message.metric_name_used_as_default)) - return "metric_name_used_as_default: string expected"; - if (message.aggregated_metrics != null && message.hasOwnProperty("aggregated_metrics")) { - if (!$util.isObject(message.aggregated_metrics)) - return "aggregated_metrics: object expected"; - let key = Object.keys(message.aggregated_metrics); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify(message.aggregated_metrics[key[i]]); - if (error) - return "aggregated_metrics." + error; - } - } - if (message.metric_thresholds != null && message.hasOwnProperty("metric_thresholds")) { - if (!$util.isObject(message.metric_thresholds)) - return "metric_thresholds: object expected"; - let key = Object.keys(message.metric_thresholds); - for (let i = 0; i < key.length; ++i) - if (typeof message.metric_thresholds[key[i]] !== "number") - return "metric_thresholds: number{k:string} expected"; - } - if (message.metrics_health != null && message.hasOwnProperty("metrics_health")) { - if (!$util.isObject(message.metrics_health)) - return "metrics_health: object expected"; - let key = Object.keys(message.metrics_health); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify(message.metrics_health[key[i]]); - if (error) - return "metrics_health." + error; - } - } - if (message.throttled_apps != null && message.hasOwnProperty("throttled_apps")) { - if (!$util.isObject(message.throttled_apps)) - return "throttled_apps: object expected"; - let key = Object.keys(message.throttled_apps); - for (let i = 0; i < key.length; ++i) { - let error = $root.topodata.ThrottledAppRule.verify(message.throttled_apps[key[i]]); - if (error) - return "throttled_apps." + error; - } - } - if (message.app_checked_metrics != null && message.hasOwnProperty("app_checked_metrics")) { - if (!$util.isObject(message.app_checked_metrics)) - return "app_checked_metrics: object expected"; - let key = Object.keys(message.app_checked_metrics); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.app_checked_metrics[key[i]])) - return "app_checked_metrics: string{k:string} expected"; - } - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - if (typeof message.recently_checked !== "boolean") - return "recently_checked: boolean expected"; - if (message.recent_apps != null && message.hasOwnProperty("recent_apps")) { - if (!$util.isObject(message.recent_apps)) - return "recent_apps: object expected"; - let key = Object.keys(message.recent_apps); - for (let i = 0; i < key.length; ++i) { - let error = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify(message.recent_apps[key[i]]); - if (error) - return "recent_apps." + error; - } - } - return null; - }; - - /** - * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse} GetThrottlerStatusResponse - */ - GetThrottlerStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse(); - if (object.tablet_alias != null) - message.tablet_alias = String(object.tablet_alias); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.is_leader != null) - message.is_leader = Boolean(object.is_leader); - if (object.is_open != null) - message.is_open = Boolean(object.is_open); - if (object.is_enabled != null) - message.is_enabled = Boolean(object.is_enabled); - if (object.is_dormant != null) - message.is_dormant = Boolean(object.is_dormant); - if (object.lag_metric_query != null) - message.lag_metric_query = String(object.lag_metric_query); - if (object.custom_metric_query != null) - message.custom_metric_query = String(object.custom_metric_query); - if (object.default_threshold != null) - message.default_threshold = Number(object.default_threshold); - if (object.metric_name_used_as_default != null) - message.metric_name_used_as_default = String(object.metric_name_used_as_default); - if (object.aggregated_metrics) { - if (typeof object.aggregated_metrics !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); - message.aggregated_metrics = {}; - for (let keys = Object.keys(object.aggregated_metrics), i = 0; i < keys.length; ++i) { - if (typeof object.aggregated_metrics[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.aggregated_metrics: object expected"); - message.aggregated_metrics[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.fromObject(object.aggregated_metrics[keys[i]]); - } - } - if (object.metric_thresholds) { - if (typeof object.metric_thresholds !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metric_thresholds: object expected"); - message.metric_thresholds = {}; - for (let keys = Object.keys(object.metric_thresholds), i = 0; i < keys.length; ++i) - message.metric_thresholds[keys[i]] = Number(object.metric_thresholds[keys[i]]); - } - if (object.metrics_health) { - if (typeof object.metrics_health !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); - message.metrics_health = {}; - for (let keys = Object.keys(object.metrics_health), i = 0; i < keys.length; ++i) { - if (typeof object.metrics_health[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.metrics_health: object expected"); - message.metrics_health[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.fromObject(object.metrics_health[keys[i]]); - } - } - if (object.throttled_apps) { - if (typeof object.throttled_apps !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); - message.throttled_apps = {}; - for (let keys = Object.keys(object.throttled_apps), i = 0; i < keys.length; ++i) { - if (typeof object.throttled_apps[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.throttled_apps: object expected"); - message.throttled_apps[keys[i]] = $root.topodata.ThrottledAppRule.fromObject(object.throttled_apps[keys[i]]); - } - } - if (object.app_checked_metrics) { - if (typeof object.app_checked_metrics !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.app_checked_metrics: object expected"); - message.app_checked_metrics = {}; - for (let keys = Object.keys(object.app_checked_metrics), i = 0; i < keys.length; ++i) - message.app_checked_metrics[keys[i]] = String(object.app_checked_metrics[keys[i]]); - } - if (object.recently_checked != null) - message.recently_checked = Boolean(object.recently_checked); - if (object.recent_apps) { - if (typeof object.recent_apps !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); - message.recent_apps = {}; - for (let keys = Object.keys(object.recent_apps), i = 0; i < keys.length; ++i) { - if (typeof object.recent_apps[keys[i]] !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.recent_apps: object expected"); - message.recent_apps[keys[i]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.fromObject(object.recent_apps[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse} message GetThrottlerStatusResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetThrottlerStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) { - object.aggregated_metrics = {}; - object.metric_thresholds = {}; - object.metrics_health = {}; - object.throttled_apps = {}; - object.app_checked_metrics = {}; - object.recent_apps = {}; - } - if (options.defaults) { - object.tablet_alias = ""; - object.keyspace = ""; - object.shard = ""; - object.is_leader = false; - object.is_open = false; - object.is_enabled = false; - object.is_dormant = false; - object.lag_metric_query = ""; - object.custom_metric_query = ""; - object.default_threshold = 0; - object.metric_name_used_as_default = ""; - object.recently_checked = false; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = message.tablet_alias; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.is_leader != null && message.hasOwnProperty("is_leader")) - object.is_leader = message.is_leader; - if (message.is_open != null && message.hasOwnProperty("is_open")) - object.is_open = message.is_open; - if (message.is_enabled != null && message.hasOwnProperty("is_enabled")) - object.is_enabled = message.is_enabled; - if (message.is_dormant != null && message.hasOwnProperty("is_dormant")) - object.is_dormant = message.is_dormant; - if (message.lag_metric_query != null && message.hasOwnProperty("lag_metric_query")) - object.lag_metric_query = message.lag_metric_query; - if (message.custom_metric_query != null && message.hasOwnProperty("custom_metric_query")) - object.custom_metric_query = message.custom_metric_query; - if (message.default_threshold != null && message.hasOwnProperty("default_threshold")) - object.default_threshold = options.json && !isFinite(message.default_threshold) ? String(message.default_threshold) : message.default_threshold; - if (message.metric_name_used_as_default != null && message.hasOwnProperty("metric_name_used_as_default")) - object.metric_name_used_as_default = message.metric_name_used_as_default; - let keys2; - if (message.aggregated_metrics && (keys2 = Object.keys(message.aggregated_metrics)).length) { - object.aggregated_metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.aggregated_metrics[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.toObject(message.aggregated_metrics[keys2[j]], options); - } - if (message.metric_thresholds && (keys2 = Object.keys(message.metric_thresholds)).length) { - object.metric_thresholds = {}; - for (let j = 0; j < keys2.length; ++j) - object.metric_thresholds[keys2[j]] = options.json && !isFinite(message.metric_thresholds[keys2[j]]) ? String(message.metric_thresholds[keys2[j]]) : message.metric_thresholds[keys2[j]]; - } - if (message.metrics_health && (keys2 = Object.keys(message.metrics_health)).length) { - object.metrics_health = {}; - for (let j = 0; j < keys2.length; ++j) - object.metrics_health[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.toObject(message.metrics_health[keys2[j]], options); - } - if (message.throttled_apps && (keys2 = Object.keys(message.throttled_apps)).length) { - object.throttled_apps = {}; - for (let j = 0; j < keys2.length; ++j) - object.throttled_apps[keys2[j]] = $root.topodata.ThrottledAppRule.toObject(message.throttled_apps[keys2[j]], options); - } - if (message.app_checked_metrics && (keys2 = Object.keys(message.app_checked_metrics)).length) { - object.app_checked_metrics = {}; - for (let j = 0; j < keys2.length; ++j) - object.app_checked_metrics[keys2[j]] = message.app_checked_metrics[keys2[j]]; - } - if (message.recently_checked != null && message.hasOwnProperty("recently_checked")) - object.recently_checked = message.recently_checked; - if (message.recent_apps && (keys2 = Object.keys(message.recent_apps)).length) { - object.recent_apps = {}; - for (let j = 0; j < keys2.length; ++j) - object.recent_apps[keys2[j]] = $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.toObject(message.recent_apps[keys2[j]], options); - } - return object; - }; - - /** - * Converts this GetThrottlerStatusResponse to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @instance - * @returns {Object.} JSON object - */ - GetThrottlerStatusResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetThrottlerStatusResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetThrottlerStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse"; - }; - - GetThrottlerStatusResponse.MetricResult = (function() { - - /** - * Properties of a MetricResult. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IMetricResult - * @property {number|null} [value] MetricResult value - * @property {string|null} [error] MetricResult error - */ - - /** - * Constructs a new MetricResult. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a MetricResult. - * @implements IMetricResult - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set - */ - function MetricResult(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetricResult value. - * @member {number} value - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - */ - MetricResult.prototype.value = 0; - - /** - * MetricResult error. - * @member {string} error - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - */ - MetricResult.prototype.error = ""; - - /** - * Creates a new MetricResult instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult instance - */ - MetricResult.create = function create(properties) { - return new MetricResult(properties); - }; - - /** - * Encodes the specified MetricResult message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - return writer; - }; - - /** - * Encodes the specified MetricResult message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricResult.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricResult} message MetricResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetricResult message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = reader.double(); - break; - } - case 2: { - message.error = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetricResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetricResult message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - return null; - }; - - /** - * Creates a MetricResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} MetricResult - */ - MetricResult.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricResult(); - if (object.value != null) - message.value = Number(object.value); - if (object.error != null) - message.error = String(object.error); - return message; - }; - - /** - * Creates a plain object from a MetricResult message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricResult} message MetricResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.value = 0; - object.error = ""; - } - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - return object; - }; - - /** - * Converts this MetricResult to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @instance - * @returns {Object.} JSON object - */ - MetricResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MetricResult - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricResult"; - }; - - return MetricResult; - })(); - - GetThrottlerStatusResponse.MetricHealth = (function() { - - /** - * Properties of a MetricHealth. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IMetricHealth - * @property {vttime.ITime|null} [last_healthy_at] MetricHealth last_healthy_at - * @property {number|Long|null} [seconds_since_last_healthy] MetricHealth seconds_since_last_healthy - */ - - /** - * Constructs a new MetricHealth. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a MetricHealth. - * @implements IMetricHealth - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set - */ - function MetricHealth(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetricHealth last_healthy_at. - * @member {vttime.ITime|null|undefined} last_healthy_at - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - */ - MetricHealth.prototype.last_healthy_at = null; - - /** - * MetricHealth seconds_since_last_healthy. - * @member {number|Long} seconds_since_last_healthy - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - */ - MetricHealth.prototype.seconds_since_last_healthy = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new MetricHealth instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth instance - */ - MetricHealth.create = function create(properties) { - return new MetricHealth(properties); - }; - - /** - * Encodes the specified MetricHealth message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricHealth.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last_healthy_at != null && Object.hasOwnProperty.call(message, "last_healthy_at")) - $root.vttime.Time.encode(message.last_healthy_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.seconds_since_last_healthy != null && Object.hasOwnProperty.call(message, "seconds_since_last_healthy")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.seconds_since_last_healthy); - return writer; - }; - - /** - * Encodes the specified MetricHealth message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IMetricHealth} message MetricHealth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricHealth.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MetricHealth message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricHealth.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.last_healthy_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.seconds_since_last_healthy = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MetricHealth message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricHealth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MetricHealth message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricHealth.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) { - let error = $root.vttime.Time.verify(message.last_healthy_at); - if (error) - return "last_healthy_at." + error; - } - if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) - if (!$util.isInteger(message.seconds_since_last_healthy) && !(message.seconds_since_last_healthy && $util.isInteger(message.seconds_since_last_healthy.low) && $util.isInteger(message.seconds_since_last_healthy.high))) - return "seconds_since_last_healthy: integer|Long expected"; - return null; - }; - - /** - * Creates a MetricHealth message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} MetricHealth - */ - MetricHealth.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth(); - if (object.last_healthy_at != null) { - if (typeof object.last_healthy_at !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth.last_healthy_at: object expected"); - message.last_healthy_at = $root.vttime.Time.fromObject(object.last_healthy_at); - } - if (object.seconds_since_last_healthy != null) - if ($util.Long) - (message.seconds_since_last_healthy = $util.Long.fromValue(object.seconds_since_last_healthy)).unsigned = false; - else if (typeof object.seconds_since_last_healthy === "string") - message.seconds_since_last_healthy = parseInt(object.seconds_since_last_healthy, 10); - else if (typeof object.seconds_since_last_healthy === "number") - message.seconds_since_last_healthy = object.seconds_since_last_healthy; - else if (typeof object.seconds_since_last_healthy === "object") - message.seconds_since_last_healthy = new $util.LongBits(object.seconds_since_last_healthy.low >>> 0, object.seconds_since_last_healthy.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a MetricHealth message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth} message MetricHealth - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricHealth.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.last_healthy_at = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds_since_last_healthy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds_since_last_healthy = options.longs === String ? "0" : 0; - } - if (message.last_healthy_at != null && message.hasOwnProperty("last_healthy_at")) - object.last_healthy_at = $root.vttime.Time.toObject(message.last_healthy_at, options); - if (message.seconds_since_last_healthy != null && message.hasOwnProperty("seconds_since_last_healthy")) - if (typeof message.seconds_since_last_healthy === "number") - object.seconds_since_last_healthy = options.longs === String ? String(message.seconds_since_last_healthy) : message.seconds_since_last_healthy; - else - object.seconds_since_last_healthy = options.longs === String ? $util.Long.prototype.toString.call(message.seconds_since_last_healthy) : options.longs === Number ? new $util.LongBits(message.seconds_since_last_healthy.low >>> 0, message.seconds_since_last_healthy.high >>> 0).toNumber() : message.seconds_since_last_healthy; - return object; - }; - - /** - * Converts this MetricHealth to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @instance - * @returns {Object.} JSON object - */ - MetricHealth.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MetricHealth - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetricHealth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.MetricHealth"; - }; - - return MetricHealth; - })(); - - GetThrottlerStatusResponse.RecentApp = (function() { - - /** - * Properties of a RecentApp. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @interface IRecentApp - * @property {vttime.ITime|null} [checked_at] RecentApp checked_at - * @property {number|null} [status_code] RecentApp status_code - * @property {tabletmanagerdata.CheckThrottlerResponseCode|null} [response_code] RecentApp response_code - */ - - /** - * Constructs a new RecentApp. - * @memberof tabletmanagerdata.GetThrottlerStatusResponse - * @classdesc Represents a RecentApp. - * @implements IRecentApp - * @constructor - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set - */ - function RecentApp(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RecentApp checked_at. - * @member {vttime.ITime|null|undefined} checked_at - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - */ - RecentApp.prototype.checked_at = null; - - /** - * RecentApp status_code. - * @member {number} status_code - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - */ - RecentApp.prototype.status_code = 0; - - /** - * RecentApp response_code. - * @member {tabletmanagerdata.CheckThrottlerResponseCode} response_code - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - */ - RecentApp.prototype.response_code = 0; - - /** - * Creates a new RecentApp instance using the specified properties. - * @function create - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp=} [properties] Properties to set - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp instance - */ - RecentApp.create = function create(properties) { - return new RecentApp(properties); - }; - - /** - * Encodes the specified RecentApp message. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @function encode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecentApp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.checked_at != null && Object.hasOwnProperty.call(message, "checked_at")) - $root.vttime.Time.encode(message.checked_at, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status_code != null && Object.hasOwnProperty.call(message, "status_code")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status_code); - if (message.response_code != null && Object.hasOwnProperty.call(message, "response_code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.response_code); - return writer; - }; - - /** - * Encodes the specified RecentApp message, length delimited. Does not implicitly {@link tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.verify|verify} messages. - * @function encodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.IRecentApp} message RecentApp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecentApp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RecentApp message from the specified reader or buffer. - * @function decode - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecentApp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.checked_at = $root.vttime.Time.decode(reader, reader.uint32()); - break; - } - case 2: { - message.status_code = reader.int32(); - break; - } - case 3: { - message.response_code = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecentApp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecentApp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecentApp message. - * @function verify - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecentApp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.checked_at != null && message.hasOwnProperty("checked_at")) { - let error = $root.vttime.Time.verify(message.checked_at); - if (error) - return "checked_at." + error; - } - if (message.status_code != null && message.hasOwnProperty("status_code")) - if (!$util.isInteger(message.status_code)) - return "status_code: integer expected"; - if (message.response_code != null && message.hasOwnProperty("response_code")) - switch (message.response_code) { - default: - return "response_code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * Creates a RecentApp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {Object.} object Plain object - * @returns {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} RecentApp - */ - RecentApp.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp) - return object; - let message = new $root.tabletmanagerdata.GetThrottlerStatusResponse.RecentApp(); - if (object.checked_at != null) { - if (typeof object.checked_at !== "object") - throw TypeError(".tabletmanagerdata.GetThrottlerStatusResponse.RecentApp.checked_at: object expected"); - message.checked_at = $root.vttime.Time.fromObject(object.checked_at); - } - if (object.status_code != null) - message.status_code = object.status_code | 0; - switch (object.response_code) { - default: - if (typeof object.response_code === "number") { - message.response_code = object.response_code; - break; - } - break; - case "UNDEFINED": - case 0: - message.response_code = 0; - break; - case "OK": - case 1: - message.response_code = 1; - break; - case "THRESHOLD_EXCEEDED": - case 2: - message.response_code = 2; - break; - case "APP_DENIED": - case 3: - message.response_code = 3; - break; - case "UNKNOWN_METRIC": - case 4: - message.response_code = 4; - break; - case "INTERNAL_ERROR": - case 5: - message.response_code = 5; - break; - } - return message; - }; - - /** - * Creates a plain object from a RecentApp message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {tabletmanagerdata.GetThrottlerStatusResponse.RecentApp} message RecentApp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecentApp.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.checked_at = null; - object.status_code = 0; - object.response_code = options.enums === String ? "UNDEFINED" : 0; - } - if (message.checked_at != null && message.hasOwnProperty("checked_at")) - object.checked_at = $root.vttime.Time.toObject(message.checked_at, options); - if (message.status_code != null && message.hasOwnProperty("status_code")) - object.status_code = message.status_code; - if (message.response_code != null && message.hasOwnProperty("response_code")) - object.response_code = options.enums === String ? $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] === undefined ? message.response_code : $root.tabletmanagerdata.CheckThrottlerResponseCode[message.response_code] : message.response_code; - return object; - }; - - /** - * Converts this RecentApp to JSON. - * @function toJSON - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @instance - * @returns {Object.} JSON object - */ - RecentApp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RecentApp - * @function getTypeUrl - * @memberof tabletmanagerdata.GetThrottlerStatusResponse.RecentApp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecentApp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.GetThrottlerStatusResponse.RecentApp"; - }; - - return RecentApp; - })(); - - return GetThrottlerStatusResponse; - })(); - tabletmanagerdata.ChangeTagsRequest = (function() { /** @@ -60193,7 +55320,7 @@ $root.tabletmanagerdata = (function() { function ChangeTagsRequest(properties) { this.tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -60239,7 +55366,7 @@ $root.tabletmanagerdata = (function() { if (!writer) writer = $Writer.create(); if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replace); @@ -60273,37 +55400,35 @@ $root.tabletmanagerdata = (function() { ChangeTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.tags[key] = value; - break; - } - case 2: { - message.replace = reader.bool(); - break; } + message.tags[key] = value; + break; + case 2: + message.replace = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -60342,8 +55467,8 @@ $root.tabletmanagerdata = (function() { if (message.tags != null && message.hasOwnProperty("tags")) { if (!$util.isObject(message.tags)) return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } @@ -60364,12 +55489,12 @@ $root.tabletmanagerdata = (function() { ChangeTagsRequest.fromObject = function fromObject(object) { if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) return object; - let message = new $root.tabletmanagerdata.ChangeTagsRequest(); + var message = new $root.tabletmanagerdata.ChangeTagsRequest(); if (object.tags) { if (typeof object.tags !== "object") throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } if (object.replace != null) @@ -60389,15 +55514,15 @@ $root.tabletmanagerdata = (function() { ChangeTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) object.tags = {}; if (options.defaults) object.replace = false; - let keys2; + var keys2; if (message.tags && (keys2 = Object.keys(message.tags)).length) { object.tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.tags[keys2[j]] = message.tags[keys2[j]]; } if (message.replace != null && message.hasOwnProperty("replace")) @@ -60416,21 +55541,6 @@ $root.tabletmanagerdata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTagsRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; - }; - return ChangeTagsRequest; })(); @@ -60454,7 +55564,7 @@ $root.tabletmanagerdata = (function() { function ChangeTagsResponse(properties) { this.tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -60492,7 +55602,7 @@ $root.tabletmanagerdata = (function() { if (!writer) writer = $Writer.create(); if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; @@ -60524,33 +55634,32 @@ $root.tabletmanagerdata = (function() { ChangeTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.tags[key] = value; - break; } + message.tags[key] = value; + break; default: reader.skipType(tag & 7); break; @@ -60589,8 +55698,8 @@ $root.tabletmanagerdata = (function() { if (message.tags != null && message.hasOwnProperty("tags")) { if (!$util.isObject(message.tags)) return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } @@ -60608,12 +55717,12 @@ $root.tabletmanagerdata = (function() { ChangeTagsResponse.fromObject = function fromObject(object) { if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) return object; - let message = new $root.tabletmanagerdata.ChangeTagsResponse(); + var message = new $root.tabletmanagerdata.ChangeTagsResponse(); if (object.tags) { if (typeof object.tags !== "object") throw TypeError(".tabletmanagerdata.ChangeTagsResponse.tags: object expected"); message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } return message; @@ -60631,13 +55740,13 @@ $root.tabletmanagerdata = (function() { ChangeTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) object.tags = {}; - let keys2; + var keys2; if (message.tags && (keys2 = Object.keys(message.tags)).length) { object.tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.tags[keys2[j]] = message.tags[keys2[j]]; } return object; @@ -60654,25 +55763,9 @@ $root.tabletmanagerdata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTagsResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; - }; - return ChangeTagsResponse; })(); ->>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) return tabletmanagerdata; })(); @@ -91346,483 +86439,6 @@ $root.vtctldata = (function() { return BackupShardRequest; })(); -<<<<<<< HEAD -======= - vtctldata.CancelSchemaMigrationRequest = (function() { - - /** - * Properties of a CancelSchemaMigrationRequest. - * @memberof vtctldata - * @interface ICancelSchemaMigrationRequest - * @property {string|null} [keyspace] CancelSchemaMigrationRequest keyspace - * @property {string|null} [uuid] CancelSchemaMigrationRequest uuid - */ - - /** - * Constructs a new CancelSchemaMigrationRequest. - * @memberof vtctldata - * @classdesc Represents a CancelSchemaMigrationRequest. - * @implements ICancelSchemaMigrationRequest - * @constructor - * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set - */ - function CancelSchemaMigrationRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CancelSchemaMigrationRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.CancelSchemaMigrationRequest - * @instance - */ - CancelSchemaMigrationRequest.prototype.keyspace = ""; - - /** - * CancelSchemaMigrationRequest uuid. - * @member {string} uuid - * @memberof vtctldata.CancelSchemaMigrationRequest - * @instance - */ - CancelSchemaMigrationRequest.prototype.uuid = ""; - - /** - * Creates a new CancelSchemaMigrationRequest instance using the specified properties. - * @function create - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {vtctldata.ICancelSchemaMigrationRequest=} [properties] Properties to set - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest instance - */ - CancelSchemaMigrationRequest.create = function create(properties) { - return new CancelSchemaMigrationRequest(properties); - }; - - /** - * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CancelSchemaMigrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.uuid != null && Object.hasOwnProperty.call(message, "uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uuid); - return writer; - }; - - /** - * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {vtctldata.ICancelSchemaMigrationRequest} message CancelSchemaMigrationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CancelSchemaMigrationRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelSchemaMigrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyspace = reader.string(); - break; - } - case 2: { - message.uuid = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelSchemaMigrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CancelSchemaMigrationRequest message. - * @function verify - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CancelSchemaMigrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.uuid != null && message.hasOwnProperty("uuid")) - if (!$util.isString(message.uuid)) - return "uuid: string expected"; - return null; - }; - - /** - * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.CancelSchemaMigrationRequest} CancelSchemaMigrationRequest - */ - CancelSchemaMigrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CancelSchemaMigrationRequest) - return object; - let message = new $root.vtctldata.CancelSchemaMigrationRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.uuid != null) - message.uuid = String(object.uuid); - return message; - }; - - /** - * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {vtctldata.CancelSchemaMigrationRequest} message CancelSchemaMigrationRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CancelSchemaMigrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.keyspace = ""; - object.uuid = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.uuid != null && message.hasOwnProperty("uuid")) - object.uuid = message.uuid; - return object; - }; - - /** - * Converts this CancelSchemaMigrationRequest to JSON. - * @function toJSON - * @memberof vtctldata.CancelSchemaMigrationRequest - * @instance - * @returns {Object.} JSON object - */ - CancelSchemaMigrationRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CancelSchemaMigrationRequest - * @function getTypeUrl - * @memberof vtctldata.CancelSchemaMigrationRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CancelSchemaMigrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationRequest"; - }; - - return CancelSchemaMigrationRequest; - })(); - - vtctldata.CancelSchemaMigrationResponse = (function() { - - /** - * Properties of a CancelSchemaMigrationResponse. - * @memberof vtctldata - * @interface ICancelSchemaMigrationResponse - * @property {Object.|null} [rows_affected_by_shard] CancelSchemaMigrationResponse rows_affected_by_shard - */ - - /** - * Constructs a new CancelSchemaMigrationResponse. - * @memberof vtctldata - * @classdesc Represents a CancelSchemaMigrationResponse. - * @implements ICancelSchemaMigrationResponse - * @constructor - * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set - */ - function CancelSchemaMigrationResponse(properties) { - this.rows_affected_by_shard = {}; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CancelSchemaMigrationResponse rows_affected_by_shard. - * @member {Object.} rows_affected_by_shard - * @memberof vtctldata.CancelSchemaMigrationResponse - * @instance - */ - CancelSchemaMigrationResponse.prototype.rows_affected_by_shard = $util.emptyObject; - - /** - * Creates a new CancelSchemaMigrationResponse instance using the specified properties. - * @function create - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {vtctldata.ICancelSchemaMigrationResponse=} [properties] Properties to set - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse instance - */ - CancelSchemaMigrationResponse.create = function create(properties) { - return new CancelSchemaMigrationResponse(properties); - }; - - /** - * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CancelSchemaMigrationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rows_affected_by_shard != null && Object.hasOwnProperty.call(message, "rows_affected_by_shard")) - for (let keys = Object.keys(message.rows_affected_by_shard), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected_by_shard[keys[i]]).ldelim(); - return writer; - }; - - /** - * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {vtctldata.ICancelSchemaMigrationResponse} message CancelSchemaMigrationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CancelSchemaMigrationResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelSchemaMigrationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.CancelSchemaMigrationResponse(), key, value; - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.rows_affected_by_shard === $util.emptyObject) - message.rows_affected_by_shard = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.uint64(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.rows_affected_by_shard[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelSchemaMigrationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CancelSchemaMigrationResponse message. - * @function verify - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CancelSchemaMigrationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rows_affected_by_shard != null && message.hasOwnProperty("rows_affected_by_shard")) { - if (!$util.isObject(message.rows_affected_by_shard)) - return "rows_affected_by_shard: object expected"; - let key = Object.keys(message.rows_affected_by_shard); - for (let i = 0; i < key.length; ++i) - if (!$util.isInteger(message.rows_affected_by_shard[key[i]]) && !(message.rows_affected_by_shard[key[i]] && $util.isInteger(message.rows_affected_by_shard[key[i]].low) && $util.isInteger(message.rows_affected_by_shard[key[i]].high))) - return "rows_affected_by_shard: integer|Long{k:string} expected"; - } - return null; - }; - - /** - * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.CancelSchemaMigrationResponse} CancelSchemaMigrationResponse - */ - CancelSchemaMigrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.CancelSchemaMigrationResponse) - return object; - let message = new $root.vtctldata.CancelSchemaMigrationResponse(); - if (object.rows_affected_by_shard) { - if (typeof object.rows_affected_by_shard !== "object") - throw TypeError(".vtctldata.CancelSchemaMigrationResponse.rows_affected_by_shard: object expected"); - message.rows_affected_by_shard = {}; - for (let keys = Object.keys(object.rows_affected_by_shard), i = 0; i < keys.length; ++i) - if ($util.Long) - (message.rows_affected_by_shard[keys[i]] = $util.Long.fromValue(object.rows_affected_by_shard[keys[i]])).unsigned = true; - else if (typeof object.rows_affected_by_shard[keys[i]] === "string") - message.rows_affected_by_shard[keys[i]] = parseInt(object.rows_affected_by_shard[keys[i]], 10); - else if (typeof object.rows_affected_by_shard[keys[i]] === "number") - message.rows_affected_by_shard[keys[i]] = object.rows_affected_by_shard[keys[i]]; - else if (typeof object.rows_affected_by_shard[keys[i]] === "object") - message.rows_affected_by_shard[keys[i]] = new $util.LongBits(object.rows_affected_by_shard[keys[i]].low >>> 0, object.rows_affected_by_shard[keys[i]].high >>> 0).toNumber(true); - } - return message; - }; - - /** - * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {vtctldata.CancelSchemaMigrationResponse} message CancelSchemaMigrationResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CancelSchemaMigrationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.rows_affected_by_shard = {}; - let keys2; - if (message.rows_affected_by_shard && (keys2 = Object.keys(message.rows_affected_by_shard)).length) { - object.rows_affected_by_shard = {}; - for (let j = 0; j < keys2.length; ++j) - if (typeof message.rows_affected_by_shard[keys2[j]] === "number") - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? String(message.rows_affected_by_shard[keys2[j]]) : message.rows_affected_by_shard[keys2[j]]; - else - object.rows_affected_by_shard[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected_by_shard[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.rows_affected_by_shard[keys2[j]].low >>> 0, message.rows_affected_by_shard[keys2[j]].high >>> 0).toNumber(true) : message.rows_affected_by_shard[keys2[j]]; - } - return object; - }; - - /** - * Converts this CancelSchemaMigrationResponse to JSON. - * @function toJSON - * @memberof vtctldata.CancelSchemaMigrationResponse - * @instance - * @returns {Object.} JSON object - */ - CancelSchemaMigrationResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CancelSchemaMigrationResponse - * @function getTypeUrl - * @memberof vtctldata.CancelSchemaMigrationResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CancelSchemaMigrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.CancelSchemaMigrationResponse"; - }; - - return CancelSchemaMigrationResponse; - })(); - vtctldata.ChangeTabletTagsRequest = (function() { /** @@ -91845,7 +86461,7 @@ $root.vtctldata = (function() { function ChangeTabletTagsRequest(properties) { this.tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -91901,7 +86517,7 @@ $root.vtctldata = (function() { if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); @@ -91935,41 +86551,38 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.tags[key] = value; - break; - } - case 3: { - message.replace = reader.bool(); - break; } + message.tags[key] = value; + break; + case 3: + message.replace = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -92006,15 +86619,15 @@ $root.vtctldata = (function() { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) return "tablet_alias." + error; } if (message.tags != null && message.hasOwnProperty("tags")) { if (!$util.isObject(message.tags)) return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } @@ -92035,7 +86648,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) return object; - let message = new $root.vtctldata.ChangeTabletTagsRequest(); + var message = new $root.vtctldata.ChangeTabletTagsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); @@ -92045,7 +86658,7 @@ $root.vtctldata = (function() { if (typeof object.tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } if (object.replace != null) @@ -92065,7 +86678,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) object.tags = {}; if (options.defaults) { @@ -92074,10 +86687,10 @@ $root.vtctldata = (function() { } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - let keys2; + var keys2; if (message.tags && (keys2 = Object.keys(message.tags)).length) { object.tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.tags[keys2[j]] = message.tags[keys2[j]]; } if (message.replace != null && message.hasOwnProperty("replace")) @@ -92096,21 +86709,6 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTabletTagsRequest - * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTabletTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsRequest"; - }; - return ChangeTabletTagsRequest; })(); @@ -92136,7 +86734,7 @@ $root.vtctldata = (function() { this.before_tags = {}; this.after_tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -92182,10 +86780,10 @@ $root.vtctldata = (function() { if (!writer) writer = $Writer.create(); if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) - for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) - for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; @@ -92217,56 +86815,54 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.before_tags === $util.emptyObject) - message.before_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.before_tags[key] = value; - break; } - case 2: { - if (message.after_tags === $util.emptyObject) - message.after_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + message.before_tags[key] = value; + break; + case 2: + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.after_tags[key] = value; - break; } + message.after_tags[key] = value; + break; default: reader.skipType(tag & 7); break; @@ -92305,16 +86901,16 @@ $root.vtctldata = (function() { if (message.before_tags != null && message.hasOwnProperty("before_tags")) { if (!$util.isObject(message.before_tags)) return "before_tags: object expected"; - let key = Object.keys(message.before_tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.before_tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.before_tags[key[i]])) return "before_tags: string{k:string} expected"; } if (message.after_tags != null && message.hasOwnProperty("after_tags")) { if (!$util.isObject(message.after_tags)) return "after_tags: object expected"; - let key = Object.keys(message.after_tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.after_tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.after_tags[key[i]])) return "after_tags: string{k:string} expected"; } @@ -92332,19 +86928,19 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) return object; - let message = new $root.vtctldata.ChangeTabletTagsResponse(); + var message = new $root.vtctldata.ChangeTabletTagsResponse(); if (object.before_tags) { if (typeof object.before_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); message.before_tags = {}; - for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); } if (object.after_tags) { if (typeof object.after_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); message.after_tags = {}; - for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); } return message; @@ -92362,20 +86958,20 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) { object.before_tags = {}; object.after_tags = {}; } - let keys2; + var keys2; if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { object.before_tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; } if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { object.after_tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; } return object; @@ -92392,25 +86988,9 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTabletTagsResponse - * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTabletTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsResponse"; - }; - return ChangeTabletTagsResponse; })(); ->>>>>>> c96c95aa73 (Add `ChangeTabletTags`/`ChangeTags` RPCs) vtctldata.ChangeTabletTypeRequest = (function() { /** From 2ba88965400567ac85aa331967c5722ad94b9552 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Mon, 30 Sep 2024 19:20:22 +0200 Subject: [PATCH 4/9] another v15 tweak Signed-off-by: Tim Vaillancourt --- go/vt/vtctl/grpcvtctldserver/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 6f4d6f933a0..65de7cb9437 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -1146,6 +1146,8 @@ func TestChangeTabletTags(t *testing.T) { } for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { t.Parallel() From f13d5ef5c47509231313fef192b8ad641f49ceab Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 14:47:47 +0200 Subject: [PATCH 5/9] add `publishForDisplay` call Signed-off-by: Tim Vaillancourt --- go/vt/vttablet/tabletmanager/tm_state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/vt/vttablet/tabletmanager/tm_state.go b/go/vt/vttablet/tabletmanager/tm_state.go index 60e86520363..b2eb41b42e1 100644 --- a/go/vt/vttablet/tabletmanager/tm_state.go +++ b/go/vt/vttablet/tabletmanager/tm_state.go @@ -244,6 +244,7 @@ func (ts *tmState) ChangeTabletTags(ctx context.Context, tabletTags map[string]s ts.tablet.Tags = tabletTags ts.publishStateLocked(ctx) + ts.publishForDisplay() setTabletTagsStats(tabletTags) } From ea2d44491c2b9a6909a55a488347bf7cb6f834b5 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 20:14:17 +0200 Subject: [PATCH 6/9] Add `ChangeTabletTags`/`ChangeTags` RPCs Signed-off-by: Tim Vaillancourt --- go/cmd/vtctldclient/cli/tablets_test.go | 16 + go/vt/topotools/tablet.go | 18 +- go/vt/vtcombo/tablet_map.go | 10 +- go/vt/vtctl/grpcvtctldserver/server.go | 6 +- go/vt/vtctl/grpcvtctldserver/server_test.go | 200 + .../testutil/test_tmclient.go | 27 +- go/vt/vttablet/faketmclient/fake_client.go | 5 +- go/vt/vttablet/grpctmclient/client.go | 8 +- go/vt/vttablet/grpctmserver/server.go | 4 +- go/vt/vttablet/tabletmanager/tm_init.go | 6 +- go/vt/vttablet/tabletmanager/tm_state.go | 2 +- go/vt/vttablet/tmclient/rpc_client_api.go | 2 +- web/vtadmin/src/proto/vtadmin.d.ts | 39597 ++++++++++++++++ web/vtadmin/src/proto/vtadmin.js | 30361 ++++++------ 14 files changed, 55590 insertions(+), 14672 deletions(-) diff --git a/go/cmd/vtctldclient/cli/tablets_test.go b/go/cmd/vtctldclient/cli/tablets_test.go index 504cc0dc9f1..4e5a7f74df5 100644 --- a/go/cmd/vtctldclient/cli/tablets_test.go +++ b/go/cmd/vtctldclient/cli/tablets_test.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Vitess Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/go/vt/topotools/tablet.go b/go/vt/topotools/tablet.go index fe1455d913b..002a9e21ad0 100644 --- a/go/vt/topotools/tablet.go +++ b/go/vt/topotools/tablet.go @@ -78,25 +78,33 @@ func isMapsEqual(a, b map[string]string) bool { // transitions need to be forced from time to time. // // If successful, the updated tablet record is returned. -func ChangeTags(ctx context.Context, ts *topo.Server, tabletAlias *topodatapb.TabletAlias, tabletTags map[string]string, replace bool) (map[string]string, error) { - var result map[string]string +func ChangeTags(ctx context.Context, ts *topo.Server, tabletAlias *topodatapb.TabletAlias, tabletTags map[string]string, replace bool) (*topodatapb.Tablet, error) { + var result *topodatapb.Tablet _, err := ts.UpdateTabletFields(ctx, tabletAlias, func(tablet *topodatapb.Tablet) error { if replace && isMapsEqual(tablet.Tags, tabletTags) { - result = tablet.Tags + result = tablet return topo.NewError(topo.NoUpdateNeeded, topoproto.TabletAliasString(tabletAlias)) } if replace || tablet.Tags == nil { tablet.Tags = tabletTags } else { + var doUpdate bool for key, val := range tabletTags { if val == "" { delete(tablet.Tags, key) + doUpdate = true continue } - tablet.Tags[key] = val + if tablet.Tags[key] != val { + tablet.Tags[key] = val + doUpdate = true + } + } + if !doUpdate { + return topo.NewError(topo.NoUpdateNeeded, topoproto.TabletAliasString(tabletAlias)) } } - result = tablet.Tags + result = tablet return nil }) if err != nil { diff --git a/go/vt/vtcombo/tablet_map.go b/go/vt/vtcombo/tablet_map.go index e0534a1c651..2aaef853e97 100644 --- a/go/vt/vtcombo/tablet_map.go +++ b/go/vt/vtcombo/tablet_map.go @@ -764,12 +764,18 @@ func (itmc *internalTabletManagerClient) SetReadWrite(ctx context.Context, table return fmt.Errorf("not implemented in vtcombo") } -func (itmc *internalTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { +func (itmc *internalTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (*tabletmanagerdatapb.ChangeTagsResponse, error) { t, ok := tabletMap[tablet.Alias.Uid] if !ok { return nil, fmt.Errorf("tmclient: cannot find tablet %v", tablet.Alias.Uid) } - return t.tm.ChangeTags(ctx, tabletTags, replace) + afterTags, err := t.tm.ChangeTags(ctx, tabletTags, replace) + if err != nil { + return nil, err + } + return &tabletmanagerdatapb.ChangeTagsResponse{ + Tags: afterTags, + }, nil } func (itmc *internalTabletManagerClient) ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error { diff --git a/go/vt/vtctl/grpcvtctldserver/server.go b/go/vt/vtctl/grpcvtctldserver/server.go index 73bddbdcc85..33611795f8c 100644 --- a/go/vt/vtctl/grpcvtctldserver/server.go +++ b/go/vt/vtctl/grpcvtctldserver/server.go @@ -518,16 +518,16 @@ func (s *VtctldServer) ChangeTabletTags(ctx context.Context, req *vtctldatapb.Ch span.Annotate("before_tablet_tags", tablet.Tags) - afterTags, err := s.tmc.ChangeTags(ctx, tablet.Tablet, req.Tags, req.Replace) + changeTagsResp, err := s.tmc.ChangeTags(ctx, tablet.Tablet, req.Tags, req.Replace) if err != nil { return nil, err } - span.Annotate("after_tablet_tags", afterTags) + span.Annotate("after_tablet_tags", changeTagsResp.Tags) return &vtctldatapb.ChangeTabletTagsResponse{ BeforeTags: tablet.Tags, - AfterTags: afterTags, + AfterTags: changeTagsResp.Tags, }, nil } diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 65de7cb9437..3e1c0369698 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -1213,6 +1213,206 @@ func TestChangeTabletTags(t *testing.T) { }) } +func TestChangeTabletTags(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + cells []string + tablet *topodatapb.Tablet + req *vtctldatapb.ChangeTabletTagsRequest + expected *vtctldatapb.ChangeTabletTagsResponse + shouldErr bool + }{ + { + name: "success", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + AfterTags: map[string]string{ + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "success with existing", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Tags: map[string]string{ + "delete": "me", + "hello": "world!", + }, + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "delete": "", + "test": t.Name(), + }, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + BeforeTags: map[string]string{ + "delete": "me", + "hello": "world!", + }, + AfterTags: map[string]string{ + "hello": "world!", + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "success with replace", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Tags: map[string]string{ + "hello": "world!", + }, + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + Replace: true, + }, + expected: &vtctldatapb.ChangeTabletTagsResponse{ + BeforeTags: map[string]string{ + "hello": "world!", + }, + AfterTags: map[string]string{ + "test": t.Name(), + }, + }, + shouldErr: false, + }, + { + name: "tablet not found", + cells: []string{"zone1"}, + tablet: &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 200, + }, + Keyspace: "ks", + Shard: "0", + }, + req: &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }, + expected: nil, + shouldErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + ts := memorytopo.NewServer(ctx, tt.cells...) + vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ + TopoServer: ts, + }, func(ts *topo.Server) vtctlservicepb.VtctldServer { + return NewVtctldServer(vtenv.NewTestEnv(), ts) + }) + + testutil.AddTablets(ctx, t, ts, &testutil.AddTabletOptions{ + AlsoSetShardPrimary: true, + }, tt.tablet) + + resp, err := vtctld.ChangeTabletTags(ctx, tt.req) + if tt.shouldErr { + assert.Error(t, err) + return + } + assert.NoError(t, err) + utils.MustMatch(t, tt.expected, resp) + + tablet, err := ts.GetTablet(ctx, tt.req.TabletAlias) + assert.NoError(t, err) + utils.MustMatch(t, resp.AfterTags, tablet.Tags) + }) + } + + t.Run("tabletmanager failure", func(t *testing.T) { + t.Parallel() + + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + ts := memorytopo.NewServer(ctx, "zone1") + vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ + TopoServer: nil, + }, func(ts *topo.Server) vtctlservicepb.VtctldServer { + return NewVtctldServer(vtenv.NewTestEnv(), ts) + }) + + testutil.AddTablet(ctx, t, ts, &topodatapb.Tablet{ + Alias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Keyspace: "ks", + Shard: "0", + Type: topodatapb.TabletType_REPLICA, + }, nil) + + _, err := vtctld.ChangeTabletTags(ctx, &vtctldatapb.ChangeTabletTagsRequest{ + TabletAlias: &topodatapb.TabletAlias{ + Cell: "zone1", + Uid: 100, + }, + Tags: map[string]string{ + "test": t.Name(), + }, + }) + assert.Error(t, err) + }) +} + func TestChangeTabletType(t *testing.T) { t.Parallel() diff --git a/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go b/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go index 280c4e7f13e..73afbc03b15 100644 --- a/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go +++ b/go/vt/vtctl/grpcvtctldserver/testutil/test_tmclient.go @@ -185,11 +185,11 @@ type TabletManagerClient struct { ErrorAfter time.Duration } // keyed by tablet alias. - ChangeTabletTagsResult map[string]struct { - Tags map[string]string - Error error + ChangeTagsResult map[string]struct { + Response *tabletmanagerdatapb.ChangeTagsResponse + Error error } - ChangeTabletTagsDelays map[string]time.Duration + ChangeTagsDelays map[string]time.Duration ChangeTabletTypeResult map[string]error // keyed by tablet alias. DemotePrimaryDelays map[string]time.Duration @@ -449,11 +449,11 @@ func (fake *TabletManagerClient) Backup(ctx context.Context, tablet *topodatapb. } // ChangeTags is part of the tmclient.TabletManagerClient interface. -func (fake *TabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { +func (fake *TabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (*tabletmanagerdatapb.ChangeTagsResponse, error) { key := topoproto.TabletAliasString(tablet.Alias) - if fake.ChangeTabletTagsDelays != nil { - if delay, ok := fake.ChangeTabletTagsDelays[key]; ok { + if fake.ChangeTagsDelays != nil { + if delay, ok := fake.ChangeTagsDelays[key]; ok { select { case <-ctx.Done(): return nil, ctx.Err() @@ -463,15 +463,22 @@ func (fake *TabletManagerClient) ChangeTags(ctx context.Context, tablet *topodat } } - if result, ok := fake.ChangeTabletTagsResult[key]; ok { - return result.Tags, result.Error + if result, ok := fake.ChangeTagsResult[key]; ok { + return result.Response, result.Error } if fake.TopoServer == nil { return nil, assert.AnError } - return topotools.ChangeTags(ctx, fake.TopoServer, tablet.Alias, tabletTags, replace) + tablet, err := topotools.ChangeTags(ctx, fake.TopoServer, tablet.Alias, tabletTags, replace) + if err != nil { + return nil, err + } + + return &tabletmanagerdatapb.ChangeTagsResponse{ + Tags: tablet.Tags, + }, nil } // ChangeType is part of the tmclient.TabletManagerClient interface. diff --git a/go/vt/vttablet/faketmclient/fake_client.go b/go/vt/vttablet/faketmclient/fake_client.go index 224b04fefbe..9da1f29a5e5 100644 --- a/go/vt/vttablet/faketmclient/fake_client.go +++ b/go/vt/vttablet/faketmclient/fake_client.go @@ -35,6 +35,7 @@ import ( logutilpb "vitess.io/vitess/go/vt/proto/logutil" querypb "vitess.io/vitess/go/vt/proto/query" replicationdatapb "vitess.io/vitess/go/vt/proto/replicationdata" + "vitess.io/vitess/go/vt/proto/tabletmanagerdata" tabletmanagerdatapb "vitess.io/vitess/go/vt/proto/tabletmanagerdata" topodatapb "vitess.io/vitess/go/vt/proto/topodata" ) @@ -121,8 +122,8 @@ func (client *FakeTabletManagerClient) SetReadWrite(ctx context.Context, tablet } // ChangeTags is part of the tmclient.TabletManagerClient interface. -func (client *FakeTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { - return map[string]string{}, nil +func (client *FakeTabletManagerClient) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (*tabletmanagerdata.ChangeTagsResponse, error) { + return &tabletmanagerdata.ChangeTagsResponse{}, nil } // ChangeType is part of the tmclient.TabletManagerClient interface. diff --git a/go/vt/vttablet/grpctmclient/client.go b/go/vt/vttablet/grpctmclient/client.go index 7a15db914f8..d144874211f 100644 --- a/go/vt/vttablet/grpctmclient/client.go +++ b/go/vt/vttablet/grpctmclient/client.go @@ -315,20 +315,16 @@ func (client *Client) SetReadWrite(ctx context.Context, tablet *topodatapb.Table } // ChangeTags is part of the tmclient.TabletManagerClient interface. -func (client *Client) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) { +func (client *Client) ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (*tabletmanagerdatapb.ChangeTagsResponse, error) { c, closer, err := client.dialer.dial(ctx, tablet) if err != nil { return nil, err } defer closer.Close() - resp, err := c.ChangeTags(ctx, &tabletmanagerdatapb.ChangeTagsRequest{ + return c.ChangeTags(ctx, &tabletmanagerdatapb.ChangeTagsRequest{ Tags: tabletTags, Replace: replace, }) - if err != nil { - return nil, err - } - return resp.Tags, nil } // ChangeType is part of the tmclient.TabletManagerClient interface. diff --git a/go/vt/vttablet/grpctmserver/server.go b/go/vt/vttablet/grpctmserver/server.go index fbee8e15aff..ac6a93cd022 100644 --- a/go/vt/vttablet/grpctmserver/server.go +++ b/go/vt/vttablet/grpctmserver/server.go @@ -121,9 +121,9 @@ func (s *server) SetReadWrite(ctx context.Context, request *tabletmanagerdatapb. func (s *server) ChangeTags(ctx context.Context, request *tabletmanagerdatapb.ChangeTagsRequest) (response *tabletmanagerdatapb.ChangeTagsResponse, err error) { defer s.tm.HandleRPCPanic(ctx, "ChangeTags", request, response, false /*verbose*/, &err) ctx = callinfo.GRPCCallInfo(ctx) - tags, err := s.tm.ChangeTags(ctx, request.Tags, request.Replace) + afterTags, err := s.tm.ChangeTags(ctx, request.Tags, request.Replace) return &tabletmanagerdatapb.ChangeTagsResponse{ - Tags: tags, + Tags: afterTags, }, err } diff --git a/go/vt/vttablet/tabletmanager/tm_init.go b/go/vt/vttablet/tabletmanager/tm_init.go index 468fb04884c..ab3b7f29b5d 100644 --- a/go/vt/vttablet/tabletmanager/tm_init.go +++ b/go/vt/vttablet/tabletmanager/tm_init.go @@ -353,9 +353,9 @@ func mergeTags(a, b map[string]string) map[string]string { return result } -func setTabletTagsStats(tabletTags map[string]string) { +func setTabletTagsStats(tablet *topodatapb.Tablet) { statsTabletTags.ResetAll() - for key, val := range tabletTags { + for key, val := range tablet.Tags { statsTabletTags.Set([]string{key, val}, 1) } } @@ -820,7 +820,7 @@ func (tm *TabletManager) exportStats() { statsKeyRangeEnd.Set(hex.EncodeToString(tablet.KeyRange.End)) } statsAlias.Set(topoproto.TabletAliasString(tablet.Alias)) - setTabletTagsStats(tablet.Tags) + setTabletTagsStats(tablet) } // withRetry will exponentially back off and retry a function upon diff --git a/go/vt/vttablet/tabletmanager/tm_state.go b/go/vt/vttablet/tabletmanager/tm_state.go index b2eb41b42e1..8753f697b95 100644 --- a/go/vt/vttablet/tabletmanager/tm_state.go +++ b/go/vt/vttablet/tabletmanager/tm_state.go @@ -245,7 +245,7 @@ func (ts *tmState) ChangeTabletTags(ctx context.Context, tabletTags map[string]s ts.tablet.Tags = tabletTags ts.publishStateLocked(ctx) ts.publishForDisplay() - setTabletTagsStats(tabletTags) + setTabletTagsStats(ts.tablet) } func (ts *tmState) SetMysqlPort(mport int32) { diff --git a/go/vt/vttablet/tmclient/rpc_client_api.go b/go/vt/vttablet/tmclient/rpc_client_api.go index 900a3e61727..abdd8e88e67 100644 --- a/go/vt/vttablet/tmclient/rpc_client_api.go +++ b/go/vt/vttablet/tmclient/rpc_client_api.go @@ -86,7 +86,7 @@ type TabletManagerClient interface { SetReadWrite(ctx context.Context, tablet *topodatapb.Tablet) error // ChangeTags asks the remote tablet to change its tags - ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (map[string]string, error) + ChangeTags(ctx context.Context, tablet *topodatapb.Tablet, tabletTags map[string]string, replace bool) (*tabletmanagerdatapb.ChangeTagsResponse, error) // ChangeType asks the remote tablet to change its type ChangeType(ctx context.Context, tablet *topodatapb.Tablet, dbType topodatapb.TabletType, semiSync bool) error diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index f15096829ab..fcaab0af166 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -51150,6 +51150,206 @@ export namespace vtctldata { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a ChangeTagsRequest. */ + interface IChangeTagsRequest { + + /** ChangeTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTagsRequest. */ + class ChangeTagsRequest implements IChangeTagsRequest { + + /** + * Constructs a new ChangeTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsRequest); + + /** ChangeTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsRequest instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; + + /** + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * @param message ChangeTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; + + /** + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; + + /** + * Verifies a ChangeTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsRequest + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; + + /** + * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTagsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTagsResponse. */ + interface IChangeTagsResponse { + + /** ChangeTagsResponse tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTagsResponse. */ + class ChangeTagsResponse implements IChangeTagsResponse { + + /** + * Constructs a new ChangeTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: tabletmanagerdata.IChangeTagsResponse); + + /** ChangeTagsResponse tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new ChangeTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTagsResponse instance + */ + public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; + + /** + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * @param message ChangeTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; + + /** + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; + + /** + * Verifies a ChangeTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTagsResponse + */ + public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; + + /** + * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTagsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace binlogdata. */ @@ -54351,5 +54551,39402 @@ export namespace binlogdata { * @returns JSON object */ public toJSON(): { [k: string]: any }; +<<<<<<< HEAD +======= + + /** + * Gets the default type url for VStreamResultsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace query. */ +export namespace query { + + /** Properties of a Target. */ + interface ITarget { + + /** Target keyspace */ + keyspace?: (string|null); + + /** Target shard */ + shard?: (string|null); + + /** Target tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** Target cell */ + cell?: (string|null); + } + + /** Represents a Target. */ + class Target implements ITarget { + + /** + * Constructs a new Target. + * @param [properties] Properties to set + */ + constructor(properties?: query.ITarget); + + /** Target keyspace. */ + public keyspace: string; + + /** Target shard. */ + public shard: string; + + /** Target tablet_type. */ + public tablet_type: topodata.TabletType; + + /** Target cell. */ + public cell: string; + + /** + * Creates a new Target instance using the specified properties. + * @param [properties] Properties to set + * @returns Target instance + */ + public static create(properties?: query.ITarget): query.Target; + + /** + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * @param message Target message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Target message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Target; + + /** + * Decodes a Target message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Target + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Target; + + /** + * Verifies a Target message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Target message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Target + */ + public static fromObject(object: { [k: string]: any }): query.Target; + + /** + * Creates a plain object from a Target message. Also converts values to other types if specified. + * @param message Target + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Target to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Target + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VTGateCallerID. */ + interface IVTGateCallerID { + + /** VTGateCallerID username */ + username?: (string|null); + + /** VTGateCallerID groups */ + groups?: (string[]|null); + } + + /** Represents a VTGateCallerID. */ + class VTGateCallerID implements IVTGateCallerID { + + /** + * Constructs a new VTGateCallerID. + * @param [properties] Properties to set + */ + constructor(properties?: query.IVTGateCallerID); + + /** VTGateCallerID username. */ + public username: string; + + /** VTGateCallerID groups. */ + public groups: string[]; + + /** + * Creates a new VTGateCallerID instance using the specified properties. + * @param [properties] Properties to set + * @returns VTGateCallerID instance + */ + public static create(properties?: query.IVTGateCallerID): query.VTGateCallerID; + + /** + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * @param message VTGateCallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * @param message VTGateCallerID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VTGateCallerID message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VTGateCallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.VTGateCallerID; + + /** + * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VTGateCallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.VTGateCallerID; + + /** + * Verifies a VTGateCallerID message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VTGateCallerID + */ + public static fromObject(object: { [k: string]: any }): query.VTGateCallerID; + + /** + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * @param message VTGateCallerID + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.VTGateCallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VTGateCallerID to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VTGateCallerID + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EventToken. */ + interface IEventToken { + + /** EventToken timestamp */ + timestamp?: (number|Long|null); + + /** EventToken shard */ + shard?: (string|null); + + /** EventToken position */ + position?: (string|null); + } + + /** Represents an EventToken. */ + class EventToken implements IEventToken { + + /** + * Constructs a new EventToken. + * @param [properties] Properties to set + */ + constructor(properties?: query.IEventToken); + + /** EventToken timestamp. */ + public timestamp: (number|Long); + + /** EventToken shard. */ + public shard: string; + + /** EventToken position. */ + public position: string; + + /** + * Creates a new EventToken instance using the specified properties. + * @param [properties] Properties to set + * @returns EventToken instance + */ + public static create(properties?: query.IEventToken): query.EventToken; + + /** + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @param message EventToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * @param message EventToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.EventToken; + + /** + * Decodes an EventToken message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EventToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.EventToken; + + /** + * Verifies an EventToken message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EventToken + */ + public static fromObject(object: { [k: string]: any }): query.EventToken; + + /** + * Creates a plain object from an EventToken message. Also converts values to other types if specified. + * @param message EventToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.EventToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EventToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EventToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MySqlFlag enum. */ + enum MySqlFlag { + EMPTY = 0, + NOT_NULL_FLAG = 1, + PRI_KEY_FLAG = 2, + UNIQUE_KEY_FLAG = 4, + MULTIPLE_KEY_FLAG = 8, + BLOB_FLAG = 16, + UNSIGNED_FLAG = 32, + ZEROFILL_FLAG = 64, + BINARY_FLAG = 128, + ENUM_FLAG = 256, + AUTO_INCREMENT_FLAG = 512, + TIMESTAMP_FLAG = 1024, + SET_FLAG = 2048, + NO_DEFAULT_VALUE_FLAG = 4096, + ON_UPDATE_NOW_FLAG = 8192, + NUM_FLAG = 32768, + PART_KEY_FLAG = 16384, + GROUP_FLAG = 32768, + UNIQUE_FLAG = 65536, + BINCMP_FLAG = 131072 + } + + /** Flag enum. */ + enum Flag { + NONE = 0, + ISINTEGRAL = 256, + ISUNSIGNED = 512, + ISFLOAT = 1024, + ISQUOTED = 2048, + ISTEXT = 4096, + ISBINARY = 8192 + } + + /** Type enum. */ + enum Type { + NULL_TYPE = 0, + INT8 = 257, + UINT8 = 770, + INT16 = 259, + UINT16 = 772, + INT24 = 261, + UINT24 = 774, + INT32 = 263, + UINT32 = 776, + INT64 = 265, + UINT64 = 778, + FLOAT32 = 1035, + FLOAT64 = 1036, + TIMESTAMP = 2061, + DATE = 2062, + TIME = 2063, + DATETIME = 2064, + YEAR = 785, + DECIMAL = 18, + TEXT = 6163, + BLOB = 10260, + VARCHAR = 6165, + VARBINARY = 10262, + CHAR = 6167, + BINARY = 10264, + BIT = 2073, + ENUM = 2074, + SET = 2075, + TUPLE = 28, + GEOMETRY = 2077, + JSON = 2078, + EXPRESSION = 31, + HEXNUM = 4128, + HEXVAL = 4129, + BITNUM = 4130, + VECTOR = 2083, + RAW = 2084 + } + + /** Properties of a Value. */ + interface IValue { + + /** Value type */ + type?: (query.Type|null); + + /** Value value */ + value?: (Uint8Array|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: query.IValue); + + /** Value type. */ + public type: query.Type; + + /** Value value. */ + public value: Uint8Array; + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: query.IValue): query.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Value; + + /** + * Decodes a Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): query.Value; + + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BindVariable. */ + interface IBindVariable { + + /** BindVariable type */ + type?: (query.Type|null); + + /** BindVariable value */ + value?: (Uint8Array|null); + + /** BindVariable values */ + values?: (query.IValue[]|null); + } + + /** Represents a BindVariable. */ + class BindVariable implements IBindVariable { + + /** + * Constructs a new BindVariable. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBindVariable); + + /** BindVariable type. */ + public type: query.Type; + + /** BindVariable value. */ + public value: Uint8Array; + + /** BindVariable values. */ + public values: query.IValue[]; + + /** + * Creates a new BindVariable instance using the specified properties. + * @param [properties] Properties to set + * @returns BindVariable instance + */ + public static create(properties?: query.IBindVariable): query.BindVariable; + + /** + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @param message BindVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @param message BindVariable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindVariable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BindVariable; + + /** + * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BindVariable; + + /** + * Verifies a BindVariable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BindVariable + */ + public static fromObject(object: { [k: string]: any }): query.BindVariable; + + /** + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * @param message BindVariable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BindVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BindVariable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BindVariable + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BoundQuery. */ + interface IBoundQuery { + + /** BoundQuery sql */ + sql?: (string|null); + + /** BoundQuery bind_variables */ + bind_variables?: ({ [k: string]: query.IBindVariable }|null); + } + + /** Represents a BoundQuery. */ + class BoundQuery implements IBoundQuery { + + /** + * Constructs a new BoundQuery. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBoundQuery); + + /** BoundQuery sql. */ + public sql: string; + + /** BoundQuery bind_variables. */ + public bind_variables: { [k: string]: query.IBindVariable }; + + /** + * Creates a new BoundQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns BoundQuery instance + */ + public static create(properties?: query.IBoundQuery): query.BoundQuery; + + /** + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @param message BoundQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * @param message BoundQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoundQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoundQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BoundQuery; + + /** + * Decodes a BoundQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BoundQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BoundQuery; + + /** + * Verifies a BoundQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BoundQuery + */ + public static fromObject(object: { [k: string]: any }): query.BoundQuery; + + /** + * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. + * @param message BoundQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BoundQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BoundQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BoundQuery + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteOptions. */ + interface IExecuteOptions { + + /** ExecuteOptions included_fields */ + included_fields?: (query.ExecuteOptions.IncludedFields|null); + + /** ExecuteOptions client_found_rows */ + client_found_rows?: (boolean|null); + + /** ExecuteOptions workload */ + workload?: (query.ExecuteOptions.Workload|null); + + /** ExecuteOptions sql_select_limit */ + sql_select_limit?: (number|Long|null); + + /** ExecuteOptions transaction_isolation */ + transaction_isolation?: (query.ExecuteOptions.TransactionIsolation|null); + + /** ExecuteOptions skip_query_plan_cache */ + skip_query_plan_cache?: (boolean|null); + + /** ExecuteOptions planner_version */ + planner_version?: (query.ExecuteOptions.PlannerVersion|null); + + /** ExecuteOptions has_created_temp_tables */ + has_created_temp_tables?: (boolean|null); + + /** ExecuteOptions consolidator */ + consolidator?: (query.ExecuteOptions.Consolidator|null); + + /** ExecuteOptions transaction_access_mode */ + transaction_access_mode?: (query.ExecuteOptions.TransactionAccessMode[]|null); + + /** ExecuteOptions WorkloadName */ + WorkloadName?: (string|null); + + /** ExecuteOptions priority */ + priority?: (string|null); + + /** ExecuteOptions authoritative_timeout */ + authoritative_timeout?: (number|Long|null); + } + + /** Represents an ExecuteOptions. */ + class ExecuteOptions implements IExecuteOptions { + + /** + * Constructs a new ExecuteOptions. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteOptions); + + /** ExecuteOptions included_fields. */ + public included_fields: query.ExecuteOptions.IncludedFields; + + /** ExecuteOptions client_found_rows. */ + public client_found_rows: boolean; + + /** ExecuteOptions workload. */ + public workload: query.ExecuteOptions.Workload; + + /** ExecuteOptions sql_select_limit. */ + public sql_select_limit: (number|Long); + + /** ExecuteOptions transaction_isolation. */ + public transaction_isolation: query.ExecuteOptions.TransactionIsolation; + + /** ExecuteOptions skip_query_plan_cache. */ + public skip_query_plan_cache: boolean; + + /** ExecuteOptions planner_version. */ + public planner_version: query.ExecuteOptions.PlannerVersion; + + /** ExecuteOptions has_created_temp_tables. */ + public has_created_temp_tables: boolean; + + /** ExecuteOptions consolidator. */ + public consolidator: query.ExecuteOptions.Consolidator; + + /** ExecuteOptions transaction_access_mode. */ + public transaction_access_mode: query.ExecuteOptions.TransactionAccessMode[]; + + /** ExecuteOptions WorkloadName. */ + public WorkloadName: string; + + /** ExecuteOptions priority. */ + public priority: string; + + /** ExecuteOptions authoritative_timeout. */ + public authoritative_timeout?: (number|Long|null); + + /** ExecuteOptions timeout. */ + public timeout?: "authoritative_timeout"; + + /** + * Creates a new ExecuteOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteOptions instance + */ + public static create(properties?: query.IExecuteOptions): query.ExecuteOptions; + + /** + * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * @param message ExecuteOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * @param message ExecuteOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteOptions; + + /** + * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteOptions; + + /** + * Verifies an ExecuteOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteOptions + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteOptions; + + /** + * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. + * @param message ExecuteOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExecuteOptions { + + /** IncludedFields enum. */ + enum IncludedFields { + TYPE_AND_NAME = 0, + TYPE_ONLY = 1, + ALL = 2 + } + + /** Workload enum. */ + enum Workload { + UNSPECIFIED = 0, + OLTP = 1, + OLAP = 2, + DBA = 3 + } + + /** TransactionIsolation enum. */ + enum TransactionIsolation { + DEFAULT = 0, + REPEATABLE_READ = 1, + READ_COMMITTED = 2, + READ_UNCOMMITTED = 3, + SERIALIZABLE = 4, + CONSISTENT_SNAPSHOT_READ_ONLY = 5, + AUTOCOMMIT = 6 + } + + /** PlannerVersion enum. */ + enum PlannerVersion { + DEFAULT_PLANNER = 0, + V3 = 1, + Gen4 = 2, + Gen4Greedy = 3, + Gen4Left2Right = 4, + Gen4WithFallback = 5, + Gen4CompareV3 = 6, + V3Insert = 7 + } + + /** Consolidator enum. */ + enum Consolidator { + CONSOLIDATOR_UNSPECIFIED = 0, + CONSOLIDATOR_DISABLED = 1, + CONSOLIDATOR_ENABLED = 2, + CONSOLIDATOR_ENABLED_REPLICAS = 3 + } + + /** TransactionAccessMode enum. */ + enum TransactionAccessMode { + CONSISTENT_SNAPSHOT = 0, + READ_WRITE = 1, + READ_ONLY = 2 + } + } + + /** Properties of a Field. */ + interface IField { + + /** Field name */ + name?: (string|null); + + /** Field type */ + type?: (query.Type|null); + + /** Field table */ + table?: (string|null); + + /** Field org_table */ + org_table?: (string|null); + + /** Field database */ + database?: (string|null); + + /** Field org_name */ + org_name?: (string|null); + + /** Field column_length */ + column_length?: (number|null); + + /** Field charset */ + charset?: (number|null); + + /** Field decimals */ + decimals?: (number|null); + + /** Field flags */ + flags?: (number|null); + + /** Field column_type */ + column_type?: (string|null); + } + + /** Represents a Field. */ + class Field implements IField { + + /** + * Constructs a new Field. + * @param [properties] Properties to set + */ + constructor(properties?: query.IField); + + /** Field name. */ + public name: string; + + /** Field type. */ + public type: query.Type; + + /** Field table. */ + public table: string; + + /** Field org_table. */ + public org_table: string; + + /** Field database. */ + public database: string; + + /** Field org_name. */ + public org_name: string; + + /** Field column_length. */ + public column_length: number; + + /** Field charset. */ + public charset: number; + + /** Field decimals. */ + public decimals: number; + + /** Field flags. */ + public flags: number; + + /** Field column_type. */ + public column_type: string; + + /** + * Creates a new Field instance using the specified properties. + * @param [properties] Properties to set + * @returns Field instance + */ + public static create(properties?: query.IField): query.Field; + + /** + * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Field message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Field; + + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Field; + + /** + * Verifies a Field message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Field + */ + public static fromObject(object: { [k: string]: any }): query.Field; + + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @param message Field + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Field to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Field + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Row. */ + interface IRow { + + /** Row lengths */ + lengths?: ((number|Long)[]|null); + + /** Row values */ + values?: (Uint8Array|null); + } + + /** Represents a Row. */ + class Row implements IRow { + + /** + * Constructs a new Row. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRow); + + /** Row lengths. */ + public lengths: (number|Long)[]; + + /** Row values. */ + public values: Uint8Array; + + /** + * Creates a new Row instance using the specified properties. + * @param [properties] Properties to set + * @returns Row instance + */ + public static create(properties?: query.IRow): query.Row; + + /** + * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * @param message Row message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * @param message Row message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Row message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Row + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Row; + + /** + * Decodes a Row message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Row + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Row; + + /** + * Verifies a Row message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Row message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Row + */ + public static fromObject(object: { [k: string]: any }): query.Row; + + /** + * Creates a plain object from a Row message. Also converts values to other types if specified. + * @param message Row + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Row to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Row + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QueryResult. */ + interface IQueryResult { + + /** QueryResult fields */ + fields?: (query.IField[]|null); + + /** QueryResult rows_affected */ + rows_affected?: (number|Long|null); + + /** QueryResult insert_id */ + insert_id?: (number|Long|null); + + /** QueryResult rows */ + rows?: (query.IRow[]|null); + + /** QueryResult info */ + info?: (string|null); + + /** QueryResult session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { + + /** + * Constructs a new QueryResult. + * @param [properties] Properties to set + */ + constructor(properties?: query.IQueryResult); + + /** QueryResult fields. */ + public fields: query.IField[]; + + /** QueryResult rows_affected. */ + public rows_affected: (number|Long); + + /** QueryResult insert_id. */ + public insert_id: (number|Long); + + /** QueryResult rows. */ + public rows: query.IRow[]; + + /** QueryResult info. */ + public info: string; + + /** QueryResult session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new QueryResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryResult instance + */ + public static create(properties?: query.IQueryResult): query.QueryResult; + + /** + * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryResult; + + /** + * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryResult; + + /** + * Verifies a QueryResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryResult + */ + public static fromObject(object: { [k: string]: any }): query.QueryResult; + + /** + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QueryResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QueryWarning. */ + interface IQueryWarning { + + /** QueryWarning code */ + code?: (number|null); + + /** QueryWarning message */ + message?: (string|null); + } + + /** Represents a QueryWarning. */ + class QueryWarning implements IQueryWarning { + + /** + * Constructs a new QueryWarning. + * @param [properties] Properties to set + */ + constructor(properties?: query.IQueryWarning); + + /** QueryWarning code. */ + public code: number; + + /** QueryWarning message. */ + public message: string; + + /** + * Creates a new QueryWarning instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryWarning instance + */ + public static create(properties?: query.IQueryWarning): query.QueryWarning; + + /** + * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @param message QueryWarning message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @param message QueryWarning message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryWarning message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryWarning; + + /** + * Decodes a QueryWarning message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryWarning; + + /** + * Verifies a QueryWarning message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryWarning + */ + public static fromObject(object: { [k: string]: any }): query.QueryWarning; + + /** + * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. + * @param message QueryWarning + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.QueryWarning, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryWarning to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QueryWarning + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamEvent. */ + interface IStreamEvent { + + /** StreamEvent statements */ + statements?: (query.StreamEvent.IStatement[]|null); + + /** StreamEvent event_token */ + event_token?: (query.IEventToken|null); + } + + /** Represents a StreamEvent. */ + class StreamEvent implements IStreamEvent { + + /** + * Constructs a new StreamEvent. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamEvent); + + /** StreamEvent statements. */ + public statements: query.StreamEvent.IStatement[]; + + /** StreamEvent event_token. */ + public event_token?: (query.IEventToken|null); + + /** + * Creates a new StreamEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamEvent instance + */ + public static create(properties?: query.IStreamEvent): query.StreamEvent; + + /** + * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * @param message StreamEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * @param message StreamEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent; + + /** + * Decodes a StreamEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent; + + /** + * Verifies a StreamEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamEvent + */ + public static fromObject(object: { [k: string]: any }): query.StreamEvent; + + /** + * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. + * @param message StreamEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StreamEvent { + + /** Properties of a Statement. */ + interface IStatement { + + /** Statement category */ + category?: (query.StreamEvent.Statement.Category|null); + + /** Statement table_name */ + table_name?: (string|null); + + /** Statement primary_key_fields */ + primary_key_fields?: (query.IField[]|null); + + /** Statement primary_key_values */ + primary_key_values?: (query.IRow[]|null); + + /** Statement sql */ + sql?: (Uint8Array|null); + } + + /** Represents a Statement. */ + class Statement implements IStatement { + + /** + * Constructs a new Statement. + * @param [properties] Properties to set + */ + constructor(properties?: query.StreamEvent.IStatement); + + /** Statement category. */ + public category: query.StreamEvent.Statement.Category; + + /** Statement table_name. */ + public table_name: string; + + /** Statement primary_key_fields. */ + public primary_key_fields: query.IField[]; + + /** Statement primary_key_values. */ + public primary_key_values: query.IRow[]; + + /** Statement sql. */ + public sql: Uint8Array; + + /** + * Creates a new Statement instance using the specified properties. + * @param [properties] Properties to set + * @returns Statement instance + */ + public static create(properties?: query.StreamEvent.IStatement): query.StreamEvent.Statement; + + /** + * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @param message Statement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @param message Statement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Statement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent.Statement; + + /** + * Decodes a Statement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent.Statement; + + /** + * Verifies a Statement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Statement + */ + public static fromObject(object: { [k: string]: any }): query.StreamEvent.Statement; + + /** + * Creates a plain object from a Statement message. Also converts values to other types if specified. + * @param message Statement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamEvent.Statement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Statement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Statement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Statement { + + /** Category enum. */ + enum Category { + Error = 0, + DML = 1, + DDL = 2 + } + } + } + + /** Properties of an ExecuteRequest. */ + interface IExecuteRequest { + + /** ExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ExecuteRequest target */ + target?: (query.ITarget|null); + + /** ExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents an ExecuteRequest. */ + class ExecuteRequest implements IExecuteRequest { + + /** + * Constructs a new ExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteRequest); + + /** ExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new ExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteRequest instance + */ + public static create(properties?: query.IExecuteRequest): query.ExecuteRequest; + + /** + * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * @param message ExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * @param message ExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteRequest; + + /** + * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteRequest; + + /** + * Verifies an ExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteRequest; + + /** + * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. + * @param message ExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteResponse. */ + interface IExecuteResponse { + + /** ExecuteResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteResponse. */ + class ExecuteResponse implements IExecuteResponse { + + /** + * Constructs a new ExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IExecuteResponse); + + /** ExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteResponse instance + */ + public static create(properties?: query.IExecuteResponse): query.ExecuteResponse; + + /** + * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * @param message ExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. + * @param message ExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteResponse; + + /** + * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteResponse; + + /** + * Verifies an ExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ExecuteResponse; + + /** + * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. + * @param message ExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ResultWithError. */ + interface IResultWithError { + + /** ResultWithError error */ + error?: (vtrpc.IRPCError|null); + + /** ResultWithError result */ + result?: (query.IQueryResult|null); + } + + /** Represents a ResultWithError. */ + class ResultWithError implements IResultWithError { + + /** + * Constructs a new ResultWithError. + * @param [properties] Properties to set + */ + constructor(properties?: query.IResultWithError); + + /** ResultWithError error. */ + public error?: (vtrpc.IRPCError|null); + + /** ResultWithError result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ResultWithError instance using the specified properties. + * @param [properties] Properties to set + * @returns ResultWithError instance + */ + public static create(properties?: query.IResultWithError): query.ResultWithError; + + /** + * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * @param message ResultWithError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. + * @param message ResultWithError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResultWithError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResultWithError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ResultWithError; + + /** + * Decodes a ResultWithError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResultWithError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ResultWithError; + + /** + * Verifies a ResultWithError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResultWithError + */ + public static fromObject(object: { [k: string]: any }): query.ResultWithError; + + /** + * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. + * @param message ResultWithError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ResultWithError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResultWithError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResultWithError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamExecuteRequest. */ + interface IStreamExecuteRequest { + + /** StreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** StreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** StreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** StreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** StreamExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** StreamExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a StreamExecuteRequest. */ + class StreamExecuteRequest implements IStreamExecuteRequest { + + /** + * Constructs a new StreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamExecuteRequest); + + /** StreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** StreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** StreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** StreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** StreamExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** StreamExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new StreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamExecuteRequest instance + */ + public static create(properties?: query.IStreamExecuteRequest): query.StreamExecuteRequest; + + /** + * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * @param message StreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * @param message StreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteRequest; + + /** + * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteRequest; + + /** + * Verifies a StreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.StreamExecuteRequest; + + /** + * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. + * @param message StreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamExecuteResponse. */ + interface IStreamExecuteResponse { + + /** StreamExecuteResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a StreamExecuteResponse. */ + class StreamExecuteResponse implements IStreamExecuteResponse { + + /** + * Constructs a new StreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamExecuteResponse); + + /** StreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new StreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamExecuteResponse instance + */ + public static create(properties?: query.IStreamExecuteResponse): query.StreamExecuteResponse; + + /** + * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * @param message StreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * @param message StreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteResponse; + + /** + * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteResponse; + + /** + * Verifies a StreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.StreamExecuteResponse; + + /** + * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. + * @param message StreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginRequest. */ + interface IBeginRequest { + + /** BeginRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginRequest target */ + target?: (query.ITarget|null); + + /** BeginRequest options */ + options?: (query.IExecuteOptions|null); + } + + /** Represents a BeginRequest. */ + class BeginRequest implements IBeginRequest { + + /** + * Constructs a new BeginRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginRequest); + + /** BeginRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginRequest target. */ + public target?: (query.ITarget|null); + + /** BeginRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** + * Creates a new BeginRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginRequest instance + */ + public static create(properties?: query.IBeginRequest): query.BeginRequest; + + /** + * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * @param message BeginRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * @param message BeginRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginRequest; + + /** + * Decodes a BeginRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginRequest; + + /** + * Verifies a BeginRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginRequest; + + /** + * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. + * @param message BeginRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginResponse. */ + interface IBeginResponse { + + /** BeginResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginResponse. */ + class BeginResponse implements IBeginResponse { + + /** + * Constructs a new BeginResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginResponse); + + /** BeginResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginResponse instance + */ + public static create(properties?: query.IBeginResponse): query.BeginResponse; + + /** + * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * @param message BeginResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * @param message BeginResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginResponse; + + /** + * Decodes a BeginResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginResponse; + + /** + * Verifies a BeginResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginResponse; + + /** + * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. + * @param message BeginResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitRequest. */ + interface ICommitRequest { + + /** CommitRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitRequest target */ + target?: (query.ITarget|null); + + /** CommitRequest transaction_id */ + transaction_id?: (number|Long|null); + } + + /** Represents a CommitRequest. */ + class CommitRequest implements ICommitRequest { + + /** + * Constructs a new CommitRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitRequest); + + /** CommitRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitRequest target. */ + public target?: (query.ITarget|null); + + /** CommitRequest transaction_id. */ + public transaction_id: (number|Long); + + /** + * Creates a new CommitRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitRequest instance + */ + public static create(properties?: query.ICommitRequest): query.CommitRequest; + + /** + * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * @param message CommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * @param message CommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitRequest; + + /** + * Decodes a CommitRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitRequest; + + /** + * Verifies a CommitRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitRequest + */ + public static fromObject(object: { [k: string]: any }): query.CommitRequest; + + /** + * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. + * @param message CommitRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitResponse. */ + interface ICommitResponse { + + /** CommitResponse reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a CommitResponse. */ + class CommitResponse implements ICommitResponse { + + /** + * Constructs a new CommitResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitResponse); + + /** CommitResponse reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new CommitResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitResponse instance + */ + public static create(properties?: query.ICommitResponse): query.CommitResponse; + + /** + * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * @param message CommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * @param message CommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitResponse; + + /** + * Decodes a CommitResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitResponse; + + /** + * Verifies a CommitResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitResponse + */ + public static fromObject(object: { [k: string]: any }): query.CommitResponse; + + /** + * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. + * @param message CommitResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackRequest. */ + interface IRollbackRequest { + + /** RollbackRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackRequest target */ + target?: (query.ITarget|null); + + /** RollbackRequest transaction_id */ + transaction_id?: (number|Long|null); + } + + /** Represents a RollbackRequest. */ + class RollbackRequest implements IRollbackRequest { + + /** + * Constructs a new RollbackRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackRequest); + + /** RollbackRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackRequest target. */ + public target?: (query.ITarget|null); + + /** RollbackRequest transaction_id. */ + public transaction_id: (number|Long); + + /** + * Creates a new RollbackRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackRequest instance + */ + public static create(properties?: query.IRollbackRequest): query.RollbackRequest; + + /** + * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * @param message RollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * @param message RollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackRequest; + + /** + * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackRequest; + + /** + * Verifies a RollbackRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackRequest + */ + public static fromObject(object: { [k: string]: any }): query.RollbackRequest; + + /** + * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. + * @param message RollbackRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackResponse. */ + interface IRollbackResponse { + + /** RollbackResponse reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a RollbackResponse. */ + class RollbackResponse implements IRollbackResponse { + + /** + * Constructs a new RollbackResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackResponse); + + /** RollbackResponse reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new RollbackResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackResponse instance + */ + public static create(properties?: query.IRollbackResponse): query.RollbackResponse; + + /** + * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * @param message RollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * @param message RollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackResponse; + + /** + * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackResponse; + + /** + * Verifies a RollbackResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackResponse + */ + public static fromObject(object: { [k: string]: any }): query.RollbackResponse; + + /** + * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. + * @param message RollbackResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrepareRequest. */ + interface IPrepareRequest { + + /** PrepareRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** PrepareRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** PrepareRequest target */ + target?: (query.ITarget|null); + + /** PrepareRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** PrepareRequest dtid */ + dtid?: (string|null); + } + + /** Represents a PrepareRequest. */ + class PrepareRequest implements IPrepareRequest { + + /** + * Constructs a new PrepareRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IPrepareRequest); + + /** PrepareRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** PrepareRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** PrepareRequest target. */ + public target?: (query.ITarget|null); + + /** PrepareRequest transaction_id. */ + public transaction_id: (number|Long); + + /** PrepareRequest dtid. */ + public dtid: string; + + /** + * Creates a new PrepareRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PrepareRequest instance + */ + public static create(properties?: query.IPrepareRequest): query.PrepareRequest; + + /** + * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * @param message PrepareRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * @param message PrepareRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrepareRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrepareRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareRequest; + + /** + * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrepareRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareRequest; + + /** + * Verifies a PrepareRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrepareRequest + */ + public static fromObject(object: { [k: string]: any }): query.PrepareRequest; + + /** + * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. + * @param message PrepareRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.PrepareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrepareRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrepareRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PrepareResponse. */ + interface IPrepareResponse { + } + + /** Represents a PrepareResponse. */ + class PrepareResponse implements IPrepareResponse { + + /** + * Constructs a new PrepareResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IPrepareResponse); + + /** + * Creates a new PrepareResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PrepareResponse instance + */ + public static create(properties?: query.IPrepareResponse): query.PrepareResponse; + + /** + * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * @param message PrepareResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * @param message PrepareResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrepareResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrepareResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareResponse; + + /** + * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrepareResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareResponse; + + /** + * Verifies a PrepareResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrepareResponse + */ + public static fromObject(object: { [k: string]: any }): query.PrepareResponse; + + /** + * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. + * @param message PrepareResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.PrepareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrepareResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrepareResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitPreparedRequest. */ + interface ICommitPreparedRequest { + + /** CommitPreparedRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitPreparedRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitPreparedRequest target */ + target?: (query.ITarget|null); + + /** CommitPreparedRequest dtid */ + dtid?: (string|null); + } + + /** Represents a CommitPreparedRequest. */ + class CommitPreparedRequest implements ICommitPreparedRequest { + + /** + * Constructs a new CommitPreparedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitPreparedRequest); + + /** CommitPreparedRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CommitPreparedRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CommitPreparedRequest target. */ + public target?: (query.ITarget|null); + + /** CommitPreparedRequest dtid. */ + public dtid: string; + + /** + * Creates a new CommitPreparedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitPreparedRequest instance + */ + public static create(properties?: query.ICommitPreparedRequest): query.CommitPreparedRequest; + + /** + * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * @param message CommitPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * @param message CommitPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitPreparedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedRequest; + + /** + * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedRequest; + + /** + * Verifies a CommitPreparedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitPreparedRequest + */ + public static fromObject(object: { [k: string]: any }): query.CommitPreparedRequest; + + /** + * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. + * @param message CommitPreparedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitPreparedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitPreparedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CommitPreparedResponse. */ + interface ICommitPreparedResponse { + } + + /** Represents a CommitPreparedResponse. */ + class CommitPreparedResponse implements ICommitPreparedResponse { + + /** + * Constructs a new CommitPreparedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICommitPreparedResponse); + + /** + * Creates a new CommitPreparedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CommitPreparedResponse instance + */ + public static create(properties?: query.ICommitPreparedResponse): query.CommitPreparedResponse; + + /** + * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * @param message CommitPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * @param message CommitPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CommitPreparedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedResponse; + + /** + * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedResponse; + + /** + * Verifies a CommitPreparedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitPreparedResponse + */ + public static fromObject(object: { [k: string]: any }): query.CommitPreparedResponse; + + /** + * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. + * @param message CommitPreparedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CommitPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CommitPreparedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CommitPreparedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackPreparedRequest. */ + interface IRollbackPreparedRequest { + + /** RollbackPreparedRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackPreparedRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackPreparedRequest target */ + target?: (query.ITarget|null); + + /** RollbackPreparedRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** RollbackPreparedRequest dtid */ + dtid?: (string|null); + } + + /** Represents a RollbackPreparedRequest. */ + class RollbackPreparedRequest implements IRollbackPreparedRequest { + + /** + * Constructs a new RollbackPreparedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackPreparedRequest); + + /** RollbackPreparedRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** RollbackPreparedRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** RollbackPreparedRequest target. */ + public target?: (query.ITarget|null); + + /** RollbackPreparedRequest transaction_id. */ + public transaction_id: (number|Long); + + /** RollbackPreparedRequest dtid. */ + public dtid: string; + + /** + * Creates a new RollbackPreparedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackPreparedRequest instance + */ + public static create(properties?: query.IRollbackPreparedRequest): query.RollbackPreparedRequest; + + /** + * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * @param message RollbackPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * @param message RollbackPreparedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackPreparedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedRequest; + + /** + * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackPreparedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedRequest; + + /** + * Verifies a RollbackPreparedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackPreparedRequest + */ + public static fromObject(object: { [k: string]: any }): query.RollbackPreparedRequest; + + /** + * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. + * @param message RollbackPreparedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackPreparedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackPreparedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RollbackPreparedResponse. */ + interface IRollbackPreparedResponse { + } + + /** Represents a RollbackPreparedResponse. */ + class RollbackPreparedResponse implements IRollbackPreparedResponse { + + /** + * Constructs a new RollbackPreparedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRollbackPreparedResponse); + + /** + * Creates a new RollbackPreparedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackPreparedResponse instance + */ + public static create(properties?: query.IRollbackPreparedResponse): query.RollbackPreparedResponse; + + /** + * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * @param message RollbackPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * @param message RollbackPreparedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RollbackPreparedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RollbackPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedResponse; + + /** + * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RollbackPreparedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedResponse; + + /** + * Verifies a RollbackPreparedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackPreparedResponse + */ + public static fromObject(object: { [k: string]: any }): query.RollbackPreparedResponse; + + /** + * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. + * @param message RollbackPreparedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RollbackPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackPreparedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RollbackPreparedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTransactionRequest. */ + interface ICreateTransactionRequest { + + /** CreateTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** CreateTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CreateTransactionRequest target */ + target?: (query.ITarget|null); + + /** CreateTransactionRequest dtid */ + dtid?: (string|null); + + /** CreateTransactionRequest participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a CreateTransactionRequest. */ + class CreateTransactionRequest implements ICreateTransactionRequest { + + /** + * Constructs a new CreateTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICreateTransactionRequest); + + /** CreateTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** CreateTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** CreateTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** CreateTransactionRequest dtid. */ + public dtid: string; + + /** CreateTransactionRequest participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new CreateTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTransactionRequest instance + */ + public static create(properties?: query.ICreateTransactionRequest): query.CreateTransactionRequest; + + /** + * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * @param message CreateTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * @param message CreateTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionRequest; + + /** + * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionRequest; + + /** + * Verifies a CreateTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.CreateTransactionRequest; + + /** + * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. + * @param message CreateTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CreateTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTransactionResponse. */ + interface ICreateTransactionResponse { + } + + /** Represents a CreateTransactionResponse. */ + class CreateTransactionResponse implements ICreateTransactionResponse { + + /** + * Constructs a new CreateTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ICreateTransactionResponse); + + /** + * Creates a new CreateTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTransactionResponse instance + */ + public static create(properties?: query.ICreateTransactionResponse): query.CreateTransactionResponse; + + /** + * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * @param message CreateTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * @param message CreateTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionResponse; + + /** + * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionResponse; + + /** + * Verifies a CreateTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.CreateTransactionResponse; + + /** + * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. + * @param message CreateTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.CreateTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartCommitRequest. */ + interface IStartCommitRequest { + + /** StartCommitRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** StartCommitRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StartCommitRequest target */ + target?: (query.ITarget|null); + + /** StartCommitRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** StartCommitRequest dtid */ + dtid?: (string|null); + } + + /** Represents a StartCommitRequest. */ + class StartCommitRequest implements IStartCommitRequest { + + /** + * Constructs a new StartCommitRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStartCommitRequest); + + /** StartCommitRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** StartCommitRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** StartCommitRequest target. */ + public target?: (query.ITarget|null); + + /** StartCommitRequest transaction_id. */ + public transaction_id: (number|Long); + + /** StartCommitRequest dtid. */ + public dtid: string; + + /** + * Creates a new StartCommitRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartCommitRequest instance + */ + public static create(properties?: query.IStartCommitRequest): query.StartCommitRequest; + + /** + * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * @param message StartCommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * @param message StartCommitRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartCommitRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartCommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitRequest; + + /** + * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartCommitRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitRequest; + + /** + * Verifies a StartCommitRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartCommitRequest + */ + public static fromObject(object: { [k: string]: any }): query.StartCommitRequest; + + /** + * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. + * @param message StartCommitRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StartCommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartCommitRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartCommitRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartCommitResponse. */ + interface IStartCommitResponse { + } + + /** Represents a StartCommitResponse. */ + class StartCommitResponse implements IStartCommitResponse { + + /** + * Constructs a new StartCommitResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStartCommitResponse); + + /** + * Creates a new StartCommitResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StartCommitResponse instance + */ + public static create(properties?: query.IStartCommitResponse): query.StartCommitResponse; + + /** + * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * @param message StartCommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * @param message StartCommitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartCommitResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartCommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitResponse; + + /** + * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartCommitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitResponse; + + /** + * Verifies a StartCommitResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartCommitResponse + */ + public static fromObject(object: { [k: string]: any }): query.StartCommitResponse; + + /** + * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. + * @param message StartCommitResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StartCommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartCommitResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartCommitResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetRollbackRequest. */ + interface ISetRollbackRequest { + + /** SetRollbackRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** SetRollbackRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** SetRollbackRequest target */ + target?: (query.ITarget|null); + + /** SetRollbackRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** SetRollbackRequest dtid */ + dtid?: (string|null); + } + + /** Represents a SetRollbackRequest. */ + class SetRollbackRequest implements ISetRollbackRequest { + + /** + * Constructs a new SetRollbackRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.ISetRollbackRequest); + + /** SetRollbackRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** SetRollbackRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** SetRollbackRequest target. */ + public target?: (query.ITarget|null); + + /** SetRollbackRequest transaction_id. */ + public transaction_id: (number|Long); + + /** SetRollbackRequest dtid. */ + public dtid: string; + + /** + * Creates a new SetRollbackRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetRollbackRequest instance + */ + public static create(properties?: query.ISetRollbackRequest): query.SetRollbackRequest; + + /** + * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * @param message SetRollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * @param message SetRollbackRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetRollbackRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetRollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackRequest; + + /** + * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetRollbackRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackRequest; + + /** + * Verifies a SetRollbackRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetRollbackRequest + */ + public static fromObject(object: { [k: string]: any }): query.SetRollbackRequest; + + /** + * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. + * @param message SetRollbackRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.SetRollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetRollbackRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetRollbackRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetRollbackResponse. */ + interface ISetRollbackResponse { + } + + /** Represents a SetRollbackResponse. */ + class SetRollbackResponse implements ISetRollbackResponse { + + /** + * Constructs a new SetRollbackResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.ISetRollbackResponse); + + /** + * Creates a new SetRollbackResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetRollbackResponse instance + */ + public static create(properties?: query.ISetRollbackResponse): query.SetRollbackResponse; + + /** + * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @param message SetRollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @param message SetRollbackResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackResponse; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackResponse; + + /** + * Verifies a SetRollbackResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetRollbackResponse + */ + public static fromObject(object: { [k: string]: any }): query.SetRollbackResponse; + + /** + * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. + * @param message SetRollbackResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.SetRollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetRollbackResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetRollbackResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { + + /** ConcludeTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ConcludeTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ConcludeTransactionRequest target */ + target?: (query.ITarget|null); + + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); + } + + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { + + /** + * Constructs a new ConcludeTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IConcludeTransactionRequest); + + /** ConcludeTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ConcludeTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ConcludeTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** ConcludeTransactionRequest dtid. */ + public dtid: string; + + /** + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionRequest instance + */ + public static create(properties?: query.IConcludeTransactionRequest): query.ConcludeTransactionRequest; + + /** + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionRequest; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionRequest; + + /** + * Verifies a ConcludeTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionRequest; + + /** + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * @param message ConcludeTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { + } + + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { + + /** + * Constructs a new ConcludeTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IConcludeTransactionResponse); + + /** + * Creates a new ConcludeTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionResponse instance + */ + public static create(properties?: query.IConcludeTransactionResponse): query.ConcludeTransactionResponse; + + /** + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionResponse; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionResponse; + + /** + * Verifies a ConcludeTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionResponse; + + /** + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * @param message ConcludeTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTransactionRequest. */ + interface IReadTransactionRequest { + + /** ReadTransactionRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReadTransactionRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReadTransactionRequest target */ + target?: (query.ITarget|null); + + /** ReadTransactionRequest dtid */ + dtid?: (string|null); + } + + /** Represents a ReadTransactionRequest. */ + class ReadTransactionRequest implements IReadTransactionRequest { + + /** + * Constructs a new ReadTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReadTransactionRequest); + + /** ReadTransactionRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReadTransactionRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReadTransactionRequest target. */ + public target?: (query.ITarget|null); + + /** ReadTransactionRequest dtid. */ + public dtid: string; + + /** + * Creates a new ReadTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTransactionRequest instance + */ + public static create(properties?: query.IReadTransactionRequest): query.ReadTransactionRequest; + + /** + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * @param message ReadTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * @param message ReadTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionRequest; + + /** + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionRequest; + + /** + * Verifies a ReadTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReadTransactionRequest; + + /** + * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. + * @param message ReadTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTransactionResponse. */ + interface IReadTransactionResponse { + + /** ReadTransactionResponse metadata */ + metadata?: (query.ITransactionMetadata|null); + } + + /** Represents a ReadTransactionResponse. */ + class ReadTransactionResponse implements IReadTransactionResponse { + + /** + * Constructs a new ReadTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReadTransactionResponse); + + /** ReadTransactionResponse metadata. */ + public metadata?: (query.ITransactionMetadata|null); + + /** + * Creates a new ReadTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTransactionResponse instance + */ + public static create(properties?: query.IReadTransactionResponse): query.ReadTransactionResponse; + + /** + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * @param message ReadTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * @param message ReadTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionResponse; + + /** + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionResponse; + + /** + * Verifies a ReadTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReadTransactionResponse; + + /** + * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. + * @param message ReadTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UnresolvedTransactionsRequest. */ + interface IUnresolvedTransactionsRequest { + + /** UnresolvedTransactionsRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** UnresolvedTransactionsRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** UnresolvedTransactionsRequest target */ + target?: (query.ITarget|null); + + /** UnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); + } + + /** Represents an UnresolvedTransactionsRequest. */ + class UnresolvedTransactionsRequest implements IUnresolvedTransactionsRequest { + + /** + * Constructs a new UnresolvedTransactionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUnresolvedTransactionsRequest); + + /** UnresolvedTransactionsRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** UnresolvedTransactionsRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** UnresolvedTransactionsRequest target. */ + public target?: (query.ITarget|null); + + /** UnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); + + /** + * Creates a new UnresolvedTransactionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UnresolvedTransactionsRequest instance + */ + public static create(properties?: query.IUnresolvedTransactionsRequest): query.UnresolvedTransactionsRequest; + + /** + * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * @param message UnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. + * @param message UnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsRequest; + + /** + * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsRequest; + + /** + * Verifies an UnresolvedTransactionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnresolvedTransactionsRequest + */ + public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsRequest; + + /** + * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified. + * @param message UnresolvedTransactionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnresolvedTransactionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnresolvedTransactionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UnresolvedTransactionsResponse. */ + interface IUnresolvedTransactionsResponse { + + /** UnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); + } + + /** Represents an UnresolvedTransactionsResponse. */ + class UnresolvedTransactionsResponse implements IUnresolvedTransactionsResponse { + + /** + * Constructs a new UnresolvedTransactionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUnresolvedTransactionsResponse); + + /** UnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; + + /** + * Creates a new UnresolvedTransactionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UnresolvedTransactionsResponse instance + */ + public static create(properties?: query.IUnresolvedTransactionsResponse): query.UnresolvedTransactionsResponse; + + /** + * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * @param message UnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. + * @param message UnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsResponse; + + /** + * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsResponse; + + /** + * Verifies an UnresolvedTransactionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnresolvedTransactionsResponse + */ + public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsResponse; + + /** + * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified. + * @param message UnresolvedTransactionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UnresolvedTransactionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UnresolvedTransactionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginExecuteRequest. */ + interface IBeginExecuteRequest { + + /** BeginExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginExecuteRequest target */ + target?: (query.ITarget|null); + + /** BeginExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** BeginExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** BeginExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + + /** BeginExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a BeginExecuteRequest. */ + class BeginExecuteRequest implements IBeginExecuteRequest { + + /** + * Constructs a new BeginExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginExecuteRequest); + + /** BeginExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** BeginExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** BeginExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** BeginExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** BeginExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new BeginExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginExecuteRequest instance + */ + public static create(properties?: query.IBeginExecuteRequest): query.BeginExecuteRequest; + + /** + * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * @param message BeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * @param message BeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteRequest; + + /** + * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteRequest; + + /** + * Verifies a BeginExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginExecuteRequest; + + /** + * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. + * @param message BeginExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginExecuteResponse. */ + interface IBeginExecuteResponse { + + /** BeginExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** BeginExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** BeginExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginExecuteResponse. */ + class BeginExecuteResponse implements IBeginExecuteResponse { + + /** + * Constructs a new BeginExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginExecuteResponse); + + /** BeginExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** BeginExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** BeginExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginExecuteResponse instance + */ + public static create(properties?: query.IBeginExecuteResponse): query.BeginExecuteResponse; + + /** + * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * @param message BeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * @param message BeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteResponse; + + /** + * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteResponse; + + /** + * Verifies a BeginExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginExecuteResponse; + + /** + * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. + * @param message BeginExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginStreamExecuteRequest. */ + interface IBeginStreamExecuteRequest { + + /** BeginStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** BeginStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** BeginStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** BeginStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** BeginStreamExecuteRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a BeginStreamExecuteRequest. */ + class BeginStreamExecuteRequest implements IBeginStreamExecuteRequest { + + /** + * Constructs a new BeginStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginStreamExecuteRequest); + + /** BeginStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** BeginStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** BeginStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** BeginStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** BeginStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** BeginStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** BeginStreamExecuteRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new BeginStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginStreamExecuteRequest instance + */ + public static create(properties?: query.IBeginStreamExecuteRequest): query.BeginStreamExecuteRequest; + + /** + * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * @param message BeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * @param message BeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteRequest; + + /** + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteRequest; + + /** + * Verifies a BeginStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteRequest; + + /** + * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. + * @param message BeginStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BeginStreamExecuteResponse. */ + interface IBeginStreamExecuteResponse { + + /** BeginStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** BeginStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** BeginStreamExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** BeginStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginStreamExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a BeginStreamExecuteResponse. */ + class BeginStreamExecuteResponse implements IBeginStreamExecuteResponse { + + /** + * Constructs a new BeginStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IBeginStreamExecuteResponse); + + /** BeginStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** BeginStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** BeginStreamExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** BeginStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BeginStreamExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new BeginStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BeginStreamExecuteResponse instance + */ + public static create(properties?: query.IBeginStreamExecuteResponse): query.BeginStreamExecuteResponse; + + /** + * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * @param message BeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * @param message BeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteResponse; + + /** + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteResponse; + + /** + * Verifies a BeginStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BeginStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteResponse; + + /** + * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. + * @param message BeginStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.BeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BeginStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BeginStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageStreamRequest. */ + interface IMessageStreamRequest { + + /** MessageStreamRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageStreamRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageStreamRequest target */ + target?: (query.ITarget|null); + + /** MessageStreamRequest name */ + name?: (string|null); + } + + /** Represents a MessageStreamRequest. */ + class MessageStreamRequest implements IMessageStreamRequest { + + /** + * Constructs a new MessageStreamRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageStreamRequest); + + /** MessageStreamRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageStreamRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageStreamRequest target. */ + public target?: (query.ITarget|null); + + /** MessageStreamRequest name. */ + public name: string; + + /** + * Creates a new MessageStreamRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageStreamRequest instance + */ + public static create(properties?: query.IMessageStreamRequest): query.MessageStreamRequest; + + /** + * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * @param message MessageStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * @param message MessageStreamRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageStreamRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamRequest; + + /** + * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageStreamRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamRequest; + + /** + * Verifies a MessageStreamRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageStreamRequest + */ + public static fromObject(object: { [k: string]: any }): query.MessageStreamRequest; + + /** + * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. + * @param message MessageStreamRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageStreamRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageStreamRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageStreamResponse. */ + interface IMessageStreamResponse { + + /** MessageStreamResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a MessageStreamResponse. */ + class MessageStreamResponse implements IMessageStreamResponse { + + /** + * Constructs a new MessageStreamResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageStreamResponse); + + /** MessageStreamResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new MessageStreamResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageStreamResponse instance + */ + public static create(properties?: query.IMessageStreamResponse): query.MessageStreamResponse; + + /** + * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * @param message MessageStreamResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * @param message MessageStreamResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageStreamResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamResponse; + + /** + * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageStreamResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamResponse; + + /** + * Verifies a MessageStreamResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageStreamResponse + */ + public static fromObject(object: { [k: string]: any }): query.MessageStreamResponse; + + /** + * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. + * @param message MessageStreamResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageStreamResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageStreamResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageAckRequest. */ + interface IMessageAckRequest { + + /** MessageAckRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageAckRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageAckRequest target */ + target?: (query.ITarget|null); + + /** MessageAckRequest name */ + name?: (string|null); + + /** MessageAckRequest ids */ + ids?: (query.IValue[]|null); + } + + /** Represents a MessageAckRequest. */ + class MessageAckRequest implements IMessageAckRequest { + + /** + * Constructs a new MessageAckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageAckRequest); + + /** MessageAckRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** MessageAckRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** MessageAckRequest target. */ + public target?: (query.ITarget|null); + + /** MessageAckRequest name. */ + public name: string; + + /** MessageAckRequest ids. */ + public ids: query.IValue[]; + + /** + * Creates a new MessageAckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageAckRequest instance + */ + public static create(properties?: query.IMessageAckRequest): query.MessageAckRequest; + + /** + * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * @param message MessageAckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * @param message MessageAckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageAckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageAckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckRequest; + + /** + * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageAckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckRequest; + + /** + * Verifies a MessageAckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageAckRequest + */ + public static fromObject(object: { [k: string]: any }): query.MessageAckRequest; + + /** + * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. + * @param message MessageAckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageAckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageAckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageAckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MessageAckResponse. */ + interface IMessageAckResponse { + + /** MessageAckResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents a MessageAckResponse. */ + class MessageAckResponse implements IMessageAckResponse { + + /** + * Constructs a new MessageAckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IMessageAckResponse); + + /** MessageAckResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new MessageAckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageAckResponse instance + */ + public static create(properties?: query.IMessageAckResponse): query.MessageAckResponse; + + /** + * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * @param message MessageAckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * @param message MessageAckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageAckResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckResponse; + + /** + * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckResponse; + + /** + * Verifies a MessageAckResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageAckResponse + */ + public static fromObject(object: { [k: string]: any }): query.MessageAckResponse; + + /** + * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. + * @param message MessageAckResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.MessageAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageAckResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageAckResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveExecuteRequest. */ + interface IReserveExecuteRequest { + + /** ReserveExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a ReserveExecuteRequest. */ + class ReserveExecuteRequest implements IReserveExecuteRequest { + + /** + * Constructs a new ReserveExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveExecuteRequest); + + /** ReserveExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new ReserveExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveExecuteRequest instance + */ + public static create(properties?: query.IReserveExecuteRequest): query.ReserveExecuteRequest; + + /** + * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * @param message ReserveExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * @param message ReserveExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteRequest; + + /** + * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteRequest; + + /** + * Verifies a ReserveExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveExecuteRequest; + + /** + * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveExecuteResponse. */ + interface IReserveExecuteResponse { + + /** ReserveExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReserveExecuteResponse. */ + class ReserveExecuteResponse implements IReserveExecuteResponse { + + /** + * Constructs a new ReserveExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveExecuteResponse); + + /** ReserveExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReserveExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveExecuteResponse instance + */ + public static create(properties?: query.IReserveExecuteResponse): query.ReserveExecuteResponse; + + /** + * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * @param message ReserveExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * @param message ReserveExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteResponse; + + /** + * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteResponse; + + /** + * Verifies a ReserveExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveExecuteResponse; + + /** + * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveStreamExecuteRequest. */ + interface IReserveStreamExecuteRequest { + + /** ReserveStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveStreamExecuteRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + } + + /** Represents a ReserveStreamExecuteRequest. */ + class ReserveStreamExecuteRequest implements IReserveStreamExecuteRequest { + + /** + * Constructs a new ReserveStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveStreamExecuteRequest); + + /** ReserveStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveStreamExecuteRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** + * Creates a new ReserveStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveStreamExecuteRequest instance + */ + public static create(properties?: query.IReserveStreamExecuteRequest): query.ReserveStreamExecuteRequest; + + /** + * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * @param message ReserveStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * @param message ReserveStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteRequest; + + /** + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteRequest; + + /** + * Verifies a ReserveStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteRequest; + + /** + * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveStreamExecuteResponse. */ + interface IReserveStreamExecuteResponse { + + /** ReserveStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveStreamExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReserveStreamExecuteResponse. */ + class ReserveStreamExecuteResponse implements IReserveStreamExecuteResponse { + + /** + * Constructs a new ReserveStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveStreamExecuteResponse); + + /** ReserveStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveStreamExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveStreamExecuteResponse instance + */ + public static create(properties?: query.IReserveStreamExecuteResponse): query.ReserveStreamExecuteResponse; + + /** + * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @param message ReserveStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * @param message ReserveStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteResponse; + + /** + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteResponse; + + /** + * Verifies a ReserveStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteResponse; + + /** + * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginExecuteRequest. */ + interface IReserveBeginExecuteRequest { + + /** ReserveBeginExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveBeginExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveBeginExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveBeginExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** ReserveBeginExecuteRequest post_begin_queries */ + post_begin_queries?: (string[]|null); + } + + /** Represents a ReserveBeginExecuteRequest. */ + class ReserveBeginExecuteRequest implements IReserveBeginExecuteRequest { + + /** + * Constructs a new ReserveBeginExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginExecuteRequest); + + /** ReserveBeginExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveBeginExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveBeginExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveBeginExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** ReserveBeginExecuteRequest post_begin_queries. */ + public post_begin_queries: string[]; + + /** + * Creates a new ReserveBeginExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginExecuteRequest instance + */ + public static create(properties?: query.IReserveBeginExecuteRequest): query.ReserveBeginExecuteRequest; + + /** + * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * @param message ReserveBeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * @param message ReserveBeginExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteRequest; + + /** + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteRequest; + + /** + * Verifies a ReserveBeginExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteRequest; + + /** + * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveBeginExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginExecuteResponse. */ + interface IReserveBeginExecuteResponse { + + /** ReserveBeginExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveBeginExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveBeginExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveBeginExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveBeginExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a ReserveBeginExecuteResponse. */ + class ReserveBeginExecuteResponse implements IReserveBeginExecuteResponse { + + /** + * Constructs a new ReserveBeginExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginExecuteResponse); + + /** ReserveBeginExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveBeginExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveBeginExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveBeginExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveBeginExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new ReserveBeginExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginExecuteResponse instance + */ + public static create(properties?: query.IReserveBeginExecuteResponse): query.ReserveBeginExecuteResponse; + + /** + * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * @param message ReserveBeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * @param message ReserveBeginExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteResponse; + + /** + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteResponse; + + /** + * Verifies a ReserveBeginExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteResponse; + + /** + * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveBeginExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginStreamExecuteRequest. */ + interface IReserveBeginStreamExecuteRequest { + + /** ReserveBeginStreamExecuteRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginStreamExecuteRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginStreamExecuteRequest target */ + target?: (query.ITarget|null); + + /** ReserveBeginStreamExecuteRequest query */ + query?: (query.IBoundQuery|null); + + /** ReserveBeginStreamExecuteRequest options */ + options?: (query.IExecuteOptions|null); + + /** ReserveBeginStreamExecuteRequest pre_queries */ + pre_queries?: (string[]|null); + + /** ReserveBeginStreamExecuteRequest post_begin_queries */ + post_begin_queries?: (string[]|null); + } + + /** Represents a ReserveBeginStreamExecuteRequest. */ + class ReserveBeginStreamExecuteRequest implements IReserveBeginStreamExecuteRequest { + + /** + * Constructs a new ReserveBeginStreamExecuteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginStreamExecuteRequest); + + /** ReserveBeginStreamExecuteRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReserveBeginStreamExecuteRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReserveBeginStreamExecuteRequest target. */ + public target?: (query.ITarget|null); + + /** ReserveBeginStreamExecuteRequest query. */ + public query?: (query.IBoundQuery|null); + + /** ReserveBeginStreamExecuteRequest options. */ + public options?: (query.IExecuteOptions|null); + + /** ReserveBeginStreamExecuteRequest pre_queries. */ + public pre_queries: string[]; + + /** ReserveBeginStreamExecuteRequest post_begin_queries. */ + public post_begin_queries: string[]; + + /** + * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginStreamExecuteRequest instance + */ + public static create(properties?: query.IReserveBeginStreamExecuteRequest): query.ReserveBeginStreamExecuteRequest; + + /** + * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * @param message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * @param message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteRequest; + + /** + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginStreamExecuteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteRequest; + + /** + * Verifies a ReserveBeginStreamExecuteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginStreamExecuteRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteRequest; + + /** + * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. + * @param message ReserveBeginStreamExecuteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginStreamExecuteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginStreamExecuteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReserveBeginStreamExecuteResponse. */ + interface IReserveBeginStreamExecuteResponse { + + /** ReserveBeginStreamExecuteResponse error */ + error?: (vtrpc.IRPCError|null); + + /** ReserveBeginStreamExecuteResponse result */ + result?: (query.IQueryResult|null); + + /** ReserveBeginStreamExecuteResponse transaction_id */ + transaction_id?: (number|Long|null); + + /** ReserveBeginStreamExecuteResponse reserved_id */ + reserved_id?: (number|Long|null); + + /** ReserveBeginStreamExecuteResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginStreamExecuteResponse session_state_changes */ + session_state_changes?: (string|null); + } + + /** Represents a ReserveBeginStreamExecuteResponse. */ + class ReserveBeginStreamExecuteResponse implements IReserveBeginStreamExecuteResponse { + + /** + * Constructs a new ReserveBeginStreamExecuteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReserveBeginStreamExecuteResponse); + + /** ReserveBeginStreamExecuteResponse error. */ + public error?: (vtrpc.IRPCError|null); + + /** ReserveBeginStreamExecuteResponse result. */ + public result?: (query.IQueryResult|null); + + /** ReserveBeginStreamExecuteResponse transaction_id. */ + public transaction_id: (number|Long); + + /** ReserveBeginStreamExecuteResponse reserved_id. */ + public reserved_id: (number|Long); + + /** ReserveBeginStreamExecuteResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ReserveBeginStreamExecuteResponse session_state_changes. */ + public session_state_changes: string; + + /** + * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReserveBeginStreamExecuteResponse instance + */ + public static create(properties?: query.IReserveBeginStreamExecuteResponse): query.ReserveBeginStreamExecuteResponse; + + /** + * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * @param message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * @param message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReserveBeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteResponse; + + /** + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReserveBeginStreamExecuteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteResponse; + + /** + * Verifies a ReserveBeginStreamExecuteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReserveBeginStreamExecuteResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteResponse; + + /** + * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. + * @param message ReserveBeginStreamExecuteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReserveBeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReserveBeginStreamExecuteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReserveBeginStreamExecuteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReleaseRequest. */ + interface IReleaseRequest { + + /** ReleaseRequest effective_caller_id */ + effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReleaseRequest immediate_caller_id */ + immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReleaseRequest target */ + target?: (query.ITarget|null); + + /** ReleaseRequest transaction_id */ + transaction_id?: (number|Long|null); + + /** ReleaseRequest reserved_id */ + reserved_id?: (number|Long|null); + } + + /** Represents a ReleaseRequest. */ + class ReleaseRequest implements IReleaseRequest { + + /** + * Constructs a new ReleaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReleaseRequest); + + /** ReleaseRequest effective_caller_id. */ + public effective_caller_id?: (vtrpc.ICallerID|null); + + /** ReleaseRequest immediate_caller_id. */ + public immediate_caller_id?: (query.IVTGateCallerID|null); + + /** ReleaseRequest target. */ + public target?: (query.ITarget|null); + + /** ReleaseRequest transaction_id. */ + public transaction_id: (number|Long); + + /** ReleaseRequest reserved_id. */ + public reserved_id: (number|Long); + + /** + * Creates a new ReleaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseRequest instance + */ + public static create(properties?: query.IReleaseRequest): query.ReleaseRequest; + + /** + * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * @param message ReleaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * @param message ReleaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseRequest; + + /** + * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseRequest; + + /** + * Verifies a ReleaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseRequest + */ + public static fromObject(object: { [k: string]: any }): query.ReleaseRequest; + + /** + * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. + * @param message ReleaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReleaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReleaseResponse. */ + interface IReleaseResponse { + } + + /** Represents a ReleaseResponse. */ + class ReleaseResponse implements IReleaseResponse { + + /** + * Constructs a new ReleaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IReleaseResponse); + + /** + * Creates a new ReleaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseResponse instance + */ + public static create(properties?: query.IReleaseResponse): query.ReleaseResponse; + + /** + * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * @param message ReleaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * @param message ReleaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseResponse; + + /** + * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseResponse; + + /** + * Verifies a ReleaseResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseResponse + */ + public static fromObject(object: { [k: string]: any }): query.ReleaseResponse; + + /** + * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. + * @param message ReleaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.ReleaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamHealthRequest. */ + interface IStreamHealthRequest { + } + + /** Represents a StreamHealthRequest. */ + class StreamHealthRequest implements IStreamHealthRequest { + + /** + * Constructs a new StreamHealthRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamHealthRequest); + + /** + * Creates a new StreamHealthRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamHealthRequest instance + */ + public static create(properties?: query.IStreamHealthRequest): query.StreamHealthRequest; + + /** + * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @param message StreamHealthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @param message StreamHealthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamHealthRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamHealthRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthRequest; + + /** + * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamHealthRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthRequest; + + /** + * Verifies a StreamHealthRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamHealthRequest + */ + public static fromObject(object: { [k: string]: any }): query.StreamHealthRequest; + + /** + * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. + * @param message StreamHealthRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamHealthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamHealthRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamHealthRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RealtimeStats. */ + interface IRealtimeStats { + + /** RealtimeStats health_error */ + health_error?: (string|null); + + /** RealtimeStats replication_lag_seconds */ + replication_lag_seconds?: (number|null); + + /** RealtimeStats binlog_players_count */ + binlog_players_count?: (number|null); + + /** RealtimeStats filtered_replication_lag_seconds */ + filtered_replication_lag_seconds?: (number|Long|null); + + /** RealtimeStats cpu_usage */ + cpu_usage?: (number|null); + + /** RealtimeStats qps */ + qps?: (number|null); + + /** RealtimeStats table_schema_changed */ + table_schema_changed?: (string[]|null); + + /** RealtimeStats view_schema_changed */ + view_schema_changed?: (string[]|null); + + /** RealtimeStats udfs_changed */ + udfs_changed?: (boolean|null); + + /** RealtimeStats tx_unresolved */ + tx_unresolved?: (boolean|null); + } + + /** Represents a RealtimeStats. */ + class RealtimeStats implements IRealtimeStats { + + /** + * Constructs a new RealtimeStats. + * @param [properties] Properties to set + */ + constructor(properties?: query.IRealtimeStats); + + /** RealtimeStats health_error. */ + public health_error: string; + + /** RealtimeStats replication_lag_seconds. */ + public replication_lag_seconds: number; + + /** RealtimeStats binlog_players_count. */ + public binlog_players_count: number; + + /** RealtimeStats filtered_replication_lag_seconds. */ + public filtered_replication_lag_seconds: (number|Long); + + /** RealtimeStats cpu_usage. */ + public cpu_usage: number; + + /** RealtimeStats qps. */ + public qps: number; + + /** RealtimeStats table_schema_changed. */ + public table_schema_changed: string[]; + + /** RealtimeStats view_schema_changed. */ + public view_schema_changed: string[]; + + /** RealtimeStats udfs_changed. */ + public udfs_changed: boolean; + + /** RealtimeStats tx_unresolved. */ + public tx_unresolved: boolean; + + /** + * Creates a new RealtimeStats instance using the specified properties. + * @param [properties] Properties to set + * @returns RealtimeStats instance + */ + public static create(properties?: query.IRealtimeStats): query.RealtimeStats; + + /** + * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * @param message RealtimeStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * @param message RealtimeStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RealtimeStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RealtimeStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RealtimeStats; + + /** + * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RealtimeStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RealtimeStats; + + /** + * Verifies a RealtimeStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RealtimeStats + */ + public static fromObject(object: { [k: string]: any }): query.RealtimeStats; + + /** + * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. + * @param message RealtimeStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.RealtimeStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RealtimeStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RealtimeStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AggregateStats. */ + interface IAggregateStats { + + /** AggregateStats healthy_tablet_count */ + healthy_tablet_count?: (number|null); + + /** AggregateStats unhealthy_tablet_count */ + unhealthy_tablet_count?: (number|null); + + /** AggregateStats replication_lag_seconds_min */ + replication_lag_seconds_min?: (number|null); + + /** AggregateStats replication_lag_seconds_max */ + replication_lag_seconds_max?: (number|null); + } + + /** Represents an AggregateStats. */ + class AggregateStats implements IAggregateStats { + + /** + * Constructs a new AggregateStats. + * @param [properties] Properties to set + */ + constructor(properties?: query.IAggregateStats); + + /** AggregateStats healthy_tablet_count. */ + public healthy_tablet_count: number; + + /** AggregateStats unhealthy_tablet_count. */ + public unhealthy_tablet_count: number; + + /** AggregateStats replication_lag_seconds_min. */ + public replication_lag_seconds_min: number; + + /** AggregateStats replication_lag_seconds_max. */ + public replication_lag_seconds_max: number; + + /** + * Creates a new AggregateStats instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregateStats instance + */ + public static create(properties?: query.IAggregateStats): query.AggregateStats; + + /** + * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * @param message AggregateStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. + * @param message AggregateStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregateStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregateStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.AggregateStats; + + /** + * Decodes an AggregateStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregateStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.AggregateStats; + + /** + * Verifies an AggregateStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregateStats + */ + public static fromObject(object: { [k: string]: any }): query.AggregateStats; + + /** + * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. + * @param message AggregateStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.AggregateStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregateStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregateStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StreamHealthResponse. */ + interface IStreamHealthResponse { + + /** StreamHealthResponse target */ + target?: (query.ITarget|null); + + /** StreamHealthResponse serving */ + serving?: (boolean|null); + + /** StreamHealthResponse primary_term_start_timestamp */ + primary_term_start_timestamp?: (number|Long|null); + + /** StreamHealthResponse realtime_stats */ + realtime_stats?: (query.IRealtimeStats|null); + + /** StreamHealthResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StreamHealthResponse. */ + class StreamHealthResponse implements IStreamHealthResponse { + + /** + * Constructs a new StreamHealthResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IStreamHealthResponse); + + /** StreamHealthResponse target. */ + public target?: (query.ITarget|null); + + /** StreamHealthResponse serving. */ + public serving: boolean; + + /** StreamHealthResponse primary_term_start_timestamp. */ + public primary_term_start_timestamp: (number|Long); + + /** StreamHealthResponse realtime_stats. */ + public realtime_stats?: (query.IRealtimeStats|null); + + /** StreamHealthResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StreamHealthResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamHealthResponse instance + */ + public static create(properties?: query.IStreamHealthResponse): query.StreamHealthResponse; + + /** + * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * @param message StreamHealthResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * @param message StreamHealthResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamHealthResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamHealthResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthResponse; + + /** + * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamHealthResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthResponse; + + /** + * Verifies a StreamHealthResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamHealthResponse + */ + public static fromObject(object: { [k: string]: any }): query.StreamHealthResponse; + + /** + * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. + * @param message StreamHealthResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.StreamHealthResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamHealthResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamHealthResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** TransactionState enum. */ + enum TransactionState { + UNKNOWN = 0, + PREPARE = 1, + ROLLBACK = 2, + COMMIT = 3 + } + + /** Properties of a TransactionMetadata. */ + interface ITransactionMetadata { + + /** TransactionMetadata dtid */ + dtid?: (string|null); + + /** TransactionMetadata state */ + state?: (query.TransactionState|null); + + /** TransactionMetadata time_created */ + time_created?: (number|Long|null); + + /** TransactionMetadata participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a TransactionMetadata. */ + class TransactionMetadata implements ITransactionMetadata { + + /** + * Constructs a new TransactionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: query.ITransactionMetadata); + + /** TransactionMetadata dtid. */ + public dtid: string; + + /** TransactionMetadata state. */ + public state: query.TransactionState; + + /** TransactionMetadata time_created. */ + public time_created: (number|Long); + + /** TransactionMetadata participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new TransactionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TransactionMetadata instance + */ + public static create(properties?: query.ITransactionMetadata): query.TransactionMetadata; + + /** + * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * @param message TransactionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * @param message TransactionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TransactionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransactionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.TransactionMetadata; + + /** + * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransactionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.TransactionMetadata; + + /** + * Verifies a TransactionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransactionMetadata + */ + public static fromObject(object: { [k: string]: any }): query.TransactionMetadata; + + /** + * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. + * @param message TransactionMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.TransactionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TransactionMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransactionMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** SchemaTableType enum. */ + enum SchemaTableType { + VIEWS = 0, + TABLES = 1, + ALL = 2, + UDFS = 3 + } + + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest target */ + target?: (query.ITarget|null); + + /** GetSchemaRequest table_type */ + table_type?: (query.SchemaTableType|null); + + /** GetSchemaRequest table_names */ + table_names?: (string[]|null); + } + + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { + + /** + * Constructs a new GetSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: query.IGetSchemaRequest); + + /** GetSchemaRequest target. */ + public target?: (query.ITarget|null); + + /** GetSchemaRequest table_type. */ + public table_type: query.SchemaTableType; + + /** GetSchemaRequest table_names. */ + public table_names: string[]; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaRequest instance + */ + public static create(properties?: query.IGetSchemaRequest): query.GetSchemaRequest; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaRequest; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaRequest; + + /** + * Verifies a GetSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): query.GetSchemaRequest; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a UDFInfo. */ + interface IUDFInfo { + + /** UDFInfo name */ + name?: (string|null); + + /** UDFInfo aggregating */ + aggregating?: (boolean|null); + + /** UDFInfo return_type */ + return_type?: (query.Type|null); + } + + /** Represents a UDFInfo. */ + class UDFInfo implements IUDFInfo { + + /** + * Constructs a new UDFInfo. + * @param [properties] Properties to set + */ + constructor(properties?: query.IUDFInfo); + + /** UDFInfo name. */ + public name: string; + + /** UDFInfo aggregating. */ + public aggregating: boolean; + + /** UDFInfo return_type. */ + public return_type: query.Type; + + /** + * Creates a new UDFInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UDFInfo instance + */ + public static create(properties?: query.IUDFInfo): query.UDFInfo; + + /** + * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * @param message UDFInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. + * @param message UDFInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UDFInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UDFInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UDFInfo; + + /** + * Decodes a UDFInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UDFInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UDFInfo; + + /** + * Verifies a UDFInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UDFInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UDFInfo + */ + public static fromObject(object: { [k: string]: any }): query.UDFInfo; + + /** + * Creates a plain object from a UDFInfo message. Also converts values to other types if specified. + * @param message UDFInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.UDFInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UDFInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UDFInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse udfs */ + udfs?: (query.IUDFInfo[]|null); + + /** GetSchemaResponse table_definition */ + table_definition?: ({ [k: string]: string }|null); + } + + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { + + /** + * Constructs a new GetSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: query.IGetSchemaResponse); + + /** GetSchemaResponse udfs. */ + public udfs: query.IUDFInfo[]; + + /** GetSchemaResponse table_definition. */ + public table_definition: { [k: string]: string }; + + /** + * Creates a new GetSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaResponse instance + */ + public static create(properties?: query.IGetSchemaResponse): query.GetSchemaResponse; + + /** + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaResponse; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaResponse; + + /** + * Verifies a GetSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): query.GetSchemaResponse; + + /** + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * @param message GetSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: query.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace replicationdata. */ +export namespace replicationdata { + + /** Properties of a Status. */ + interface IStatus { + + /** Status position */ + position?: (string|null); + + /** Status replication_lag_seconds */ + replication_lag_seconds?: (number|null); + + /** Status source_host */ + source_host?: (string|null); + + /** Status source_port */ + source_port?: (number|null); + + /** Status connect_retry */ + connect_retry?: (number|null); + + /** Status relay_log_position */ + relay_log_position?: (string|null); + + /** Status file_position */ + file_position?: (string|null); + + /** Status relay_log_source_binlog_equivalent_position */ + relay_log_source_binlog_equivalent_position?: (string|null); + + /** Status source_server_id */ + source_server_id?: (number|null); + + /** Status source_uuid */ + source_uuid?: (string|null); + + /** Status io_state */ + io_state?: (number|null); + + /** Status last_io_error */ + last_io_error?: (string|null); + + /** Status sql_state */ + sql_state?: (number|null); + + /** Status last_sql_error */ + last_sql_error?: (string|null); + + /** Status relay_log_file_position */ + relay_log_file_position?: (string|null); + + /** Status source_user */ + source_user?: (string|null); + + /** Status sql_delay */ + sql_delay?: (number|null); + + /** Status auto_position */ + auto_position?: (boolean|null); + + /** Status using_gtid */ + using_gtid?: (boolean|null); + + /** Status has_replication_filters */ + has_replication_filters?: (boolean|null); + + /** Status ssl_allowed */ + ssl_allowed?: (boolean|null); + + /** Status replication_lag_unknown */ + replication_lag_unknown?: (boolean|null); + } + + /** Represents a Status. */ + class Status implements IStatus { + + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IStatus); + + /** Status position. */ + public position: string; + + /** Status replication_lag_seconds. */ + public replication_lag_seconds: number; + + /** Status source_host. */ + public source_host: string; + + /** Status source_port. */ + public source_port: number; + + /** Status connect_retry. */ + public connect_retry: number; + + /** Status relay_log_position. */ + public relay_log_position: string; + + /** Status file_position. */ + public file_position: string; + + /** Status relay_log_source_binlog_equivalent_position. */ + public relay_log_source_binlog_equivalent_position: string; + + /** Status source_server_id. */ + public source_server_id: number; + + /** Status source_uuid. */ + public source_uuid: string; + + /** Status io_state. */ + public io_state: number; + + /** Status last_io_error. */ + public last_io_error: string; + + /** Status sql_state. */ + public sql_state: number; + + /** Status last_sql_error. */ + public last_sql_error: string; + + /** Status relay_log_file_position. */ + public relay_log_file_position: string; + + /** Status source_user. */ + public source_user: string; + + /** Status sql_delay. */ + public sql_delay: number; + + /** Status auto_position. */ + public auto_position: boolean; + + /** Status using_gtid. */ + public using_gtid: boolean; + + /** Status has_replication_filters. */ + public has_replication_filters: boolean; + + /** Status ssl_allowed. */ + public ssl_allowed: boolean; + + /** Status replication_lag_unknown. */ + public replication_lag_unknown: boolean; + + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: replicationdata.IStatus): replicationdata.Status; + + /** + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Status; + + /** + * Decodes a Status message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Status + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Status; + + /** + * Verifies a Status message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): replicationdata.Status; + + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Configuration. */ + interface IConfiguration { + + /** Configuration heartbeat_interval */ + heartbeat_interval?: (number|null); + + /** Configuration replica_net_timeout */ + replica_net_timeout?: (number|null); + } + + /** Represents a Configuration. */ + class Configuration implements IConfiguration { + + /** + * Constructs a new Configuration. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IConfiguration); + + /** Configuration heartbeat_interval. */ + public heartbeat_interval: number; + + /** Configuration replica_net_timeout. */ + public replica_net_timeout: number; + + /** + * Creates a new Configuration instance using the specified properties. + * @param [properties] Properties to set + * @returns Configuration instance + */ + public static create(properties?: replicationdata.IConfiguration): replicationdata.Configuration; + + /** + * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * @param message Configuration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. + * @param message Configuration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Configuration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Configuration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Configuration; + + /** + * Decodes a Configuration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Configuration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Configuration; + + /** + * Verifies a Configuration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Configuration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Configuration + */ + public static fromObject(object: { [k: string]: any }): replicationdata.Configuration; + + /** + * Creates a plain object from a Configuration message. Also converts values to other types if specified. + * @param message Configuration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.Configuration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Configuration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Configuration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationStatus. */ + interface IStopReplicationStatus { + + /** StopReplicationStatus before */ + before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after */ + after?: (replicationdata.IStatus|null); + } + + /** Represents a StopReplicationStatus. */ + class StopReplicationStatus implements IStopReplicationStatus { + + /** + * Constructs a new StopReplicationStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IStopReplicationStatus); + + /** StopReplicationStatus before. */ + public before?: (replicationdata.IStatus|null); + + /** StopReplicationStatus after. */ + public after?: (replicationdata.IStatus|null); + + /** + * Creates a new StopReplicationStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationStatus instance + */ + public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; + + /** + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @param message StopReplicationStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.StopReplicationStatus; + + /** + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.StopReplicationStatus; + + /** + * Verifies a StopReplicationStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; + + /** + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * @param message StopReplicationStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** StopReplicationMode enum. */ + enum StopReplicationMode { + IOANDSQLTHREAD = 0, + IOTHREADONLY = 1 + } + + /** Properties of a PrimaryStatus. */ + interface IPrimaryStatus { + + /** PrimaryStatus position */ + position?: (string|null); + + /** PrimaryStatus file_position */ + file_position?: (string|null); + } + + /** Represents a PrimaryStatus. */ + class PrimaryStatus implements IPrimaryStatus { + + /** + * Constructs a new PrimaryStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IPrimaryStatus); + + /** PrimaryStatus position. */ + public position: string; + + /** PrimaryStatus file_position. */ + public file_position: string; + + /** + * Creates a new PrimaryStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PrimaryStatus instance + */ + public static create(properties?: replicationdata.IPrimaryStatus): replicationdata.PrimaryStatus; + + /** + * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * @param message PrimaryStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * @param message PrimaryStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrimaryStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrimaryStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.PrimaryStatus; + + /** + * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrimaryStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.PrimaryStatus; + + /** + * Verifies a PrimaryStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrimaryStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.PrimaryStatus; + + /** + * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. + * @param message PrimaryStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.PrimaryStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrimaryStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrimaryStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FullStatus. */ + interface IFullStatus { + + /** FullStatus server_id */ + server_id?: (number|null); + + /** FullStatus server_uuid */ + server_uuid?: (string|null); + + /** FullStatus replication_status */ + replication_status?: (replicationdata.IStatus|null); + + /** FullStatus primary_status */ + primary_status?: (replicationdata.IPrimaryStatus|null); + + /** FullStatus gtid_purged */ + gtid_purged?: (string|null); + + /** FullStatus version */ + version?: (string|null); + + /** FullStatus version_comment */ + version_comment?: (string|null); + + /** FullStatus read_only */ + read_only?: (boolean|null); + + /** FullStatus gtid_mode */ + gtid_mode?: (string|null); + + /** FullStatus binlog_format */ + binlog_format?: (string|null); + + /** FullStatus binlog_row_image */ + binlog_row_image?: (string|null); + + /** FullStatus log_bin_enabled */ + log_bin_enabled?: (boolean|null); + + /** FullStatus log_replica_updates */ + log_replica_updates?: (boolean|null); + + /** FullStatus semi_sync_primary_enabled */ + semi_sync_primary_enabled?: (boolean|null); + + /** FullStatus semi_sync_replica_enabled */ + semi_sync_replica_enabled?: (boolean|null); + + /** FullStatus semi_sync_primary_status */ + semi_sync_primary_status?: (boolean|null); + + /** FullStatus semi_sync_replica_status */ + semi_sync_replica_status?: (boolean|null); + + /** FullStatus semi_sync_primary_clients */ + semi_sync_primary_clients?: (number|null); + + /** FullStatus semi_sync_primary_timeout */ + semi_sync_primary_timeout?: (number|Long|null); + + /** FullStatus semi_sync_wait_for_replica_count */ + semi_sync_wait_for_replica_count?: (number|null); + + /** FullStatus super_read_only */ + super_read_only?: (boolean|null); + + /** FullStatus replication_configuration */ + replication_configuration?: (replicationdata.IConfiguration|null); + } + + /** Represents a FullStatus. */ + class FullStatus implements IFullStatus { + + /** + * Constructs a new FullStatus. + * @param [properties] Properties to set + */ + constructor(properties?: replicationdata.IFullStatus); + + /** FullStatus server_id. */ + public server_id: number; + + /** FullStatus server_uuid. */ + public server_uuid: string; + + /** FullStatus replication_status. */ + public replication_status?: (replicationdata.IStatus|null); + + /** FullStatus primary_status. */ + public primary_status?: (replicationdata.IPrimaryStatus|null); + + /** FullStatus gtid_purged. */ + public gtid_purged: string; + + /** FullStatus version. */ + public version: string; + + /** FullStatus version_comment. */ + public version_comment: string; + + /** FullStatus read_only. */ + public read_only: boolean; + + /** FullStatus gtid_mode. */ + public gtid_mode: string; + + /** FullStatus binlog_format. */ + public binlog_format: string; + + /** FullStatus binlog_row_image. */ + public binlog_row_image: string; + + /** FullStatus log_bin_enabled. */ + public log_bin_enabled: boolean; + + /** FullStatus log_replica_updates. */ + public log_replica_updates: boolean; + + /** FullStatus semi_sync_primary_enabled. */ + public semi_sync_primary_enabled: boolean; + + /** FullStatus semi_sync_replica_enabled. */ + public semi_sync_replica_enabled: boolean; + + /** FullStatus semi_sync_primary_status. */ + public semi_sync_primary_status: boolean; + + /** FullStatus semi_sync_replica_status. */ + public semi_sync_replica_status: boolean; + + /** FullStatus semi_sync_primary_clients. */ + public semi_sync_primary_clients: number; + + /** FullStatus semi_sync_primary_timeout. */ + public semi_sync_primary_timeout: (number|Long); + + /** FullStatus semi_sync_wait_for_replica_count. */ + public semi_sync_wait_for_replica_count: number; + + /** FullStatus super_read_only. */ + public super_read_only: boolean; + + /** FullStatus replication_configuration. */ + public replication_configuration?: (replicationdata.IConfiguration|null); + + /** + * Creates a new FullStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns FullStatus instance + */ + public static create(properties?: replicationdata.IFullStatus): replicationdata.FullStatus; + + /** + * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * @param message FullStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * @param message FullStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FullStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.FullStatus; + + /** + * Decodes a FullStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.FullStatus; + + /** + * Verifies a FullStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullStatus + */ + public static fromObject(object: { [k: string]: any }): replicationdata.FullStatus; + + /** + * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * @param message FullStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: replicationdata.FullStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FullStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace vschema. */ +export namespace vschema { + + /** Properties of a RoutingRules. */ + interface IRoutingRules { + + /** RoutingRules rules */ + rules?: (vschema.IRoutingRule[]|null); + } + + /** Represents a RoutingRules. */ + class RoutingRules implements IRoutingRules { + + /** + * Constructs a new RoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IRoutingRules); + + /** RoutingRules rules. */ + public rules: vschema.IRoutingRule[]; + + /** + * Creates a new RoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingRules instance + */ + public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; + + /** + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. + * @param message RoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRules; + + /** + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRules; + + /** + * Verifies a RoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; + + /** + * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. + * @param message RoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RoutingRule. */ + interface IRoutingRule { + + /** RoutingRule from_table */ + from_table?: (string|null); + + /** RoutingRule to_tables */ + to_tables?: (string[]|null); + } + + /** Represents a RoutingRule. */ + class RoutingRule implements IRoutingRule { + + /** + * Constructs a new RoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IRoutingRule); + + /** RoutingRule from_table. */ + public from_table: string; + + /** RoutingRule to_tables. */ + public to_tables: string[]; + + /** + * Creates a new RoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingRule instance + */ + public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; + + /** + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * @param message RoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRule; + + /** + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRule; + + /** + * Verifies a RoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; + + /** + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. + * @param message RoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Keyspace. */ + interface IKeyspace { + + /** Keyspace sharded */ + sharded?: (boolean|null); + + /** Keyspace vindexes */ + vindexes?: ({ [k: string]: vschema.IVindex }|null); + + /** Keyspace tables */ + tables?: ({ [k: string]: vschema.ITable }|null); + + /** Keyspace require_explicit_routing */ + require_explicit_routing?: (boolean|null); + + /** Keyspace foreign_key_mode */ + foreign_key_mode?: (vschema.Keyspace.ForeignKeyMode|null); + + /** Keyspace multi_tenant_spec */ + multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + } + + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { + + /** + * Constructs a new Keyspace. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspace); + + /** Keyspace sharded. */ + public sharded: boolean; + + /** Keyspace vindexes. */ + public vindexes: { [k: string]: vschema.IVindex }; + + /** Keyspace tables. */ + public tables: { [k: string]: vschema.ITable }; + + /** Keyspace require_explicit_routing. */ + public require_explicit_routing: boolean; + + /** Keyspace foreign_key_mode. */ + public foreign_key_mode: vschema.Keyspace.ForeignKeyMode; + + /** Keyspace multi_tenant_spec. */ + public multi_tenant_spec?: (vschema.IMultiTenantSpec|null); + + /** + * Creates a new Keyspace instance using the specified properties. + * @param [properties] Properties to set + * @returns Keyspace instance + */ + public static create(properties?: vschema.IKeyspace): vschema.Keyspace; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Keyspace; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Keyspace; + + /** + * Verifies a Keyspace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Keyspace + */ + public static fromObject(object: { [k: string]: any }): vschema.Keyspace; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Keyspace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Keyspace + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Keyspace { + + /** ForeignKeyMode enum. */ + enum ForeignKeyMode { + unspecified = 0, + disallow = 1, + unmanaged = 2, + managed = 3 + } + } + + /** Properties of a MultiTenantSpec. */ + interface IMultiTenantSpec { + + /** MultiTenantSpec tenant_id_column_name */ + tenant_id_column_name?: (string|null); + + /** MultiTenantSpec tenant_id_column_type */ + tenant_id_column_type?: (query.Type|null); + } + + /** Represents a MultiTenantSpec. */ + class MultiTenantSpec implements IMultiTenantSpec { + + /** + * Constructs a new MultiTenantSpec. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMultiTenantSpec); + + /** MultiTenantSpec tenant_id_column_name. */ + public tenant_id_column_name: string; + + /** MultiTenantSpec tenant_id_column_type. */ + public tenant_id_column_type: query.Type; + + /** + * Creates a new MultiTenantSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTenantSpec instance + */ + public static create(properties?: vschema.IMultiTenantSpec): vschema.MultiTenantSpec; + + /** + * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * @param message MultiTenantSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. + * @param message MultiTenantSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTenantSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTenantSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MultiTenantSpec; + + /** + * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTenantSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MultiTenantSpec; + + /** + * Verifies a MultiTenantSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTenantSpec + */ + public static fromObject(object: { [k: string]: any }): vschema.MultiTenantSpec; + + /** + * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. + * @param message MultiTenantSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MultiTenantSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTenantSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTenantSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Vindex. */ + interface IVindex { + + /** Vindex type */ + type?: (string|null); + + /** Vindex params */ + params?: ({ [k: string]: string }|null); + + /** Vindex owner */ + owner?: (string|null); + } + + /** Represents a Vindex. */ + class Vindex implements IVindex { + + /** + * Constructs a new Vindex. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IVindex); + + /** Vindex type. */ + public type: string; + + /** Vindex params. */ + public params: { [k: string]: string }; + + /** Vindex owner. */ + public owner: string; + + /** + * Creates a new Vindex instance using the specified properties. + * @param [properties] Properties to set + * @returns Vindex instance + */ + public static create(properties?: vschema.IVindex): vschema.Vindex; + + /** + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * @param message Vindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Vindex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; + + /** + * Decodes a Vindex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; + + /** + * Verifies a Vindex message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vindex + */ + public static fromObject(object: { [k: string]: any }): vschema.Vindex; + + /** + * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * @param message Vindex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Vindex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Vindex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Table. */ + interface ITable { + + /** Table type */ + type?: (string|null); + + /** Table column_vindexes */ + column_vindexes?: (vschema.IColumnVindex[]|null); + + /** Table auto_increment */ + auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns */ + columns?: (vschema.IColumn[]|null); + + /** Table pinned */ + pinned?: (string|null); + + /** Table column_list_authoritative */ + column_list_authoritative?: (boolean|null); + + /** Table source */ + source?: (string|null); + } + + /** Represents a Table. */ + class Table implements ITable { + + /** + * Constructs a new Table. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.ITable); + + /** Table type. */ + public type: string; + + /** Table column_vindexes. */ + public column_vindexes: vschema.IColumnVindex[]; + + /** Table auto_increment. */ + public auto_increment?: (vschema.IAutoIncrement|null); + + /** Table columns. */ + public columns: vschema.IColumn[]; + + /** Table pinned. */ + public pinned: string; + + /** Table column_list_authoritative. */ + public column_list_authoritative: boolean; + + /** Table source. */ + public source: string; + + /** + * Creates a new Table instance using the specified properties. + * @param [properties] Properties to set + * @returns Table instance + */ + public static create(properties?: vschema.ITable): vschema.Table; + + /** + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * @param message Table message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Table message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; + + /** + * Decodes a Table message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Table + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; + + /** + * Verifies a Table message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Table message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Table + */ + public static fromObject(object: { [k: string]: any }): vschema.Table; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @param message Table + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Table to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Table + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ColumnVindex. */ + interface IColumnVindex { + + /** ColumnVindex column */ + column?: (string|null); + + /** ColumnVindex name */ + name?: (string|null); + + /** ColumnVindex columns */ + columns?: (string[]|null); + } + + /** Represents a ColumnVindex. */ + class ColumnVindex implements IColumnVindex { + + /** + * Constructs a new ColumnVindex. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IColumnVindex); + + /** ColumnVindex column. */ + public column: string; + + /** ColumnVindex name. */ + public name: string; + + /** ColumnVindex columns. */ + public columns: string[]; + + /** + * Creates a new ColumnVindex instance using the specified properties. + * @param [properties] Properties to set + * @returns ColumnVindex instance + */ + public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; + + /** + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * @param message ColumnVindex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ColumnVindex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ColumnVindex; + + /** + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ColumnVindex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ColumnVindex; + + /** + * Verifies a ColumnVindex message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ColumnVindex + */ + public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; + + /** + * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. + * @param message ColumnVindex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ColumnVindex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ColumnVindex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoIncrement. */ + interface IAutoIncrement { + + /** AutoIncrement column */ + column?: (string|null); + + /** AutoIncrement sequence */ + sequence?: (string|null); + } + + /** Represents an AutoIncrement. */ + class AutoIncrement implements IAutoIncrement { + + /** + * Constructs a new AutoIncrement. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IAutoIncrement); + + /** AutoIncrement column. */ + public column: string; + + /** AutoIncrement sequence. */ + public sequence: string; + + /** + * Creates a new AutoIncrement instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoIncrement instance + */ + public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; + + /** + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * @param message AutoIncrement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.AutoIncrement; + + /** + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoIncrement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.AutoIncrement; + + /** + * Verifies an AutoIncrement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoIncrement + */ + public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; + + /** + * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. + * @param message AutoIncrement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoIncrement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoIncrement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Column. */ + interface IColumn { + + /** Column name */ + name?: (string|null); + + /** Column type */ + type?: (query.Type|null); + + /** Column invisible */ + invisible?: (boolean|null); + + /** Column default */ + "default"?: (string|null); + + /** Column collation_name */ + collation_name?: (string|null); + + /** Column size */ + size?: (number|null); + + /** Column scale */ + scale?: (number|null); + + /** Column nullable */ + nullable?: (boolean|null); + + /** Column values */ + values?: (string[]|null); + } + + /** Represents a Column. */ + class Column implements IColumn { + + /** + * Constructs a new Column. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IColumn); + + /** Column name. */ + public name: string; + + /** Column type. */ + public type: query.Type; + + /** Column invisible. */ + public invisible: boolean; + + /** Column default. */ + public default: string; + + /** Column collation_name. */ + public collation_name: string; + + /** Column size. */ + public size: number; + + /** Column scale. */ + public scale: number; + + /** Column nullable. */ + public nullable?: (boolean|null); + + /** Column values. */ + public values: string[]; + + /** Column _nullable. */ + public _nullable?: "nullable"; + + /** + * Creates a new Column instance using the specified properties. + * @param [properties] Properties to set + * @returns Column instance + */ + public static create(properties?: vschema.IColumn): vschema.Column; + + /** + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * @param message Column message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Column message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; + + /** + * Decodes a Column message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Column + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; + + /** + * Verifies a Column message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Column message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Column + */ + public static fromObject(object: { [k: string]: any }): vschema.Column; + + /** + * Creates a plain object from a Column message. Also converts values to other types if specified. + * @param message Column + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Column to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Column + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SrvVSchema. */ + interface ISrvVSchema { + + /** SrvVSchema keyspaces */ + keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); + + /** SrvVSchema routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + + /** SrvVSchema shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** SrvVSchema keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** SrvVSchema mirror_rules */ + mirror_rules?: (vschema.IMirrorRules|null); + } + + /** Represents a SrvVSchema. */ + class SrvVSchema implements ISrvVSchema { + + /** + * Constructs a new SrvVSchema. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.ISrvVSchema); + + /** SrvVSchema keyspaces. */ + public keyspaces: { [k: string]: vschema.IKeyspace }; + + /** SrvVSchema routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** SrvVSchema shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** SrvVSchema keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** SrvVSchema mirror_rules. */ + public mirror_rules?: (vschema.IMirrorRules|null); + + /** + * Creates a new SrvVSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns SrvVSchema instance + */ + public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; + + /** + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * @param message SrvVSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.SrvVSchema; + + /** + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SrvVSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.SrvVSchema; + + /** + * Verifies a SrvVSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SrvVSchema + */ + public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; + + /** + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * @param message SrvVSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SrvVSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SrvVSchema + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardRoutingRules. */ + interface IShardRoutingRules { + + /** ShardRoutingRules rules */ + rules?: (vschema.IShardRoutingRule[]|null); + } + + /** Represents a ShardRoutingRules. */ + class ShardRoutingRules implements IShardRoutingRules { + + /** + * Constructs a new ShardRoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IShardRoutingRules); + + /** ShardRoutingRules rules. */ + public rules: vschema.IShardRoutingRule[]; + + /** + * Creates a new ShardRoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardRoutingRules instance + */ + public static create(properties?: vschema.IShardRoutingRules): vschema.ShardRoutingRules; + + /** + * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @param message ShardRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * @param message ShardRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRules; + + /** + * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRules; + + /** + * Verifies a ShardRoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardRoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRules; + + /** + * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. + * @param message ShardRoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ShardRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardRoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardRoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardRoutingRule. */ + interface IShardRoutingRule { + + /** ShardRoutingRule from_keyspace */ + from_keyspace?: (string|null); + + /** ShardRoutingRule to_keyspace */ + to_keyspace?: (string|null); + + /** ShardRoutingRule shard */ + shard?: (string|null); + } + + /** Represents a ShardRoutingRule. */ + class ShardRoutingRule implements IShardRoutingRule { + + /** + * Constructs a new ShardRoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IShardRoutingRule); + + /** ShardRoutingRule from_keyspace. */ + public from_keyspace: string; + + /** ShardRoutingRule to_keyspace. */ + public to_keyspace: string; + + /** ShardRoutingRule shard. */ + public shard: string; + + /** + * Creates a new ShardRoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardRoutingRule instance + */ + public static create(properties?: vschema.IShardRoutingRule): vschema.ShardRoutingRule; + + /** + * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @param message ShardRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @param message ShardRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRule; + + /** + * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRule; + + /** + * Verifies a ShardRoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardRoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRule; + + /** + * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * @param message ShardRoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.ShardRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardRoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardRoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KeyspaceRoutingRules. */ + interface IKeyspaceRoutingRules { + + /** KeyspaceRoutingRules rules */ + rules?: (vschema.IKeyspaceRoutingRule[]|null); + } + + /** Represents a KeyspaceRoutingRules. */ + class KeyspaceRoutingRules implements IKeyspaceRoutingRules { + + /** + * Constructs a new KeyspaceRoutingRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspaceRoutingRules); + + /** KeyspaceRoutingRules rules. */ + public rules: vschema.IKeyspaceRoutingRule[]; + + /** + * Creates a new KeyspaceRoutingRules instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyspaceRoutingRules instance + */ + public static create(properties?: vschema.IKeyspaceRoutingRules): vschema.KeyspaceRoutingRules; + + /** + * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * @param message KeyspaceRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. + * @param message KeyspaceRoutingRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyspaceRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRules; + + /** + * Decodes a KeyspaceRoutingRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyspaceRoutingRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRules; + + /** + * Verifies a KeyspaceRoutingRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyspaceRoutingRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyspaceRoutingRules + */ + public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRules; + + /** + * Creates a plain object from a KeyspaceRoutingRules message. Also converts values to other types if specified. + * @param message KeyspaceRoutingRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.KeyspaceRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyspaceRoutingRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyspaceRoutingRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a KeyspaceRoutingRule. */ + interface IKeyspaceRoutingRule { + + /** KeyspaceRoutingRule from_keyspace */ + from_keyspace?: (string|null); + + /** KeyspaceRoutingRule to_keyspace */ + to_keyspace?: (string|null); + } + + /** Represents a KeyspaceRoutingRule. */ + class KeyspaceRoutingRule implements IKeyspaceRoutingRule { + + /** + * Constructs a new KeyspaceRoutingRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IKeyspaceRoutingRule); + + /** KeyspaceRoutingRule from_keyspace. */ + public from_keyspace: string; + + /** KeyspaceRoutingRule to_keyspace. */ + public to_keyspace: string; + + /** + * Creates a new KeyspaceRoutingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyspaceRoutingRule instance + */ + public static create(properties?: vschema.IKeyspaceRoutingRule): vschema.KeyspaceRoutingRule; + + /** + * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * @param message KeyspaceRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. + * @param message KeyspaceRoutingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyspaceRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRule; + + /** + * Decodes a KeyspaceRoutingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyspaceRoutingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRule; + + /** + * Verifies a KeyspaceRoutingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyspaceRoutingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyspaceRoutingRule + */ + public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRule; + + /** + * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. + * @param message KeyspaceRoutingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.KeyspaceRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyspaceRoutingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyspaceRoutingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MirrorRules. */ + interface IMirrorRules { + + /** MirrorRules rules */ + rules?: (vschema.IMirrorRule[]|null); + } + + /** Represents a MirrorRules. */ + class MirrorRules implements IMirrorRules { + + /** + * Constructs a new MirrorRules. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMirrorRules); + + /** MirrorRules rules. */ + public rules: vschema.IMirrorRule[]; + + /** + * Creates a new MirrorRules instance using the specified properties. + * @param [properties] Properties to set + * @returns MirrorRules instance + */ + public static create(properties?: vschema.IMirrorRules): vschema.MirrorRules; + + /** + * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @param message MirrorRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. + * @param message MirrorRules message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MirrorRules message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRules; + + /** + * Decodes a MirrorRules message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MirrorRules + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRules; + + /** + * Verifies a MirrorRules message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MirrorRules + */ + public static fromObject(object: { [k: string]: any }): vschema.MirrorRules; + + /** + * Creates a plain object from a MirrorRules message. Also converts values to other types if specified. + * @param message MirrorRules + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MirrorRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MirrorRules to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MirrorRules + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MirrorRule. */ + interface IMirrorRule { + + /** MirrorRule from_table */ + from_table?: (string|null); + + /** MirrorRule to_table */ + to_table?: (string|null); + + /** MirrorRule percent */ + percent?: (number|null); + } + + /** Represents a MirrorRule. */ + class MirrorRule implements IMirrorRule { + + /** + * Constructs a new MirrorRule. + * @param [properties] Properties to set + */ + constructor(properties?: vschema.IMirrorRule); + + /** MirrorRule from_table. */ + public from_table: string; + + /** MirrorRule to_table. */ + public to_table: string; + + /** MirrorRule percent. */ + public percent: number; + + /** + * Creates a new MirrorRule instance using the specified properties. + * @param [properties] Properties to set + * @returns MirrorRule instance + */ + public static create(properties?: vschema.IMirrorRule): vschema.MirrorRule; + + /** + * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @param message MirrorRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. + * @param message MirrorRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MirrorRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRule; + + /** + * Decodes a MirrorRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MirrorRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRule; + + /** + * Verifies a MirrorRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MirrorRule + */ + public static fromObject(object: { [k: string]: any }): vschema.MirrorRule; + + /** + * Creates a plain object from a MirrorRule message. Also converts values to other types if specified. + * @param message MirrorRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vschema.MirrorRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MirrorRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MirrorRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace vtctldata. */ +export namespace vtctldata { + + /** Properties of an ExecuteVtctlCommandRequest. */ + interface IExecuteVtctlCommandRequest { + + /** ExecuteVtctlCommandRequest args */ + args?: (string[]|null); + + /** ExecuteVtctlCommandRequest action_timeout */ + action_timeout?: (number|Long|null); + } + + /** Represents an ExecuteVtctlCommandRequest. */ + class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { + + /** + * Constructs a new ExecuteVtctlCommandRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); + + /** ExecuteVtctlCommandRequest args. */ + public args: string[]; + + /** ExecuteVtctlCommandRequest action_timeout. */ + public action_timeout: (number|Long); + + /** + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandRequest instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * @param message ExecuteVtctlCommandRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Verifies an ExecuteVtctlCommandRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; + + /** + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteVtctlCommandRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteVtctlCommandResponse. */ + interface IExecuteVtctlCommandResponse { + + /** ExecuteVtctlCommandResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents an ExecuteVtctlCommandResponse. */ + class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { + + /** + * Constructs a new ExecuteVtctlCommandResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); + + /** ExecuteVtctlCommandResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteVtctlCommandResponse instance + */ + public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @param message ExecuteVtctlCommandResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Verifies an ExecuteVtctlCommandResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteVtctlCommandResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; + + /** + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @param message ExecuteVtctlCommandResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteVtctlCommandResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MaterializationIntent enum. */ + enum MaterializationIntent { + CUSTOM = 0, + MOVETABLES = 1, + CREATELOOKUPINDEX = 2 + } + + /** Properties of a TableMaterializeSettings. */ + interface ITableMaterializeSettings { + + /** TableMaterializeSettings target_table */ + target_table?: (string|null); + + /** TableMaterializeSettings source_expression */ + source_expression?: (string|null); + + /** TableMaterializeSettings create_ddl */ + create_ddl?: (string|null); + } + + /** Represents a TableMaterializeSettings. */ + class TableMaterializeSettings implements ITableMaterializeSettings { + + /** + * Constructs a new TableMaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITableMaterializeSettings); + + /** TableMaterializeSettings target_table. */ + public target_table: string; + + /** TableMaterializeSettings source_expression. */ + public source_expression: string; + + /** TableMaterializeSettings create_ddl. */ + public create_ddl: string; + + /** + * Creates a new TableMaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns TableMaterializeSettings instance + */ + public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; + + /** + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * @param message TableMaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; + + /** + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableMaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; + + /** + * Verifies a TableMaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableMaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; + + /** + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * @param message TableMaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableMaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TableMaterializeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeSettings. */ + interface IMaterializeSettings { + + /** MaterializeSettings workflow */ + workflow?: (string|null); + + /** MaterializeSettings source_keyspace */ + source_keyspace?: (string|null); + + /** MaterializeSettings target_keyspace */ + target_keyspace?: (string|null); + + /** MaterializeSettings stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MaterializeSettings table_settings */ + table_settings?: (vtctldata.ITableMaterializeSettings[]|null); + + /** MaterializeSettings cell */ + cell?: (string|null); + + /** MaterializeSettings tablet_types */ + tablet_types?: (string|null); + + /** MaterializeSettings external_cluster */ + external_cluster?: (string|null); + + /** MaterializeSettings materialization_intent */ + materialization_intent?: (vtctldata.MaterializationIntent|null); + + /** MaterializeSettings source_time_zone */ + source_time_zone?: (string|null); + + /** MaterializeSettings target_time_zone */ + target_time_zone?: (string|null); + + /** MaterializeSettings source_shards */ + source_shards?: (string[]|null); + + /** MaterializeSettings on_ddl */ + on_ddl?: (string|null); + + /** MaterializeSettings defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MaterializeSettings tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MaterializeSettings atomic_copy */ + atomic_copy?: (boolean|null); + + /** MaterializeSettings workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** MaterializeSettings reference_tables */ + reference_tables?: (string[]|null); + } + + /** Represents a MaterializeSettings. */ + class MaterializeSettings implements IMaterializeSettings { + + /** + * Constructs a new MaterializeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeSettings); + + /** MaterializeSettings workflow. */ + public workflow: string; + + /** MaterializeSettings source_keyspace. */ + public source_keyspace: string; + + /** MaterializeSettings target_keyspace. */ + public target_keyspace: string; + + /** MaterializeSettings stop_after_copy. */ + public stop_after_copy: boolean; + + /** MaterializeSettings table_settings. */ + public table_settings: vtctldata.ITableMaterializeSettings[]; + + /** MaterializeSettings cell. */ + public cell: string; + + /** MaterializeSettings tablet_types. */ + public tablet_types: string; + + /** MaterializeSettings external_cluster. */ + public external_cluster: string; + + /** MaterializeSettings materialization_intent. */ + public materialization_intent: vtctldata.MaterializationIntent; + + /** MaterializeSettings source_time_zone. */ + public source_time_zone: string; + + /** MaterializeSettings target_time_zone. */ + public target_time_zone: string; + + /** MaterializeSettings source_shards. */ + public source_shards: string[]; + + /** MaterializeSettings on_ddl. */ + public on_ddl: string; + + /** MaterializeSettings defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MaterializeSettings tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MaterializeSettings atomic_copy. */ + public atomic_copy: boolean; + + /** MaterializeSettings workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** MaterializeSettings reference_tables. */ + public reference_tables: string[]; + + /** + * Creates a new MaterializeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeSettings instance + */ + public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; + + /** + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * @param message MaterializeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; + + /** + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; + + /** + * Verifies a MaterializeSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeSettings + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; + + /** + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * @param message MaterializeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Keyspace. */ + interface IKeyspace { + + /** Keyspace name */ + name?: (string|null); + + /** Keyspace keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a Keyspace. */ + class Keyspace implements IKeyspace { + + /** + * Constructs a new Keyspace. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IKeyspace); + + /** Keyspace name. */ + public name: string; + + /** Keyspace keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new Keyspace instance using the specified properties. + * @param [properties] Properties to set + * @returns Keyspace instance + */ + public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; + + /** + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * @param message Keyspace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Keyspace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; + + /** + * Verifies a Keyspace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Keyspace + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @param message Keyspace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Keyspace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Keyspace + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** QueryOrdering enum. */ + enum QueryOrdering { + NONE = 0, + ASCENDING = 1, + DESCENDING = 2 + } + + /** Properties of a SchemaMigration. */ + interface ISchemaMigration { + + /** SchemaMigration uuid */ + uuid?: (string|null); + + /** SchemaMigration keyspace */ + keyspace?: (string|null); + + /** SchemaMigration shard */ + shard?: (string|null); + + /** SchemaMigration schema */ + schema?: (string|null); + + /** SchemaMigration table */ + table?: (string|null); + + /** SchemaMigration migration_statement */ + migration_statement?: (string|null); + + /** SchemaMigration strategy */ + strategy?: (vtctldata.SchemaMigration.Strategy|null); + + /** SchemaMigration options */ + options?: (string|null); + + /** SchemaMigration added_at */ + added_at?: (vttime.ITime|null); + + /** SchemaMigration requested_at */ + requested_at?: (vttime.ITime|null); + + /** SchemaMigration ready_at */ + ready_at?: (vttime.ITime|null); + + /** SchemaMigration started_at */ + started_at?: (vttime.ITime|null); + + /** SchemaMigration liveness_timestamp */ + liveness_timestamp?: (vttime.ITime|null); + + /** SchemaMigration completed_at */ + completed_at?: (vttime.ITime|null); + + /** SchemaMigration cleaned_up_at */ + cleaned_up_at?: (vttime.ITime|null); + + /** SchemaMigration status */ + status?: (vtctldata.SchemaMigration.Status|null); + + /** SchemaMigration log_path */ + log_path?: (string|null); + + /** SchemaMigration artifacts */ + artifacts?: (string|null); + + /** SchemaMigration retries */ + retries?: (number|Long|null); + + /** SchemaMigration tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** SchemaMigration tablet_failure */ + tablet_failure?: (boolean|null); + + /** SchemaMigration progress */ + progress?: (number|null); + + /** SchemaMigration migration_context */ + migration_context?: (string|null); + + /** SchemaMigration ddl_action */ + ddl_action?: (string|null); + + /** SchemaMigration message */ + message?: (string|null); + + /** SchemaMigration eta_seconds */ + eta_seconds?: (number|Long|null); + + /** SchemaMigration rows_copied */ + rows_copied?: (number|Long|null); + + /** SchemaMigration table_rows */ + table_rows?: (number|Long|null); + + /** SchemaMigration added_unique_keys */ + added_unique_keys?: (number|null); + + /** SchemaMigration removed_unique_keys */ + removed_unique_keys?: (number|null); + + /** SchemaMigration log_file */ + log_file?: (string|null); + + /** SchemaMigration artifact_retention */ + artifact_retention?: (vttime.IDuration|null); + + /** SchemaMigration postpone_completion */ + postpone_completion?: (boolean|null); + + /** SchemaMigration removed_unique_key_names */ + removed_unique_key_names?: (string|null); + + /** SchemaMigration dropped_no_default_column_names */ + dropped_no_default_column_names?: (string|null); + + /** SchemaMigration expanded_column_names */ + expanded_column_names?: (string|null); + + /** SchemaMigration revertible_notes */ + revertible_notes?: (string|null); + + /** SchemaMigration allow_concurrent */ + allow_concurrent?: (boolean|null); + + /** SchemaMigration reverted_uuid */ + reverted_uuid?: (string|null); + + /** SchemaMigration is_view */ + is_view?: (boolean|null); + + /** SchemaMigration ready_to_complete */ + ready_to_complete?: (boolean|null); + + /** SchemaMigration vitess_liveness_indicator */ + vitess_liveness_indicator?: (number|Long|null); + + /** SchemaMigration user_throttle_ratio */ + user_throttle_ratio?: (number|null); + + /** SchemaMigration special_plan */ + special_plan?: (string|null); + + /** SchemaMigration last_throttled_at */ + last_throttled_at?: (vttime.ITime|null); + + /** SchemaMigration component_throttled */ + component_throttled?: (string|null); + + /** SchemaMigration cancelled_at */ + cancelled_at?: (vttime.ITime|null); + + /** SchemaMigration postpone_launch */ + postpone_launch?: (boolean|null); + + /** SchemaMigration stage */ + stage?: (string|null); + + /** SchemaMigration cutover_attempts */ + cutover_attempts?: (number|null); + + /** SchemaMigration is_immediate_operation */ + is_immediate_operation?: (boolean|null); + + /** SchemaMigration reviewed_at */ + reviewed_at?: (vttime.ITime|null); + + /** SchemaMigration ready_to_complete_at */ + ready_to_complete_at?: (vttime.ITime|null); + + /** SchemaMigration removed_foreign_key_names */ + removed_foreign_key_names?: (string|null); + } + + /** Represents a SchemaMigration. */ + class SchemaMigration implements ISchemaMigration { + + /** + * Constructs a new SchemaMigration. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISchemaMigration); + + /** SchemaMigration uuid. */ + public uuid: string; + + /** SchemaMigration keyspace. */ + public keyspace: string; + + /** SchemaMigration shard. */ + public shard: string; + + /** SchemaMigration schema. */ + public schema: string; + + /** SchemaMigration table. */ + public table: string; + + /** SchemaMigration migration_statement. */ + public migration_statement: string; + + /** SchemaMigration strategy. */ + public strategy: vtctldata.SchemaMigration.Strategy; + + /** SchemaMigration options. */ + public options: string; + + /** SchemaMigration added_at. */ + public added_at?: (vttime.ITime|null); + + /** SchemaMigration requested_at. */ + public requested_at?: (vttime.ITime|null); + + /** SchemaMigration ready_at. */ + public ready_at?: (vttime.ITime|null); + + /** SchemaMigration started_at. */ + public started_at?: (vttime.ITime|null); + + /** SchemaMigration liveness_timestamp. */ + public liveness_timestamp?: (vttime.ITime|null); + + /** SchemaMigration completed_at. */ + public completed_at?: (vttime.ITime|null); + + /** SchemaMigration cleaned_up_at. */ + public cleaned_up_at?: (vttime.ITime|null); + + /** SchemaMigration status. */ + public status: vtctldata.SchemaMigration.Status; + + /** SchemaMigration log_path. */ + public log_path: string; + + /** SchemaMigration artifacts. */ + public artifacts: string; + + /** SchemaMigration retries. */ + public retries: (number|Long); + + /** SchemaMigration tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** SchemaMigration tablet_failure. */ + public tablet_failure: boolean; + + /** SchemaMigration progress. */ + public progress: number; + + /** SchemaMigration migration_context. */ + public migration_context: string; + + /** SchemaMigration ddl_action. */ + public ddl_action: string; + + /** SchemaMigration message. */ + public message: string; + + /** SchemaMigration eta_seconds. */ + public eta_seconds: (number|Long); + + /** SchemaMigration rows_copied. */ + public rows_copied: (number|Long); + + /** SchemaMigration table_rows. */ + public table_rows: (number|Long); + + /** SchemaMigration added_unique_keys. */ + public added_unique_keys: number; + + /** SchemaMigration removed_unique_keys. */ + public removed_unique_keys: number; + + /** SchemaMigration log_file. */ + public log_file: string; + + /** SchemaMigration artifact_retention. */ + public artifact_retention?: (vttime.IDuration|null); + + /** SchemaMigration postpone_completion. */ + public postpone_completion: boolean; + + /** SchemaMigration removed_unique_key_names. */ + public removed_unique_key_names: string; + + /** SchemaMigration dropped_no_default_column_names. */ + public dropped_no_default_column_names: string; + + /** SchemaMigration expanded_column_names. */ + public expanded_column_names: string; + + /** SchemaMigration revertible_notes. */ + public revertible_notes: string; + + /** SchemaMigration allow_concurrent. */ + public allow_concurrent: boolean; + + /** SchemaMigration reverted_uuid. */ + public reverted_uuid: string; + + /** SchemaMigration is_view. */ + public is_view: boolean; + + /** SchemaMigration ready_to_complete. */ + public ready_to_complete: boolean; + + /** SchemaMigration vitess_liveness_indicator. */ + public vitess_liveness_indicator: (number|Long); + + /** SchemaMigration user_throttle_ratio. */ + public user_throttle_ratio: number; + + /** SchemaMigration special_plan. */ + public special_plan: string; + + /** SchemaMigration last_throttled_at. */ + public last_throttled_at?: (vttime.ITime|null); + + /** SchemaMigration component_throttled. */ + public component_throttled: string; + + /** SchemaMigration cancelled_at. */ + public cancelled_at?: (vttime.ITime|null); + + /** SchemaMigration postpone_launch. */ + public postpone_launch: boolean; + + /** SchemaMigration stage. */ + public stage: string; + + /** SchemaMigration cutover_attempts. */ + public cutover_attempts: number; + + /** SchemaMigration is_immediate_operation. */ + public is_immediate_operation: boolean; + + /** SchemaMigration reviewed_at. */ + public reviewed_at?: (vttime.ITime|null); + + /** SchemaMigration ready_to_complete_at. */ + public ready_to_complete_at?: (vttime.ITime|null); + + /** SchemaMigration removed_foreign_key_names. */ + public removed_foreign_key_names: string; + + /** + * Creates a new SchemaMigration instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaMigration instance + */ + public static create(properties?: vtctldata.ISchemaMigration): vtctldata.SchemaMigration; + + /** + * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * @param message SchemaMigration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. + * @param message SchemaMigration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaMigration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaMigration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SchemaMigration; + + /** + * Decodes a SchemaMigration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SchemaMigration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SchemaMigration; + + /** + * Verifies a SchemaMigration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SchemaMigration + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SchemaMigration; + + /** + * Creates a plain object from a SchemaMigration message. Also converts values to other types if specified. + * @param message SchemaMigration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SchemaMigration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SchemaMigration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SchemaMigration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SchemaMigration { + + /** Strategy enum. */ + enum Strategy { + VITESS = 0, + ONLINE = 0, + GHOST = 1, + PTOSC = 2, + DIRECT = 3, + MYSQL = 4 + } + + /** Status enum. */ + enum Status { + UNKNOWN = 0, + REQUESTED = 1, + CANCELLED = 2, + QUEUED = 3, + READY = 4, + RUNNING = 5, + COMPLETE = 6, + FAILED = 7 + } + } + + /** Properties of a Shard. */ + interface IShard { + + /** Shard keyspace */ + keyspace?: (string|null); + + /** Shard name */ + name?: (string|null); + + /** Shard shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a Shard. */ + class Shard implements IShard { + + /** + * Constructs a new Shard. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShard); + + /** Shard keyspace. */ + public keyspace: string; + + /** Shard name. */ + public name: string; + + /** Shard shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new Shard instance using the specified properties. + * @param [properties] Properties to set + * @returns Shard instance + */ + public static create(properties?: vtctldata.IShard): vtctldata.Shard; + + /** + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @param message Shard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Shard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; + + /** + * Decodes a Shard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; + + /** + * Verifies a Shard message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Shard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Shard + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Shard; + + /** + * Creates a plain object from a Shard message. Also converts values to other types if specified. + * @param message Shard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Shard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Shard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowOptions. */ + interface IWorkflowOptions { + + /** WorkflowOptions tenant_id */ + tenant_id?: (string|null); + + /** WorkflowOptions strip_sharded_auto_increment */ + strip_sharded_auto_increment?: (boolean|null); + + /** WorkflowOptions shards */ + shards?: (string[]|null); + + /** WorkflowOptions config */ + config?: ({ [k: string]: string }|null); + } + + /** Represents a WorkflowOptions. */ + class WorkflowOptions implements IWorkflowOptions { + + /** + * Constructs a new WorkflowOptions. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowOptions); + + /** WorkflowOptions tenant_id. */ + public tenant_id: string; + + /** WorkflowOptions strip_sharded_auto_increment. */ + public strip_sharded_auto_increment: boolean; + + /** WorkflowOptions shards. */ + public shards: string[]; + + /** WorkflowOptions config. */ + public config: { [k: string]: string }; + + /** + * Creates a new WorkflowOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowOptions instance + */ + public static create(properties?: vtctldata.IWorkflowOptions): vtctldata.WorkflowOptions; + + /** + * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @param message WorkflowOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. + * @param message WorkflowOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowOptions; + + /** + * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowOptions; + + /** + * Verifies a WorkflowOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowOptions + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowOptions; + + /** + * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. + * @param message WorkflowOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow name */ + name?: (string|null); + + /** Workflow source */ + source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target */ + target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag */ + max_v_replication_lag?: (number|Long|null); + + /** Workflow shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); + + /** Workflow workflow_type */ + workflow_type?: (string|null); + + /** Workflow workflow_sub_type */ + workflow_sub_type?: (string|null); + + /** Workflow max_v_replication_transaction_lag */ + max_v_replication_transaction_lag?: (number|Long|null); + + /** Workflow defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** Workflow options */ + options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflow); + + /** Workflow name. */ + public name: string; + + /** Workflow source. */ + public source?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow target. */ + public target?: (vtctldata.Workflow.IReplicationLocation|null); + + /** Workflow max_v_replication_lag. */ + public max_v_replication_lag: (number|Long); + + /** Workflow shard_streams. */ + public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; + + /** Workflow workflow_type. */ + public workflow_type: string; + + /** Workflow workflow_sub_type. */ + public workflow_sub_type: string; + + /** Workflow max_v_replication_transaction_lag. */ + public max_v_replication_transaction_lag: (number|Long); + + /** Workflow defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** Workflow options. */ + public options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; + + /** + * Decodes a Workflow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Workflow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Workflow + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; + + /** + * Creates a plain object from a Workflow message. Also converts values to other types if specified. + * @param message Workflow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Workflow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Workflow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Workflow { + + /** Properties of a ReplicationLocation. */ + interface IReplicationLocation { + + /** ReplicationLocation keyspace */ + keyspace?: (string|null); + + /** ReplicationLocation shards */ + shards?: (string[]|null); + } + + /** Represents a ReplicationLocation. */ + class ReplicationLocation implements IReplicationLocation { + + /** + * Constructs a new ReplicationLocation. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IReplicationLocation); + + /** ReplicationLocation keyspace. */ + public keyspace: string; + + /** ReplicationLocation shards. */ + public shards: string[]; + + /** + * Creates a new ReplicationLocation instance using the specified properties. + * @param [properties] Properties to set + * @returns ReplicationLocation instance + */ + public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; + + /** + * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. + * @param message ReplicationLocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; + + /** + * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReplicationLocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; + + /** + * Verifies a ReplicationLocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReplicationLocation + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; + + /** + * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. + * @param message ReplicationLocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReplicationLocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReplicationLocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStream. */ + interface IShardStream { + + /** ShardStream streams */ + streams?: (vtctldata.Workflow.IStream[]|null); + + /** ShardStream tablet_controls */ + tablet_controls?: (topodata.Shard.ITabletControl[]|null); + + /** ShardStream is_primary_serving */ + is_primary_serving?: (boolean|null); + } + + /** Represents a ShardStream. */ + class ShardStream implements IShardStream { + + /** + * Constructs a new ShardStream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IShardStream); + + /** ShardStream streams. */ + public streams: vtctldata.Workflow.IStream[]; + + /** ShardStream tablet_controls. */ + public tablet_controls: topodata.Shard.ITabletControl[]; + + /** ShardStream is_primary_serving. */ + public is_primary_serving: boolean; + + /** + * Creates a new ShardStream instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStream instance + */ + public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; + + /** + * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. + * @param message ShardStream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; + + /** + * Decodes a ShardStream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; + + /** + * Verifies a ShardStream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; + + /** + * Creates a plain object from a ShardStream message. Also converts values to other types if specified. + * @param message ShardStream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Stream. */ + interface IStream { + + /** Stream id */ + id?: (number|Long|null); + + /** Stream shard */ + shard?: (string|null); + + /** Stream tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source */ + binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position */ + position?: (string|null); + + /** Stream stop_position */ + stop_position?: (string|null); + + /** Stream state */ + state?: (string|null); + + /** Stream db_name */ + db_name?: (string|null); + + /** Stream transaction_timestamp */ + transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated */ + time_updated?: (vttime.ITime|null); + + /** Stream message */ + message?: (string|null); + + /** Stream copy_states */ + copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); + + /** Stream logs */ + logs?: (vtctldata.Workflow.Stream.ILog[]|null); + + /** Stream log_fetch_error */ + log_fetch_error?: (string|null); + + /** Stream tags */ + tags?: (string[]|null); + + /** Stream rows_copied */ + rows_copied?: (number|Long|null); + + /** Stream throttler_status */ + throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); + + /** Stream tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** Stream tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** Stream cells */ + cells?: (string[]|null); + } + + /** Represents a Stream. */ + class Stream implements IStream { + + /** + * Constructs a new Stream. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.IStream); + + /** Stream id. */ + public id: (number|Long); + + /** Stream shard. */ + public shard: string; + + /** Stream tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** Stream binlog_source. */ + public binlog_source?: (binlogdata.IBinlogSource|null); + + /** Stream position. */ + public position: string; + + /** Stream stop_position. */ + public stop_position: string; + + /** Stream state. */ + public state: string; + + /** Stream db_name. */ + public db_name: string; + + /** Stream transaction_timestamp. */ + public transaction_timestamp?: (vttime.ITime|null); + + /** Stream time_updated. */ + public time_updated?: (vttime.ITime|null); + + /** Stream message. */ + public message: string; + + /** Stream copy_states. */ + public copy_states: vtctldata.Workflow.Stream.ICopyState[]; + + /** Stream logs. */ + public logs: vtctldata.Workflow.Stream.ILog[]; + + /** Stream log_fetch_error. */ + public log_fetch_error: string; + + /** Stream tags. */ + public tags: string[]; + + /** Stream rows_copied. */ + public rows_copied: (number|Long); + + /** Stream throttler_status. */ + public throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); + + /** Stream tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** Stream tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** Stream cells. */ + public cells: string[]; + + /** + * Creates a new Stream instance using the specified properties. + * @param [properties] Properties to set + * @returns Stream instance + */ + public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; + + /** + * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. + * @param message Stream message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Stream message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; + + /** + * Decodes a Stream message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Stream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; + + /** + * Verifies a Stream message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Stream message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Stream + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; + + /** + * Creates a plain object from a Stream message. Also converts values to other types if specified. + * @param message Stream + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Stream to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Stream + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Stream { + + /** Properties of a CopyState. */ + interface ICopyState { + + /** CopyState table */ + table?: (string|null); + + /** CopyState last_pk */ + last_pk?: (string|null); + + /** CopyState stream_id */ + stream_id?: (number|Long|null); + } + + /** Represents a CopyState. */ + class CopyState implements ICopyState { + + /** + * Constructs a new CopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ICopyState); + + /** CopyState table. */ + public table: string; + + /** CopyState last_pk. */ + public last_pk: string; + + /** CopyState stream_id. */ + public stream_id: (number|Long); + + /** + * Creates a new CopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyState instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; + + /** + * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. + * @param message CopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; + + /** + * Decodes a CopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; + + /** + * Verifies a CopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; + + /** + * Creates a plain object from a CopyState message. Also converts values to other types if specified. + * @param message CopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Log. */ + interface ILog { + + /** Log id */ + id?: (number|Long|null); + + /** Log stream_id */ + stream_id?: (number|Long|null); + + /** Log type */ + type?: (string|null); + + /** Log state */ + state?: (string|null); + + /** Log created_at */ + created_at?: (vttime.ITime|null); + + /** Log updated_at */ + updated_at?: (vttime.ITime|null); + + /** Log message */ + message?: (string|null); + + /** Log count */ + count?: (number|Long|null); + } + + /** Represents a Log. */ + class Log implements ILog { + + /** + * Constructs a new Log. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.ILog); + + /** Log id. */ + public id: (number|Long); + + /** Log stream_id. */ + public stream_id: (number|Long); + + /** Log type. */ + public type: string; + + /** Log state. */ + public state: string; + + /** Log created_at. */ + public created_at?: (vttime.ITime|null); + + /** Log updated_at. */ + public updated_at?: (vttime.ITime|null); + + /** Log message. */ + public message: string; + + /** Log count. */ + public count: (number|Long); + + /** + * Creates a new Log instance using the specified properties. + * @param [properties] Properties to set + * @returns Log instance + */ + public static create(properties?: vtctldata.Workflow.Stream.ILog): vtctldata.Workflow.Stream.Log; + + /** + * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @param message Log message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. + * @param message Log message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Log message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.Log; + + /** + * Decodes a Log message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Log + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.Log; + + /** + * Verifies a Log message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Log message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Log + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.Log; + + /** + * Creates a plain object from a Log message. Also converts values to other types if specified. + * @param message Log + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.Log, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Log to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Log + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ThrottlerStatus. */ + interface IThrottlerStatus { + + /** ThrottlerStatus component_throttled */ + component_throttled?: (string|null); + + /** ThrottlerStatus time_throttled */ + time_throttled?: (vttime.ITime|null); + } + + /** Represents a ThrottlerStatus. */ + class ThrottlerStatus implements IThrottlerStatus { + + /** + * Constructs a new ThrottlerStatus. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.Workflow.Stream.IThrottlerStatus); + + /** ThrottlerStatus component_throttled. */ + public component_throttled: string; + + /** ThrottlerStatus time_throttled. */ + public time_throttled?: (vttime.ITime|null); + + /** + * Creates a new ThrottlerStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns ThrottlerStatus instance + */ + public static create(properties?: vtctldata.Workflow.Stream.IThrottlerStatus): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @param message ThrottlerStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. + * @param message ThrottlerStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThrottlerStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Verifies a ThrottlerStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThrottlerStatus + */ + public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.ThrottlerStatus; + + /** + * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. + * @param message ThrottlerStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.Workflow.Stream.ThrottlerStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ThrottlerStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ThrottlerStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of an AddCellInfoRequest. */ + interface IAddCellInfoRequest { + + /** AddCellInfoRequest name */ + name?: (string|null); + + /** AddCellInfoRequest cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an AddCellInfoRequest. */ + class AddCellInfoRequest implements IAddCellInfoRequest { + + /** + * Constructs a new AddCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellInfoRequest); + + /** AddCellInfoRequest name. */ + public name: string; + + /** AddCellInfoRequest cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new AddCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellInfoRequest instance + */ + public static create(properties?: vtctldata.IAddCellInfoRequest): vtctldata.AddCellInfoRequest; + + /** + * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @param message AddCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @param message AddCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoRequest; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoRequest; + + /** + * Verifies an AddCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoRequest; + + /** + * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * @param message AddCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellInfoResponse. */ + interface IAddCellInfoResponse { + } + + /** Represents an AddCellInfoResponse. */ + class AddCellInfoResponse implements IAddCellInfoResponse { + + /** + * Constructs a new AddCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellInfoResponse); + + /** + * Creates a new AddCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellInfoResponse instance + */ + public static create(properties?: vtctldata.IAddCellInfoResponse): vtctldata.AddCellInfoResponse; + + /** + * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @param message AddCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @param message AddCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoResponse; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoResponse; + + /** + * Verifies an AddCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoResponse; + + /** + * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * @param message AddCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellsAliasRequest. */ + interface IAddCellsAliasRequest { + + /** AddCellsAliasRequest name */ + name?: (string|null); + + /** AddCellsAliasRequest cells */ + cells?: (string[]|null); + } + + /** Represents an AddCellsAliasRequest. */ + class AddCellsAliasRequest implements IAddCellsAliasRequest { + + /** + * Constructs a new AddCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellsAliasRequest); + + /** AddCellsAliasRequest name. */ + public name: string; + + /** AddCellsAliasRequest cells. */ + public cells: string[]; + + /** + * Creates a new AddCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IAddCellsAliasRequest): vtctldata.AddCellsAliasRequest; + + /** + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @param message AddCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * @param message AddCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasRequest; + + /** + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasRequest; + + /** + * Verifies an AddCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasRequest; + + /** + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * @param message AddCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AddCellsAliasResponse. */ + interface IAddCellsAliasResponse { + } + + /** Represents an AddCellsAliasResponse. */ + class AddCellsAliasResponse implements IAddCellsAliasResponse { + + /** + * Constructs a new AddCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IAddCellsAliasResponse); + + /** + * Creates a new AddCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns AddCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IAddCellsAliasResponse): vtctldata.AddCellsAliasResponse; + + /** + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @param message AddCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * @param message AddCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasResponse; + + /** + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasResponse; + + /** + * Verifies an AddCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasResponse; + + /** + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * @param message AddCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.AddCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyKeyspaceRoutingRulesRequest. */ + interface IApplyKeyspaceRoutingRulesRequest { + + /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** ApplyKeyspaceRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyKeyspaceRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyKeyspaceRoutingRulesRequest. */ + class ApplyKeyspaceRoutingRulesRequest implements IApplyKeyspaceRoutingRulesRequest { + + /** + * Constructs a new ApplyKeyspaceRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest); + + /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** ApplyKeyspaceRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyKeyspaceRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyKeyspaceRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Verifies an ApplyKeyspaceRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyKeyspaceRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyKeyspaceRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyKeyspaceRoutingRulesResponse. */ + interface IApplyKeyspaceRoutingRulesResponse { + + /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + } + + /** Represents an ApplyKeyspaceRoutingRulesResponse. */ + class ApplyKeyspaceRoutingRulesResponse implements IApplyKeyspaceRoutingRulesResponse { + + /** + * Constructs a new ApplyKeyspaceRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse); + + /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** + * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyKeyspaceRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Verifies an ApplyKeyspaceRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyKeyspaceRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyKeyspaceRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyKeyspaceRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyRoutingRulesRequest. */ + interface IApplyRoutingRulesRequest { + + /** ApplyRoutingRulesRequest routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + + /** ApplyRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyRoutingRulesRequest. */ + class ApplyRoutingRulesRequest implements IApplyRoutingRulesRequest { + + /** + * Constructs a new ApplyRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyRoutingRulesRequest); + + /** ApplyRoutingRulesRequest routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** ApplyRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyRoutingRulesRequest): vtctldata.ApplyRoutingRulesRequest; + + /** + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @param message ApplyRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * @param message ApplyRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesRequest; + + /** + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesRequest; + + /** + * Verifies an ApplyRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyRoutingRulesResponse. */ + interface IApplyRoutingRulesResponse { + } + + /** Represents an ApplyRoutingRulesResponse. */ + class ApplyRoutingRulesResponse implements IApplyRoutingRulesResponse { + + /** + * Constructs a new ApplyRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyRoutingRulesResponse); + + /** + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyRoutingRulesResponse): vtctldata.ApplyRoutingRulesResponse; + + /** + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * @param message ApplyRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * @param message ApplyRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesResponse; + + /** + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesResponse; + + /** + * Verifies an ApplyRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyShardRoutingRulesRequest. */ + interface IApplyShardRoutingRulesRequest { + + /** ApplyShardRoutingRulesRequest shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** ApplyShardRoutingRulesRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyShardRoutingRulesRequest rebuild_cells */ + rebuild_cells?: (string[]|null); + } + + /** Represents an ApplyShardRoutingRulesRequest. */ + class ApplyShardRoutingRulesRequest implements IApplyShardRoutingRulesRequest { + + /** + * Constructs a new ApplyShardRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyShardRoutingRulesRequest); + + /** ApplyShardRoutingRulesRequest shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** ApplyShardRoutingRulesRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyShardRoutingRulesRequest rebuild_cells. */ + public rebuild_cells: string[]; + + /** + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyShardRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IApplyShardRoutingRulesRequest): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @param message ApplyShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * @param message ApplyShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Verifies an ApplyShardRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyShardRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesRequest; + + /** + * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * @param message ApplyShardRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyShardRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyShardRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyShardRoutingRulesResponse. */ + interface IApplyShardRoutingRulesResponse { + } + + /** Represents an ApplyShardRoutingRulesResponse. */ + class ApplyShardRoutingRulesResponse implements IApplyShardRoutingRulesResponse { + + /** + * Constructs a new ApplyShardRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyShardRoutingRulesResponse); + + /** + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyShardRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IApplyShardRoutingRulesResponse): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @param message ApplyShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * @param message ApplyShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Verifies an ApplyShardRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyShardRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesResponse; + + /** + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * @param message ApplyShardRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyShardRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyShardRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplySchemaRequest. */ + interface IApplySchemaRequest { + + /** ApplySchemaRequest keyspace */ + keyspace?: (string|null); + + /** ApplySchemaRequest sql */ + sql?: (string[]|null); + + /** ApplySchemaRequest ddl_strategy */ + ddl_strategy?: (string|null); + + /** ApplySchemaRequest uuid_list */ + uuid_list?: (string[]|null); + + /** ApplySchemaRequest migration_context */ + migration_context?: (string|null); + + /** ApplySchemaRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** ApplySchemaRequest caller_id */ + caller_id?: (vtrpc.ICallerID|null); + + /** ApplySchemaRequest batch_size */ + batch_size?: (number|Long|null); + } + + /** Represents an ApplySchemaRequest. */ + class ApplySchemaRequest implements IApplySchemaRequest { + + /** + * Constructs a new ApplySchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplySchemaRequest); + + /** ApplySchemaRequest keyspace. */ + public keyspace: string; + + /** ApplySchemaRequest sql. */ + public sql: string[]; + + /** ApplySchemaRequest ddl_strategy. */ + public ddl_strategy: string; + + /** ApplySchemaRequest uuid_list. */ + public uuid_list: string[]; + + /** ApplySchemaRequest migration_context. */ + public migration_context: string; + + /** ApplySchemaRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** ApplySchemaRequest caller_id. */ + public caller_id?: (vtrpc.ICallerID|null); + + /** ApplySchemaRequest batch_size. */ + public batch_size: (number|Long); + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplySchemaRequest instance + */ + public static create(properties?: vtctldata.IApplySchemaRequest): vtctldata.ApplySchemaRequest; + + /** + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @param message ApplySchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * @param message ApplySchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplySchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaRequest; + + /** + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplySchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaRequest; + + /** + * Verifies an ApplySchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplySchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaRequest; + + /** + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * @param message ApplySchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplySchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplySchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplySchemaResponse. */ + interface IApplySchemaResponse { + + /** ApplySchemaResponse uuid_list */ + uuid_list?: (string[]|null); + + /** ApplySchemaResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents an ApplySchemaResponse. */ + class ApplySchemaResponse implements IApplySchemaResponse { + + /** + * Constructs a new ApplySchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplySchemaResponse); + + /** ApplySchemaResponse uuid_list. */ + public uuid_list: string[]; + + /** ApplySchemaResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplySchemaResponse instance + */ + public static create(properties?: vtctldata.IApplySchemaResponse): vtctldata.ApplySchemaResponse; + + /** + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @param message ApplySchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * @param message ApplySchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplySchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaResponse; + + /** + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplySchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaResponse; + + /** + * Verifies an ApplySchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplySchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaResponse; + + /** + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * @param message ApplySchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplySchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplySchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyVSchemaRequest. */ + interface IApplyVSchemaRequest { + + /** ApplyVSchemaRequest keyspace */ + keyspace?: (string|null); + + /** ApplyVSchemaRequest skip_rebuild */ + skip_rebuild?: (boolean|null); + + /** ApplyVSchemaRequest dry_run */ + dry_run?: (boolean|null); + + /** ApplyVSchemaRequest cells */ + cells?: (string[]|null); + + /** ApplyVSchemaRequest v_schema */ + v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaRequest sql */ + sql?: (string|null); + + /** ApplyVSchemaRequest strict */ + strict?: (boolean|null); + } + + /** Represents an ApplyVSchemaRequest. */ + class ApplyVSchemaRequest implements IApplyVSchemaRequest { + + /** + * Constructs a new ApplyVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyVSchemaRequest); + + /** ApplyVSchemaRequest keyspace. */ + public keyspace: string; + + /** ApplyVSchemaRequest skip_rebuild. */ + public skip_rebuild: boolean; + + /** ApplyVSchemaRequest dry_run. */ + public dry_run: boolean; + + /** ApplyVSchemaRequest cells. */ + public cells: string[]; + + /** ApplyVSchemaRequest v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaRequest sql. */ + public sql: string; + + /** ApplyVSchemaRequest strict. */ + public strict: boolean; + + /** + * Creates a new ApplyVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyVSchemaRequest instance + */ + public static create(properties?: vtctldata.IApplyVSchemaRequest): vtctldata.ApplyVSchemaRequest; + + /** + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @param message ApplyVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * @param message ApplyVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaRequest; + + /** + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaRequest; + + /** + * Verifies an ApplyVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaRequest; + + /** + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * @param message ApplyVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ApplyVSchemaResponse. */ + interface IApplyVSchemaResponse { + + /** ApplyVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaResponse unknown_vindex_params */ + unknown_vindex_params?: ({ [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }|null); + } + + /** Represents an ApplyVSchemaResponse. */ + class ApplyVSchemaResponse implements IApplyVSchemaResponse { + + /** + * Constructs a new ApplyVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IApplyVSchemaResponse); + + /** ApplyVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** ApplyVSchemaResponse unknown_vindex_params. */ + public unknown_vindex_params: { [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }; + + /** + * Creates a new ApplyVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ApplyVSchemaResponse instance + */ + public static create(properties?: vtctldata.IApplyVSchemaResponse): vtctldata.ApplyVSchemaResponse; + + /** + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @param message ApplyVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * @param message ApplyVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApplyVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse; + + /** + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ApplyVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse; + + /** + * Verifies an ApplyVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApplyVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse; + + /** + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * @param message ApplyVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ApplyVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ApplyVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ApplyVSchemaResponse { + + /** Properties of a ParamList. */ + interface IParamList { + + /** ParamList params */ + params?: (string[]|null); + } + + /** Represents a ParamList. */ + class ParamList implements IParamList { + + /** + * Constructs a new ParamList. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ApplyVSchemaResponse.IParamList); + + /** ParamList params. */ + public params: string[]; + + /** + * Creates a new ParamList instance using the specified properties. + * @param [properties] Properties to set + * @returns ParamList instance + */ + public static create(properties?: vtctldata.ApplyVSchemaResponse.IParamList): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @param message ParamList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. + * @param message ParamList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParamList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Decodes a ParamList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParamList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Verifies a ParamList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParamList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParamList + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse.ParamList; + + /** + * Creates a plain object from a ParamList message. Also converts values to other types if specified. + * @param message ParamList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ApplyVSchemaResponse.ParamList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParamList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ParamList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a BackupRequest. */ + interface IBackupRequest { + + /** BackupRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupRequest allow_primary */ + allow_primary?: (boolean|null); + + /** BackupRequest concurrency */ + concurrency?: (number|null); + + /** BackupRequest incremental_from_pos */ + incremental_from_pos?: (string|null); + + /** BackupRequest upgrade_safe */ + upgrade_safe?: (boolean|null); + + /** BackupRequest backup_engine */ + backup_engine?: (string|null); + } + + /** Represents a BackupRequest. */ + class BackupRequest implements IBackupRequest { + + /** + * Constructs a new BackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupRequest); + + /** BackupRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupRequest allow_primary. */ + public allow_primary: boolean; + + /** BackupRequest concurrency. */ + public concurrency: number; + + /** BackupRequest incremental_from_pos. */ + public incremental_from_pos: string; + + /** BackupRequest upgrade_safe. */ + public upgrade_safe: boolean; + + /** BackupRequest backup_engine. */ + public backup_engine?: (string|null); + + /** BackupRequest _backup_engine. */ + public _backup_engine?: "backup_engine"; + + /** + * Creates a new BackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupRequest instance + */ + public static create(properties?: vtctldata.IBackupRequest): vtctldata.BackupRequest; + + /** + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @param message BackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * @param message BackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupRequest; + + /** + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupRequest; + + /** + * Verifies a BackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupRequest; + + /** + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * @param message BackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BackupResponse. */ + interface IBackupResponse { + + /** BackupResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupResponse keyspace */ + keyspace?: (string|null); + + /** BackupResponse shard */ + shard?: (string|null); + + /** BackupResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents a BackupResponse. */ + class BackupResponse implements IBackupResponse { + + /** + * Constructs a new BackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupResponse); + + /** BackupResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** BackupResponse keyspace. */ + public keyspace: string; + + /** BackupResponse shard. */ + public shard: string; + + /** BackupResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new BackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupResponse instance + */ + public static create(properties?: vtctldata.IBackupResponse): vtctldata.BackupResponse; + + /** + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @param message BackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * @param message BackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupResponse; + + /** + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupResponse; + + /** + * Verifies a BackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupResponse; + + /** + * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * @param message BackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BackupShardRequest. */ + interface IBackupShardRequest { + + /** BackupShardRequest keyspace */ + keyspace?: (string|null); + + /** BackupShardRequest shard */ + shard?: (string|null); + + /** BackupShardRequest allow_primary */ + allow_primary?: (boolean|null); + + /** BackupShardRequest concurrency */ + concurrency?: (number|null); + + /** BackupShardRequest upgrade_safe */ + upgrade_safe?: (boolean|null); + + /** BackupShardRequest incremental_from_pos */ + incremental_from_pos?: (string|null); + } + + /** Represents a BackupShardRequest. */ + class BackupShardRequest implements IBackupShardRequest { + + /** + * Constructs a new BackupShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IBackupShardRequest); + + /** BackupShardRequest keyspace. */ + public keyspace: string; + + /** BackupShardRequest shard. */ + public shard: string; + + /** BackupShardRequest allow_primary. */ + public allow_primary: boolean; + + /** BackupShardRequest concurrency. */ + public concurrency: number; + + /** BackupShardRequest upgrade_safe. */ + public upgrade_safe: boolean; + + /** BackupShardRequest incremental_from_pos. */ + public incremental_from_pos: string; + + /** + * Creates a new BackupShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BackupShardRequest instance + */ + public static create(properties?: vtctldata.IBackupShardRequest): vtctldata.BackupShardRequest; + + /** + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @param message BackupShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * @param message BackupShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackupShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupShardRequest; + + /** + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackupShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupShardRequest; + + /** + * Verifies a BackupShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackupShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.BackupShardRequest; + + /** + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * @param message BackupShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.BackupShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackupShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackupShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelSchemaMigrationRequest. */ + interface ICancelSchemaMigrationRequest { + + /** CancelSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CancelSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CancelSchemaMigrationRequest. */ + class CancelSchemaMigrationRequest implements ICancelSchemaMigrationRequest { + + /** + * Constructs a new CancelSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICancelSchemaMigrationRequest); + + /** CancelSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CancelSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CancelSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICancelSchemaMigrationRequest): vtctldata.CancelSchemaMigrationRequest; + + /** + * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @param message CancelSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. + * @param message CancelSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationRequest; + + /** + * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationRequest; + + /** + * Verifies a CancelSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationRequest; + + /** + * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CancelSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CancelSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelSchemaMigrationResponse. */ + interface ICancelSchemaMigrationResponse { + + /** CancelSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CancelSchemaMigrationResponse. */ + class CancelSchemaMigrationResponse implements ICancelSchemaMigrationResponse { + + /** + * Constructs a new CancelSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICancelSchemaMigrationResponse); + + /** CancelSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CancelSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICancelSchemaMigrationResponse): vtctldata.CancelSchemaMigrationResponse; + + /** + * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @param message CancelSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. + * @param message CancelSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationResponse; + + /** + * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationResponse; + + /** + * Verifies a CancelSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationResponse; + + /** + * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CancelSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CancelSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTagsRequest. */ + interface IChangeTabletTagsRequest { + + /** ChangeTabletTagsRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags */ + tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsRequest replace */ + replace?: (boolean|null); + } + + /** Represents a ChangeTabletTagsRequest. */ + class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { + + /** + * Constructs a new ChangeTabletTagsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsRequest); + + /** ChangeTabletTagsRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTagsRequest tags. */ + public tags: { [k: string]: string }; + + /** ChangeTabletTagsRequest replace. */ + public replace: boolean; + + /** + * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; + + /** + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * @param message ChangeTabletTagsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsRequest; + + /** + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsRequest; + + /** + * Verifies a ChangeTabletTagsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; + + /** + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTagsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTagsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTagsResponse. */ + interface IChangeTabletTagsResponse { + + /** ChangeTabletTagsResponse before_tags */ + before_tags?: ({ [k: string]: string }|null); + + /** ChangeTabletTagsResponse after_tags */ + after_tags?: ({ [k: string]: string }|null); + } + + /** Represents a ChangeTabletTagsResponse. */ + class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { + + /** + * Constructs a new ChangeTabletTagsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTagsResponse); + + /** ChangeTabletTagsResponse before_tags. */ + public before_tags: { [k: string]: string }; + + /** ChangeTabletTagsResponse after_tags. */ + public after_tags: { [k: string]: string }; + + /** + * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTagsResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; + + /** + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * @param message ChangeTabletTagsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsResponse; + + /** + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTagsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsResponse; + + /** + * Verifies a ChangeTabletTagsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTagsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; + + /** + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTagsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTagsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTagsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTypeRequest. */ + interface IChangeTabletTypeRequest { + + /** ChangeTabletTypeRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type */ + db_type?: (topodata.TabletType|null); + + /** ChangeTabletTypeRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeRequest. */ + class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { + + /** + * Constructs a new ChangeTabletTypeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeRequest); + + /** ChangeTabletTypeRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ChangeTabletTypeRequest db_type. */ + public db_type: topodata.TabletType; + + /** ChangeTabletTypeRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeRequest instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; + + /** + * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. + * @param message ChangeTabletTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; + + /** + * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; + + /** + * Verifies a ChangeTabletTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; + + /** + * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. + * @param message ChangeTabletTypeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ChangeTabletTypeResponse. */ + interface IChangeTabletTypeResponse { + + /** ChangeTabletTypeResponse before_tablet */ + before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet */ + after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run */ + was_dry_run?: (boolean|null); + } + + /** Represents a ChangeTabletTypeResponse. */ + class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { + + /** + * Constructs a new ChangeTabletTypeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IChangeTabletTypeResponse); + + /** ChangeTabletTypeResponse before_tablet. */ + public before_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse after_tablet. */ + public after_tablet?: (topodata.ITablet|null); + + /** ChangeTabletTypeResponse was_dry_run. */ + public was_dry_run: boolean; + + /** + * Creates a new ChangeTabletTypeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ChangeTabletTypeResponse instance + */ + public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; + + /** + * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. + * @param message ChangeTabletTypeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; + + /** + * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ChangeTabletTypeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; + + /** + * Verifies a ChangeTabletTypeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ChangeTabletTypeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; + + /** + * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. + * @param message ChangeTabletTypeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ChangeTabletTypeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ChangeTabletTypeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CheckThrottlerRequest. */ + interface ICheckThrottlerRequest { + + /** CheckThrottlerRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerRequest app_name */ + app_name?: (string|null); + + /** CheckThrottlerRequest scope */ + scope?: (string|null); + + /** CheckThrottlerRequest skip_request_heartbeats */ + skip_request_heartbeats?: (boolean|null); + + /** CheckThrottlerRequest ok_if_not_exists */ + ok_if_not_exists?: (boolean|null); + } + + /** Represents a CheckThrottlerRequest. */ + class CheckThrottlerRequest implements ICheckThrottlerRequest { + + /** + * Constructs a new CheckThrottlerRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICheckThrottlerRequest); + + /** CheckThrottlerRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerRequest app_name. */ + public app_name: string; + + /** CheckThrottlerRequest scope. */ + public scope: string; + + /** CheckThrottlerRequest skip_request_heartbeats. */ + public skip_request_heartbeats: boolean; + + /** CheckThrottlerRequest ok_if_not_exists. */ + public ok_if_not_exists: boolean; + + /** + * Creates a new CheckThrottlerRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckThrottlerRequest instance + */ + public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; + + /** + * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * @param message CheckThrottlerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. + * @param message CheckThrottlerRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckThrottlerRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckThrottlerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerRequest; + + /** + * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckThrottlerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerRequest; + + /** + * Verifies a CheckThrottlerRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckThrottlerRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; + + /** + * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. + * @param message CheckThrottlerRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckThrottlerRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CheckThrottlerRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CheckThrottlerResponse. */ + interface ICheckThrottlerResponse { + + /** CheckThrottlerResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check */ + Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); + } + + /** Represents a CheckThrottlerResponse. */ + class CheckThrottlerResponse implements ICheckThrottlerResponse { + + /** + * Constructs a new CheckThrottlerResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICheckThrottlerResponse); + + /** CheckThrottlerResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** CheckThrottlerResponse Check. */ + public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); + + /** + * Creates a new CheckThrottlerResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CheckThrottlerResponse instance + */ + public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; + + /** + * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * @param message CheckThrottlerResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. + * @param message CheckThrottlerResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CheckThrottlerResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CheckThrottlerResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerResponse; + + /** + * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CheckThrottlerResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerResponse; + + /** + * Verifies a CheckThrottlerResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CheckThrottlerResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; + + /** + * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. + * @param message CheckThrottlerResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CheckThrottlerResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CheckThrottlerResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CleanupSchemaMigrationRequest. */ + interface ICleanupSchemaMigrationRequest { + + /** CleanupSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CleanupSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CleanupSchemaMigrationRequest. */ + class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { + + /** + * Constructs a new CleanupSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); + + /** CleanupSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CleanupSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CleanupSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * @param message CleanupSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. + * @param message CleanupSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CleanupSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CleanupSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Verifies a CleanupSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CleanupSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; + + /** + * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CleanupSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CleanupSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CleanupSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CleanupSchemaMigrationResponse. */ + interface ICleanupSchemaMigrationResponse { + + /** CleanupSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CleanupSchemaMigrationResponse. */ + class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { + + /** + * Constructs a new CleanupSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); + + /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CleanupSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * @param message CleanupSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. + * @param message CleanupSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CleanupSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CleanupSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Verifies a CleanupSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CleanupSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; + + /** + * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CleanupSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CleanupSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CleanupSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompleteSchemaMigrationRequest. */ + interface ICompleteSchemaMigrationRequest { + + /** CompleteSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** CompleteSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a CompleteSchemaMigrationRequest. */ + class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { + + /** + * Constructs a new CompleteSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); + + /** CompleteSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** CompleteSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * @param message CompleteSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. + * @param message CompleteSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Verifies a CompleteSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; + + /** + * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message CompleteSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompleteSchemaMigrationResponse. */ + interface ICompleteSchemaMigrationResponse { + + /** CompleteSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a CompleteSchemaMigrationResponse. */ + class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { + + /** + * Constructs a new CompleteSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); + + /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * @param message CompleteSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. + * @param message CompleteSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Verifies a CompleteSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; + + /** + * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message CompleteSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateKeyspaceRequest. */ + interface ICreateKeyspaceRequest { + + /** CreateKeyspaceRequest name */ + name?: (string|null); + + /** CreateKeyspaceRequest force */ + force?: (boolean|null); + + /** CreateKeyspaceRequest allow_empty_v_schema */ + allow_empty_v_schema?: (boolean|null); + + /** CreateKeyspaceRequest type */ + type?: (topodata.KeyspaceType|null); + + /** CreateKeyspaceRequest base_keyspace */ + base_keyspace?: (string|null); + + /** CreateKeyspaceRequest snapshot_time */ + snapshot_time?: (vttime.ITime|null); + + /** CreateKeyspaceRequest durability_policy */ + durability_policy?: (string|null); + + /** CreateKeyspaceRequest sidecar_db_name */ + sidecar_db_name?: (string|null); + } + + /** Represents a CreateKeyspaceRequest. */ + class CreateKeyspaceRequest implements ICreateKeyspaceRequest { + + /** + * Constructs a new CreateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceRequest); + + /** CreateKeyspaceRequest name. */ + public name: string; + + /** CreateKeyspaceRequest force. */ + public force: boolean; + + /** CreateKeyspaceRequest allow_empty_v_schema. */ + public allow_empty_v_schema: boolean; + + /** CreateKeyspaceRequest type. */ + public type: topodata.KeyspaceType; + + /** CreateKeyspaceRequest base_keyspace. */ + public base_keyspace: string; + + /** CreateKeyspaceRequest snapshot_time. */ + public snapshot_time?: (vttime.ITime|null); + + /** CreateKeyspaceRequest durability_policy. */ + public durability_policy: string; + + /** CreateKeyspaceRequest sidecar_db_name. */ + public sidecar_db_name: string; + + /** + * Creates a new CreateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; + + /** + * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. + * @param message CreateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; + + /** + * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; + + /** + * Verifies a CreateKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; + + /** + * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. + * @param message CreateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateKeyspaceResponse. */ + interface ICreateKeyspaceResponse { + + /** CreateKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a CreateKeyspaceResponse. */ + class CreateKeyspaceResponse implements ICreateKeyspaceResponse { + + /** + * Constructs a new CreateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateKeyspaceResponse); + + /** CreateKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new CreateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; + + /** + * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. + * @param message CreateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; + + /** + * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; + + /** + * Verifies a CreateKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; + + /** + * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. + * @param message CreateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateShardRequest. */ + interface ICreateShardRequest { + + /** CreateShardRequest keyspace */ + keyspace?: (string|null); + + /** CreateShardRequest shard_name */ + shard_name?: (string|null); + + /** CreateShardRequest force */ + force?: (boolean|null); + + /** CreateShardRequest include_parent */ + include_parent?: (boolean|null); + } + + /** Represents a CreateShardRequest. */ + class CreateShardRequest implements ICreateShardRequest { + + /** + * Constructs a new CreateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardRequest); + + /** CreateShardRequest keyspace. */ + public keyspace: string; + + /** CreateShardRequest shard_name. */ + public shard_name: string; + + /** CreateShardRequest force. */ + public force: boolean; + + /** CreateShardRequest include_parent. */ + public include_parent: boolean; + + /** + * Creates a new CreateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardRequest instance + */ + public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; + + /** + * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. + * @param message CreateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; + + /** + * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; + + /** + * Verifies a CreateShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; + + /** + * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. + * @param message CreateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateShardResponse. */ + interface ICreateShardResponse { + + /** CreateShardResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard */ + shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists */ + shard_already_exists?: (boolean|null); + } + + /** Represents a CreateShardResponse. */ + class CreateShardResponse implements ICreateShardResponse { + + /** + * Constructs a new CreateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ICreateShardResponse); + + /** CreateShardResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** CreateShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** CreateShardResponse shard_already_exists. */ + public shard_already_exists: boolean; + + /** + * Creates a new CreateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateShardResponse instance + */ + public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; + + /** + * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. + * @param message CreateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; + + /** + * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; + + /** + * Verifies a CreateShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; + + /** + * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. + * @param message CreateShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellInfoRequest. */ + interface IDeleteCellInfoRequest { + + /** DeleteCellInfoRequest name */ + name?: (string|null); + + /** DeleteCellInfoRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteCellInfoRequest. */ + class DeleteCellInfoRequest implements IDeleteCellInfoRequest { + + /** + * Constructs a new DeleteCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellInfoRequest); + + /** DeleteCellInfoRequest name. */ + public name: string; + + /** DeleteCellInfoRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellInfoRequest instance + */ + public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; + + /** + * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * @param message DeleteCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. + * @param message DeleteCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoRequest; + + /** + * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoRequest; + + /** + * Verifies a DeleteCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; + + /** + * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. + * @param message DeleteCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellInfoResponse. */ + interface IDeleteCellInfoResponse { + } + + /** Represents a DeleteCellInfoResponse. */ + class DeleteCellInfoResponse implements IDeleteCellInfoResponse { + + /** + * Constructs a new DeleteCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellInfoResponse); + + /** + * Creates a new DeleteCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellInfoResponse instance + */ + public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; + + /** + * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * @param message DeleteCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. + * @param message DeleteCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoResponse; + + /** + * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoResponse; + + /** + * Verifies a DeleteCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; + + /** + * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. + * @param message DeleteCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellsAliasRequest. */ + interface IDeleteCellsAliasRequest { + + /** DeleteCellsAliasRequest name */ + name?: (string|null); + } + + /** Represents a DeleteCellsAliasRequest. */ + class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { + + /** + * Constructs a new DeleteCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellsAliasRequest); + + /** DeleteCellsAliasRequest name. */ + public name: string; + + /** + * Creates a new DeleteCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IDeleteCellsAliasRequest): vtctldata.DeleteCellsAliasRequest; + + /** + * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * @param message DeleteCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. + * @param message DeleteCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasRequest; + + /** + * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasRequest; + + /** + * Verifies a DeleteCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasRequest; + + /** + * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. + * @param message DeleteCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteCellsAliasResponse. */ + interface IDeleteCellsAliasResponse { + } + + /** Represents a DeleteCellsAliasResponse. */ + class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { + + /** + * Constructs a new DeleteCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteCellsAliasResponse); + + /** + * Creates a new DeleteCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IDeleteCellsAliasResponse): vtctldata.DeleteCellsAliasResponse; + + /** + * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * @param message DeleteCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. + * @param message DeleteCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasResponse; + + /** + * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasResponse; + + /** + * Verifies a DeleteCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; + + /** + * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. + * @param message DeleteCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteKeyspaceRequest. */ + interface IDeleteKeyspaceRequest { + + /** DeleteKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** DeleteKeyspaceRequest recursive */ + recursive?: (boolean|null); + + /** DeleteKeyspaceRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteKeyspaceRequest. */ + class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { + + /** + * Constructs a new DeleteKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceRequest); + + /** DeleteKeyspaceRequest keyspace. */ + public keyspace: string; + + /** DeleteKeyspaceRequest recursive. */ + public recursive: boolean; + + /** DeleteKeyspaceRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; + + /** + * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. + * @param message DeleteKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; + + /** + * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; + + /** + * Verifies a DeleteKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; + + /** + * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. + * @param message DeleteKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteKeyspaceResponse. */ + interface IDeleteKeyspaceResponse { + } + + /** Represents a DeleteKeyspaceResponse. */ + class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { + + /** + * Constructs a new DeleteKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteKeyspaceResponse); + + /** + * Creates a new DeleteKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; + + /** + * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. + * @param message DeleteKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; + + /** + * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; + + /** + * Verifies a DeleteKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; + + /** + * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. + * @param message DeleteKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteShardsRequest. */ + interface IDeleteShardsRequest { + + /** DeleteShardsRequest shards */ + shards?: (vtctldata.IShard[]|null); + + /** DeleteShardsRequest recursive */ + recursive?: (boolean|null); + + /** DeleteShardsRequest even_if_serving */ + even_if_serving?: (boolean|null); + + /** DeleteShardsRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteShardsRequest. */ + class DeleteShardsRequest implements IDeleteShardsRequest { + + /** + * Constructs a new DeleteShardsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsRequest); + + /** DeleteShardsRequest shards. */ + public shards: vtctldata.IShard[]; + + /** DeleteShardsRequest recursive. */ + public recursive: boolean; + + /** DeleteShardsRequest even_if_serving. */ + public even_if_serving: boolean; + + /** DeleteShardsRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteShardsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsRequest instance + */ + public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; + + /** + * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. + * @param message DeleteShardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; + + /** + * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; + + /** + * Verifies a DeleteShardsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; + + /** + * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. + * @param message DeleteShardsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteShardsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteShardsResponse. */ + interface IDeleteShardsResponse { + } + + /** Represents a DeleteShardsResponse. */ + class DeleteShardsResponse implements IDeleteShardsResponse { + + /** + * Constructs a new DeleteShardsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteShardsResponse); + + /** + * Creates a new DeleteShardsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteShardsResponse instance + */ + public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; + + /** + * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. + * @param message DeleteShardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; + + /** + * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteShardsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; + + /** + * Verifies a DeleteShardsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteShardsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; + + /** + * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. + * @param message DeleteShardsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteShardsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteShardsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSrvVSchemaRequest. */ + interface IDeleteSrvVSchemaRequest { + + /** DeleteSrvVSchemaRequest cell */ + cell?: (string|null); + } + + /** Represents a DeleteSrvVSchemaRequest. */ + class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { + + /** + * Constructs a new DeleteSrvVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); + + /** DeleteSrvVSchemaRequest cell. */ + public cell: string; + + /** + * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSrvVSchemaRequest instance + */ + public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * @param message DeleteSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. + * @param message DeleteSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Verifies a DeleteSrvVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSrvVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; + + /** + * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. + * @param message DeleteSrvVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSrvVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSrvVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSrvVSchemaResponse. */ + interface IDeleteSrvVSchemaResponse { + } + + /** Represents a DeleteSrvVSchemaResponse. */ + class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { + + /** + * Constructs a new DeleteSrvVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); + + /** + * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSrvVSchemaResponse instance + */ + public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * @param message DeleteSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. + * @param message DeleteSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Verifies a DeleteSrvVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSrvVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; + + /** + * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. + * @param message DeleteSrvVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSrvVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSrvVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTabletsRequest. */ + interface IDeleteTabletsRequest { + + /** DeleteTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** DeleteTabletsRequest allow_primary */ + allow_primary?: (boolean|null); + } + + /** Represents a DeleteTabletsRequest. */ + class DeleteTabletsRequest implements IDeleteTabletsRequest { + + /** + * Constructs a new DeleteTabletsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsRequest); + + /** DeleteTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** DeleteTabletsRequest allow_primary. */ + public allow_primary: boolean; + + /** + * Creates a new DeleteTabletsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsRequest instance + */ + public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; + + /** + * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. + * @param message DeleteTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; + + /** + * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; + + /** + * Verifies a DeleteTabletsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; + + /** + * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. + * @param message DeleteTabletsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTabletsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTabletsResponse. */ + interface IDeleteTabletsResponse { + } + + /** Represents a DeleteTabletsResponse. */ + class DeleteTabletsResponse implements IDeleteTabletsResponse { + + /** + * Constructs a new DeleteTabletsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IDeleteTabletsResponse); + + /** + * Creates a new DeleteTabletsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTabletsResponse instance + */ + public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; + + /** + * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. + * @param message DeleteTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; + + /** + * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; + + /** + * Verifies a DeleteTabletsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTabletsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; + + /** + * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. + * @param message DeleteTabletsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTabletsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTabletsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EmergencyReparentShardRequest. */ + interface IEmergencyReparentShardRequest { + + /** EmergencyReparentShardRequest keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardRequest shard */ + shard?: (string|null); + + /** EmergencyReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardRequest ignore_replicas */ + ignore_replicas?: (topodata.ITabletAlias[]|null); + + /** EmergencyReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** EmergencyReparentShardRequest prevent_cross_cell_promotion */ + prevent_cross_cell_promotion?: (boolean|null); + + /** EmergencyReparentShardRequest wait_for_all_tablets */ + wait_for_all_tablets?: (boolean|null); + } + + /** Represents an EmergencyReparentShardRequest. */ + class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { + + /** + * Constructs a new EmergencyReparentShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardRequest); + + /** EmergencyReparentShardRequest keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardRequest shard. */ + public shard: string; + + /** EmergencyReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardRequest ignore_replicas. */ + public ignore_replicas: topodata.ITabletAlias[]; + + /** EmergencyReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** EmergencyReparentShardRequest prevent_cross_cell_promotion. */ + public prevent_cross_cell_promotion: boolean; + + /** EmergencyReparentShardRequest wait_for_all_tablets. */ + public wait_for_all_tablets: boolean; + + /** + * Creates a new EmergencyReparentShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardRequest instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; + + /** + * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. + * @param message EmergencyReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; + + /** + * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; + + /** + * Verifies an EmergencyReparentShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; + + /** + * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. + * @param message EmergencyReparentShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmergencyReparentShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EmergencyReparentShardResponse. */ + interface IEmergencyReparentShardResponse { + + /** EmergencyReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** EmergencyReparentShardResponse shard */ + shard?: (string|null); + + /** EmergencyReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents an EmergencyReparentShardResponse. */ + class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { + + /** + * Constructs a new EmergencyReparentShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IEmergencyReparentShardResponse); + + /** EmergencyReparentShardResponse keyspace. */ + public keyspace: string; + + /** EmergencyReparentShardResponse shard. */ + public shard: string; + + /** EmergencyReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** EmergencyReparentShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new EmergencyReparentShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EmergencyReparentShardResponse instance + */ + public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; + + /** + * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. + * @param message EmergencyReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; + + /** + * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmergencyReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; + + /** + * Verifies an EmergencyReparentShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmergencyReparentShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; + + /** + * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. + * @param message EmergencyReparentShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmergencyReparentShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmergencyReparentShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsAppRequest. */ + interface IExecuteFetchAsAppRequest { + + /** ExecuteFetchAsAppRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsAppRequest query */ + query?: (string|null); + + /** ExecuteFetchAsAppRequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsAppRequest use_pool */ + use_pool?: (boolean|null); + } + + /** Represents an ExecuteFetchAsAppRequest. */ + class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { + + /** + * Constructs a new ExecuteFetchAsAppRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsAppRequest); + + /** ExecuteFetchAsAppRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsAppRequest query. */ + public query: string; + + /** ExecuteFetchAsAppRequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsAppRequest use_pool. */ + public use_pool: boolean; + + /** + * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsAppRequest instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * @param message ExecuteFetchAsAppRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. + * @param message ExecuteFetchAsAppRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsAppRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsAppRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Verifies an ExecuteFetchAsAppRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsAppRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; + + /** + * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAppRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsAppRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsAppRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsAppResponse. */ + interface IExecuteFetchAsAppResponse { + + /** ExecuteFetchAsAppResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteFetchAsAppResponse. */ + class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { + + /** + * Constructs a new ExecuteFetchAsAppResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); + + /** ExecuteFetchAsAppResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsAppResponse instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * @param message ExecuteFetchAsAppResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. + * @param message ExecuteFetchAsAppResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsAppResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsAppResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Verifies an ExecuteFetchAsAppResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsAppResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; + + /** + * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. + * @param message ExecuteFetchAsAppResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsAppResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsAppResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsDBARequest. */ + interface IExecuteFetchAsDBARequest { + + /** ExecuteFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsDBARequest query */ + query?: (string|null); + + /** ExecuteFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); + } + + /** Represents an ExecuteFetchAsDBARequest. */ + class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { + + /** + * Constructs a new ExecuteFetchAsDBARequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsDBARequest); + + /** ExecuteFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteFetchAsDBARequest query. */ + public query: string; + + /** ExecuteFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; + + /** + * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsDBARequest instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Verifies an ExecuteFetchAsDBARequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsDBARequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; + + /** + * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. + * @param message ExecuteFetchAsDBARequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsDBARequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsDBARequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteFetchAsDBAResponse. */ + interface IExecuteFetchAsDBAResponse { + + /** ExecuteFetchAsDBAResponse result */ + result?: (query.IQueryResult|null); + } + + /** Represents an ExecuteFetchAsDBAResponse. */ + class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { + + /** + * Constructs a new ExecuteFetchAsDBAResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); + + /** ExecuteFetchAsDBAResponse result. */ + public result?: (query.IQueryResult|null); + + /** + * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteFetchAsDBAResponse instance + */ + public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Verifies an ExecuteFetchAsDBAResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteFetchAsDBAResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; + + /** + * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. + * @param message ExecuteFetchAsDBAResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteFetchAsDBAResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteFetchAsDBAResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteHookRequest. */ + interface IExecuteHookRequest { + + /** ExecuteHookRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteHookRequest tablet_hook_request */ + tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); + } + + /** Represents an ExecuteHookRequest. */ + class ExecuteHookRequest implements IExecuteHookRequest { + + /** + * Constructs a new ExecuteHookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteHookRequest); + + /** ExecuteHookRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteHookRequest tablet_hook_request. */ + public tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); + + /** + * Creates a new ExecuteHookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteHookRequest instance + */ + public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; + + /** + * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * @param message ExecuteHookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. + * @param message ExecuteHookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteHookRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteHookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookRequest; + + /** + * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteHookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookRequest; + + /** + * Verifies an ExecuteHookRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteHookRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; + + /** + * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. + * @param message ExecuteHookRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteHookRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteHookRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteHookResponse. */ + interface IExecuteHookResponse { + + /** ExecuteHookResponse hook_result */ + hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + } + + /** Represents an ExecuteHookResponse. */ + class ExecuteHookResponse implements IExecuteHookResponse { + + /** + * Constructs a new ExecuteHookResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteHookResponse); + + /** ExecuteHookResponse hook_result. */ + public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); + + /** + * Creates a new ExecuteHookResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteHookResponse instance + */ + public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; + + /** + * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * @param message ExecuteHookResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. + * @param message ExecuteHookResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteHookResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteHookResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookResponse; + + /** + * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteHookResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookResponse; + + /** + * Verifies an ExecuteHookResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteHookResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; + + /** + * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. + * @param message ExecuteHookResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteHookResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteHookResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteMultiFetchAsDBARequest. */ + interface IExecuteMultiFetchAsDBARequest { + + /** ExecuteMultiFetchAsDBARequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteMultiFetchAsDBARequest sql */ + sql?: (string|null); + + /** ExecuteMultiFetchAsDBARequest max_rows */ + max_rows?: (number|Long|null); + + /** ExecuteMultiFetchAsDBARequest disable_binlogs */ + disable_binlogs?: (boolean|null); + + /** ExecuteMultiFetchAsDBARequest reload_schema */ + reload_schema?: (boolean|null); + } + + /** Represents an ExecuteMultiFetchAsDBARequest. */ + class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { + + /** + * Constructs a new ExecuteMultiFetchAsDBARequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBARequest); + + /** ExecuteMultiFetchAsDBARequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** ExecuteMultiFetchAsDBARequest sql. */ + public sql: string; + + /** ExecuteMultiFetchAsDBARequest max_rows. */ + public max_rows: (number|Long); + + /** ExecuteMultiFetchAsDBARequest disable_binlogs. */ + public disable_binlogs: boolean; + + /** ExecuteMultiFetchAsDBARequest reload_schema. */ + public reload_schema: boolean; + + /** + * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteMultiFetchAsDBARequest instance + */ + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteMultiFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteMultiFetchAsDBARequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Verifies an ExecuteMultiFetchAsDBARequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteMultiFetchAsDBARequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; + + /** + * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. + * @param message ExecuteMultiFetchAsDBARequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteMultiFetchAsDBARequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteMultiFetchAsDBARequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExecuteMultiFetchAsDBAResponse. */ + interface IExecuteMultiFetchAsDBAResponse { + + /** ExecuteMultiFetchAsDBAResponse results */ + results?: (query.IQueryResult[]|null); + } + + /** Represents an ExecuteMultiFetchAsDBAResponse. */ + class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { + + /** + * Constructs a new ExecuteMultiFetchAsDBAResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); + + /** ExecuteMultiFetchAsDBAResponse results. */ + public results: query.IQueryResult[]; + + /** + * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteMultiFetchAsDBAResponse instance + */ + public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. + * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteMultiFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExecuteMultiFetchAsDBAResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Verifies an ExecuteMultiFetchAsDBAResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExecuteMultiFetchAsDBAResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; + + /** + * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. + * @param message ExecuteMultiFetchAsDBAResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExecuteMultiFetchAsDBAResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExecuteMultiFetchAsDBAResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FindAllShardsInKeyspaceRequest. */ + interface IFindAllShardsInKeyspaceRequest { + + /** FindAllShardsInKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a FindAllShardsInKeyspaceRequest. */ + class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { + + /** + * Constructs a new FindAllShardsInKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); + + /** FindAllShardsInKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. + * @param message FindAllShardsInKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Verifies a FindAllShardsInKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FindAllShardsInKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FindAllShardsInKeyspaceResponse. */ + interface IFindAllShardsInKeyspaceResponse { + + /** FindAllShardsInKeyspaceResponse shards */ + shards?: ({ [k: string]: vtctldata.IShard }|null); + } + + /** Represents a FindAllShardsInKeyspaceResponse. */ + class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { + + /** + * Constructs a new FindAllShardsInKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); + + /** FindAllShardsInKeyspaceResponse shards. */ + public shards: { [k: string]: vtctldata.IShard }; + + /** + * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FindAllShardsInKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. + * @param message FindAllShardsInKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FindAllShardsInKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Verifies a FindAllShardsInKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FindAllShardsInKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; + + /** + * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. + * @param message FindAllShardsInKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FindAllShardsInKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FindAllShardsInKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ForceCutOverSchemaMigrationRequest. */ + interface IForceCutOverSchemaMigrationRequest { + + /** ForceCutOverSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** ForceCutOverSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a ForceCutOverSchemaMigrationRequest. */ + class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { + + /** + * Constructs a new ForceCutOverSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); + + /** ForceCutOverSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** ForceCutOverSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ForceCutOverSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ForceCutOverSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ForceCutOverSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Verifies a ForceCutOverSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ForceCutOverSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; + + /** + * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message ForceCutOverSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ForceCutOverSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ForceCutOverSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ForceCutOverSchemaMigrationResponse. */ + interface IForceCutOverSchemaMigrationResponse { + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a ForceCutOverSchemaMigrationResponse. */ + class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { + + /** + * Constructs a new ForceCutOverSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); + + /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ForceCutOverSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. + * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ForceCutOverSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ForceCutOverSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Verifies a ForceCutOverSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ForceCutOverSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; + + /** + * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message ForceCutOverSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ForceCutOverSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ForceCutOverSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetBackupsRequest. */ + interface IGetBackupsRequest { + + /** GetBackupsRequest keyspace */ + keyspace?: (string|null); + + /** GetBackupsRequest shard */ + shard?: (string|null); + + /** GetBackupsRequest limit */ + limit?: (number|null); + + /** GetBackupsRequest detailed */ + detailed?: (boolean|null); + + /** GetBackupsRequest detailed_limit */ + detailed_limit?: (number|null); + } + + /** Represents a GetBackupsRequest. */ + class GetBackupsRequest implements IGetBackupsRequest { + + /** + * Constructs a new GetBackupsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsRequest); + + /** GetBackupsRequest keyspace. */ + public keyspace: string; + + /** GetBackupsRequest shard. */ + public shard: string; + + /** GetBackupsRequest limit. */ + public limit: number; + + /** GetBackupsRequest detailed. */ + public detailed: boolean; + + /** GetBackupsRequest detailed_limit. */ + public detailed_limit: number; + + /** + * Creates a new GetBackupsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsRequest instance + */ + public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; + + /** + * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. + * @param message GetBackupsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; + + /** + * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; + + /** + * Verifies a GetBackupsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; + + /** + * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. + * @param message GetBackupsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetBackupsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetBackupsResponse. */ + interface IGetBackupsResponse { + + /** GetBackupsResponse backups */ + backups?: (mysqlctl.IBackupInfo[]|null); + } + + /** Represents a GetBackupsResponse. */ + class GetBackupsResponse implements IGetBackupsResponse { + + /** + * Constructs a new GetBackupsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetBackupsResponse); + + /** GetBackupsResponse backups. */ + public backups: mysqlctl.IBackupInfo[]; + + /** + * Creates a new GetBackupsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetBackupsResponse instance + */ + public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; + + /** + * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. + * @param message GetBackupsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; + + /** + * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetBackupsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; + + /** + * Verifies a GetBackupsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetBackupsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; + + /** + * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. + * @param message GetBackupsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetBackupsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetBackupsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoRequest. */ + interface IGetCellInfoRequest { + + /** GetCellInfoRequest cell */ + cell?: (string|null); + } + + /** Represents a GetCellInfoRequest. */ + class GetCellInfoRequest implements IGetCellInfoRequest { + + /** + * Constructs a new GetCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoRequest); + + /** GetCellInfoRequest cell. */ + public cell: string; + + /** + * Creates a new GetCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; + + /** + * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. + * @param message GetCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; + + /** + * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; + + /** + * Verifies a GetCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; + + /** + * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. + * @param message GetCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoResponse. */ + interface IGetCellInfoResponse { + + /** GetCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents a GetCellInfoResponse. */ + class GetCellInfoResponse implements IGetCellInfoResponse { + + /** + * Constructs a new GetCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoResponse); + + /** GetCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new GetCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; + + /** + * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. + * @param message GetCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; + + /** + * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; + + /** + * Verifies a GetCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; + + /** + * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. + * @param message GetCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoNamesRequest. */ + interface IGetCellInfoNamesRequest { + } + + /** Represents a GetCellInfoNamesRequest. */ + class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { + + /** + * Constructs a new GetCellInfoNamesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesRequest); + + /** + * Creates a new GetCellInfoNamesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesRequest instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; + + /** + * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. + * @param message GetCellInfoNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; + + /** + * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; + + /** + * Verifies a GetCellInfoNamesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; + + /** + * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. + * @param message GetCellInfoNamesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoNamesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellInfoNamesResponse. */ + interface IGetCellInfoNamesResponse { + + /** GetCellInfoNamesResponse names */ + names?: (string[]|null); + } + + /** Represents a GetCellInfoNamesResponse. */ + class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { + + /** + * Constructs a new GetCellInfoNamesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellInfoNamesResponse); + + /** GetCellInfoNamesResponse names. */ + public names: string[]; + + /** + * Creates a new GetCellInfoNamesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellInfoNamesResponse instance + */ + public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; + + /** + * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. + * @param message GetCellInfoNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; + + /** + * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellInfoNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; + + /** + * Verifies a GetCellInfoNamesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellInfoNamesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; + + /** + * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. + * @param message GetCellInfoNamesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellInfoNamesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellInfoNamesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellsAliasesRequest. */ + interface IGetCellsAliasesRequest { + } + + /** Represents a GetCellsAliasesRequest. */ + class GetCellsAliasesRequest implements IGetCellsAliasesRequest { + + /** + * Constructs a new GetCellsAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesRequest); + + /** + * Creates a new GetCellsAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesRequest instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; + + /** + * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. + * @param message GetCellsAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; + + /** + * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; + + /** + * Verifies a GetCellsAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; + + /** + * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. + * @param message GetCellsAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellsAliasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetCellsAliasesResponse. */ + interface IGetCellsAliasesResponse { + + /** GetCellsAliasesResponse aliases */ + aliases?: ({ [k: string]: topodata.ICellsAlias }|null); + } + + /** Represents a GetCellsAliasesResponse. */ + class GetCellsAliasesResponse implements IGetCellsAliasesResponse { + + /** + * Constructs a new GetCellsAliasesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetCellsAliasesResponse); + + /** GetCellsAliasesResponse aliases. */ + public aliases: { [k: string]: topodata.ICellsAlias }; + + /** + * Creates a new GetCellsAliasesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetCellsAliasesResponse instance + */ + public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; + + /** + * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. + * @param message GetCellsAliasesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; + + /** + * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetCellsAliasesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; + + /** + * Verifies a GetCellsAliasesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetCellsAliasesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; + + /** + * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. + * @param message GetCellsAliasesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetCellsAliasesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetCellsAliasesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFullStatusRequest. */ + interface IGetFullStatusRequest { + + /** GetFullStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetFullStatusRequest. */ + class GetFullStatusRequest implements IGetFullStatusRequest { + + /** + * Constructs a new GetFullStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetFullStatusRequest); + + /** GetFullStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetFullStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFullStatusRequest instance + */ + public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; + + /** + * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * @param message GetFullStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. + * @param message GetFullStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFullStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFullStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusRequest; + + /** + * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFullStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusRequest; + + /** + * Verifies a GetFullStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFullStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; + + /** + * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. + * @param message GetFullStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFullStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFullStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFullStatusResponse. */ + interface IGetFullStatusResponse { + + /** GetFullStatusResponse status */ + status?: (replicationdata.IFullStatus|null); + } + + /** Represents a GetFullStatusResponse. */ + class GetFullStatusResponse implements IGetFullStatusResponse { + + /** + * Constructs a new GetFullStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetFullStatusResponse); + + /** GetFullStatusResponse status. */ + public status?: (replicationdata.IFullStatus|null); + + /** + * Creates a new GetFullStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFullStatusResponse instance + */ + public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; + + /** + * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * @param message GetFullStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. + * @param message GetFullStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetFullStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFullStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusResponse; + + /** + * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFullStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusResponse; + + /** + * Verifies a GetFullStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFullStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; + + /** + * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. + * @param message GetFullStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFullStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFullStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspacesRequest. */ + interface IGetKeyspacesRequest { + } + + /** Represents a GetKeyspacesRequest. */ + class GetKeyspacesRequest implements IGetKeyspacesRequest { + + /** + * Constructs a new GetKeyspacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspacesRequest); + + /** + * Creates a new GetKeyspacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspacesRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; + + /** + * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. + * @param message GetKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; + + /** + * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; + + /** + * Verifies a GetKeyspacesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspacesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; + + /** + * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetKeyspacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspacesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspacesResponse. */ + interface IGetKeyspacesResponse { + + /** GetKeyspacesResponse keyspaces */ + keyspaces?: (vtctldata.IKeyspace[]|null); + } + + /** Represents a GetKeyspacesResponse. */ + class GetKeyspacesResponse implements IGetKeyspacesResponse { + + /** + * Constructs a new GetKeyspacesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspacesResponse); + + /** GetKeyspacesResponse keyspaces. */ + public keyspaces: vtctldata.IKeyspace[]; + + /** + * Creates a new GetKeyspacesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspacesResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; + + /** + * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. + * @param message GetKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; + + /** + * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; + + /** + * Verifies a GetKeyspacesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspacesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; + + /** + * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. + * @param message GetKeyspacesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspacesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspacesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRequest. */ + interface IGetKeyspaceRequest { + + /** GetKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a GetKeyspaceRequest. */ + class GetKeyspaceRequest implements IGetKeyspaceRequest { + + /** + * Constructs a new GetKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRequest); + + /** GetKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new GetKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; + + /** + * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. + * @param message GetKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; + + /** + * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; + + /** + * Verifies a GetKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; + + /** + * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. + * @param message GetKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceResponse. */ + interface IGetKeyspaceResponse { + + /** GetKeyspaceResponse keyspace */ + keyspace?: (vtctldata.IKeyspace|null); + } + + /** Represents a GetKeyspaceResponse. */ + class GetKeyspaceResponse implements IGetKeyspaceResponse { + + /** + * Constructs a new GetKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceResponse); + + /** GetKeyspaceResponse keyspace. */ + public keyspace?: (vtctldata.IKeyspace|null); + + /** + * Creates a new GetKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; + + /** + * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. + * @param message GetKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; + + /** + * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; + + /** + * Verifies a GetKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; + + /** + * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. + * @param message GetKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPermissionsRequest. */ + interface IGetPermissionsRequest { + + /** GetPermissionsRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetPermissionsRequest. */ + class GetPermissionsRequest implements IGetPermissionsRequest { + + /** + * Constructs a new GetPermissionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetPermissionsRequest); + + /** GetPermissionsRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetPermissionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPermissionsRequest instance + */ + public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; + + /** + * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * @param message GetPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. + * @param message GetPermissionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPermissionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPermissionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsRequest; + + /** + * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPermissionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsRequest; + + /** + * Verifies a GetPermissionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPermissionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; + + /** + * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. + * @param message GetPermissionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPermissionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPermissionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPermissionsResponse. */ + interface IGetPermissionsResponse { + + /** GetPermissionsResponse permissions */ + permissions?: (tabletmanagerdata.IPermissions|null); + } + + /** Represents a GetPermissionsResponse. */ + class GetPermissionsResponse implements IGetPermissionsResponse { + + /** + * Constructs a new GetPermissionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetPermissionsResponse); + + /** GetPermissionsResponse permissions. */ + public permissions?: (tabletmanagerdata.IPermissions|null); + + /** + * Creates a new GetPermissionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPermissionsResponse instance + */ + public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; + + /** + * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * @param message GetPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. + * @param message GetPermissionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPermissionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPermissionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsResponse; + + /** + * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPermissionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsResponse; + + /** + * Verifies a GetPermissionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPermissionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; + + /** + * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. + * @param message GetPermissionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPermissionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPermissionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRoutingRulesRequest. */ + interface IGetKeyspaceRoutingRulesRequest { + } + + /** Represents a GetKeyspaceRoutingRulesRequest. */ + class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { + + /** + * Constructs a new GetKeyspaceRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); + + /** + * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Verifies a GetKeyspaceRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; + + /** + * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetKeyspaceRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetKeyspaceRoutingRulesResponse. */ + interface IGetKeyspaceRoutingRulesResponse { + + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ + keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + } + + /** Represents a GetKeyspaceRoutingRulesResponse. */ + class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { + + /** + * Constructs a new GetKeyspaceRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); + + /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ + public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); + + /** + * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetKeyspaceRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. + * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetKeyspaceRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Verifies a GetKeyspaceRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetKeyspaceRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; + + /** + * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetKeyspaceRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetKeyspaceRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetKeyspaceRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRoutingRulesRequest. */ + interface IGetRoutingRulesRequest { + } + + /** Represents a GetRoutingRulesRequest. */ + class GetRoutingRulesRequest implements IGetRoutingRulesRequest { + + /** + * Constructs a new GetRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetRoutingRulesRequest); + + /** + * Creates a new GetRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; + + /** + * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * @param message GetRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. + * @param message GetRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesRequest; + + /** + * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesRequest; + + /** + * Verifies a GetRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; + + /** + * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetRoutingRulesResponse. */ + interface IGetRoutingRulesResponse { + + /** GetRoutingRulesResponse routing_rules */ + routing_rules?: (vschema.IRoutingRules|null); + } + + /** Represents a GetRoutingRulesResponse. */ + class GetRoutingRulesResponse implements IGetRoutingRulesResponse { + + /** + * Constructs a new GetRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetRoutingRulesResponse); + + /** GetRoutingRulesResponse routing_rules. */ + public routing_rules?: (vschema.IRoutingRules|null); + + /** + * Creates a new GetRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; + + /** + * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * @param message GetRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. + * @param message GetRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesResponse; + + /** + * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesResponse; + + /** + * Verifies a GetRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; + + /** + * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaRequest. */ + interface IGetSchemaRequest { + + /** GetSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables */ + tables?: (string[]|null); + + /** GetSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** GetSchemaRequest include_views */ + include_views?: (boolean|null); + + /** GetSchemaRequest table_names_only */ + table_names_only?: (boolean|null); + + /** GetSchemaRequest table_sizes_only */ + table_sizes_only?: (boolean|null); + + /** GetSchemaRequest table_schema_only */ + table_schema_only?: (boolean|null); + } + + /** Represents a GetSchemaRequest. */ + class GetSchemaRequest implements IGetSchemaRequest { + + /** + * Constructs a new GetSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaRequest); + + /** GetSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** GetSchemaRequest tables. */ + public tables: string[]; + + /** GetSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** GetSchemaRequest include_views. */ + public include_views: boolean; + + /** GetSchemaRequest table_names_only. */ + public table_names_only: boolean; + + /** GetSchemaRequest table_sizes_only. */ + public table_sizes_only: boolean; + + /** GetSchemaRequest table_schema_only. */ + public table_schema_only: boolean; + + /** + * Creates a new GetSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; + + /** + * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. + * @param message GetSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; + + /** + * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; + + /** + * Verifies a GetSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; + + /** + * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. + * @param message GetSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaResponse. */ + interface IGetSchemaResponse { + + /** GetSchemaResponse schema */ + schema?: (tabletmanagerdata.ISchemaDefinition|null); + } + + /** Represents a GetSchemaResponse. */ + class GetSchemaResponse implements IGetSchemaResponse { + + /** + * Constructs a new GetSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaResponse); + + /** GetSchemaResponse schema. */ + public schema?: (tabletmanagerdata.ISchemaDefinition|null); + + /** + * Creates a new GetSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; + + /** + * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. + * @param message GetSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; + + /** + * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; + + /** + * Verifies a GetSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; + + /** + * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. + * @param message GetSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaMigrationsRequest. */ + interface IGetSchemaMigrationsRequest { + + /** GetSchemaMigrationsRequest keyspace */ + keyspace?: (string|null); + + /** GetSchemaMigrationsRequest uuid */ + uuid?: (string|null); + + /** GetSchemaMigrationsRequest migration_context */ + migration_context?: (string|null); + + /** GetSchemaMigrationsRequest status */ + status?: (vtctldata.SchemaMigration.Status|null); + + /** GetSchemaMigrationsRequest recent */ + recent?: (vttime.IDuration|null); + + /** GetSchemaMigrationsRequest order */ + order?: (vtctldata.QueryOrdering|null); + + /** GetSchemaMigrationsRequest limit */ + limit?: (number|Long|null); + + /** GetSchemaMigrationsRequest skip */ + skip?: (number|Long|null); + } + + /** Represents a GetSchemaMigrationsRequest. */ + class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { + + /** + * Constructs a new GetSchemaMigrationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaMigrationsRequest); + + /** GetSchemaMigrationsRequest keyspace. */ + public keyspace: string; + + /** GetSchemaMigrationsRequest uuid. */ + public uuid: string; + + /** GetSchemaMigrationsRequest migration_context. */ + public migration_context: string; + + /** GetSchemaMigrationsRequest status. */ + public status: vtctldata.SchemaMigration.Status; + + /** GetSchemaMigrationsRequest recent. */ + public recent?: (vttime.IDuration|null); + + /** GetSchemaMigrationsRequest order. */ + public order: vtctldata.QueryOrdering; + + /** GetSchemaMigrationsRequest limit. */ + public limit: (number|Long); + + /** GetSchemaMigrationsRequest skip. */ + public skip: (number|Long); + + /** + * Creates a new GetSchemaMigrationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaMigrationsRequest instance + */ + public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; + + /** + * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * @param message GetSchemaMigrationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. + * @param message GetSchemaMigrationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaMigrationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsRequest; + + /** + * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaMigrationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsRequest; + + /** + * Verifies a GetSchemaMigrationsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaMigrationsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; + + /** + * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. + * @param message GetSchemaMigrationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaMigrationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaMigrationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSchemaMigrationsResponse. */ + interface IGetSchemaMigrationsResponse { + + /** GetSchemaMigrationsResponse migrations */ + migrations?: (vtctldata.ISchemaMigration[]|null); + } + + /** Represents a GetSchemaMigrationsResponse. */ + class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { + + /** + * Constructs a new GetSchemaMigrationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); + + /** GetSchemaMigrationsResponse migrations. */ + public migrations: vtctldata.ISchemaMigration[]; + + /** + * Creates a new GetSchemaMigrationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSchemaMigrationsResponse instance + */ + public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; + + /** + * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * @param message GetSchemaMigrationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. + * @param message GetSchemaMigrationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSchemaMigrationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsResponse; + + /** + * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSchemaMigrationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsResponse; + + /** + * Verifies a GetSchemaMigrationsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSchemaMigrationsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; + + /** + * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. + * @param message GetSchemaMigrationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSchemaMigrationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSchemaMigrationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardReplicationRequest. */ + interface IGetShardReplicationRequest { + + /** GetShardReplicationRequest keyspace */ + keyspace?: (string|null); + + /** GetShardReplicationRequest shard */ + shard?: (string|null); + + /** GetShardReplicationRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetShardReplicationRequest. */ + class GetShardReplicationRequest implements IGetShardReplicationRequest { + + /** + * Constructs a new GetShardReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardReplicationRequest); + + /** GetShardReplicationRequest keyspace. */ + public keyspace: string; + + /** GetShardReplicationRequest shard. */ + public shard: string; + + /** GetShardReplicationRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetShardReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardReplicationRequest instance + */ + public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; + + /** + * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * @param message GetShardReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. + * @param message GetShardReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationRequest; + + /** + * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationRequest; + + /** + * Verifies a GetShardReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; + + /** + * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. + * @param message GetShardReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardReplicationResponse. */ + interface IGetShardReplicationResponse { + + /** GetShardReplicationResponse shard_replication_by_cell */ + shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); + } + + /** Represents a GetShardReplicationResponse. */ + class GetShardReplicationResponse implements IGetShardReplicationResponse { + + /** + * Constructs a new GetShardReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardReplicationResponse); + + /** GetShardReplicationResponse shard_replication_by_cell. */ + public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; + + /** + * Creates a new GetShardReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardReplicationResponse instance + */ + public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; + + /** + * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * @param message GetShardReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. + * @param message GetShardReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationResponse; + + /** + * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationResponse; + + /** + * Verifies a GetShardReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; + + /** + * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. + * @param message GetShardReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRequest. */ + interface IGetShardRequest { + + /** GetShardRequest keyspace */ + keyspace?: (string|null); + + /** GetShardRequest shard_name */ + shard_name?: (string|null); + } + + /** Represents a GetShardRequest. */ + class GetShardRequest implements IGetShardRequest { + + /** + * Constructs a new GetShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRequest); + + /** GetShardRequest keyspace. */ + public keyspace: string; + + /** GetShardRequest shard_name. */ + public shard_name: string; + + /** + * Creates a new GetShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRequest instance + */ + public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; + + /** + * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. + * @param message GetShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; + + /** + * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; + + /** + * Verifies a GetShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; + + /** + * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. + * @param message GetShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardResponse. */ + interface IGetShardResponse { + + /** GetShardResponse shard */ + shard?: (vtctldata.IShard|null); + } + + /** Represents a GetShardResponse. */ + class GetShardResponse implements IGetShardResponse { + + /** + * Constructs a new GetShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardResponse); + + /** GetShardResponse shard. */ + public shard?: (vtctldata.IShard|null); + + /** + * Creates a new GetShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardResponse instance + */ + public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; + + /** + * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. + * @param message GetShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; + + /** + * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; + + /** + * Verifies a GetShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; + + /** + * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. + * @param message GetShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRoutingRulesRequest. */ + interface IGetShardRoutingRulesRequest { + } + + /** Represents a GetShardRoutingRulesRequest. */ + class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { + + /** + * Constructs a new GetShardRoutingRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); + + /** + * Creates a new GetShardRoutingRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRoutingRulesRequest instance + */ + public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; + + /** + * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * @param message GetShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. + * @param message GetShardRoutingRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesRequest; + + /** + * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRoutingRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesRequest; + + /** + * Verifies a GetShardRoutingRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRoutingRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; + + /** + * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. + * @param message GetShardRoutingRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRoutingRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRoutingRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetShardRoutingRulesResponse. */ + interface IGetShardRoutingRulesResponse { + + /** GetShardRoutingRulesResponse shard_routing_rules */ + shard_routing_rules?: (vschema.IShardRoutingRules|null); + } + + /** Represents a GetShardRoutingRulesResponse. */ + class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { + + /** + * Constructs a new GetShardRoutingRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); + + /** GetShardRoutingRulesResponse shard_routing_rules. */ + public shard_routing_rules?: (vschema.IShardRoutingRules|null); + + /** + * Creates a new GetShardRoutingRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetShardRoutingRulesResponse instance + */ + public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; + + /** + * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * @param message GetShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. + * @param message GetShardRoutingRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesResponse; + + /** + * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetShardRoutingRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesResponse; + + /** + * Verifies a GetShardRoutingRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetShardRoutingRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; + + /** + * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. + * @param message GetShardRoutingRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetShardRoutingRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetShardRoutingRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspaceNamesRequest. */ + interface IGetSrvKeyspaceNamesRequest { + + /** GetSrvKeyspaceNamesRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvKeyspaceNamesRequest. */ + class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { + + /** + * Constructs a new GetSrvKeyspaceNamesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); + + /** GetSrvKeyspaceNamesRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspaceNamesRequest instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * @param message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. + * @param message GetSrvKeyspaceNamesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspaceNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspaceNamesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Verifies a GetSrvKeyspaceNamesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspaceNamesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; + + /** + * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. + * @param message GetSrvKeyspaceNamesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspaceNamesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspaceNamesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspaceNamesResponse. */ + interface IGetSrvKeyspaceNamesResponse { + + /** GetSrvKeyspaceNamesResponse names */ + names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); + } + + /** Represents a GetSrvKeyspaceNamesResponse. */ + class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { + + /** + * Constructs a new GetSrvKeyspaceNamesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); + + /** GetSrvKeyspaceNamesResponse names. */ + public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; + + /** + * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspaceNamesResponse instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * @param message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. + * @param message GetSrvKeyspaceNamesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspaceNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspaceNamesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Verifies a GetSrvKeyspaceNamesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspaceNamesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; + + /** + * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. + * @param message GetSrvKeyspaceNamesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspaceNamesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspaceNamesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GetSrvKeyspaceNamesResponse { + + /** Properties of a NameList. */ + interface INameList { + + /** NameList names */ + names?: (string[]|null); + } + + /** Represents a NameList. */ + class NameList implements INameList { + + /** + * Constructs a new NameList. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList); + + /** NameList names. */ + public names: string[]; + + /** + * Creates a new NameList instance using the specified properties. + * @param [properties] Properties to set + * @returns NameList instance + */ + public static create(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @param message NameList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. + * @param message NameList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NameList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Decodes a NameList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NameList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Verifies a NameList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NameList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NameList + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse.NameList; + + /** + * Creates a plain object from a NameList message. Also converts values to other types if specified. + * @param message NameList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse.NameList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NameList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NameList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GetSrvKeyspacesRequest. */ + interface IGetSrvKeyspacesRequest { + + /** GetSrvKeyspacesRequest keyspace */ + keyspace?: (string|null); + + /** GetSrvKeyspacesRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvKeyspacesRequest. */ + class GetSrvKeyspacesRequest implements IGetSrvKeyspacesRequest { + + /** + * Constructs a new GetSrvKeyspacesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); + + /** GetSrvKeyspacesRequest keyspace. */ + public keyspace: string; + + /** GetSrvKeyspacesRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvKeyspacesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspacesRequest instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; + + /** + * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * @param message GetSrvKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. + * @param message GetSrvKeyspacesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesRequest; + + /** + * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspacesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesRequest; + + /** + * Verifies a GetSrvKeyspacesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspacesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; + + /** + * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. + * @param message GetSrvKeyspacesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspacesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspacesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvKeyspacesResponse. */ + interface IGetSrvKeyspacesResponse { + + /** GetSrvKeyspacesResponse srv_keyspaces */ + srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); + } + + /** Represents a GetSrvKeyspacesResponse. */ + class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { + + /** + * Constructs a new GetSrvKeyspacesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); + + /** GetSrvKeyspacesResponse srv_keyspaces. */ + public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; + + /** + * Creates a new GetSrvKeyspacesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvKeyspacesResponse instance + */ + public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; + + /** + * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * @param message GetSrvKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. + * @param message GetSrvKeyspacesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesResponse; + + /** + * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvKeyspacesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesResponse; + + /** + * Verifies a GetSrvKeyspacesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvKeyspacesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; + + /** + * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. + * @param message GetSrvKeyspacesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvKeyspacesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvKeyspacesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateThrottlerConfigRequest. */ + interface IUpdateThrottlerConfigRequest { + + /** UpdateThrottlerConfigRequest keyspace */ + keyspace?: (string|null); + + /** UpdateThrottlerConfigRequest enable */ + enable?: (boolean|null); + + /** UpdateThrottlerConfigRequest disable */ + disable?: (boolean|null); + + /** UpdateThrottlerConfigRequest threshold */ + threshold?: (number|null); + + /** UpdateThrottlerConfigRequest custom_query */ + custom_query?: (string|null); + + /** UpdateThrottlerConfigRequest custom_query_set */ + custom_query_set?: (boolean|null); + + /** UpdateThrottlerConfigRequest check_as_check_self */ + check_as_check_self?: (boolean|null); + + /** UpdateThrottlerConfigRequest check_as_check_shard */ + check_as_check_shard?: (boolean|null); + + /** UpdateThrottlerConfigRequest throttled_app */ + throttled_app?: (topodata.IThrottledAppRule|null); + + /** UpdateThrottlerConfigRequest metric_name */ + metric_name?: (string|null); + + /** UpdateThrottlerConfigRequest app_name */ + app_name?: (string|null); + + /** UpdateThrottlerConfigRequest app_checked_metrics */ + app_checked_metrics?: (string[]|null); + } + + /** Represents an UpdateThrottlerConfigRequest. */ + class UpdateThrottlerConfigRequest implements IUpdateThrottlerConfigRequest { + + /** + * Constructs a new UpdateThrottlerConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); + + /** UpdateThrottlerConfigRequest keyspace. */ + public keyspace: string; + + /** UpdateThrottlerConfigRequest enable. */ + public enable: boolean; + + /** UpdateThrottlerConfigRequest disable. */ + public disable: boolean; + + /** UpdateThrottlerConfigRequest threshold. */ + public threshold: number; + + /** UpdateThrottlerConfigRequest custom_query. */ + public custom_query: string; + + /** UpdateThrottlerConfigRequest custom_query_set. */ + public custom_query_set: boolean; + + /** UpdateThrottlerConfigRequest check_as_check_self. */ + public check_as_check_self: boolean; + + /** UpdateThrottlerConfigRequest check_as_check_shard. */ + public check_as_check_shard: boolean; + + /** UpdateThrottlerConfigRequest throttled_app. */ + public throttled_app?: (topodata.IThrottledAppRule|null); + + /** UpdateThrottlerConfigRequest metric_name. */ + public metric_name: string; + + /** UpdateThrottlerConfigRequest app_name. */ + public app_name: string; + + /** UpdateThrottlerConfigRequest app_checked_metrics. */ + public app_checked_metrics: string[]; + + /** + * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateThrottlerConfigRequest instance + */ + public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * @param message UpdateThrottlerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. + * @param message UpdateThrottlerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateThrottlerConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateThrottlerConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Verifies an UpdateThrottlerConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateThrottlerConfigRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; + + /** + * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. + * @param message UpdateThrottlerConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateThrottlerConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateThrottlerConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateThrottlerConfigResponse. */ + interface IUpdateThrottlerConfigResponse { + } + + /** Represents an UpdateThrottlerConfigResponse. */ + class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { + + /** + * Constructs a new UpdateThrottlerConfigResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); + + /** + * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateThrottlerConfigResponse instance + */ + public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * @param message UpdateThrottlerConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. + * @param message UpdateThrottlerConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateThrottlerConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateThrottlerConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Verifies an UpdateThrottlerConfigResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateThrottlerConfigResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; + + /** + * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. + * @param message UpdateThrottlerConfigResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateThrottlerConfigResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateThrottlerConfigResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemaRequest. */ + interface IGetSrvVSchemaRequest { + + /** GetSrvVSchemaRequest cell */ + cell?: (string|null); + } + + /** Represents a GetSrvVSchemaRequest. */ + class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { + + /** + * Constructs a new GetSrvVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemaRequest); + + /** GetSrvVSchemaRequest cell. */ + public cell: string; + + /** + * Creates a new GetSrvVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; + + /** + * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. + * @param message GetSrvVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; + + /** + * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; + + /** + * Verifies a GetSrvVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; + + /** + * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. + * @param message GetSrvVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemaResponse. */ + interface IGetSrvVSchemaResponse { + + /** GetSrvVSchemaResponse srv_v_schema */ + srv_v_schema?: (vschema.ISrvVSchema|null); + } + + /** Represents a GetSrvVSchemaResponse. */ + class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { + + /** + * Constructs a new GetSrvVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemaResponse); + + /** GetSrvVSchemaResponse srv_v_schema. */ + public srv_v_schema?: (vschema.ISrvVSchema|null); + + /** + * Creates a new GetSrvVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; + + /** + * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. + * @param message GetSrvVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; + + /** + * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; + + /** + * Verifies a GetSrvVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; + + /** + * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. + * @param message GetSrvVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemasRequest. */ + interface IGetSrvVSchemasRequest { + + /** GetSrvVSchemasRequest cells */ + cells?: (string[]|null); + } + + /** Represents a GetSrvVSchemasRequest. */ + class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { + + /** + * Constructs a new GetSrvVSchemasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemasRequest); + + /** GetSrvVSchemasRequest cells. */ + public cells: string[]; + + /** + * Creates a new GetSrvVSchemasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemasRequest instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; + + /** + * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * @param message GetSrvVSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. + * @param message GetSrvVSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasRequest; + + /** + * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasRequest; + + /** + * Verifies a GetSrvVSchemasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; + + /** + * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. + * @param message GetSrvVSchemasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSrvVSchemasResponse. */ + interface IGetSrvVSchemasResponse { + + /** GetSrvVSchemasResponse srv_v_schemas */ + srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); + } + + /** Represents a GetSrvVSchemasResponse. */ + class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { + + /** + * Constructs a new GetSrvVSchemasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetSrvVSchemasResponse); + + /** GetSrvVSchemasResponse srv_v_schemas. */ + public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; + + /** + * Creates a new GetSrvVSchemasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSrvVSchemasResponse instance + */ + public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; + + /** + * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * @param message GetSrvVSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. + * @param message GetSrvVSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSrvVSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasResponse; + + /** + * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSrvVSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasResponse; + + /** + * Verifies a GetSrvVSchemasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSrvVSchemasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; + + /** + * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. + * @param message GetSrvVSchemasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSrvVSchemasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSrvVSchemasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletRequest. */ + interface IGetTabletRequest { + + /** GetTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetTabletRequest. */ + class GetTabletRequest implements IGetTabletRequest { + + /** + * Constructs a new GetTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletRequest); + + /** GetTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletRequest instance + */ + public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; + + /** + * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. + * @param message GetTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; + + /** + * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; + + /** + * Verifies a GetTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; + + /** + * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. + * @param message GetTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletResponse. */ + interface IGetTabletResponse { + + /** GetTabletResponse tablet */ + tablet?: (topodata.ITablet|null); + } + + /** Represents a GetTabletResponse. */ + class GetTabletResponse implements IGetTabletResponse { + + /** + * Constructs a new GetTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletResponse); + + /** GetTabletResponse tablet. */ + public tablet?: (topodata.ITablet|null); + + /** + * Creates a new GetTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletResponse instance + */ + public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; + + /** + * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. + * @param message GetTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; + + /** + * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; + + /** + * Verifies a GetTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; + + /** + * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. + * @param message GetTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletsRequest. */ + interface IGetTabletsRequest { + + /** GetTabletsRequest keyspace */ + keyspace?: (string|null); + + /** GetTabletsRequest shard */ + shard?: (string|null); + + /** GetTabletsRequest cells */ + cells?: (string[]|null); + + /** GetTabletsRequest strict */ + strict?: (boolean|null); + + /** GetTabletsRequest tablet_aliases */ + tablet_aliases?: (topodata.ITabletAlias[]|null); + + /** GetTabletsRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); + } + + /** Represents a GetTabletsRequest. */ + class GetTabletsRequest implements IGetTabletsRequest { + + /** + * Constructs a new GetTabletsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletsRequest); + + /** GetTabletsRequest keyspace. */ + public keyspace: string; + + /** GetTabletsRequest shard. */ + public shard: string; + + /** GetTabletsRequest cells. */ + public cells: string[]; + + /** GetTabletsRequest strict. */ + public strict: boolean; + + /** GetTabletsRequest tablet_aliases. */ + public tablet_aliases: topodata.ITabletAlias[]; + + /** GetTabletsRequest tablet_type. */ + public tablet_type: topodata.TabletType; + + /** + * Creates a new GetTabletsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletsRequest instance + */ + public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; + + /** + * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. + * @param message GetTabletsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; + + /** + * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; + + /** + * Verifies a GetTabletsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; + + /** + * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. + * @param message GetTabletsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTabletsResponse. */ + interface IGetTabletsResponse { + + /** GetTabletsResponse tablets */ + tablets?: (topodata.ITablet[]|null); + } + + /** Represents a GetTabletsResponse. */ + class GetTabletsResponse implements IGetTabletsResponse { + + /** + * Constructs a new GetTabletsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTabletsResponse); + + /** GetTabletsResponse tablets. */ + public tablets: topodata.ITablet[]; + + /** + * Creates a new GetTabletsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTabletsResponse instance + */ + public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; + + /** + * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. + * @param message GetTabletsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTabletsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; + + /** + * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTabletsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; + + /** + * Verifies a GetTabletsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTabletsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; + + /** + * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. + * @param message GetTabletsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTabletsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTabletsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetThrottlerStatusRequest. */ + interface IGetThrottlerStatusRequest { + + /** GetThrottlerStatusRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetThrottlerStatusRequest. */ + class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { + + /** + * Constructs a new GetThrottlerStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetThrottlerStatusRequest); + + /** GetThrottlerStatusRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetThrottlerStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetThrottlerStatusRequest instance + */ + public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; + + /** + * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * @param message GetThrottlerStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. + * @param message GetThrottlerStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetThrottlerStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusRequest; + + /** + * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetThrottlerStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusRequest; + + /** + * Verifies a GetThrottlerStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetThrottlerStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; + + /** + * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. + * @param message GetThrottlerStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetThrottlerStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetThrottlerStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetThrottlerStatusResponse. */ + interface IGetThrottlerStatusResponse { + + /** GetThrottlerStatusResponse status */ + status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); + } + + /** Represents a GetThrottlerStatusResponse. */ + class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { + + /** + * Constructs a new GetThrottlerStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetThrottlerStatusResponse); + + /** GetThrottlerStatusResponse status. */ + public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); + + /** + * Creates a new GetThrottlerStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetThrottlerStatusResponse instance + */ + public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; + + /** + * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * @param message GetThrottlerStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. + * @param message GetThrottlerStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetThrottlerStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusResponse; + + /** + * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetThrottlerStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusResponse; + + /** + * Verifies a GetThrottlerStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetThrottlerStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; + + /** + * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. + * @param message GetThrottlerStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetThrottlerStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetThrottlerStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTopologyPathRequest. */ + interface IGetTopologyPathRequest { + + /** GetTopologyPathRequest path */ + path?: (string|null); + + /** GetTopologyPathRequest version */ + version?: (number|Long|null); + + /** GetTopologyPathRequest as_json */ + as_json?: (boolean|null); + } + + /** Represents a GetTopologyPathRequest. */ + class GetTopologyPathRequest implements IGetTopologyPathRequest { + + /** + * Constructs a new GetTopologyPathRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTopologyPathRequest); + + /** GetTopologyPathRequest path. */ + public path: string; + + /** GetTopologyPathRequest version. */ + public version: (number|Long); + + /** GetTopologyPathRequest as_json. */ + public as_json: boolean; + + /** + * Creates a new GetTopologyPathRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTopologyPathRequest instance + */ + public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; + + /** + * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * @param message GetTopologyPathRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. + * @param message GetTopologyPathRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTopologyPathRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTopologyPathRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathRequest; + + /** + * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTopologyPathRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathRequest; + + /** + * Verifies a GetTopologyPathRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTopologyPathRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; + + /** + * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. + * @param message GetTopologyPathRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTopologyPathRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTopologyPathRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTopologyPathResponse. */ + interface IGetTopologyPathResponse { + + /** GetTopologyPathResponse cell */ + cell?: (vtctldata.ITopologyCell|null); + } + + /** Represents a GetTopologyPathResponse. */ + class GetTopologyPathResponse implements IGetTopologyPathResponse { + + /** + * Constructs a new GetTopologyPathResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetTopologyPathResponse); + + /** GetTopologyPathResponse cell. */ + public cell?: (vtctldata.ITopologyCell|null); + + /** + * Creates a new GetTopologyPathResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTopologyPathResponse instance + */ + public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; + + /** + * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * @param message GetTopologyPathResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. + * @param message GetTopologyPathResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTopologyPathResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTopologyPathResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathResponse; + + /** + * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTopologyPathResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathResponse; + + /** + * Verifies a GetTopologyPathResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTopologyPathResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; + + /** + * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. + * @param message GetTopologyPathResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTopologyPathResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTopologyPathResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TopologyCell. */ + interface ITopologyCell { + + /** TopologyCell name */ + name?: (string|null); + + /** TopologyCell path */ + path?: (string|null); + + /** TopologyCell data */ + data?: (string|null); + + /** TopologyCell children */ + children?: (string[]|null); + + /** TopologyCell version */ + version?: (number|Long|null); + } + + /** Represents a TopologyCell. */ + class TopologyCell implements ITopologyCell { + + /** + * Constructs a new TopologyCell. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITopologyCell); + + /** TopologyCell name. */ + public name: string; + + /** TopologyCell path. */ + public path: string; + + /** TopologyCell data. */ + public data: string; + + /** TopologyCell children. */ + public children: string[]; + + /** TopologyCell version. */ + public version: (number|Long); + + /** + * Creates a new TopologyCell instance using the specified properties. + * @param [properties] Properties to set + * @returns TopologyCell instance + */ + public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; + + /** + * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * @param message TopologyCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. + * @param message TopologyCell message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TopologyCell message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TopologyCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TopologyCell; + + /** + * Decodes a TopologyCell message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TopologyCell + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TopologyCell; + + /** + * Verifies a TopologyCell message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TopologyCell + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; + + /** + * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. + * @param message TopologyCell + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TopologyCell to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TopologyCell + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetUnresolvedTransactionsRequest. */ + interface IGetUnresolvedTransactionsRequest { + + /** GetUnresolvedTransactionsRequest keyspace */ + keyspace?: (string|null); + + /** GetUnresolvedTransactionsRequest abandon_age */ + abandon_age?: (number|Long|null); + } + + /** Represents a GetUnresolvedTransactionsRequest. */ + class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { + + /** + * Constructs a new GetUnresolvedTransactionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); + + /** GetUnresolvedTransactionsRequest keyspace. */ + public keyspace: string; + + /** GetUnresolvedTransactionsRequest abandon_age. */ + public abandon_age: (number|Long); + + /** + * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUnresolvedTransactionsRequest instance + */ + public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. + * @param message GetUnresolvedTransactionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUnresolvedTransactionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Verifies a GetUnresolvedTransactionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUnresolvedTransactionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; + + /** + * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. + * @param message GetUnresolvedTransactionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetUnresolvedTransactionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetUnresolvedTransactionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetUnresolvedTransactionsResponse. */ + interface IGetUnresolvedTransactionsResponse { + + /** GetUnresolvedTransactionsResponse transactions */ + transactions?: (query.ITransactionMetadata[]|null); + } + + /** Represents a GetUnresolvedTransactionsResponse. */ + class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { + + /** + * Constructs a new GetUnresolvedTransactionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); + + /** GetUnresolvedTransactionsResponse transactions. */ + public transactions: query.ITransactionMetadata[]; + + /** + * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetUnresolvedTransactionsResponse instance + */ + public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. + * @param message GetUnresolvedTransactionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetUnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetUnresolvedTransactionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Verifies a GetUnresolvedTransactionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetUnresolvedTransactionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; + + /** + * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. + * @param message GetUnresolvedTransactionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetUnresolvedTransactionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetUnresolvedTransactionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionRequest. */ + interface IConcludeTransactionRequest { + + /** ConcludeTransactionRequest dtid */ + dtid?: (string|null); + + /** ConcludeTransactionRequest participants */ + participants?: (query.ITarget[]|null); + } + + /** Represents a ConcludeTransactionRequest. */ + class ConcludeTransactionRequest implements IConcludeTransactionRequest { + + /** + * Constructs a new ConcludeTransactionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IConcludeTransactionRequest); + + /** ConcludeTransactionRequest dtid. */ + public dtid: string; + + /** ConcludeTransactionRequest participants. */ + public participants: query.ITarget[]; + + /** + * Creates a new ConcludeTransactionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionRequest instance + */ + public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; + + /** + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. + * @param message ConcludeTransactionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionRequest; + + /** + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionRequest; + + /** + * Verifies a ConcludeTransactionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; + + /** + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * @param message ConcludeTransactionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ConcludeTransactionResponse. */ + interface IConcludeTransactionResponse { + } + + /** Represents a ConcludeTransactionResponse. */ + class ConcludeTransactionResponse implements IConcludeTransactionResponse { + + /** + * Constructs a new ConcludeTransactionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IConcludeTransactionResponse); + + /** + * Creates a new ConcludeTransactionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ConcludeTransactionResponse instance + */ + public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; + + /** + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. + * @param message ConcludeTransactionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionResponse; + + /** + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConcludeTransactionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionResponse; + + /** + * Verifies a ConcludeTransactionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConcludeTransactionResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; + + /** + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * @param message ConcludeTransactionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConcludeTransactionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConcludeTransactionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVSchemaRequest. */ + interface IGetVSchemaRequest { + + /** GetVSchemaRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a GetVSchemaRequest. */ + class GetVSchemaRequest implements IGetVSchemaRequest { + + /** + * Constructs a new GetVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVSchemaRequest); + + /** GetVSchemaRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new GetVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVSchemaRequest instance + */ + public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; + + /** + * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. + * @param message GetVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; + + /** + * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; + + /** + * Verifies a GetVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; + + /** + * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. + * @param message GetVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { + + /** GetVersionRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { + + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVersionRequest); + + /** GetVersionRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionRequest instance + */ + public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionRequest; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionRequest; + + /** + * Verifies a GetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; + + /** + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionResponse. */ + interface IGetVersionResponse { + + /** GetVersionResponse version */ + version?: (string|null); + } + + /** Represents a GetVersionResponse. */ + class GetVersionResponse implements IGetVersionResponse { + + /** + * Constructs a new GetVersionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVersionResponse); + + /** GetVersionResponse version. */ + public version: string; + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionResponse instance + */ + public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionResponse; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionResponse; + + /** + * Verifies a GetVersionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; + + /** + * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. + * @param message GetVersionResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVSchemaResponse. */ + interface IGetVSchemaResponse { + + /** GetVSchemaResponse v_schema */ + v_schema?: (vschema.IKeyspace|null); + } + + /** Represents a GetVSchemaResponse. */ + class GetVSchemaResponse implements IGetVSchemaResponse { + + /** + * Constructs a new GetVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetVSchemaResponse); + + /** GetVSchemaResponse v_schema. */ + public v_schema?: (vschema.IKeyspace|null); + + /** + * Creates a new GetVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVSchemaResponse instance + */ + public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; + + /** + * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. + * @param message GetVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; + + /** + * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; + + /** + * Verifies a GetVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; + + /** + * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. + * @param message GetVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetWorkflowsRequest. */ + interface IGetWorkflowsRequest { + + /** GetWorkflowsRequest keyspace */ + keyspace?: (string|null); + + /** GetWorkflowsRequest active_only */ + active_only?: (boolean|null); + + /** GetWorkflowsRequest name_only */ + name_only?: (boolean|null); + + /** GetWorkflowsRequest workflow */ + workflow?: (string|null); + + /** GetWorkflowsRequest include_logs */ + include_logs?: (boolean|null); + + /** GetWorkflowsRequest shards */ + shards?: (string[]|null); + } + + /** Represents a GetWorkflowsRequest. */ + class GetWorkflowsRequest implements IGetWorkflowsRequest { + + /** + * Constructs a new GetWorkflowsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetWorkflowsRequest); + + /** GetWorkflowsRequest keyspace. */ + public keyspace: string; + + /** GetWorkflowsRequest active_only. */ + public active_only: boolean; + + /** GetWorkflowsRequest name_only. */ + public name_only: boolean; + + /** GetWorkflowsRequest workflow. */ + public workflow: string; + + /** GetWorkflowsRequest include_logs. */ + public include_logs: boolean; + + /** GetWorkflowsRequest shards. */ + public shards: string[]; + + /** + * Creates a new GetWorkflowsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWorkflowsRequest instance + */ + public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; + + /** + * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * @param message GetWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. + * @param message GetWorkflowsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetWorkflowsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWorkflowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; + + /** + * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWorkflowsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; + + /** + * Verifies a GetWorkflowsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWorkflowsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; + + /** + * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. + * @param message GetWorkflowsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWorkflowsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetWorkflowsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetWorkflowsResponse. */ + interface IGetWorkflowsResponse { + + /** GetWorkflowsResponse workflows */ + workflows?: (vtctldata.IWorkflow[]|null); + } + + /** Represents a GetWorkflowsResponse. */ + class GetWorkflowsResponse implements IGetWorkflowsResponse { + + /** + * Constructs a new GetWorkflowsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetWorkflowsResponse); + + /** GetWorkflowsResponse workflows. */ + public workflows: vtctldata.IWorkflow[]; + + /** + * Creates a new GetWorkflowsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWorkflowsResponse instance + */ + public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; + + /** + * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * @param message GetWorkflowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. + * @param message GetWorkflowsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetWorkflowsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; + + /** + * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWorkflowsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; + + /** + * Verifies a GetWorkflowsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWorkflowsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; + + /** + * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. + * @param message GetWorkflowsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetWorkflowsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetWorkflowsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InitShardPrimaryRequest. */ + interface IInitShardPrimaryRequest { + + /** InitShardPrimaryRequest keyspace */ + keyspace?: (string|null); + + /** InitShardPrimaryRequest shard */ + shard?: (string|null); + + /** InitShardPrimaryRequest primary_elect_tablet_alias */ + primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force */ + force?: (boolean|null); + + /** InitShardPrimaryRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + } + + /** Represents an InitShardPrimaryRequest. */ + class InitShardPrimaryRequest implements IInitShardPrimaryRequest { + + /** + * Constructs a new InitShardPrimaryRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IInitShardPrimaryRequest); + + /** InitShardPrimaryRequest keyspace. */ + public keyspace: string; + + /** InitShardPrimaryRequest shard. */ + public shard: string; + + /** InitShardPrimaryRequest primary_elect_tablet_alias. */ + public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); + + /** InitShardPrimaryRequest force. */ + public force: boolean; + + /** InitShardPrimaryRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** + * Creates a new InitShardPrimaryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InitShardPrimaryRequest instance + */ + public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; + + /** + * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. + * @param message InitShardPrimaryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InitShardPrimaryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; + + /** + * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InitShardPrimaryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; + + /** + * Verifies an InitShardPrimaryRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InitShardPrimaryRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; + + /** + * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. + * @param message InitShardPrimaryRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InitShardPrimaryRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InitShardPrimaryRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InitShardPrimaryResponse. */ + interface IInitShardPrimaryResponse { + + /** InitShardPrimaryResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents an InitShardPrimaryResponse. */ + class InitShardPrimaryResponse implements IInitShardPrimaryResponse { + + /** + * Constructs a new InitShardPrimaryResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IInitShardPrimaryResponse); + + /** InitShardPrimaryResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new InitShardPrimaryResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns InitShardPrimaryResponse instance + */ + public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; + + /** + * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. + * @param message InitShardPrimaryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InitShardPrimaryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; + + /** + * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InitShardPrimaryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; + + /** + * Verifies an InitShardPrimaryResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InitShardPrimaryResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; + + /** + * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. + * @param message InitShardPrimaryResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InitShardPrimaryResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InitShardPrimaryResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LaunchSchemaMigrationRequest. */ + interface ILaunchSchemaMigrationRequest { + + /** LaunchSchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** LaunchSchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a LaunchSchemaMigrationRequest. */ + class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { + + /** + * Constructs a new LaunchSchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); + + /** LaunchSchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** LaunchSchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchSchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * @param message LaunchSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. + * @param message LaunchSchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LaunchSchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Verifies a LaunchSchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LaunchSchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; + + /** + * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. + * @param message LaunchSchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LaunchSchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LaunchSchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LaunchSchemaMigrationResponse. */ + interface ILaunchSchemaMigrationResponse { + + /** LaunchSchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a LaunchSchemaMigrationResponse. */ + class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { + + /** + * Constructs a new LaunchSchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); + + /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchSchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * @param message LaunchSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. + * @param message LaunchSchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LaunchSchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Verifies a LaunchSchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LaunchSchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; + + /** + * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. + * @param message LaunchSchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LaunchSchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LaunchSchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexCreateRequest. */ + interface ILookupVindexCreateRequest { + + /** LookupVindexCreateRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexCreateRequest workflow */ + workflow?: (string|null); + + /** LookupVindexCreateRequest cells */ + cells?: (string[]|null); + + /** LookupVindexCreateRequest vindex */ + vindex?: (vschema.IKeyspace|null); + + /** LookupVindexCreateRequest continue_after_copy_with_owner */ + continue_after_copy_with_owner?: (boolean|null); + + /** LookupVindexCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** LookupVindexCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + } + + /** Represents a LookupVindexCreateRequest. */ + class LookupVindexCreateRequest implements ILookupVindexCreateRequest { + + /** + * Constructs a new LookupVindexCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexCreateRequest); + + /** LookupVindexCreateRequest keyspace. */ + public keyspace: string; + + /** LookupVindexCreateRequest workflow. */ + public workflow: string; + + /** LookupVindexCreateRequest cells. */ + public cells: string[]; + + /** LookupVindexCreateRequest vindex. */ + public vindex?: (vschema.IKeyspace|null); + + /** LookupVindexCreateRequest continue_after_copy_with_owner. */ + public continue_after_copy_with_owner: boolean; + + /** LookupVindexCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** LookupVindexCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** + * Creates a new LookupVindexCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexCreateRequest instance + */ + public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; + + /** + * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * @param message LookupVindexCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. + * @param message LookupVindexCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateRequest; + + /** + * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateRequest; + + /** + * Verifies a LookupVindexCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; + + /** + * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. + * @param message LookupVindexCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexCreateResponse. */ + interface ILookupVindexCreateResponse { + } + + /** Represents a LookupVindexCreateResponse. */ + class LookupVindexCreateResponse implements ILookupVindexCreateResponse { + + /** + * Constructs a new LookupVindexCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexCreateResponse); + + /** + * Creates a new LookupVindexCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexCreateResponse instance + */ + public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; + + /** + * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * @param message LookupVindexCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. + * @param message LookupVindexCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateResponse; + + /** + * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateResponse; + + /** + * Verifies a LookupVindexCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; + + /** + * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. + * @param message LookupVindexCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexExternalizeRequest. */ + interface ILookupVindexExternalizeRequest { + + /** LookupVindexExternalizeRequest keyspace */ + keyspace?: (string|null); + + /** LookupVindexExternalizeRequest name */ + name?: (string|null); + + /** LookupVindexExternalizeRequest table_keyspace */ + table_keyspace?: (string|null); + } + + /** Represents a LookupVindexExternalizeRequest. */ + class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { + + /** + * Constructs a new LookupVindexExternalizeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexExternalizeRequest); + + /** LookupVindexExternalizeRequest keyspace. */ + public keyspace: string; + + /** LookupVindexExternalizeRequest name. */ + public name: string; + + /** LookupVindexExternalizeRequest table_keyspace. */ + public table_keyspace: string; + + /** + * Creates a new LookupVindexExternalizeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexExternalizeRequest instance + */ + public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; + + /** + * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * @param message LookupVindexExternalizeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. + * @param message LookupVindexExternalizeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexExternalizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeRequest; + + /** + * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexExternalizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeRequest; + + /** + * Verifies a LookupVindexExternalizeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexExternalizeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; + + /** + * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. + * @param message LookupVindexExternalizeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexExternalizeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexExternalizeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LookupVindexExternalizeResponse. */ + interface ILookupVindexExternalizeResponse { + + /** LookupVindexExternalizeResponse workflow_deleted */ + workflow_deleted?: (boolean|null); + } + + /** Represents a LookupVindexExternalizeResponse. */ + class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { + + /** + * Constructs a new LookupVindexExternalizeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); + + /** LookupVindexExternalizeResponse workflow_deleted. */ + public workflow_deleted: boolean; + + /** + * Creates a new LookupVindexExternalizeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupVindexExternalizeResponse instance + */ + public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; + + /** + * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * @param message LookupVindexExternalizeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. + * @param message LookupVindexExternalizeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupVindexExternalizeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeResponse; + + /** + * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupVindexExternalizeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeResponse; + + /** + * Verifies a LookupVindexExternalizeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupVindexExternalizeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; + + /** + * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. + * @param message LookupVindexExternalizeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LookupVindexExternalizeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LookupVindexExternalizeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeCreateRequest. */ + interface IMaterializeCreateRequest { + + /** MaterializeCreateRequest settings */ + settings?: (vtctldata.IMaterializeSettings|null); + } + + /** Represents a MaterializeCreateRequest. */ + class MaterializeCreateRequest implements IMaterializeCreateRequest { + + /** + * Constructs a new MaterializeCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeCreateRequest); + + /** MaterializeCreateRequest settings. */ + public settings?: (vtctldata.IMaterializeSettings|null); + + /** + * Creates a new MaterializeCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeCreateRequest instance + */ + public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; + + /** + * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * @param message MaterializeCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. + * @param message MaterializeCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateRequest; + + /** + * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateRequest; + + /** + * Verifies a MaterializeCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; + + /** + * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. + * @param message MaterializeCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MaterializeCreateResponse. */ + interface IMaterializeCreateResponse { + } + + /** Represents a MaterializeCreateResponse. */ + class MaterializeCreateResponse implements IMaterializeCreateResponse { + + /** + * Constructs a new MaterializeCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMaterializeCreateResponse); + + /** + * Creates a new MaterializeCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MaterializeCreateResponse instance + */ + public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; + + /** + * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * @param message MaterializeCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. + * @param message MaterializeCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaterializeCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaterializeCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateResponse; + + /** + * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaterializeCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateResponse; + + /** + * Verifies a MaterializeCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaterializeCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; + + /** + * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. + * @param message MaterializeCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaterializeCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaterializeCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCreateRequest. */ + interface IMigrateCreateRequest { + + /** MigrateCreateRequest workflow */ + workflow?: (string|null); + + /** MigrateCreateRequest source_keyspace */ + source_keyspace?: (string|null); + + /** MigrateCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MigrateCreateRequest mount_name */ + mount_name?: (string|null); + + /** MigrateCreateRequest cells */ + cells?: (string[]|null); + + /** MigrateCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** MigrateCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MigrateCreateRequest all_tables */ + all_tables?: (boolean|null); + + /** MigrateCreateRequest include_tables */ + include_tables?: (string[]|null); + + /** MigrateCreateRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** MigrateCreateRequest source_time_zone */ + source_time_zone?: (string|null); + + /** MigrateCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** MigrateCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MigrateCreateRequest drop_foreign_keys */ + drop_foreign_keys?: (boolean|null); + + /** MigrateCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MigrateCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** MigrateCreateRequest no_routing_rules */ + no_routing_rules?: (boolean|null); + } + + /** Represents a MigrateCreateRequest. */ + class MigrateCreateRequest implements IMigrateCreateRequest { + + /** + * Constructs a new MigrateCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCreateRequest); + + /** MigrateCreateRequest workflow. */ + public workflow: string; + + /** MigrateCreateRequest source_keyspace. */ + public source_keyspace: string; + + /** MigrateCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** MigrateCreateRequest mount_name. */ + public mount_name: string; + + /** MigrateCreateRequest cells. */ + public cells: string[]; + + /** MigrateCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** MigrateCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MigrateCreateRequest all_tables. */ + public all_tables: boolean; + + /** MigrateCreateRequest include_tables. */ + public include_tables: string[]; + + /** MigrateCreateRequest exclude_tables. */ + public exclude_tables: string[]; + + /** MigrateCreateRequest source_time_zone. */ + public source_time_zone: string; + + /** MigrateCreateRequest on_ddl. */ + public on_ddl: string; + + /** MigrateCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** MigrateCreateRequest drop_foreign_keys. */ + public drop_foreign_keys: boolean; + + /** MigrateCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MigrateCreateRequest auto_start. */ + public auto_start: boolean; + + /** MigrateCreateRequest no_routing_rules. */ + public no_routing_rules: boolean; + + /** + * Creates a new MigrateCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCreateRequest instance + */ + public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; + + /** + * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * @param message MigrateCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. + * @param message MigrateCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCreateRequest; + + /** + * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCreateRequest; + + /** + * Verifies a MigrateCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; + + /** + * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. + * @param message MigrateCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCompleteRequest. */ + interface IMigrateCompleteRequest { + + /** MigrateCompleteRequest workflow */ + workflow?: (string|null); + + /** MigrateCompleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MigrateCompleteRequest keep_data */ + keep_data?: (boolean|null); + + /** MigrateCompleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** MigrateCompleteRequest rename_tables */ + rename_tables?: (boolean|null); + + /** MigrateCompleteRequest dry_run */ + dry_run?: (boolean|null); + } + + /** Represents a MigrateCompleteRequest. */ + class MigrateCompleteRequest implements IMigrateCompleteRequest { + + /** + * Constructs a new MigrateCompleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCompleteRequest); + + /** MigrateCompleteRequest workflow. */ + public workflow: string; + + /** MigrateCompleteRequest target_keyspace. */ + public target_keyspace: string; + + /** MigrateCompleteRequest keep_data. */ + public keep_data: boolean; + + /** MigrateCompleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** MigrateCompleteRequest rename_tables. */ + public rename_tables: boolean; + + /** MigrateCompleteRequest dry_run. */ + public dry_run: boolean; + + /** + * Creates a new MigrateCompleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCompleteRequest instance + */ + public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; + + /** + * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * @param message MigrateCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. + * @param message MigrateCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCompleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteRequest; + + /** + * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteRequest; + + /** + * Verifies a MigrateCompleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCompleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; + + /** + * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. + * @param message MigrateCompleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCompleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCompleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MigrateCompleteResponse. */ + interface IMigrateCompleteResponse { + + /** MigrateCompleteResponse summary */ + summary?: (string|null); + + /** MigrateCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a MigrateCompleteResponse. */ + class MigrateCompleteResponse implements IMigrateCompleteResponse { + + /** + * Constructs a new MigrateCompleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMigrateCompleteResponse); + + /** MigrateCompleteResponse summary. */ + public summary: string; + + /** MigrateCompleteResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new MigrateCompleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateCompleteResponse instance + */ + public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; + + /** + * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * @param message MigrateCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. + * @param message MigrateCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateCompleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteResponse; + + /** + * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteResponse; + + /** + * Verifies a MigrateCompleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateCompleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; + + /** + * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. + * @param message MigrateCompleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateCompleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateCompleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountRegisterRequest. */ + interface IMountRegisterRequest { + + /** MountRegisterRequest topo_type */ + topo_type?: (string|null); + + /** MountRegisterRequest topo_server */ + topo_server?: (string|null); + + /** MountRegisterRequest topo_root */ + topo_root?: (string|null); + + /** MountRegisterRequest name */ + name?: (string|null); + } + + /** Represents a MountRegisterRequest. */ + class MountRegisterRequest implements IMountRegisterRequest { + + /** + * Constructs a new MountRegisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountRegisterRequest); + + /** MountRegisterRequest topo_type. */ + public topo_type: string; + + /** MountRegisterRequest topo_server. */ + public topo_server: string; + + /** MountRegisterRequest topo_root. */ + public topo_root: string; + + /** MountRegisterRequest name. */ + public name: string; + + /** + * Creates a new MountRegisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountRegisterRequest instance + */ + public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; + + /** + * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * @param message MountRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. + * @param message MountRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountRegisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterRequest; + + /** + * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterRequest; + + /** + * Verifies a MountRegisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountRegisterRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; + + /** + * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. + * @param message MountRegisterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountRegisterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountRegisterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountRegisterResponse. */ + interface IMountRegisterResponse { + } + + /** Represents a MountRegisterResponse. */ + class MountRegisterResponse implements IMountRegisterResponse { + + /** + * Constructs a new MountRegisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountRegisterResponse); + + /** + * Creates a new MountRegisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountRegisterResponse instance + */ + public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; + + /** + * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * @param message MountRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. + * @param message MountRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountRegisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterResponse; + + /** + * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterResponse; + + /** + * Verifies a MountRegisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountRegisterResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; + + /** + * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. + * @param message MountRegisterResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountRegisterResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountRegisterResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountUnregisterRequest. */ + interface IMountUnregisterRequest { + + /** MountUnregisterRequest name */ + name?: (string|null); + } + + /** Represents a MountUnregisterRequest. */ + class MountUnregisterRequest implements IMountUnregisterRequest { + + /** + * Constructs a new MountUnregisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountUnregisterRequest); + + /** MountUnregisterRequest name. */ + public name: string; + + /** + * Creates a new MountUnregisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountUnregisterRequest instance + */ + public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; + + /** + * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * @param message MountUnregisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. + * @param message MountUnregisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountUnregisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountUnregisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterRequest; + + /** + * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountUnregisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterRequest; + + /** + * Verifies a MountUnregisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountUnregisterRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; + + /** + * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. + * @param message MountUnregisterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountUnregisterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountUnregisterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountUnregisterResponse. */ + interface IMountUnregisterResponse { + } + + /** Represents a MountUnregisterResponse. */ + class MountUnregisterResponse implements IMountUnregisterResponse { + + /** + * Constructs a new MountUnregisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountUnregisterResponse); + + /** + * Creates a new MountUnregisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountUnregisterResponse instance + */ + public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; + + /** + * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * @param message MountUnregisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. + * @param message MountUnregisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountUnregisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountUnregisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterResponse; + + /** + * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountUnregisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterResponse; + + /** + * Verifies a MountUnregisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountUnregisterResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; + + /** + * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. + * @param message MountUnregisterResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountUnregisterResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountUnregisterResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountShowRequest. */ + interface IMountShowRequest { + + /** MountShowRequest name */ + name?: (string|null); + } + + /** Represents a MountShowRequest. */ + class MountShowRequest implements IMountShowRequest { + + /** + * Constructs a new MountShowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountShowRequest); + + /** MountShowRequest name. */ + public name: string; + + /** + * Creates a new MountShowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountShowRequest instance + */ + public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; + + /** + * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * @param message MountShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. + * @param message MountShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountShowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowRequest; + + /** + * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowRequest; + + /** + * Verifies a MountShowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountShowRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; + + /** + * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. + * @param message MountShowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountShowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountShowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountShowResponse. */ + interface IMountShowResponse { + + /** MountShowResponse topo_type */ + topo_type?: (string|null); + + /** MountShowResponse topo_server */ + topo_server?: (string|null); + + /** MountShowResponse topo_root */ + topo_root?: (string|null); + + /** MountShowResponse name */ + name?: (string|null); + } + + /** Represents a MountShowResponse. */ + class MountShowResponse implements IMountShowResponse { + + /** + * Constructs a new MountShowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountShowResponse); + + /** MountShowResponse topo_type. */ + public topo_type: string; + + /** MountShowResponse topo_server. */ + public topo_server: string; + + /** MountShowResponse topo_root. */ + public topo_root: string; + + /** MountShowResponse name. */ + public name: string; + + /** + * Creates a new MountShowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountShowResponse instance + */ + public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; + + /** + * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * @param message MountShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. + * @param message MountShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountShowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowResponse; + + /** + * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowResponse; + + /** + * Verifies a MountShowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountShowResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; + + /** + * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. + * @param message MountShowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountShowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountShowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountListRequest. */ + interface IMountListRequest { + } + + /** Represents a MountListRequest. */ + class MountListRequest implements IMountListRequest { + + /** + * Constructs a new MountListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountListRequest); + + /** + * Creates a new MountListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MountListRequest instance + */ + public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; + + /** + * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * @param message MountListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. + * @param message MountListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListRequest; + + /** + * Decodes a MountListRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListRequest; + + /** + * Verifies a MountListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountListRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; + + /** + * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. + * @param message MountListRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountListRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountListRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MountListResponse. */ + interface IMountListResponse { + + /** MountListResponse names */ + names?: (string[]|null); + } + + /** Represents a MountListResponse. */ + class MountListResponse implements IMountListResponse { + + /** + * Constructs a new MountListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMountListResponse); + + /** MountListResponse names. */ + public names: string[]; + + /** + * Creates a new MountListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MountListResponse instance + */ + public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; + + /** + * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * @param message MountListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. + * @param message MountListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MountListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MountListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListResponse; + + /** + * Decodes a MountListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MountListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListResponse; + + /** + * Verifies a MountListResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MountListResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; + + /** + * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. + * @param message MountListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MountListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MountListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCreateRequest. */ + interface IMoveTablesCreateRequest { + + /** MoveTablesCreateRequest workflow */ + workflow?: (string|null); + + /** MoveTablesCreateRequest source_keyspace */ + source_keyspace?: (string|null); + + /** MoveTablesCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MoveTablesCreateRequest cells */ + cells?: (string[]|null); + + /** MoveTablesCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** MoveTablesCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** MoveTablesCreateRequest source_shards */ + source_shards?: (string[]|null); + + /** MoveTablesCreateRequest all_tables */ + all_tables?: (boolean|null); + + /** MoveTablesCreateRequest include_tables */ + include_tables?: (string[]|null); + + /** MoveTablesCreateRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** MoveTablesCreateRequest external_cluster_name */ + external_cluster_name?: (string|null); + + /** MoveTablesCreateRequest source_time_zone */ + source_time_zone?: (string|null); + + /** MoveTablesCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** MoveTablesCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** MoveTablesCreateRequest drop_foreign_keys */ + drop_foreign_keys?: (boolean|null); + + /** MoveTablesCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** MoveTablesCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** MoveTablesCreateRequest no_routing_rules */ + no_routing_rules?: (boolean|null); + + /** MoveTablesCreateRequest atomic_copy */ + atomic_copy?: (boolean|null); + + /** MoveTablesCreateRequest workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a MoveTablesCreateRequest. */ + class MoveTablesCreateRequest implements IMoveTablesCreateRequest { + + /** + * Constructs a new MoveTablesCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCreateRequest); + + /** MoveTablesCreateRequest workflow. */ + public workflow: string; + + /** MoveTablesCreateRequest source_keyspace. */ + public source_keyspace: string; + + /** MoveTablesCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** MoveTablesCreateRequest cells. */ + public cells: string[]; + + /** MoveTablesCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** MoveTablesCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** MoveTablesCreateRequest source_shards. */ + public source_shards: string[]; + + /** MoveTablesCreateRequest all_tables. */ + public all_tables: boolean; + + /** MoveTablesCreateRequest include_tables. */ + public include_tables: string[]; + + /** MoveTablesCreateRequest exclude_tables. */ + public exclude_tables: string[]; + + /** MoveTablesCreateRequest external_cluster_name. */ + public external_cluster_name: string; + + /** MoveTablesCreateRequest source_time_zone. */ + public source_time_zone: string; + + /** MoveTablesCreateRequest on_ddl. */ + public on_ddl: string; + + /** MoveTablesCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** MoveTablesCreateRequest drop_foreign_keys. */ + public drop_foreign_keys: boolean; + + /** MoveTablesCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** MoveTablesCreateRequest auto_start. */ + public auto_start: boolean; + + /** MoveTablesCreateRequest no_routing_rules. */ + public no_routing_rules: boolean; + + /** MoveTablesCreateRequest atomic_copy. */ + public atomic_copy: boolean; + + /** MoveTablesCreateRequest workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new MoveTablesCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCreateRequest instance + */ + public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; + + /** + * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * @param message MoveTablesCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. + * @param message MoveTablesCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateRequest; + + /** + * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateRequest; + + /** + * Verifies a MoveTablesCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; + + /** + * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. + * @param message MoveTablesCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCreateResponse. */ + interface IMoveTablesCreateResponse { + + /** MoveTablesCreateResponse summary */ + summary?: (string|null); + + /** MoveTablesCreateResponse details */ + details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); + } + + /** Represents a MoveTablesCreateResponse. */ + class MoveTablesCreateResponse implements IMoveTablesCreateResponse { + + /** + * Constructs a new MoveTablesCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCreateResponse); + + /** MoveTablesCreateResponse summary. */ + public summary: string; + + /** MoveTablesCreateResponse details. */ + public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; + + /** + * Creates a new MoveTablesCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCreateResponse instance + */ + public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; + + /** + * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * @param message MoveTablesCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. + * @param message MoveTablesCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse; + + /** + * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse; + + /** + * Verifies a MoveTablesCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; + + /** + * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. + * @param message MoveTablesCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MoveTablesCreateResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo created */ + created?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo created. */ + public created: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCreateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a MoveTablesCompleteRequest. */ + interface IMoveTablesCompleteRequest { + + /** MoveTablesCompleteRequest workflow */ + workflow?: (string|null); + + /** MoveTablesCompleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** MoveTablesCompleteRequest keep_data */ + keep_data?: (boolean|null); + + /** MoveTablesCompleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** MoveTablesCompleteRequest rename_tables */ + rename_tables?: (boolean|null); + + /** MoveTablesCompleteRequest dry_run */ + dry_run?: (boolean|null); + + /** MoveTablesCompleteRequest shards */ + shards?: (string[]|null); + } + + /** Represents a MoveTablesCompleteRequest. */ + class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { + + /** + * Constructs a new MoveTablesCompleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCompleteRequest); + + /** MoveTablesCompleteRequest workflow. */ + public workflow: string; + + /** MoveTablesCompleteRequest target_keyspace. */ + public target_keyspace: string; + + /** MoveTablesCompleteRequest keep_data. */ + public keep_data: boolean; + + /** MoveTablesCompleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** MoveTablesCompleteRequest rename_tables. */ + public rename_tables: boolean; + + /** MoveTablesCompleteRequest dry_run. */ + public dry_run: boolean; + + /** MoveTablesCompleteRequest shards. */ + public shards: string[]; + + /** + * Creates a new MoveTablesCompleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCompleteRequest instance + */ + public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; + + /** + * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * @param message MoveTablesCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. + * @param message MoveTablesCompleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteRequest; + + /** + * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCompleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteRequest; + + /** + * Verifies a MoveTablesCompleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCompleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; + + /** + * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. + * @param message MoveTablesCompleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCompleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCompleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MoveTablesCompleteResponse. */ + interface IMoveTablesCompleteResponse { + + /** MoveTablesCompleteResponse summary */ + summary?: (string|null); + + /** MoveTablesCompleteResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a MoveTablesCompleteResponse. */ + class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { + + /** + * Constructs a new MoveTablesCompleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IMoveTablesCompleteResponse); + + /** MoveTablesCompleteResponse summary. */ + public summary: string; + + /** MoveTablesCompleteResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new MoveTablesCompleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MoveTablesCompleteResponse instance + */ + public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; + + /** + * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * @param message MoveTablesCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. + * @param message MoveTablesCompleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MoveTablesCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteResponse; + + /** + * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MoveTablesCompleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteResponse; + + /** + * Verifies a MoveTablesCompleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MoveTablesCompleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; + + /** + * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. + * @param message MoveTablesCompleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MoveTablesCompleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MoveTablesCompleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PingTabletRequest. */ + interface IPingTabletRequest { + + /** PingTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a PingTabletRequest. */ + class PingTabletRequest implements IPingTabletRequest { + + /** + * Constructs a new PingTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPingTabletRequest); + + /** PingTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new PingTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PingTabletRequest instance + */ + public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; + + /** + * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * @param message PingTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. + * @param message PingTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PingTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PingTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletRequest; + + /** + * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PingTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletRequest; + + /** + * Verifies a PingTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PingTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; + + /** + * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. + * @param message PingTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PingTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PingTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PingTabletResponse. */ + interface IPingTabletResponse { + } + + /** Represents a PingTabletResponse. */ + class PingTabletResponse implements IPingTabletResponse { + + /** + * Constructs a new PingTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPingTabletResponse); + + /** + * Creates a new PingTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PingTabletResponse instance + */ + public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; + + /** + * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * @param message PingTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. + * @param message PingTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PingTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PingTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletResponse; + + /** + * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PingTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletResponse; + + /** + * Verifies a PingTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PingTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; + + /** + * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. + * @param message PingTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PingTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PingTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PlannedReparentShardRequest. */ + interface IPlannedReparentShardRequest { + + /** PlannedReparentShardRequest keyspace */ + keyspace?: (string|null); + + /** PlannedReparentShardRequest shard */ + shard?: (string|null); + + /** PlannedReparentShardRequest new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary */ + avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout */ + wait_replicas_timeout?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest tolerable_replication_lag */ + tolerable_replication_lag?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest allow_cross_cell_promotion */ + allow_cross_cell_promotion?: (boolean|null); + } + + /** Represents a PlannedReparentShardRequest. */ + class PlannedReparentShardRequest implements IPlannedReparentShardRequest { + + /** + * Constructs a new PlannedReparentShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPlannedReparentShardRequest); + + /** PlannedReparentShardRequest keyspace. */ + public keyspace: string; + + /** PlannedReparentShardRequest shard. */ + public shard: string; + + /** PlannedReparentShardRequest new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest avoid_primary. */ + public avoid_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardRequest wait_replicas_timeout. */ + public wait_replicas_timeout?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest tolerable_replication_lag. */ + public tolerable_replication_lag?: (vttime.IDuration|null); + + /** PlannedReparentShardRequest allow_cross_cell_promotion. */ + public allow_cross_cell_promotion: boolean; + + /** + * Creates a new PlannedReparentShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PlannedReparentShardRequest instance + */ + public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; + + /** + * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. + * @param message PlannedReparentShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlannedReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; + + /** + * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlannedReparentShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; + + /** + * Verifies a PlannedReparentShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlannedReparentShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; + + /** + * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. + * @param message PlannedReparentShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlannedReparentShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PlannedReparentShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PlannedReparentShardResponse. */ + interface IPlannedReparentShardResponse { + + /** PlannedReparentShardResponse keyspace */ + keyspace?: (string|null); + + /** PlannedReparentShardResponse shard */ + shard?: (string|null); + + /** PlannedReparentShardResponse promoted_primary */ + promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a PlannedReparentShardResponse. */ + class PlannedReparentShardResponse implements IPlannedReparentShardResponse { + + /** + * Constructs a new PlannedReparentShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IPlannedReparentShardResponse); + + /** PlannedReparentShardResponse keyspace. */ + public keyspace: string; + + /** PlannedReparentShardResponse shard. */ + public shard: string; + + /** PlannedReparentShardResponse promoted_primary. */ + public promoted_primary?: (topodata.ITabletAlias|null); + + /** PlannedReparentShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new PlannedReparentShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PlannedReparentShardResponse instance + */ + public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; + + /** + * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. + * @param message PlannedReparentShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlannedReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; + + /** + * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlannedReparentShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; + + /** + * Verifies a PlannedReparentShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlannedReparentShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; + + /** + * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. + * @param message PlannedReparentShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlannedReparentShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PlannedReparentShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildKeyspaceGraphRequest. */ + interface IRebuildKeyspaceGraphRequest { + + /** RebuildKeyspaceGraphRequest keyspace */ + keyspace?: (string|null); + + /** RebuildKeyspaceGraphRequest cells */ + cells?: (string[]|null); + + /** RebuildKeyspaceGraphRequest allow_partial */ + allow_partial?: (boolean|null); + } + + /** Represents a RebuildKeyspaceGraphRequest. */ + class RebuildKeyspaceGraphRequest implements IRebuildKeyspaceGraphRequest { + + /** + * Constructs a new RebuildKeyspaceGraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); + + /** RebuildKeyspaceGraphRequest keyspace. */ + public keyspace: string; + + /** RebuildKeyspaceGraphRequest cells. */ + public cells: string[]; + + /** RebuildKeyspaceGraphRequest allow_partial. */ + public allow_partial: boolean; + + /** + * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildKeyspaceGraphRequest instance + */ + public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * @param message RebuildKeyspaceGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. + * @param message RebuildKeyspaceGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildKeyspaceGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildKeyspaceGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Verifies a RebuildKeyspaceGraphRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildKeyspaceGraphRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; + + /** + * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. + * @param message RebuildKeyspaceGraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildKeyspaceGraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildKeyspaceGraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildKeyspaceGraphResponse. */ + interface IRebuildKeyspaceGraphResponse { + } + + /** Represents a RebuildKeyspaceGraphResponse. */ + class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { + + /** + * Constructs a new RebuildKeyspaceGraphResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); + + /** + * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildKeyspaceGraphResponse instance + */ + public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * @param message RebuildKeyspaceGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. + * @param message RebuildKeyspaceGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildKeyspaceGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildKeyspaceGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Verifies a RebuildKeyspaceGraphResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildKeyspaceGraphResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; + + /** + * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. + * @param message RebuildKeyspaceGraphResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildKeyspaceGraphResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildKeyspaceGraphResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildVSchemaGraphRequest. */ + interface IRebuildVSchemaGraphRequest { + + /** RebuildVSchemaGraphRequest cells */ + cells?: (string[]|null); + } + + /** Represents a RebuildVSchemaGraphRequest. */ + class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { + + /** + * Constructs a new RebuildVSchemaGraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); + + /** RebuildVSchemaGraphRequest cells. */ + public cells: string[]; + + /** + * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildVSchemaGraphRequest instance + */ + public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * @param message RebuildVSchemaGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. + * @param message RebuildVSchemaGraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildVSchemaGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildVSchemaGraphRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Verifies a RebuildVSchemaGraphRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildVSchemaGraphRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; + + /** + * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. + * @param message RebuildVSchemaGraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildVSchemaGraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildVSchemaGraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RebuildVSchemaGraphResponse. */ + interface IRebuildVSchemaGraphResponse { + } + + /** Represents a RebuildVSchemaGraphResponse. */ + class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { + + /** + * Constructs a new RebuildVSchemaGraphResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); + + /** + * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RebuildVSchemaGraphResponse instance + */ + public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @param message RebuildVSchemaGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. + * @param message RebuildVSchemaGraphResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RebuildVSchemaGraphResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Verifies a RebuildVSchemaGraphResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RebuildVSchemaGraphResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; + + /** + * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. + * @param message RebuildVSchemaGraphResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RebuildVSchemaGraphResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RebuildVSchemaGraphResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateRequest. */ + interface IRefreshStateRequest { + + /** RefreshStateRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a RefreshStateRequest. */ + class RefreshStateRequest implements IRefreshStateRequest { + + /** + * Constructs a new RefreshStateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateRequest); + + /** RefreshStateRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new RefreshStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateRequest instance + */ + public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; + + /** + * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * @param message RefreshStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. + * @param message RefreshStateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateRequest; + + /** + * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateRequest; + + /** + * Verifies a RefreshStateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; + + /** + * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. + * @param message RefreshStateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateResponse. */ + interface IRefreshStateResponse { + } + + /** Represents a RefreshStateResponse. */ + class RefreshStateResponse implements IRefreshStateResponse { + + /** + * Constructs a new RefreshStateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateResponse); + + /** + * Creates a new RefreshStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateResponse instance + */ + public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; + + /** + * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * @param message RefreshStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. + * @param message RefreshStateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateResponse; + + /** + * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateResponse; + + /** + * Verifies a RefreshStateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; + + /** + * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. + * @param message RefreshStateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateByShardRequest. */ + interface IRefreshStateByShardRequest { + + /** RefreshStateByShardRequest keyspace */ + keyspace?: (string|null); + + /** RefreshStateByShardRequest shard */ + shard?: (string|null); + + /** RefreshStateByShardRequest cells */ + cells?: (string[]|null); + } + + /** Represents a RefreshStateByShardRequest. */ + class RefreshStateByShardRequest implements IRefreshStateByShardRequest { + + /** + * Constructs a new RefreshStateByShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateByShardRequest); + + /** RefreshStateByShardRequest keyspace. */ + public keyspace: string; + + /** RefreshStateByShardRequest shard. */ + public shard: string; + + /** RefreshStateByShardRequest cells. */ + public cells: string[]; + + /** + * Creates a new RefreshStateByShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateByShardRequest instance + */ + public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; + + /** + * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * @param message RefreshStateByShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. + * @param message RefreshStateByShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateByShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardRequest; + + /** + * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateByShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardRequest; + + /** + * Verifies a RefreshStateByShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateByShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; + + /** + * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. + * @param message RefreshStateByShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateByShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateByShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RefreshStateByShardResponse. */ + interface IRefreshStateByShardResponse { + + /** RefreshStateByShardResponse is_partial_refresh */ + is_partial_refresh?: (boolean|null); + + /** RefreshStateByShardResponse partial_refresh_details */ + partial_refresh_details?: (string|null); + } + + /** Represents a RefreshStateByShardResponse. */ + class RefreshStateByShardResponse implements IRefreshStateByShardResponse { + + /** + * Constructs a new RefreshStateByShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRefreshStateByShardResponse); + + /** RefreshStateByShardResponse is_partial_refresh. */ + public is_partial_refresh: boolean; + + /** RefreshStateByShardResponse partial_refresh_details. */ + public partial_refresh_details: string; + + /** + * Creates a new RefreshStateByShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RefreshStateByShardResponse instance + */ + public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; + + /** + * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * @param message RefreshStateByShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. + * @param message RefreshStateByShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RefreshStateByShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardResponse; + + /** + * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RefreshStateByShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardResponse; + + /** + * Verifies a RefreshStateByShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RefreshStateByShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; + + /** + * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. + * @param message RefreshStateByShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RefreshStateByShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RefreshStateByShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaRequest. */ + interface IReloadSchemaRequest { + + /** ReloadSchemaRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ReloadSchemaRequest. */ + class ReloadSchemaRequest implements IReloadSchemaRequest { + + /** + * Constructs a new ReloadSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaRequest); + + /** ReloadSchemaRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReloadSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; + + /** + * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * @param message ReloadSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. + * @param message ReloadSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaRequest; + + /** + * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaRequest; + + /** + * Verifies a ReloadSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; + + /** + * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaResponse. */ + interface IReloadSchemaResponse { + } + + /** Represents a ReloadSchemaResponse. */ + class ReloadSchemaResponse implements IReloadSchemaResponse { + + /** + * Constructs a new ReloadSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaResponse); + + /** + * Creates a new ReloadSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; + + /** + * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * @param message ReloadSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. + * @param message ReloadSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaResponse; + + /** + * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaResponse; + + /** + * Verifies a ReloadSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; + + /** + * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaKeyspaceRequest. */ + interface IReloadSchemaKeyspaceRequest { + + /** ReloadSchemaKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ReloadSchemaKeyspaceRequest wait_position */ + wait_position?: (string|null); + + /** ReloadSchemaKeyspaceRequest include_primary */ + include_primary?: (boolean|null); + + /** ReloadSchemaKeyspaceRequest concurrency */ + concurrency?: (number|null); + } + + /** Represents a ReloadSchemaKeyspaceRequest. */ + class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { + + /** + * Constructs a new ReloadSchemaKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaKeyspaceRequest); + + /** ReloadSchemaKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ReloadSchemaKeyspaceRequest wait_position. */ + public wait_position: string; + + /** ReloadSchemaKeyspaceRequest include_primary. */ + public include_primary: boolean; + + /** ReloadSchemaKeyspaceRequest concurrency. */ + public concurrency: number; + + /** + * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * @param message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. + * @param message ReloadSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Verifies a ReloadSchemaKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; + + /** + * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaKeyspaceResponse. */ + interface IReloadSchemaKeyspaceResponse { + + /** ReloadSchemaKeyspaceResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a ReloadSchemaKeyspaceResponse. */ + class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { + + /** + * Constructs a new ReloadSchemaKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); + + /** ReloadSchemaKeyspaceResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * @param message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. + * @param message ReloadSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Verifies a ReloadSchemaKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; + + /** + * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaShardRequest. */ + interface IReloadSchemaShardRequest { + + /** ReloadSchemaShardRequest keyspace */ + keyspace?: (string|null); + + /** ReloadSchemaShardRequest shard */ + shard?: (string|null); + + /** ReloadSchemaShardRequest wait_position */ + wait_position?: (string|null); + + /** ReloadSchemaShardRequest include_primary */ + include_primary?: (boolean|null); + + /** ReloadSchemaShardRequest concurrency */ + concurrency?: (number|null); + } + + /** Represents a ReloadSchemaShardRequest. */ + class ReloadSchemaShardRequest implements IReloadSchemaShardRequest { + + /** + * Constructs a new ReloadSchemaShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaShardRequest); + + /** ReloadSchemaShardRequest keyspace. */ + public keyspace: string; + + /** ReloadSchemaShardRequest shard. */ + public shard: string; + + /** ReloadSchemaShardRequest wait_position. */ + public wait_position: string; + + /** ReloadSchemaShardRequest include_primary. */ + public include_primary: boolean; + + /** ReloadSchemaShardRequest concurrency. */ + public concurrency: number; + + /** + * Creates a new ReloadSchemaShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaShardRequest instance + */ + public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; + + /** + * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * @param message ReloadSchemaShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. + * @param message ReloadSchemaShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardRequest; + + /** + * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardRequest; + + /** + * Verifies a ReloadSchemaShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; + + /** + * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. + * @param message ReloadSchemaShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReloadSchemaShardResponse. */ + interface IReloadSchemaShardResponse { + + /** ReloadSchemaShardResponse events */ + events?: (logutil.IEvent[]|null); + } + + /** Represents a ReloadSchemaShardResponse. */ + class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { + + /** + * Constructs a new ReloadSchemaShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReloadSchemaShardResponse); + + /** ReloadSchemaShardResponse events. */ + public events: logutil.IEvent[]; + + /** + * Creates a new ReloadSchemaShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReloadSchemaShardResponse instance + */ + public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; + + /** + * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * @param message ReloadSchemaShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. + * @param message ReloadSchemaShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReloadSchemaShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardResponse; + + /** + * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReloadSchemaShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardResponse; + + /** + * Verifies a ReloadSchemaShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReloadSchemaShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; + + /** + * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. + * @param message ReloadSchemaShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReloadSchemaShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReloadSchemaShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveBackupRequest. */ + interface IRemoveBackupRequest { + + /** RemoveBackupRequest keyspace */ + keyspace?: (string|null); + + /** RemoveBackupRequest shard */ + shard?: (string|null); + + /** RemoveBackupRequest name */ + name?: (string|null); + } + + /** Represents a RemoveBackupRequest. */ + class RemoveBackupRequest implements IRemoveBackupRequest { + + /** + * Constructs a new RemoveBackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveBackupRequest); + + /** RemoveBackupRequest keyspace. */ + public keyspace: string; + + /** RemoveBackupRequest shard. */ + public shard: string; + + /** RemoveBackupRequest name. */ + public name: string; + + /** + * Creates a new RemoveBackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveBackupRequest instance + */ + public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; + + /** + * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * @param message RemoveBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. + * @param message RemoveBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveBackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupRequest; + + /** + * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupRequest; + + /** + * Verifies a RemoveBackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveBackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; + + /** + * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. + * @param message RemoveBackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveBackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveBackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveBackupResponse. */ + interface IRemoveBackupResponse { + } + + /** Represents a RemoveBackupResponse. */ + class RemoveBackupResponse implements IRemoveBackupResponse { + + /** + * Constructs a new RemoveBackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveBackupResponse); + + /** + * Creates a new RemoveBackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveBackupResponse instance + */ + public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; + + /** + * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * @param message RemoveBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. + * @param message RemoveBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveBackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupResponse; + + /** + * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupResponse; + + /** + * Verifies a RemoveBackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveBackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; + + /** + * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. + * @param message RemoveBackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveBackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveBackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveKeyspaceCellRequest. */ + interface IRemoveKeyspaceCellRequest { + + /** RemoveKeyspaceCellRequest keyspace */ + keyspace?: (string|null); + + /** RemoveKeyspaceCellRequest cell */ + cell?: (string|null); + + /** RemoveKeyspaceCellRequest force */ + force?: (boolean|null); + + /** RemoveKeyspaceCellRequest recursive */ + recursive?: (boolean|null); + } + + /** Represents a RemoveKeyspaceCellRequest. */ + class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { + + /** + * Constructs a new RemoveKeyspaceCellRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); + + /** RemoveKeyspaceCellRequest keyspace. */ + public keyspace: string; + + /** RemoveKeyspaceCellRequest cell. */ + public cell: string; + + /** RemoveKeyspaceCellRequest force. */ + public force: boolean; + + /** RemoveKeyspaceCellRequest recursive. */ + public recursive: boolean; + + /** + * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveKeyspaceCellRequest instance + */ + public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. + * @param message RemoveKeyspaceCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveKeyspaceCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Verifies a RemoveKeyspaceCellRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveKeyspaceCellRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; + + /** + * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveKeyspaceCellRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveKeyspaceCellRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveKeyspaceCellResponse. */ + interface IRemoveKeyspaceCellResponse { + } + + /** Represents a RemoveKeyspaceCellResponse. */ + class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { + + /** + * Constructs a new RemoveKeyspaceCellResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); + + /** + * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveKeyspaceCellResponse instance + */ + public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. + * @param message RemoveKeyspaceCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveKeyspaceCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveKeyspaceCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Verifies a RemoveKeyspaceCellResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveKeyspaceCellResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; + + /** + * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. + * @param message RemoveKeyspaceCellResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveKeyspaceCellResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveKeyspaceCellResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveShardCellRequest. */ + interface IRemoveShardCellRequest { + + /** RemoveShardCellRequest keyspace */ + keyspace?: (string|null); + + /** RemoveShardCellRequest shard_name */ + shard_name?: (string|null); + + /** RemoveShardCellRequest cell */ + cell?: (string|null); + + /** RemoveShardCellRequest force */ + force?: (boolean|null); + + /** RemoveShardCellRequest recursive */ + recursive?: (boolean|null); + } + + /** Represents a RemoveShardCellRequest. */ + class RemoveShardCellRequest implements IRemoveShardCellRequest { + + /** + * Constructs a new RemoveShardCellRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveShardCellRequest); + + /** RemoveShardCellRequest keyspace. */ + public keyspace: string; + + /** RemoveShardCellRequest shard_name. */ + public shard_name: string; + + /** RemoveShardCellRequest cell. */ + public cell: string; + + /** RemoveShardCellRequest force. */ + public force: boolean; + + /** RemoveShardCellRequest recursive. */ + public recursive: boolean; + + /** + * Creates a new RemoveShardCellRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveShardCellRequest instance + */ + public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; + + /** + * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. + * @param message RemoveShardCellRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveShardCellRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveShardCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; + + /** + * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveShardCellRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; + + /** + * Verifies a RemoveShardCellRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveShardCellRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; + + /** + * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. + * @param message RemoveShardCellRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveShardCellRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveShardCellRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveShardCellResponse. */ + interface IRemoveShardCellResponse { + } + + /** Represents a RemoveShardCellResponse. */ + class RemoveShardCellResponse implements IRemoveShardCellResponse { + + /** + * Constructs a new RemoveShardCellResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRemoveShardCellResponse); + + /** + * Creates a new RemoveShardCellResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveShardCellResponse instance + */ + public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; + + /** + * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. + * @param message RemoveShardCellResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveShardCellResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveShardCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; + + /** + * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveShardCellResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; + + /** + * Verifies a RemoveShardCellResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveShardCellResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; + + /** + * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. + * @param message RemoveShardCellResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveShardCellResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveShardCellResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReparentTabletRequest. */ + interface IReparentTabletRequest { + + /** ReparentTabletRequest tablet */ + tablet?: (topodata.ITabletAlias|null); + } + + /** Represents a ReparentTabletRequest. */ + class ReparentTabletRequest implements IReparentTabletRequest { + + /** + * Constructs a new ReparentTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReparentTabletRequest); + + /** ReparentTabletRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReparentTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReparentTabletRequest instance + */ + public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; + + /** + * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. + * @param message ReparentTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReparentTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReparentTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; + + /** + * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReparentTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; + + /** + * Verifies a ReparentTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReparentTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; + + /** + * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. + * @param message ReparentTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReparentTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReparentTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReparentTabletResponse. */ + interface IReparentTabletResponse { + + /** ReparentTabletResponse keyspace */ + keyspace?: (string|null); + + /** ReparentTabletResponse shard */ + shard?: (string|null); + + /** ReparentTabletResponse primary */ + primary?: (topodata.ITabletAlias|null); + } + + /** Represents a ReparentTabletResponse. */ + class ReparentTabletResponse implements IReparentTabletResponse { + + /** + * Constructs a new ReparentTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReparentTabletResponse); + + /** ReparentTabletResponse keyspace. */ + public keyspace: string; + + /** ReparentTabletResponse shard. */ + public shard: string; + + /** ReparentTabletResponse primary. */ + public primary?: (topodata.ITabletAlias|null); + + /** + * Creates a new ReparentTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReparentTabletResponse instance + */ + public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; + + /** + * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. + * @param message ReparentTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReparentTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReparentTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; + + /** + * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReparentTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; + + /** + * Verifies a ReparentTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReparentTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; + + /** + * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. + * @param message ReparentTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReparentTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReparentTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReshardCreateRequest. */ + interface IReshardCreateRequest { + + /** ReshardCreateRequest workflow */ + workflow?: (string|null); + + /** ReshardCreateRequest keyspace */ + keyspace?: (string|null); + + /** ReshardCreateRequest source_shards */ + source_shards?: (string[]|null); + + /** ReshardCreateRequest target_shards */ + target_shards?: (string[]|null); + + /** ReshardCreateRequest cells */ + cells?: (string[]|null); + + /** ReshardCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** ReshardCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** ReshardCreateRequest skip_schema_copy */ + skip_schema_copy?: (boolean|null); + + /** ReshardCreateRequest on_ddl */ + on_ddl?: (string|null); + + /** ReshardCreateRequest stop_after_copy */ + stop_after_copy?: (boolean|null); + + /** ReshardCreateRequest defer_secondary_keys */ + defer_secondary_keys?: (boolean|null); + + /** ReshardCreateRequest auto_start */ + auto_start?: (boolean|null); + + /** ReshardCreateRequest workflow_options */ + workflow_options?: (vtctldata.IWorkflowOptions|null); + } + + /** Represents a ReshardCreateRequest. */ + class ReshardCreateRequest implements IReshardCreateRequest { + + /** + * Constructs a new ReshardCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IReshardCreateRequest); + + /** ReshardCreateRequest workflow. */ + public workflow: string; + + /** ReshardCreateRequest keyspace. */ + public keyspace: string; + + /** ReshardCreateRequest source_shards. */ + public source_shards: string[]; + + /** ReshardCreateRequest target_shards. */ + public target_shards: string[]; + + /** ReshardCreateRequest cells. */ + public cells: string[]; + + /** ReshardCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** ReshardCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** ReshardCreateRequest skip_schema_copy. */ + public skip_schema_copy: boolean; + + /** ReshardCreateRequest on_ddl. */ + public on_ddl: string; + + /** ReshardCreateRequest stop_after_copy. */ + public stop_after_copy: boolean; + + /** ReshardCreateRequest defer_secondary_keys. */ + public defer_secondary_keys: boolean; + + /** ReshardCreateRequest auto_start. */ + public auto_start: boolean; + + /** ReshardCreateRequest workflow_options. */ + public workflow_options?: (vtctldata.IWorkflowOptions|null); + + /** + * Creates a new ReshardCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReshardCreateRequest instance + */ + public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; + + /** + * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * @param message ReshardCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. + * @param message ReshardCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReshardCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReshardCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReshardCreateRequest; + + /** + * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReshardCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReshardCreateRequest; + + /** + * Verifies a ReshardCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReshardCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; + + /** + * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. + * @param message ReshardCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReshardCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReshardCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestoreFromBackupRequest. */ + interface IRestoreFromBackupRequest { + + /** RestoreFromBackupRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupRequest backup_time */ + backup_time?: (vttime.ITime|null); + + /** RestoreFromBackupRequest restore_to_pos */ + restore_to_pos?: (string|null); + + /** RestoreFromBackupRequest dry_run */ + dry_run?: (boolean|null); + + /** RestoreFromBackupRequest restore_to_timestamp */ + restore_to_timestamp?: (vttime.ITime|null); + + /** RestoreFromBackupRequest allowed_backup_engines */ + allowed_backup_engines?: (string[]|null); + } + + /** Represents a RestoreFromBackupRequest. */ + class RestoreFromBackupRequest implements IRestoreFromBackupRequest { + + /** + * Constructs a new RestoreFromBackupRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRestoreFromBackupRequest); + + /** RestoreFromBackupRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupRequest backup_time. */ + public backup_time?: (vttime.ITime|null); + + /** RestoreFromBackupRequest restore_to_pos. */ + public restore_to_pos: string; + + /** RestoreFromBackupRequest dry_run. */ + public dry_run: boolean; + + /** RestoreFromBackupRequest restore_to_timestamp. */ + public restore_to_timestamp?: (vttime.ITime|null); + + /** RestoreFromBackupRequest allowed_backup_engines. */ + public allowed_backup_engines: string[]; + + /** + * Creates a new RestoreFromBackupRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreFromBackupRequest instance + */ + public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; + + /** + * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * @param message RestoreFromBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. + * @param message RestoreFromBackupRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreFromBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupRequest; + + /** + * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RestoreFromBackupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupRequest; + + /** + * Verifies a RestoreFromBackupRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreFromBackupRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; + + /** + * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. + * @param message RestoreFromBackupRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestoreFromBackupRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RestoreFromBackupRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestoreFromBackupResponse. */ + interface IRestoreFromBackupResponse { + + /** RestoreFromBackupResponse tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupResponse keyspace */ + keyspace?: (string|null); + + /** RestoreFromBackupResponse shard */ + shard?: (string|null); + + /** RestoreFromBackupResponse event */ + event?: (logutil.IEvent|null); + } + + /** Represents a RestoreFromBackupResponse. */ + class RestoreFromBackupResponse implements IRestoreFromBackupResponse { + + /** + * Constructs a new RestoreFromBackupResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRestoreFromBackupResponse); + + /** RestoreFromBackupResponse tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** RestoreFromBackupResponse keyspace. */ + public keyspace: string; + + /** RestoreFromBackupResponse shard. */ + public shard: string; + + /** RestoreFromBackupResponse event. */ + public event?: (logutil.IEvent|null); + + /** + * Creates a new RestoreFromBackupResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreFromBackupResponse instance + */ + public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; + + /** + * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * @param message RestoreFromBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. + * @param message RestoreFromBackupResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreFromBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupResponse; + + /** + * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RestoreFromBackupResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupResponse; + + /** + * Verifies a RestoreFromBackupResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreFromBackupResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; + + /** + * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. + * @param message RestoreFromBackupResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestoreFromBackupResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RestoreFromBackupResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RetrySchemaMigrationRequest. */ + interface IRetrySchemaMigrationRequest { + + /** RetrySchemaMigrationRequest keyspace */ + keyspace?: (string|null); + + /** RetrySchemaMigrationRequest uuid */ + uuid?: (string|null); + } + + /** Represents a RetrySchemaMigrationRequest. */ + class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { + + /** + * Constructs a new RetrySchemaMigrationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); + + /** RetrySchemaMigrationRequest keyspace. */ + public keyspace: string; + + /** RetrySchemaMigrationRequest uuid. */ + public uuid: string; + + /** + * Creates a new RetrySchemaMigrationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RetrySchemaMigrationRequest instance + */ + public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; + + /** + * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * @param message RetrySchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. + * @param message RetrySchemaMigrationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetrySchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationRequest; + + /** + * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RetrySchemaMigrationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationRequest; + + /** + * Verifies a RetrySchemaMigrationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RetrySchemaMigrationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; + + /** + * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. + * @param message RetrySchemaMigrationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RetrySchemaMigrationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RetrySchemaMigrationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RetrySchemaMigrationResponse. */ + interface IRetrySchemaMigrationResponse { + + /** RetrySchemaMigrationResponse rows_affected_by_shard */ + rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); + } + + /** Represents a RetrySchemaMigrationResponse. */ + class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { + + /** + * Constructs a new RetrySchemaMigrationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); + + /** RetrySchemaMigrationResponse rows_affected_by_shard. */ + public rows_affected_by_shard: { [k: string]: (number|Long) }; + + /** + * Creates a new RetrySchemaMigrationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RetrySchemaMigrationResponse instance + */ + public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; + + /** + * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * @param message RetrySchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. + * @param message RetrySchemaMigrationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetrySchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationResponse; + + /** + * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RetrySchemaMigrationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationResponse; + + /** + * Verifies a RetrySchemaMigrationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RetrySchemaMigrationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; + + /** + * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. + * @param message RetrySchemaMigrationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RetrySchemaMigrationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RetrySchemaMigrationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RunHealthCheckRequest. */ + interface IRunHealthCheckRequest { + + /** RunHealthCheckRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a RunHealthCheckRequest. */ + class RunHealthCheckRequest implements IRunHealthCheckRequest { + + /** + * Constructs a new RunHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRunHealthCheckRequest); + + /** RunHealthCheckRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new RunHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckRequest instance + */ + public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; + + /** + * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * @param message RunHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. + * @param message RunHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckRequest; + + /** + * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckRequest; + + /** + * Verifies a RunHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; + + /** + * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. + * @param message RunHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RunHealthCheckResponse. */ + interface IRunHealthCheckResponse { + } + + /** Represents a RunHealthCheckResponse. */ + class RunHealthCheckResponse implements IRunHealthCheckResponse { + + /** + * Constructs a new RunHealthCheckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IRunHealthCheckResponse); + + /** + * Creates a new RunHealthCheckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunHealthCheckResponse instance + */ + public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; + + /** + * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * @param message RunHealthCheckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. + * @param message RunHealthCheckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunHealthCheckResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunHealthCheckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckResponse; + + /** + * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunHealthCheckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckResponse; + + /** + * Verifies a RunHealthCheckResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunHealthCheckResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; + + /** + * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. + * @param message RunHealthCheckResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunHealthCheckResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunHealthCheckResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceDurabilityPolicyRequest. */ + interface ISetKeyspaceDurabilityPolicyRequest { + + /** SetKeyspaceDurabilityPolicyRequest keyspace */ + keyspace?: (string|null); + + /** SetKeyspaceDurabilityPolicyRequest durability_policy */ + durability_policy?: (string|null); + } + + /** Represents a SetKeyspaceDurabilityPolicyRequest. */ + class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { + + /** + * Constructs a new SetKeyspaceDurabilityPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); + + /** SetKeyspaceDurabilityPolicyRequest keyspace. */ + public keyspace: string; + + /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ + public durability_policy: string; + + /** + * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceDurabilityPolicyRequest instance + */ + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceDurabilityPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceDurabilityPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Verifies a SetKeyspaceDurabilityPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceDurabilityPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; + + /** + * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. + * @param message SetKeyspaceDurabilityPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceDurabilityPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceDurabilityPolicyResponse. */ + interface ISetKeyspaceDurabilityPolicyResponse { + + /** SetKeyspaceDurabilityPolicyResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a SetKeyspaceDurabilityPolicyResponse. */ + class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { + + /** + * Constructs a new SetKeyspaceDurabilityPolicyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); + + /** SetKeyspaceDurabilityPolicyResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceDurabilityPolicyResponse instance + */ + public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. + * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceDurabilityPolicyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceDurabilityPolicyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Verifies a SetKeyspaceDurabilityPolicyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceDurabilityPolicyResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; + + /** + * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. + * @param message SetKeyspaceDurabilityPolicyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceDurabilityPolicyResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceShardingInfoRequest. */ + interface ISetKeyspaceShardingInfoRequest { + + /** SetKeyspaceShardingInfoRequest keyspace */ + keyspace?: (string|null); + + /** SetKeyspaceShardingInfoRequest force */ + force?: (boolean|null); + } + + /** Represents a SetKeyspaceShardingInfoRequest. */ + class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { + + /** + * Constructs a new SetKeyspaceShardingInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); + + /** SetKeyspaceShardingInfoRequest keyspace. */ + public keyspace: string; + + /** SetKeyspaceShardingInfoRequest force. */ + public force: boolean; + + /** + * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceShardingInfoRequest instance + */ + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * @param message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. + * @param message SetKeyspaceShardingInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceShardingInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceShardingInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Verifies a SetKeyspaceShardingInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceShardingInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; + + /** + * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. + * @param message SetKeyspaceShardingInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceShardingInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceShardingInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetKeyspaceShardingInfoResponse. */ + interface ISetKeyspaceShardingInfoResponse { + + /** SetKeyspaceShardingInfoResponse keyspace */ + keyspace?: (topodata.IKeyspace|null); + } + + /** Represents a SetKeyspaceShardingInfoResponse. */ + class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { + + /** + * Constructs a new SetKeyspaceShardingInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); + + /** SetKeyspaceShardingInfoResponse keyspace. */ + public keyspace?: (topodata.IKeyspace|null); + + /** + * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetKeyspaceShardingInfoResponse instance + */ + public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * @param message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. + * @param message SetKeyspaceShardingInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetKeyspaceShardingInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetKeyspaceShardingInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Verifies a SetKeyspaceShardingInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetKeyspaceShardingInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; + + /** + * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. + * @param message SetKeyspaceShardingInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetKeyspaceShardingInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetKeyspaceShardingInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardIsPrimaryServingRequest. */ + interface ISetShardIsPrimaryServingRequest { + + /** SetShardIsPrimaryServingRequest keyspace */ + keyspace?: (string|null); + + /** SetShardIsPrimaryServingRequest shard */ + shard?: (string|null); + + /** SetShardIsPrimaryServingRequest is_serving */ + is_serving?: (boolean|null); + } + + /** Represents a SetShardIsPrimaryServingRequest. */ + class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { + + /** + * Constructs a new SetShardIsPrimaryServingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); + + /** SetShardIsPrimaryServingRequest keyspace. */ + public keyspace: string; + + /** SetShardIsPrimaryServingRequest shard. */ + public shard: string; + + /** SetShardIsPrimaryServingRequest is_serving. */ + public is_serving: boolean; + + /** + * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardIsPrimaryServingRequest instance + */ + public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * @param message SetShardIsPrimaryServingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. + * @param message SetShardIsPrimaryServingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardIsPrimaryServingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardIsPrimaryServingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Verifies a SetShardIsPrimaryServingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardIsPrimaryServingRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; + + /** + * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. + * @param message SetShardIsPrimaryServingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardIsPrimaryServingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardIsPrimaryServingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardIsPrimaryServingResponse. */ + interface ISetShardIsPrimaryServingResponse { + + /** SetShardIsPrimaryServingResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SetShardIsPrimaryServingResponse. */ + class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { + + /** + * Constructs a new SetShardIsPrimaryServingResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); + + /** SetShardIsPrimaryServingResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardIsPrimaryServingResponse instance + */ + public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * @param message SetShardIsPrimaryServingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. + * @param message SetShardIsPrimaryServingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardIsPrimaryServingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardIsPrimaryServingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Verifies a SetShardIsPrimaryServingResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardIsPrimaryServingResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; + + /** + * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. + * @param message SetShardIsPrimaryServingResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardIsPrimaryServingResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardIsPrimaryServingResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardTabletControlRequest. */ + interface ISetShardTabletControlRequest { + + /** SetShardTabletControlRequest keyspace */ + keyspace?: (string|null); + + /** SetShardTabletControlRequest shard */ + shard?: (string|null); + + /** SetShardTabletControlRequest tablet_type */ + tablet_type?: (topodata.TabletType|null); + + /** SetShardTabletControlRequest cells */ + cells?: (string[]|null); + + /** SetShardTabletControlRequest denied_tables */ + denied_tables?: (string[]|null); + + /** SetShardTabletControlRequest disable_query_service */ + disable_query_service?: (boolean|null); + + /** SetShardTabletControlRequest remove */ + remove?: (boolean|null); + } + + /** Represents a SetShardTabletControlRequest. */ + class SetShardTabletControlRequest implements ISetShardTabletControlRequest { + + /** + * Constructs a new SetShardTabletControlRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardTabletControlRequest); + + /** SetShardTabletControlRequest keyspace. */ + public keyspace: string; + + /** SetShardTabletControlRequest shard. */ + public shard: string; + + /** SetShardTabletControlRequest tablet_type. */ + public tablet_type: topodata.TabletType; + + /** SetShardTabletControlRequest cells. */ + public cells: string[]; + + /** SetShardTabletControlRequest denied_tables. */ + public denied_tables: string[]; + + /** SetShardTabletControlRequest disable_query_service. */ + public disable_query_service: boolean; + + /** SetShardTabletControlRequest remove. */ + public remove: boolean; + + /** + * Creates a new SetShardTabletControlRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardTabletControlRequest instance + */ + public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; + + /** + * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * @param message SetShardTabletControlRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. + * @param message SetShardTabletControlRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardTabletControlRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlRequest; + + /** + * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardTabletControlRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlRequest; + + /** + * Verifies a SetShardTabletControlRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardTabletControlRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; + + /** + * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. + * @param message SetShardTabletControlRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardTabletControlRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardTabletControlRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetShardTabletControlResponse. */ + interface ISetShardTabletControlResponse { + + /** SetShardTabletControlResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SetShardTabletControlResponse. */ + class SetShardTabletControlResponse implements ISetShardTabletControlResponse { + + /** + * Constructs a new SetShardTabletControlResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetShardTabletControlResponse); + + /** SetShardTabletControlResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SetShardTabletControlResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetShardTabletControlResponse instance + */ + public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; + + /** + * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * @param message SetShardTabletControlResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. + * @param message SetShardTabletControlResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetShardTabletControlResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlResponse; + + /** + * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetShardTabletControlResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlResponse; + + /** + * Verifies a SetShardTabletControlResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetShardTabletControlResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; + + /** + * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. + * @param message SetShardTabletControlResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetShardTabletControlResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetShardTabletControlResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetWritableRequest. */ + interface ISetWritableRequest { + + /** SetWritableRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable */ + writable?: (boolean|null); + } + + /** Represents a SetWritableRequest. */ + class SetWritableRequest implements ISetWritableRequest { + + /** + * Constructs a new SetWritableRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetWritableRequest); + + /** SetWritableRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** SetWritableRequest writable. */ + public writable: boolean; + + /** + * Creates a new SetWritableRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetWritableRequest instance + */ + public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; + + /** + * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * @param message SetWritableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. + * @param message SetWritableRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetWritableRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetWritableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableRequest; + + /** + * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetWritableRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableRequest; + + /** + * Verifies a SetWritableRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetWritableRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; + + /** + * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. + * @param message SetWritableRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetWritableRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetWritableRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SetWritableResponse. */ + interface ISetWritableResponse { + } + + /** Represents a SetWritableResponse. */ + class SetWritableResponse implements ISetWritableResponse { + + /** + * Constructs a new SetWritableResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISetWritableResponse); + + /** + * Creates a new SetWritableResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SetWritableResponse instance + */ + public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; + + /** + * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * @param message SetWritableResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. + * @param message SetWritableResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetWritableResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetWritableResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableResponse; + + /** + * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetWritableResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableResponse; + + /** + * Verifies a SetWritableResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetWritableResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; + + /** + * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. + * @param message SetWritableResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetWritableResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetWritableResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationAddRequest. */ + interface IShardReplicationAddRequest { + + /** ShardReplicationAddRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationAddRequest shard */ + shard?: (string|null); + + /** ShardReplicationAddRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ShardReplicationAddRequest. */ + class ShardReplicationAddRequest implements IShardReplicationAddRequest { + + /** + * Constructs a new ShardReplicationAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationAddRequest); + + /** ShardReplicationAddRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationAddRequest shard. */ + public shard: string; + + /** ShardReplicationAddRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ShardReplicationAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationAddRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; + + /** + * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * @param message ShardReplicationAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. + * @param message ShardReplicationAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddRequest; + + /** + * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddRequest; + + /** + * Verifies a ShardReplicationAddRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationAddRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; + + /** + * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. + * @param message ShardReplicationAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationAddResponse. */ + interface IShardReplicationAddResponse { + } + + /** Represents a ShardReplicationAddResponse. */ + class ShardReplicationAddResponse implements IShardReplicationAddResponse { + + /** + * Constructs a new ShardReplicationAddResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationAddResponse); + + /** + * Creates a new ShardReplicationAddResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationAddResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; + + /** + * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * @param message ShardReplicationAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. + * @param message ShardReplicationAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddResponse; + + /** + * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddResponse; + + /** + * Verifies a ShardReplicationAddResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationAddResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; + + /** + * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. + * @param message ShardReplicationAddResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationAddResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationAddResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationFixRequest. */ + interface IShardReplicationFixRequest { + + /** ShardReplicationFixRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationFixRequest shard */ + shard?: (string|null); + + /** ShardReplicationFixRequest cell */ + cell?: (string|null); + } + + /** Represents a ShardReplicationFixRequest. */ + class ShardReplicationFixRequest implements IShardReplicationFixRequest { + + /** + * Constructs a new ShardReplicationFixRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationFixRequest); + + /** ShardReplicationFixRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationFixRequest shard. */ + public shard: string; + + /** ShardReplicationFixRequest cell. */ + public cell: string; + + /** + * Creates a new ShardReplicationFixRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationFixRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; + + /** + * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * @param message ShardReplicationFixRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. + * @param message ShardReplicationFixRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationFixRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixRequest; + + /** + * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationFixRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixRequest; + + /** + * Verifies a ShardReplicationFixRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationFixRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; + + /** + * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. + * @param message ShardReplicationFixRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationFixRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationFixRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationFixResponse. */ + interface IShardReplicationFixResponse { + + /** ShardReplicationFixResponse error */ + error?: (topodata.IShardReplicationError|null); + } + + /** Represents a ShardReplicationFixResponse. */ + class ShardReplicationFixResponse implements IShardReplicationFixResponse { + + /** + * Constructs a new ShardReplicationFixResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationFixResponse); + + /** ShardReplicationFixResponse error. */ + public error?: (topodata.IShardReplicationError|null); + + /** + * Creates a new ShardReplicationFixResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationFixResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; + + /** + * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * @param message ShardReplicationFixResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. + * @param message ShardReplicationFixResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationFixResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixResponse; + + /** + * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationFixResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixResponse; + + /** + * Verifies a ShardReplicationFixResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationFixResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; + + /** + * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. + * @param message ShardReplicationFixResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationFixResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationFixResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationPositionsRequest. */ + interface IShardReplicationPositionsRequest { + + /** ShardReplicationPositionsRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationPositionsRequest shard */ + shard?: (string|null); + } + + /** Represents a ShardReplicationPositionsRequest. */ + class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { + + /** + * Constructs a new ShardReplicationPositionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationPositionsRequest); + + /** ShardReplicationPositionsRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationPositionsRequest shard. */ + public shard: string; + + /** + * Creates a new ShardReplicationPositionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationPositionsRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; + + /** + * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * @param message ShardReplicationPositionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. + * @param message ShardReplicationPositionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationPositionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsRequest; + + /** + * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationPositionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsRequest; + + /** + * Verifies a ShardReplicationPositionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationPositionsRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; + + /** + * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. + * @param message ShardReplicationPositionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationPositionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationPositionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationPositionsResponse. */ + interface IShardReplicationPositionsResponse { + + /** ShardReplicationPositionsResponse replication_statuses */ + replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); + + /** ShardReplicationPositionsResponse tablet_map */ + tablet_map?: ({ [k: string]: topodata.ITablet }|null); + } + + /** Represents a ShardReplicationPositionsResponse. */ + class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { + + /** + * Constructs a new ShardReplicationPositionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationPositionsResponse); + + /** ShardReplicationPositionsResponse replication_statuses. */ + public replication_statuses: { [k: string]: replicationdata.IStatus }; + + /** ShardReplicationPositionsResponse tablet_map. */ + public tablet_map: { [k: string]: topodata.ITablet }; + + /** + * Creates a new ShardReplicationPositionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationPositionsResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; + + /** + * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * @param message ShardReplicationPositionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. + * @param message ShardReplicationPositionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationPositionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsResponse; + + /** + * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationPositionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsResponse; + + /** + * Verifies a ShardReplicationPositionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationPositionsResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; + + /** + * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. + * @param message ShardReplicationPositionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationPositionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationPositionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationRemoveRequest. */ + interface IShardReplicationRemoveRequest { + + /** ShardReplicationRemoveRequest keyspace */ + keyspace?: (string|null); + + /** ShardReplicationRemoveRequest shard */ + shard?: (string|null); + + /** ShardReplicationRemoveRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a ShardReplicationRemoveRequest. */ + class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { + + /** + * Constructs a new ShardReplicationRemoveRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationRemoveRequest); + + /** ShardReplicationRemoveRequest keyspace. */ + public keyspace: string; + + /** ShardReplicationRemoveRequest shard. */ + public shard: string; + + /** ShardReplicationRemoveRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new ShardReplicationRemoveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationRemoveRequest instance + */ + public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; + + /** + * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * @param message ShardReplicationRemoveRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. + * @param message ShardReplicationRemoveRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationRemoveRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveRequest; + + /** + * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationRemoveRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveRequest; + + /** + * Verifies a ShardReplicationRemoveRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationRemoveRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; + + /** + * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. + * @param message ShardReplicationRemoveRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationRemoveRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationRemoveRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardReplicationRemoveResponse. */ + interface IShardReplicationRemoveResponse { + } + + /** Represents a ShardReplicationRemoveResponse. */ + class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { + + /** + * Constructs a new ShardReplicationRemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IShardReplicationRemoveResponse); + + /** + * Creates a new ShardReplicationRemoveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardReplicationRemoveResponse instance + */ + public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; + + /** + * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @param message ShardReplicationRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. + * @param message ShardReplicationRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveResponse; + + /** + * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardReplicationRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveResponse; + + /** + * Verifies a ShardReplicationRemoveResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardReplicationRemoveResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; + + /** + * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. + * @param message ShardReplicationRemoveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardReplicationRemoveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardReplicationRemoveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SleepTabletRequest. */ + interface ISleepTabletRequest { + + /** SleepTabletRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + + /** SleepTabletRequest duration */ + duration?: (vttime.IDuration|null); + } + + /** Represents a SleepTabletRequest. */ + class SleepTabletRequest implements ISleepTabletRequest { + + /** + * Constructs a new SleepTabletRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISleepTabletRequest); + + /** SleepTabletRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** SleepTabletRequest duration. */ + public duration?: (vttime.IDuration|null); + + /** + * Creates a new SleepTabletRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepTabletRequest instance + */ + public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; + + /** + * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * @param message SleepTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. + * @param message SleepTabletRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepTabletRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletRequest; + + /** + * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SleepTabletRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletRequest; + + /** + * Verifies a SleepTabletRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SleepTabletRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; + + /** + * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. + * @param message SleepTabletRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SleepTabletRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SleepTabletRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SleepTabletResponse. */ + interface ISleepTabletResponse { + } + + /** Represents a SleepTabletResponse. */ + class SleepTabletResponse implements ISleepTabletResponse { + + /** + * Constructs a new SleepTabletResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISleepTabletResponse); + + /** + * Creates a new SleepTabletResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepTabletResponse instance + */ + public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; + + /** + * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @param message SleepTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. + * @param message SleepTabletResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletResponse; + + /** + * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SleepTabletResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletResponse; + + /** + * Verifies a SleepTabletResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SleepTabletResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; + + /** + * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. + * @param message SleepTabletResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SleepTabletResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SleepTabletResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardAddRequest. */ + interface ISourceShardAddRequest { + + /** SourceShardAddRequest keyspace */ + keyspace?: (string|null); + + /** SourceShardAddRequest shard */ + shard?: (string|null); + + /** SourceShardAddRequest uid */ + uid?: (number|null); + + /** SourceShardAddRequest source_keyspace */ + source_keyspace?: (string|null); + + /** SourceShardAddRequest source_shard */ + source_shard?: (string|null); + + /** SourceShardAddRequest key_range */ + key_range?: (topodata.IKeyRange|null); + + /** SourceShardAddRequest tables */ + tables?: (string[]|null); + } + + /** Represents a SourceShardAddRequest. */ + class SourceShardAddRequest implements ISourceShardAddRequest { + + /** + * Constructs a new SourceShardAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardAddRequest); + + /** SourceShardAddRequest keyspace. */ + public keyspace: string; + + /** SourceShardAddRequest shard. */ + public shard: string; + + /** SourceShardAddRequest uid. */ + public uid: number; + + /** SourceShardAddRequest source_keyspace. */ + public source_keyspace: string; + + /** SourceShardAddRequest source_shard. */ + public source_shard: string; + + /** SourceShardAddRequest key_range. */ + public key_range?: (topodata.IKeyRange|null); + + /** SourceShardAddRequest tables. */ + public tables: string[]; + + /** + * Creates a new SourceShardAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardAddRequest instance + */ + public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; + + /** + * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * @param message SourceShardAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. + * @param message SourceShardAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddRequest; + + /** + * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddRequest; + + /** + * Verifies a SourceShardAddRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardAddRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; + + /** + * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. + * @param message SourceShardAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardAddResponse. */ + interface ISourceShardAddResponse { + + /** SourceShardAddResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SourceShardAddResponse. */ + class SourceShardAddResponse implements ISourceShardAddResponse { + + /** + * Constructs a new SourceShardAddResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardAddResponse); + + /** SourceShardAddResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SourceShardAddResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardAddResponse instance + */ + public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; + + /** + * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * @param message SourceShardAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. + * @param message SourceShardAddResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardAddResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddResponse; + + /** + * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardAddResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddResponse; + + /** + * Verifies a SourceShardAddResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardAddResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; + + /** + * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. + * @param message SourceShardAddResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardAddResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardAddResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardDeleteRequest. */ + interface ISourceShardDeleteRequest { + + /** SourceShardDeleteRequest keyspace */ + keyspace?: (string|null); + + /** SourceShardDeleteRequest shard */ + shard?: (string|null); + + /** SourceShardDeleteRequest uid */ + uid?: (number|null); + } + + /** Represents a SourceShardDeleteRequest. */ + class SourceShardDeleteRequest implements ISourceShardDeleteRequest { + + /** + * Constructs a new SourceShardDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardDeleteRequest); + + /** SourceShardDeleteRequest keyspace. */ + public keyspace: string; + + /** SourceShardDeleteRequest shard. */ + public shard: string; + + /** SourceShardDeleteRequest uid. */ + public uid: number; + + /** + * Creates a new SourceShardDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardDeleteRequest instance + */ + public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; + + /** + * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * @param message SourceShardDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. + * @param message SourceShardDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteRequest; + + /** + * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteRequest; + + /** + * Verifies a SourceShardDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; + + /** + * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. + * @param message SourceShardDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SourceShardDeleteResponse. */ + interface ISourceShardDeleteResponse { + + /** SourceShardDeleteResponse shard */ + shard?: (topodata.IShard|null); + } + + /** Represents a SourceShardDeleteResponse. */ + class SourceShardDeleteResponse implements ISourceShardDeleteResponse { + + /** + * Constructs a new SourceShardDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ISourceShardDeleteResponse); + + /** SourceShardDeleteResponse shard. */ + public shard?: (topodata.IShard|null); + + /** + * Creates a new SourceShardDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceShardDeleteResponse instance + */ + public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; + + /** + * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * @param message SourceShardDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. + * @param message SourceShardDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceShardDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteResponse; + + /** + * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceShardDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteResponse; + + /** + * Verifies a SourceShardDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceShardDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; + + /** + * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. + * @param message SourceShardDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceShardDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceShardDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartReplicationRequest. */ + interface IStartReplicationRequest { + + /** StartReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StartReplicationRequest. */ + class StartReplicationRequest implements IStartReplicationRequest { + + /** + * Constructs a new StartReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStartReplicationRequest); + + /** StartReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StartReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartReplicationRequest instance + */ + public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; + + /** + * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * @param message StartReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. + * @param message StartReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationRequest; + + /** + * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationRequest; + + /** + * Verifies a StartReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; + + /** + * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. + * @param message StartReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartReplicationResponse. */ + interface IStartReplicationResponse { + } + + /** Represents a StartReplicationResponse. */ + class StartReplicationResponse implements IStartReplicationResponse { + + /** + * Constructs a new StartReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStartReplicationResponse); + + /** + * Creates a new StartReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StartReplicationResponse instance + */ + public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; + + /** + * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * @param message StartReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. + * @param message StartReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StartReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StartReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationResponse; + + /** + * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StartReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationResponse; + + /** + * Verifies a StartReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; + + /** + * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. + * @param message StartReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationRequest. */ + interface IStopReplicationRequest { + + /** StopReplicationRequest tablet_alias */ + tablet_alias?: (topodata.ITabletAlias|null); + } + + /** Represents a StopReplicationRequest. */ + class StopReplicationRequest implements IStopReplicationRequest { + + /** + * Constructs a new StopReplicationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStopReplicationRequest); + + /** StopReplicationRequest tablet_alias. */ + public tablet_alias?: (topodata.ITabletAlias|null); + + /** + * Creates a new StopReplicationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationRequest instance + */ + public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; + + /** + * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. + * @param message StopReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. + * @param message StopReplicationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationRequest; + + /** + * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationRequest; + + /** + * Verifies a StopReplicationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; + + /** + * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. + * @param message StopReplicationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopReplicationResponse. */ + interface IStopReplicationResponse { + } + + /** Represents a StopReplicationResponse. */ + class StopReplicationResponse implements IStopReplicationResponse { + + /** + * Constructs a new StopReplicationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IStopReplicationResponse); + + /** + * Creates a new StopReplicationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns StopReplicationResponse instance + */ + public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; + + /** + * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * @param message StopReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. + * @param message StopReplicationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StopReplicationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationResponse; + + /** + * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopReplicationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationResponse; + + /** + * Verifies a StopReplicationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopReplicationResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; + + /** + * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. + * @param message StopReplicationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopReplicationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopReplicationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TabletExternallyReparentedRequest. */ + interface ITabletExternallyReparentedRequest { + + /** TabletExternallyReparentedRequest tablet */ + tablet?: (topodata.ITabletAlias|null); + } + + /** Represents a TabletExternallyReparentedRequest. */ + class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { + + /** + * Constructs a new TabletExternallyReparentedRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); + + /** TabletExternallyReparentedRequest tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** + * Creates a new TabletExternallyReparentedRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletExternallyReparentedRequest instance + */ + public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; + + /** + * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. + * @param message TabletExternallyReparentedRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletExternallyReparentedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; + + /** + * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletExternallyReparentedRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; + + /** + * Verifies a TabletExternallyReparentedRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletExternallyReparentedRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; + + /** + * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletExternallyReparentedRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletExternallyReparentedRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TabletExternallyReparentedResponse. */ + interface ITabletExternallyReparentedResponse { + + /** TabletExternallyReparentedResponse keyspace */ + keyspace?: (string|null); + + /** TabletExternallyReparentedResponse shard */ + shard?: (string|null); + + /** TabletExternallyReparentedResponse new_primary */ + new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary */ + old_primary?: (topodata.ITabletAlias|null); + } + + /** Represents a TabletExternallyReparentedResponse. */ + class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { + + /** + * Constructs a new TabletExternallyReparentedResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); + + /** TabletExternallyReparentedResponse keyspace. */ + public keyspace: string; + + /** TabletExternallyReparentedResponse shard. */ + public shard: string; + + /** TabletExternallyReparentedResponse new_primary. */ + public new_primary?: (topodata.ITabletAlias|null); + + /** TabletExternallyReparentedResponse old_primary. */ + public old_primary?: (topodata.ITabletAlias|null); + + /** + * Creates a new TabletExternallyReparentedResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletExternallyReparentedResponse instance + */ + public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; + + /** + * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. + * @param message TabletExternallyReparentedResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletExternallyReparentedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; + + /** + * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletExternallyReparentedResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; + + /** + * Verifies a TabletExternallyReparentedResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletExternallyReparentedResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; + + /** + * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. + * @param message TabletExternallyReparentedResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletExternallyReparentedResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletExternallyReparentedResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellInfoRequest. */ + interface IUpdateCellInfoRequest { + + /** UpdateCellInfoRequest name */ + name?: (string|null); + + /** UpdateCellInfoRequest cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an UpdateCellInfoRequest. */ + class UpdateCellInfoRequest implements IUpdateCellInfoRequest { + + /** + * Constructs a new UpdateCellInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellInfoRequest); + + /** UpdateCellInfoRequest name. */ + public name: string; + + /** UpdateCellInfoRequest cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new UpdateCellInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellInfoRequest instance + */ + public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; + + /** + * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * @param message UpdateCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. + * @param message UpdateCellInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoRequest; + + /** + * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoRequest; + + /** + * Verifies an UpdateCellInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellInfoRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; + + /** + * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. + * @param message UpdateCellInfoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellInfoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellInfoRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellInfoResponse. */ + interface IUpdateCellInfoResponse { + + /** UpdateCellInfoResponse name */ + name?: (string|null); + + /** UpdateCellInfoResponse cell_info */ + cell_info?: (topodata.ICellInfo|null); + } + + /** Represents an UpdateCellInfoResponse. */ + class UpdateCellInfoResponse implements IUpdateCellInfoResponse { + + /** + * Constructs a new UpdateCellInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellInfoResponse); + + /** UpdateCellInfoResponse name. */ + public name: string; + + /** UpdateCellInfoResponse cell_info. */ + public cell_info?: (topodata.ICellInfo|null); + + /** + * Creates a new UpdateCellInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellInfoResponse instance + */ + public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; + + /** + * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * @param message UpdateCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. + * @param message UpdateCellInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoResponse; + + /** + * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoResponse; + + /** + * Verifies an UpdateCellInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellInfoResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; + + /** + * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. + * @param message UpdateCellInfoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellInfoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellInfoResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellsAliasRequest. */ + interface IUpdateCellsAliasRequest { + + /** UpdateCellsAliasRequest name */ + name?: (string|null); + + /** UpdateCellsAliasRequest cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); + } + + /** Represents an UpdateCellsAliasRequest. */ + class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { + + /** + * Constructs a new UpdateCellsAliasRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellsAliasRequest); + + /** UpdateCellsAliasRequest name. */ + public name: string; + + /** UpdateCellsAliasRequest cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); + + /** + * Creates a new UpdateCellsAliasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellsAliasRequest instance + */ + public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; + + /** + * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * @param message UpdateCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. + * @param message UpdateCellsAliasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasRequest; + + /** + * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellsAliasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasRequest; + + /** + * Verifies an UpdateCellsAliasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellsAliasRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; + + /** + * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. + * @param message UpdateCellsAliasRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellsAliasRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellsAliasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateCellsAliasResponse. */ + interface IUpdateCellsAliasResponse { + + /** UpdateCellsAliasResponse name */ + name?: (string|null); + + /** UpdateCellsAliasResponse cells_alias */ + cells_alias?: (topodata.ICellsAlias|null); + } + + /** Represents an UpdateCellsAliasResponse. */ + class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { + + /** + * Constructs a new UpdateCellsAliasResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IUpdateCellsAliasResponse); + + /** UpdateCellsAliasResponse name. */ + public name: string; + + /** UpdateCellsAliasResponse cells_alias. */ + public cells_alias?: (topodata.ICellsAlias|null); + + /** + * Creates a new UpdateCellsAliasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateCellsAliasResponse instance + */ + public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; + + /** + * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * @param message UpdateCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. + * @param message UpdateCellsAliasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasResponse; + + /** + * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateCellsAliasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasResponse; + + /** + * Verifies an UpdateCellsAliasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateCellsAliasResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; + + /** + * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. + * @param message UpdateCellsAliasResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateCellsAliasResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateCellsAliasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateRequest. */ + interface IValidateRequest { + + /** ValidateRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateRequest. */ + class ValidateRequest implements IValidateRequest { + + /** + * Constructs a new ValidateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateRequest); + + /** ValidateRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateRequest instance + */ + public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; + + /** + * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * @param message ValidateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. + * @param message ValidateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateRequest; + + /** + * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateRequest; + + /** + * Verifies a ValidateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; + + /** + * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. + * @param message ValidateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateResponse. */ + interface IValidateResponse { + + /** ValidateResponse results */ + results?: (string[]|null); + + /** ValidateResponse results_by_keyspace */ + results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); + } + + /** Represents a ValidateResponse. */ + class ValidateResponse implements IValidateResponse { + + /** + * Constructs a new ValidateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateResponse); + + /** ValidateResponse results. */ + public results: string[]; + + /** ValidateResponse results_by_keyspace. */ + public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; + + /** + * Creates a new ValidateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateResponse instance + */ + public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; + + /** + * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * @param message ValidateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. + * @param message ValidateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateResponse; + + /** + * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateResponse; + + /** + * Verifies a ValidateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; + + /** + * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. + * @param message ValidateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateKeyspaceRequest. */ + interface IValidateKeyspaceRequest { + + /** ValidateKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ValidateKeyspaceRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateKeyspaceRequest. */ + class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { + + /** + * Constructs a new ValidateKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateKeyspaceRequest); + + /** ValidateKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ValidateKeyspaceRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; + + /** + * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * @param message ValidateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. + * @param message ValidateKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceRequest; + + /** + * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceRequest; + + /** + * Verifies a ValidateKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; + + /** + * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateKeyspaceResponse. */ + interface IValidateKeyspaceResponse { + + /** ValidateKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateKeyspaceResponse. */ + class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { + + /** + * Constructs a new ValidateKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateKeyspaceResponse); + + /** ValidateKeyspaceResponse results. */ + public results: string[]; + + /** ValidateKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; + + /** + * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * @param message ValidateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. + * @param message ValidateKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceResponse; + + /** + * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceResponse; + + /** + * Verifies a ValidateKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; + + /** + * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateSchemaKeyspaceRequest. */ + interface IValidateSchemaKeyspaceRequest { + + /** ValidateSchemaKeyspaceRequest keyspace */ + keyspace?: (string|null); + + /** ValidateSchemaKeyspaceRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** ValidateSchemaKeyspaceRequest include_views */ + include_views?: (boolean|null); + + /** ValidateSchemaKeyspaceRequest skip_no_primary */ + skip_no_primary?: (boolean|null); + + /** ValidateSchemaKeyspaceRequest include_vschema */ + include_vschema?: (boolean|null); + } + + /** Represents a ValidateSchemaKeyspaceRequest. */ + class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { + + /** + * Constructs a new ValidateSchemaKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateSchemaKeyspaceRequest); + + /** ValidateSchemaKeyspaceRequest keyspace. */ + public keyspace: string; + + /** ValidateSchemaKeyspaceRequest exclude_tables. */ + public exclude_tables: string[]; + + /** ValidateSchemaKeyspaceRequest include_views. */ + public include_views: boolean; + + /** ValidateSchemaKeyspaceRequest skip_no_primary. */ + public skip_no_primary: boolean; + + /** ValidateSchemaKeyspaceRequest include_vschema. */ + public include_vschema: boolean; + + /** + * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateSchemaKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * @param message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. + * @param message ValidateSchemaKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateSchemaKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Verifies a ValidateSchemaKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateSchemaKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; + + /** + * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateSchemaKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateSchemaKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateSchemaKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateSchemaKeyspaceResponse. */ + interface IValidateSchemaKeyspaceResponse { + + /** ValidateSchemaKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateSchemaKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateSchemaKeyspaceResponse. */ + class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { + + /** + * Constructs a new ValidateSchemaKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); + + /** ValidateSchemaKeyspaceResponse results. */ + public results: string[]; + + /** ValidateSchemaKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateSchemaKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * @param message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. + * @param message ValidateSchemaKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateSchemaKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Verifies a ValidateSchemaKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateSchemaKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; + + /** + * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateSchemaKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateSchemaKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateSchemaKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateShardRequest. */ + interface IValidateShardRequest { + + /** ValidateShardRequest keyspace */ + keyspace?: (string|null); + + /** ValidateShardRequest shard */ + shard?: (string|null); + + /** ValidateShardRequest ping_tablets */ + ping_tablets?: (boolean|null); + } + + /** Represents a ValidateShardRequest. */ + class ValidateShardRequest implements IValidateShardRequest { + + /** + * Constructs a new ValidateShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateShardRequest); + + /** ValidateShardRequest keyspace. */ + public keyspace: string; + + /** ValidateShardRequest shard. */ + public shard: string; + + /** ValidateShardRequest ping_tablets. */ + public ping_tablets: boolean; + + /** + * Creates a new ValidateShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateShardRequest instance + */ + public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; + + /** + * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * @param message ValidateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. + * @param message ValidateShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardRequest; + + /** + * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardRequest; + + /** + * Verifies a ValidateShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; + + /** + * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. + * @param message ValidateShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateShardResponse. */ + interface IValidateShardResponse { + + /** ValidateShardResponse results */ + results?: (string[]|null); + } + + /** Represents a ValidateShardResponse. */ + class ValidateShardResponse implements IValidateShardResponse { + + /** + * Constructs a new ValidateShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateShardResponse); + + /** ValidateShardResponse results. */ + public results: string[]; + + /** + * Creates a new ValidateShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateShardResponse instance + */ + public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; + + /** + * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * @param message ValidateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. + * @param message ValidateShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardResponse; + + /** + * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardResponse; + + /** + * Verifies a ValidateShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; + + /** + * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. + * @param message ValidateShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionKeyspaceRequest. */ + interface IValidateVersionKeyspaceRequest { + + /** ValidateVersionKeyspaceRequest keyspace */ + keyspace?: (string|null); + } + + /** Represents a ValidateVersionKeyspaceRequest. */ + class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { + + /** + * Constructs a new ValidateVersionKeyspaceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); + + /** ValidateVersionKeyspaceRequest keyspace. */ + public keyspace: string; + + /** + * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionKeyspaceRequest instance + */ + public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * @param message ValidateVersionKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. + * @param message ValidateVersionKeyspaceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionKeyspaceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Verifies a ValidateVersionKeyspaceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionKeyspaceRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; + + /** + * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. + * @param message ValidateVersionKeyspaceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionKeyspaceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionKeyspaceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionKeyspaceResponse. */ + interface IValidateVersionKeyspaceResponse { + + /** ValidateVersionKeyspaceResponse results */ + results?: (string[]|null); + + /** ValidateVersionKeyspaceResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateVersionKeyspaceResponse. */ + class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { + + /** + * Constructs a new ValidateVersionKeyspaceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionKeyspaceResponse); + + /** ValidateVersionKeyspaceResponse results. */ + public results: string[]; + + /** ValidateVersionKeyspaceResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionKeyspaceResponse instance + */ + public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * @param message ValidateVersionKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. + * @param message ValidateVersionKeyspaceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionKeyspaceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Verifies a ValidateVersionKeyspaceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionKeyspaceResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; + + /** + * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. + * @param message ValidateVersionKeyspaceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionKeyspaceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionKeyspaceResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionShardRequest. */ + interface IValidateVersionShardRequest { + + /** ValidateVersionShardRequest keyspace */ + keyspace?: (string|null); + + /** ValidateVersionShardRequest shard */ + shard?: (string|null); + } + + /** Represents a ValidateVersionShardRequest. */ + class ValidateVersionShardRequest implements IValidateVersionShardRequest { + + /** + * Constructs a new ValidateVersionShardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionShardRequest); + + /** ValidateVersionShardRequest keyspace. */ + public keyspace: string; + + /** ValidateVersionShardRequest shard. */ + public shard: string; + + /** + * Creates a new ValidateVersionShardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionShardRequest instance + */ + public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; + + /** + * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * @param message ValidateVersionShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. + * @param message ValidateVersionShardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardRequest; + + /** + * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionShardRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardRequest; + + /** + * Verifies a ValidateVersionShardRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionShardRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; + + /** + * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. + * @param message ValidateVersionShardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionShardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionShardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVersionShardResponse. */ + interface IValidateVersionShardResponse { + + /** ValidateVersionShardResponse results */ + results?: (string[]|null); + } + + /** Represents a ValidateVersionShardResponse. */ + class ValidateVersionShardResponse implements IValidateVersionShardResponse { + + /** + * Constructs a new ValidateVersionShardResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVersionShardResponse); + + /** ValidateVersionShardResponse results. */ + public results: string[]; + + /** + * Creates a new ValidateVersionShardResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVersionShardResponse instance + */ + public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; + + /** + * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * @param message ValidateVersionShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. + * @param message ValidateVersionShardResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVersionShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardResponse; + + /** + * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVersionShardResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardResponse; + + /** + * Verifies a ValidateVersionShardResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVersionShardResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; + + /** + * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. + * @param message ValidateVersionShardResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVersionShardResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVersionShardResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVSchemaRequest. */ + interface IValidateVSchemaRequest { + + /** ValidateVSchemaRequest keyspace */ + keyspace?: (string|null); + + /** ValidateVSchemaRequest shards */ + shards?: (string[]|null); + + /** ValidateVSchemaRequest exclude_tables */ + exclude_tables?: (string[]|null); + + /** ValidateVSchemaRequest include_views */ + include_views?: (boolean|null); + } + + /** Represents a ValidateVSchemaRequest. */ + class ValidateVSchemaRequest implements IValidateVSchemaRequest { + + /** + * Constructs a new ValidateVSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVSchemaRequest); + + /** ValidateVSchemaRequest keyspace. */ + public keyspace: string; + + /** ValidateVSchemaRequest shards. */ + public shards: string[]; + + /** ValidateVSchemaRequest exclude_tables. */ + public exclude_tables: string[]; + + /** ValidateVSchemaRequest include_views. */ + public include_views: boolean; + + /** + * Creates a new ValidateVSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVSchemaRequest instance + */ + public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; + + /** + * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * @param message ValidateVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. + * @param message ValidateVSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaRequest; + + /** + * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaRequest; + + /** + * Verifies a ValidateVSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVSchemaRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; + + /** + * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. + * @param message ValidateVSchemaRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVSchemaRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ValidateVSchemaResponse. */ + interface IValidateVSchemaResponse { + + /** ValidateVSchemaResponse results */ + results?: (string[]|null); + + /** ValidateVSchemaResponse results_by_shard */ + results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); + } + + /** Represents a ValidateVSchemaResponse. */ + class ValidateVSchemaResponse implements IValidateVSchemaResponse { + + /** + * Constructs a new ValidateVSchemaResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IValidateVSchemaResponse); + + /** ValidateVSchemaResponse results. */ + public results: string[]; + + /** ValidateVSchemaResponse results_by_shard. */ + public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; + + /** + * Creates a new ValidateVSchemaResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateVSchemaResponse instance + */ + public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; + + /** + * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * @param message ValidateVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. + * @param message ValidateVSchemaResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaResponse; + + /** + * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateVSchemaResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaResponse; + + /** + * Verifies a ValidateVSchemaResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateVSchemaResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; + + /** + * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. + * @param message ValidateVSchemaResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateVSchemaResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateVSchemaResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffCreateRequest. */ + interface IVDiffCreateRequest { + + /** VDiffCreateRequest workflow */ + workflow?: (string|null); + + /** VDiffCreateRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffCreateRequest uuid */ + uuid?: (string|null); + + /** VDiffCreateRequest source_cells */ + source_cells?: (string[]|null); + + /** VDiffCreateRequest target_cells */ + target_cells?: (string[]|null); + + /** VDiffCreateRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** VDiffCreateRequest tablet_selection_preference */ + tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); + + /** VDiffCreateRequest tables */ + tables?: (string[]|null); + + /** VDiffCreateRequest limit */ + limit?: (number|Long|null); + + /** VDiffCreateRequest filtered_replication_wait_time */ + filtered_replication_wait_time?: (vttime.IDuration|null); + + /** VDiffCreateRequest debug_query */ + debug_query?: (boolean|null); + + /** VDiffCreateRequest only_p_ks */ + only_p_ks?: (boolean|null); + + /** VDiffCreateRequest update_table_stats */ + update_table_stats?: (boolean|null); + + /** VDiffCreateRequest max_extra_rows_to_compare */ + max_extra_rows_to_compare?: (number|Long|null); + + /** VDiffCreateRequest wait */ + wait?: (boolean|null); + + /** VDiffCreateRequest wait_update_interval */ + wait_update_interval?: (vttime.IDuration|null); + + /** VDiffCreateRequest auto_retry */ + auto_retry?: (boolean|null); + + /** VDiffCreateRequest verbose */ + verbose?: (boolean|null); + + /** VDiffCreateRequest max_report_sample_rows */ + max_report_sample_rows?: (number|Long|null); + + /** VDiffCreateRequest max_diff_duration */ + max_diff_duration?: (vttime.IDuration|null); + + /** VDiffCreateRequest row_diff_column_truncate_at */ + row_diff_column_truncate_at?: (number|Long|null); + + /** VDiffCreateRequest auto_start */ + auto_start?: (boolean|null); + } + + /** Represents a VDiffCreateRequest. */ + class VDiffCreateRequest implements IVDiffCreateRequest { + + /** + * Constructs a new VDiffCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffCreateRequest); + + /** VDiffCreateRequest workflow. */ + public workflow: string; + + /** VDiffCreateRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffCreateRequest uuid. */ + public uuid: string; + + /** VDiffCreateRequest source_cells. */ + public source_cells: string[]; + + /** VDiffCreateRequest target_cells. */ + public target_cells: string[]; + + /** VDiffCreateRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** VDiffCreateRequest tablet_selection_preference. */ + public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; + + /** VDiffCreateRequest tables. */ + public tables: string[]; + + /** VDiffCreateRequest limit. */ + public limit: (number|Long); + + /** VDiffCreateRequest filtered_replication_wait_time. */ + public filtered_replication_wait_time?: (vttime.IDuration|null); + + /** VDiffCreateRequest debug_query. */ + public debug_query: boolean; + + /** VDiffCreateRequest only_p_ks. */ + public only_p_ks: boolean; + + /** VDiffCreateRequest update_table_stats. */ + public update_table_stats: boolean; + + /** VDiffCreateRequest max_extra_rows_to_compare. */ + public max_extra_rows_to_compare: (number|Long); + + /** VDiffCreateRequest wait. */ + public wait: boolean; + + /** VDiffCreateRequest wait_update_interval. */ + public wait_update_interval?: (vttime.IDuration|null); + + /** VDiffCreateRequest auto_retry. */ + public auto_retry: boolean; + + /** VDiffCreateRequest verbose. */ + public verbose: boolean; + + /** VDiffCreateRequest max_report_sample_rows. */ + public max_report_sample_rows: (number|Long); + + /** VDiffCreateRequest max_diff_duration. */ + public max_diff_duration?: (vttime.IDuration|null); + + /** VDiffCreateRequest row_diff_column_truncate_at. */ + public row_diff_column_truncate_at: (number|Long); + + /** VDiffCreateRequest auto_start. */ + public auto_start?: (boolean|null); + + /** VDiffCreateRequest _auto_start. */ + public _auto_start?: "auto_start"; + + /** + * Creates a new VDiffCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffCreateRequest instance + */ + public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; + + /** + * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * @param message VDiffCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. + * @param message VDiffCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateRequest; + + /** + * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateRequest; + + /** + * Verifies a VDiffCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffCreateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; + + /** + * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. + * @param message VDiffCreateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffCreateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffCreateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffCreateResponse. */ + interface IVDiffCreateResponse { + + /** VDiffCreateResponse UUID */ + UUID?: (string|null); + } + + /** Represents a VDiffCreateResponse. */ + class VDiffCreateResponse implements IVDiffCreateResponse { + + /** + * Constructs a new VDiffCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffCreateResponse); + + /** VDiffCreateResponse UUID. */ + public UUID: string; + + /** + * Creates a new VDiffCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffCreateResponse instance + */ + public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; + + /** + * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * @param message VDiffCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. + * @param message VDiffCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateResponse; + + /** + * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateResponse; + + /** + * Verifies a VDiffCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffCreateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; + + /** + * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. + * @param message VDiffCreateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffCreateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffCreateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffDeleteRequest. */ + interface IVDiffDeleteRequest { + + /** VDiffDeleteRequest workflow */ + workflow?: (string|null); + + /** VDiffDeleteRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffDeleteRequest arg */ + arg?: (string|null); + } + + /** Represents a VDiffDeleteRequest. */ + class VDiffDeleteRequest implements IVDiffDeleteRequest { + + /** + * Constructs a new VDiffDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffDeleteRequest); + + /** VDiffDeleteRequest workflow. */ + public workflow: string; + + /** VDiffDeleteRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffDeleteRequest arg. */ + public arg: string; + + /** + * Creates a new VDiffDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffDeleteRequest instance + */ + public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; + + /** + * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * @param message VDiffDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. + * @param message VDiffDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteRequest; + + /** + * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteRequest; + + /** + * Verifies a VDiffDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; + + /** + * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. + * @param message VDiffDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffDeleteResponse. */ + interface IVDiffDeleteResponse { + } + + /** Represents a VDiffDeleteResponse. */ + class VDiffDeleteResponse implements IVDiffDeleteResponse { + + /** + * Constructs a new VDiffDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffDeleteResponse); + + /** + * Creates a new VDiffDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffDeleteResponse instance + */ + public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; + + /** + * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * @param message VDiffDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. + * @param message VDiffDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteResponse; + + /** + * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteResponse; + + /** + * Verifies a VDiffDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; + + /** + * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. + * @param message VDiffDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffResumeRequest. */ + interface IVDiffResumeRequest { + + /** VDiffResumeRequest workflow */ + workflow?: (string|null); + + /** VDiffResumeRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffResumeRequest uuid */ + uuid?: (string|null); + + /** VDiffResumeRequest target_shards */ + target_shards?: (string[]|null); + } + + /** Represents a VDiffResumeRequest. */ + class VDiffResumeRequest implements IVDiffResumeRequest { + + /** + * Constructs a new VDiffResumeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffResumeRequest); + + /** VDiffResumeRequest workflow. */ + public workflow: string; + + /** VDiffResumeRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffResumeRequest uuid. */ + public uuid: string; + + /** VDiffResumeRequest target_shards. */ + public target_shards: string[]; + + /** + * Creates a new VDiffResumeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffResumeRequest instance + */ + public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; + + /** + * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * @param message VDiffResumeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. + * @param message VDiffResumeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffResumeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffResumeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeRequest; + + /** + * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffResumeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeRequest; + + /** + * Verifies a VDiffResumeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffResumeRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; + + /** + * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. + * @param message VDiffResumeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffResumeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffResumeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffResumeResponse. */ + interface IVDiffResumeResponse { + } + + /** Represents a VDiffResumeResponse. */ + class VDiffResumeResponse implements IVDiffResumeResponse { + + /** + * Constructs a new VDiffResumeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffResumeResponse); + + /** + * Creates a new VDiffResumeResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffResumeResponse instance + */ + public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; + + /** + * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * @param message VDiffResumeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. + * @param message VDiffResumeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffResumeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffResumeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeResponse; + + /** + * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffResumeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeResponse; + + /** + * Verifies a VDiffResumeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffResumeResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; + + /** + * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. + * @param message VDiffResumeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffResumeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffResumeResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffShowRequest. */ + interface IVDiffShowRequest { + + /** VDiffShowRequest workflow */ + workflow?: (string|null); + + /** VDiffShowRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffShowRequest arg */ + arg?: (string|null); + } + + /** Represents a VDiffShowRequest. */ + class VDiffShowRequest implements IVDiffShowRequest { + + /** + * Constructs a new VDiffShowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffShowRequest); + + /** VDiffShowRequest workflow. */ + public workflow: string; + + /** VDiffShowRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffShowRequest arg. */ + public arg: string; + + /** + * Creates a new VDiffShowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffShowRequest instance + */ + public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; + + /** + * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * @param message VDiffShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. + * @param message VDiffShowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffShowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowRequest; + + /** + * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffShowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowRequest; + + /** + * Verifies a VDiffShowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffShowRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; + + /** + * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. + * @param message VDiffShowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffShowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffShowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffShowResponse. */ + interface IVDiffShowResponse { + + /** VDiffShowResponse tablet_responses */ + tablet_responses?: ({ [k: string]: tabletmanagerdata.IVDiffResponse }|null); + } + + /** Represents a VDiffShowResponse. */ + class VDiffShowResponse implements IVDiffShowResponse { + + /** + * Constructs a new VDiffShowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffShowResponse); + + /** VDiffShowResponse tablet_responses. */ + public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; + + /** + * Creates a new VDiffShowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffShowResponse instance + */ + public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; + + /** + * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * @param message VDiffShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. + * @param message VDiffShowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffShowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowResponse; + + /** + * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffShowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowResponse; + + /** + * Verifies a VDiffShowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffShowResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; + + /** + * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. + * @param message VDiffShowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffShowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffShowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffStopRequest. */ + interface IVDiffStopRequest { + + /** VDiffStopRequest workflow */ + workflow?: (string|null); + + /** VDiffStopRequest target_keyspace */ + target_keyspace?: (string|null); + + /** VDiffStopRequest uuid */ + uuid?: (string|null); + + /** VDiffStopRequest target_shards */ + target_shards?: (string[]|null); + } + + /** Represents a VDiffStopRequest. */ + class VDiffStopRequest implements IVDiffStopRequest { + + /** + * Constructs a new VDiffStopRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffStopRequest); + + /** VDiffStopRequest workflow. */ + public workflow: string; + + /** VDiffStopRequest target_keyspace. */ + public target_keyspace: string; + + /** VDiffStopRequest uuid. */ + public uuid: string; + + /** VDiffStopRequest target_shards. */ + public target_shards: string[]; + + /** + * Creates a new VDiffStopRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffStopRequest instance + */ + public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; + + /** + * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * @param message VDiffStopRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. + * @param message VDiffStopRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffStopRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffStopRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopRequest; + + /** + * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffStopRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopRequest; + + /** + * Verifies a VDiffStopRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffStopRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; + + /** + * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. + * @param message VDiffStopRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffStopRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffStopRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a VDiffStopResponse. */ + interface IVDiffStopResponse { + } + + /** Represents a VDiffStopResponse. */ + class VDiffStopResponse implements IVDiffStopResponse { + + /** + * Constructs a new VDiffStopResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IVDiffStopResponse); + + /** + * Creates a new VDiffStopResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns VDiffStopResponse instance + */ + public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; + + /** + * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * @param message VDiffStopResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. + * @param message VDiffStopResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VDiffStopResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VDiffStopResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopResponse; + + /** + * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VDiffStopResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopResponse; + + /** + * Verifies a VDiffStopResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VDiffStopResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; + + /** + * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. + * @param message VDiffStopResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VDiffStopResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VDiffStopResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowDeleteRequest. */ + interface IWorkflowDeleteRequest { + + /** WorkflowDeleteRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowDeleteRequest workflow */ + workflow?: (string|null); + + /** WorkflowDeleteRequest keep_data */ + keep_data?: (boolean|null); + + /** WorkflowDeleteRequest keep_routing_rules */ + keep_routing_rules?: (boolean|null); + + /** WorkflowDeleteRequest shards */ + shards?: (string[]|null); + } + + /** Represents a WorkflowDeleteRequest. */ + class WorkflowDeleteRequest implements IWorkflowDeleteRequest { + + /** + * Constructs a new WorkflowDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowDeleteRequest); + + /** WorkflowDeleteRequest keyspace. */ + public keyspace: string; + + /** WorkflowDeleteRequest workflow. */ + public workflow: string; + + /** WorkflowDeleteRequest keep_data. */ + public keep_data: boolean; + + /** WorkflowDeleteRequest keep_routing_rules. */ + public keep_routing_rules: boolean; + + /** WorkflowDeleteRequest shards. */ + public shards: string[]; + + /** + * Creates a new WorkflowDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowDeleteRequest instance + */ + public static create(properties?: vtctldata.IWorkflowDeleteRequest): vtctldata.WorkflowDeleteRequest; + + /** + * Encodes the specified WorkflowDeleteRequest message. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. + * @param message WorkflowDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. + * @param message WorkflowDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteRequest; + + /** + * Decodes a WorkflowDeleteRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteRequest; + + /** + * Verifies a WorkflowDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowDeleteRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowDeleteRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteRequest; + + /** + * Creates a plain object from a WorkflowDeleteRequest message. Also converts values to other types if specified. + * @param message WorkflowDeleteRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowDeleteRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowDeleteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowDeleteResponse. */ + interface IWorkflowDeleteResponse { + + /** WorkflowDeleteResponse summary */ + summary?: (string|null); + + /** WorkflowDeleteResponse details */ + details?: (vtctldata.WorkflowDeleteResponse.ITabletInfo[]|null); + } + + /** Represents a WorkflowDeleteResponse. */ + class WorkflowDeleteResponse implements IWorkflowDeleteResponse { + + /** + * Constructs a new WorkflowDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowDeleteResponse); + + /** WorkflowDeleteResponse summary. */ + public summary: string; + + /** WorkflowDeleteResponse details. */ + public details: vtctldata.WorkflowDeleteResponse.ITabletInfo[]; + + /** + * Creates a new WorkflowDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowDeleteResponse instance + */ + public static create(properties?: vtctldata.IWorkflowDeleteResponse): vtctldata.WorkflowDeleteResponse; + + /** + * Encodes the specified WorkflowDeleteResponse message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. + * @param message WorkflowDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. + * @param message WorkflowDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse; + + /** + * Decodes a WorkflowDeleteResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse; + + /** + * Verifies a WorkflowDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowDeleteResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowDeleteResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse; + + /** + * Creates a plain object from a WorkflowDeleteResponse message. Also converts values to other types if specified. + * @param message WorkflowDeleteResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowDeleteResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowDeleteResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowDeleteResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo deleted */ + deleted?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo deleted. */ + public deleted: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowDeleteResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a WorkflowStatusRequest. */ + interface IWorkflowStatusRequest { + + /** WorkflowStatusRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowStatusRequest workflow */ + workflow?: (string|null); + + /** WorkflowStatusRequest shards */ + shards?: (string[]|null); + } + + /** Represents a WorkflowStatusRequest. */ + class WorkflowStatusRequest implements IWorkflowStatusRequest { + + /** + * Constructs a new WorkflowStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowStatusRequest); + + /** WorkflowStatusRequest keyspace. */ + public keyspace: string; + + /** WorkflowStatusRequest workflow. */ + public workflow: string; + + /** WorkflowStatusRequest shards. */ + public shards: string[]; + + /** + * Creates a new WorkflowStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowStatusRequest instance + */ + public static create(properties?: vtctldata.IWorkflowStatusRequest): vtctldata.WorkflowStatusRequest; + + /** + * Encodes the specified WorkflowStatusRequest message. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. + * @param message WorkflowStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowStatusRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. + * @param message WorkflowStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusRequest; + + /** + * Decodes a WorkflowStatusRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowStatusRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusRequest; + + /** + * Verifies a WorkflowStatusRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowStatusRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusRequest; + + /** + * Creates a plain object from a WorkflowStatusRequest message. Also converts values to other types if specified. + * @param message WorkflowStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowStatusResponse. */ + interface IWorkflowStatusResponse { + + /** WorkflowStatusResponse table_copy_state */ + table_copy_state?: ({ [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }|null); + + /** WorkflowStatusResponse shard_streams */ + shard_streams?: ({ [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }|null); + + /** WorkflowStatusResponse traffic_state */ + traffic_state?: (string|null); + } + + /** Represents a WorkflowStatusResponse. */ + class WorkflowStatusResponse implements IWorkflowStatusResponse { + + /** + * Constructs a new WorkflowStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowStatusResponse); + + /** WorkflowStatusResponse table_copy_state. */ + public table_copy_state: { [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }; + + /** WorkflowStatusResponse shard_streams. */ + public shard_streams: { [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }; + + /** WorkflowStatusResponse traffic_state. */ + public traffic_state: string; + + /** + * Creates a new WorkflowStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowStatusResponse instance + */ + public static create(properties?: vtctldata.IWorkflowStatusResponse): vtctldata.WorkflowStatusResponse; + + /** + * Encodes the specified WorkflowStatusResponse message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. + * @param message WorkflowStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowStatusResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. + * @param message WorkflowStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse; + + /** + * Decodes a WorkflowStatusResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowStatusResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse; + + /** + * Verifies a WorkflowStatusResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowStatusResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse; + + /** + * Creates a plain object from a WorkflowStatusResponse message. Also converts values to other types if specified. + * @param message WorkflowStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowStatusResponse { + + /** Properties of a TableCopyState. */ + interface ITableCopyState { + + /** TableCopyState rows_copied */ + rows_copied?: (number|Long|null); + + /** TableCopyState rows_total */ + rows_total?: (number|Long|null); + + /** TableCopyState rows_percentage */ + rows_percentage?: (number|null); + + /** TableCopyState bytes_copied */ + bytes_copied?: (number|Long|null); + + /** TableCopyState bytes_total */ + bytes_total?: (number|Long|null); + + /** TableCopyState bytes_percentage */ + bytes_percentage?: (number|null); + } + + /** Represents a TableCopyState. */ + class TableCopyState implements ITableCopyState { + + /** + * Constructs a new TableCopyState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState); + + /** TableCopyState rows_copied. */ + public rows_copied: (number|Long); + + /** TableCopyState rows_total. */ + public rows_total: (number|Long); + + /** TableCopyState rows_percentage. */ + public rows_percentage: number; + + /** TableCopyState bytes_copied. */ + public bytes_copied: (number|Long); + + /** TableCopyState bytes_total. */ + public bytes_total: (number|Long); + + /** TableCopyState bytes_percentage. */ + public bytes_percentage: number; + + /** + * Creates a new TableCopyState instance using the specified properties. + * @param [properties] Properties to set + * @returns TableCopyState instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Encodes the specified TableCopyState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. + * @param message TableCopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TableCopyState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. + * @param message TableCopyState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TableCopyState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TableCopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Decodes a TableCopyState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TableCopyState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Verifies a TableCopyState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TableCopyState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TableCopyState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.TableCopyState; + + /** + * Creates a plain object from a TableCopyState message. Also converts values to other types if specified. + * @param message TableCopyState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.TableCopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TableCopyState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TableCopyState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStreamState. */ + interface IShardStreamState { + + /** ShardStreamState id */ + id?: (number|null); + + /** ShardStreamState tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** ShardStreamState source_shard */ + source_shard?: (string|null); + + /** ShardStreamState position */ + position?: (string|null); + + /** ShardStreamState status */ + status?: (string|null); + + /** ShardStreamState info */ + info?: (string|null); + } + + /** Represents a ShardStreamState. */ + class ShardStreamState implements IShardStreamState { + + /** + * Constructs a new ShardStreamState. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState); + + /** ShardStreamState id. */ + public id: number; + + /** ShardStreamState tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** ShardStreamState source_shard. */ + public source_shard: string; + + /** ShardStreamState position. */ + public position: string; + + /** ShardStreamState status. */ + public status: string; + + /** ShardStreamState info. */ + public info: string; + + /** + * Creates a new ShardStreamState instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStreamState instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Encodes the specified ShardStreamState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. + * @param message ShardStreamState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStreamState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. + * @param message ShardStreamState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStreamState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStreamState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Decodes a ShardStreamState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStreamState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Verifies a ShardStreamState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStreamState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStreamState + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreamState; + + /** + * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified. + * @param message ShardStreamState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreamState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStreamState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStreamState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ShardStreams. */ + interface IShardStreams { + + /** ShardStreams streams */ + streams?: (vtctldata.WorkflowStatusResponse.IShardStreamState[]|null); + } + + /** Represents a ShardStreams. */ + class ShardStreams implements IShardStreams { + + /** + * Constructs a new ShardStreams. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreams); + + /** ShardStreams streams. */ + public streams: vtctldata.WorkflowStatusResponse.IShardStreamState[]; + + /** + * Creates a new ShardStreams instance using the specified properties. + * @param [properties] Properties to set + * @returns ShardStreams instance + */ + public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreams): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. + * @param message ShardStreams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. + * @param message ShardStreams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShardStreams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShardStreams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Decodes a ShardStreams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShardStreams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Verifies a ShardStreams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShardStreams + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreams; + + /** + * Creates a plain object from a ShardStreams message. Also converts values to other types if specified. + * @param message ShardStreams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShardStreams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShardStreams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a WorkflowSwitchTrafficRequest. */ + interface IWorkflowSwitchTrafficRequest { + + /** WorkflowSwitchTrafficRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowSwitchTrafficRequest workflow */ + workflow?: (string|null); + + /** WorkflowSwitchTrafficRequest cells */ + cells?: (string[]|null); + + /** WorkflowSwitchTrafficRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** WorkflowSwitchTrafficRequest max_replication_lag_allowed */ + max_replication_lag_allowed?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest enable_reverse_replication */ + enable_reverse_replication?: (boolean|null); + + /** WorkflowSwitchTrafficRequest direction */ + direction?: (number|null); + + /** WorkflowSwitchTrafficRequest timeout */ + timeout?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest dry_run */ + dry_run?: (boolean|null); + + /** WorkflowSwitchTrafficRequest initialize_target_sequences */ + initialize_target_sequences?: (boolean|null); + + /** WorkflowSwitchTrafficRequest shards */ + shards?: (string[]|null); + + /** WorkflowSwitchTrafficRequest force */ + force?: (boolean|null); + } + + /** Represents a WorkflowSwitchTrafficRequest. */ + class WorkflowSwitchTrafficRequest implements IWorkflowSwitchTrafficRequest { + + /** + * Constructs a new WorkflowSwitchTrafficRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowSwitchTrafficRequest); + + /** WorkflowSwitchTrafficRequest keyspace. */ + public keyspace: string; + + /** WorkflowSwitchTrafficRequest workflow. */ + public workflow: string; + + /** WorkflowSwitchTrafficRequest cells. */ + public cells: string[]; + + /** WorkflowSwitchTrafficRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** WorkflowSwitchTrafficRequest max_replication_lag_allowed. */ + public max_replication_lag_allowed?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest enable_reverse_replication. */ + public enable_reverse_replication: boolean; + + /** WorkflowSwitchTrafficRequest direction. */ + public direction: number; + + /** WorkflowSwitchTrafficRequest timeout. */ + public timeout?: (vttime.IDuration|null); + + /** WorkflowSwitchTrafficRequest dry_run. */ + public dry_run: boolean; + + /** WorkflowSwitchTrafficRequest initialize_target_sequences. */ + public initialize_target_sequences: boolean; + + /** WorkflowSwitchTrafficRequest shards. */ + public shards: string[]; + + /** WorkflowSwitchTrafficRequest force. */ + public force: boolean; + + /** + * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSwitchTrafficRequest instance + */ + public static create(properties?: vtctldata.IWorkflowSwitchTrafficRequest): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. + * @param message WorkflowSwitchTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. + * @param message WorkflowSwitchTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSwitchTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowSwitchTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Verifies a WorkflowSwitchTrafficRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowSwitchTrafficRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficRequest; + + /** + * Creates a plain object from a WorkflowSwitchTrafficRequest message. Also converts values to other types if specified. + * @param message WorkflowSwitchTrafficRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowSwitchTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowSwitchTrafficRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowSwitchTrafficRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowSwitchTrafficResponse. */ + interface IWorkflowSwitchTrafficResponse { + + /** WorkflowSwitchTrafficResponse summary */ + summary?: (string|null); + + /** WorkflowSwitchTrafficResponse start_state */ + start_state?: (string|null); + + /** WorkflowSwitchTrafficResponse current_state */ + current_state?: (string|null); + + /** WorkflowSwitchTrafficResponse dry_run_results */ + dry_run_results?: (string[]|null); + } + + /** Represents a WorkflowSwitchTrafficResponse. */ + class WorkflowSwitchTrafficResponse implements IWorkflowSwitchTrafficResponse { + + /** + * Constructs a new WorkflowSwitchTrafficResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowSwitchTrafficResponse); + + /** WorkflowSwitchTrafficResponse summary. */ + public summary: string; + + /** WorkflowSwitchTrafficResponse start_state. */ + public start_state: string; + + /** WorkflowSwitchTrafficResponse current_state. */ + public current_state: string; + + /** WorkflowSwitchTrafficResponse dry_run_results. */ + public dry_run_results: string[]; + + /** + * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSwitchTrafficResponse instance + */ + public static create(properties?: vtctldata.IWorkflowSwitchTrafficResponse): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. + * @param message WorkflowSwitchTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. + * @param message WorkflowSwitchTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSwitchTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowSwitchTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Verifies a WorkflowSwitchTrafficResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowSwitchTrafficResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficResponse; + + /** + * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified. + * @param message WorkflowSwitchTrafficResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowSwitchTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowSwitchTrafficResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowSwitchTrafficResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowUpdateRequest. */ + interface IWorkflowUpdateRequest { + + /** WorkflowUpdateRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowUpdateRequest tablet_request */ + tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); + } + + /** Represents a WorkflowUpdateRequest. */ + class WorkflowUpdateRequest implements IWorkflowUpdateRequest { + + /** + * Constructs a new WorkflowUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowUpdateRequest); + + /** WorkflowUpdateRequest keyspace. */ + public keyspace: string; + + /** WorkflowUpdateRequest tablet_request. */ + public tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); + + /** + * Creates a new WorkflowUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowUpdateRequest instance + */ + public static create(properties?: vtctldata.IWorkflowUpdateRequest): vtctldata.WorkflowUpdateRequest; + + /** + * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. + * @param message WorkflowUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. + * @param message WorkflowUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateRequest; + + /** + * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateRequest; + + /** + * Verifies a WorkflowUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowUpdateRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateRequest; + + /** + * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified. + * @param message WorkflowUpdateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowUpdateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowUpdateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowUpdateResponse. */ + interface IWorkflowUpdateResponse { + + /** WorkflowUpdateResponse summary */ + summary?: (string|null); + + /** WorkflowUpdateResponse details */ + details?: (vtctldata.WorkflowUpdateResponse.ITabletInfo[]|null); + } + + /** Represents a WorkflowUpdateResponse. */ + class WorkflowUpdateResponse implements IWorkflowUpdateResponse { + + /** + * Constructs a new WorkflowUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowUpdateResponse); + + /** WorkflowUpdateResponse summary. */ + public summary: string; + + /** WorkflowUpdateResponse details. */ + public details: vtctldata.WorkflowUpdateResponse.ITabletInfo[]; + + /** + * Creates a new WorkflowUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowUpdateResponse instance + */ + public static create(properties?: vtctldata.IWorkflowUpdateResponse): vtctldata.WorkflowUpdateResponse; + + /** + * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. + * @param message WorkflowUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. + * @param message WorkflowUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse; + + /** + * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse; + + /** + * Verifies a WorkflowUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowUpdateResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse; + + /** + * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified. + * @param message WorkflowUpdateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowUpdateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowUpdateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace WorkflowUpdateResponse { + + /** Properties of a TabletInfo. */ + interface ITabletInfo { + + /** TabletInfo tablet */ + tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo changed */ + changed?: (boolean|null); + } + + /** Represents a TabletInfo. */ + class TabletInfo implements ITabletInfo { + + /** + * Constructs a new TabletInfo. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo); + + /** TabletInfo tablet. */ + public tablet?: (topodata.ITabletAlias|null); + + /** TabletInfo changed. */ + public changed: boolean; + + /** + * Creates a new TabletInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TabletInfo instance + */ + public static create(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. + * @param message TabletInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TabletInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Decodes a TabletInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabletInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Verifies a TabletInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabletInfo + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse.TabletInfo; + + /** + * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. + * @param message TabletInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowUpdateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TabletInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TabletInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GetMirrorRulesRequest. */ + interface IGetMirrorRulesRequest { + } + + /** Represents a GetMirrorRulesRequest. */ + class GetMirrorRulesRequest implements IGetMirrorRulesRequest { + + /** + * Constructs a new GetMirrorRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetMirrorRulesRequest); + + /** + * Creates a new GetMirrorRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMirrorRulesRequest instance + */ + public static create(properties?: vtctldata.IGetMirrorRulesRequest): vtctldata.GetMirrorRulesRequest; + + /** + * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. + * @param message GetMirrorRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. + * @param message GetMirrorRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMirrorRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMirrorRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesRequest; + + /** + * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMirrorRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesRequest; + + /** + * Verifies a GetMirrorRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMirrorRulesRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesRequest; + + /** + * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified. + * @param message GetMirrorRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetMirrorRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMirrorRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMirrorRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetMirrorRulesResponse. */ + interface IGetMirrorRulesResponse { + + /** GetMirrorRulesResponse mirror_rules */ + mirror_rules?: (vschema.IMirrorRules|null); + } + + /** Represents a GetMirrorRulesResponse. */ + class GetMirrorRulesResponse implements IGetMirrorRulesResponse { + + /** + * Constructs a new GetMirrorRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IGetMirrorRulesResponse); + + /** GetMirrorRulesResponse mirror_rules. */ + public mirror_rules?: (vschema.IMirrorRules|null); + + /** + * Creates a new GetMirrorRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMirrorRulesResponse instance + */ + public static create(properties?: vtctldata.IGetMirrorRulesResponse): vtctldata.GetMirrorRulesResponse; + + /** + * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. + * @param message GetMirrorRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. + * @param message GetMirrorRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMirrorRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMirrorRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesResponse; + + /** + * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMirrorRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesResponse; + + /** + * Verifies a GetMirrorRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMirrorRulesResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesResponse; + + /** + * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified. + * @param message GetMirrorRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.GetMirrorRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMirrorRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetMirrorRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowMirrorTrafficRequest. */ + interface IWorkflowMirrorTrafficRequest { + + /** WorkflowMirrorTrafficRequest keyspace */ + keyspace?: (string|null); + + /** WorkflowMirrorTrafficRequest workflow */ + workflow?: (string|null); + + /** WorkflowMirrorTrafficRequest tablet_types */ + tablet_types?: (topodata.TabletType[]|null); + + /** WorkflowMirrorTrafficRequest percent */ + percent?: (number|null); + } + + /** Represents a WorkflowMirrorTrafficRequest. */ + class WorkflowMirrorTrafficRequest implements IWorkflowMirrorTrafficRequest { + + /** + * Constructs a new WorkflowMirrorTrafficRequest. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowMirrorTrafficRequest); + + /** WorkflowMirrorTrafficRequest keyspace. */ + public keyspace: string; + + /** WorkflowMirrorTrafficRequest workflow. */ + public workflow: string; + + /** WorkflowMirrorTrafficRequest tablet_types. */ + public tablet_types: topodata.TabletType[]; + + /** WorkflowMirrorTrafficRequest percent. */ + public percent: number; + + /** + * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMirrorTrafficRequest instance + */ + public static create(properties?: vtctldata.IWorkflowMirrorTrafficRequest): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. + * @param message WorkflowMirrorTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. + * @param message WorkflowMirrorTrafficRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMirrorTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowMirrorTrafficRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Verifies a WorkflowMirrorTrafficRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowMirrorTrafficRequest + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficRequest; + + /** + * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified. + * @param message WorkflowMirrorTrafficRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowMirrorTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowMirrorTrafficRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowMirrorTrafficRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a WorkflowMirrorTrafficResponse. */ + interface IWorkflowMirrorTrafficResponse { + + /** WorkflowMirrorTrafficResponse summary */ + summary?: (string|null); + + /** WorkflowMirrorTrafficResponse start_state */ + start_state?: (string|null); + + /** WorkflowMirrorTrafficResponse current_state */ + current_state?: (string|null); + } + + /** Represents a WorkflowMirrorTrafficResponse. */ + class WorkflowMirrorTrafficResponse implements IWorkflowMirrorTrafficResponse { + + /** + * Constructs a new WorkflowMirrorTrafficResponse. + * @param [properties] Properties to set + */ + constructor(properties?: vtctldata.IWorkflowMirrorTrafficResponse); + + /** WorkflowMirrorTrafficResponse summary. */ + public summary: string; + + /** WorkflowMirrorTrafficResponse start_state. */ + public start_state: string; + + /** WorkflowMirrorTrafficResponse current_state. */ + public current_state: string; + + /** + * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMirrorTrafficResponse instance + */ + public static create(properties?: vtctldata.IWorkflowMirrorTrafficResponse): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. + * @param message WorkflowMirrorTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. + * @param message WorkflowMirrorTrafficResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMirrorTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkflowMirrorTrafficResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Verifies a WorkflowMirrorTrafficResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkflowMirrorTrafficResponse + */ + public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficResponse; + + /** + * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified. + * @param message WorkflowMirrorTrafficResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: vtctldata.WorkflowMirrorTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkflowMirrorTrafficResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkflowMirrorTrafficResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; +>>>>>>> c7b30bc5d2 (Add `ChangeTabletTags`/`ChangeTags` RPCs) } } diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 0e5d1bf7de5..8157cb90c11 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -55766,155 +55766,138 @@ $root.tabletmanagerdata = (function() { return ChangeTagsResponse; })(); - return tabletmanagerdata; -})(); - -$root.query = (function() { - - /** - * Namespace query. - * @exports query - * @namespace - */ - var query = {}; - - query.Target = (function() { + tabletmanagerdata.ChangeTagsRequest = (function() { /** - * Properties of a Target. - * @memberof query - * @interface ITarget - * @property {string|null} [keyspace] Target keyspace - * @property {string|null} [shard] Target shard - * @property {topodata.TabletType|null} [tablet_type] Target tablet_type - * @property {string|null} [cell] Target cell + * Properties of a ChangeTagsRequest. + * @memberof tabletmanagerdata + * @interface IChangeTagsRequest + * @property {Object.|null} [tags] ChangeTagsRequest tags + * @property {boolean|null} [replace] ChangeTagsRequest replace */ /** - * Constructs a new Target. - * @memberof query - * @classdesc Represents a Target. - * @implements ITarget + * Constructs a new ChangeTagsRequest. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsRequest. + * @implements IChangeTagsRequest * @constructor - * @param {query.ITarget=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set */ - function Target(properties) { + function ChangeTagsRequest(properties) { + this.tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * Target keyspace. - * @member {string} keyspace - * @memberof query.Target - * @instance - */ - Target.prototype.keyspace = ""; - - /** - * Target shard. - * @member {string} shard - * @memberof query.Target - * @instance - */ - Target.prototype.shard = ""; - - /** - * Target tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof query.Target + * ChangeTagsRequest tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance */ - Target.prototype.tablet_type = 0; + ChangeTagsRequest.prototype.tags = $util.emptyObject; /** - * Target cell. - * @member {string} cell - * @memberof query.Target + * ChangeTagsRequest replace. + * @member {boolean} replace + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance */ - Target.prototype.cell = ""; + ChangeTagsRequest.prototype.replace = false; /** - * Creates a new Target instance using the specified properties. + * Creates a new ChangeTagsRequest instance using the specified properties. * @function create - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {query.ITarget=} [properties] Properties to set - * @returns {query.Target} Target instance + * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest instance */ - Target.create = function create(properties) { - return new Target(properties); + ChangeTagsRequest.create = function create(properties) { + return new ChangeTagsRequest(properties); }; /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. * @function encode - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encode = function encode(message, writer) { + ChangeTagsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replace); return writer; }; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes a ChangeTagsRequest message from the specified reader or buffer. * @function decode - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Target} Target + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decode = function decode(reader, length) { + ChangeTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.keyspace = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.tablet_type = reader.int32(); - break; - case 4: - message.cell = reader.string(); - break; + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } + case 2: { + message.replace = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -55924,285 +55907,244 @@ $root.query = (function() { }; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Target} Target + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decodeDelimited = function decodeDelimited(reader) { + ChangeTagsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Target message. + * Verifies a ChangeTagsRequest message. * @function verify - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Target.verify = function verify(message) { + ChangeTagsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - switch (message.tablet_type) { - default: - return "tablet_type: enum value expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + if (message.replace != null && message.hasOwnProperty("replace")) + if (typeof message.replace !== "boolean") + return "replace: boolean expected"; return null; }; /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static * @param {Object.} object Plain object - * @returns {query.Target} Target + * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest */ - Target.fromObject = function fromObject(object) { - if (object instanceof $root.query.Target) + ChangeTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) return object; - var message = new $root.query.Target(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - switch (object.tablet_type) { - case "UNKNOWN": - case 0: - message.tablet_type = 0; - break; - case "PRIMARY": - case 1: - message.tablet_type = 1; - break; - case "MASTER": - case 1: - message.tablet_type = 1; - break; - case "REPLICA": - case 2: - message.tablet_type = 2; - break; - case "RDONLY": - case 3: - message.tablet_type = 3; - break; - case "BATCH": - case 3: - message.tablet_type = 3; - break; - case "SPARE": - case 4: - message.tablet_type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_type = 5; - break; - case "BACKUP": - case 6: - message.tablet_type = 6; - break; - case "RESTORE": - case 7: - message.tablet_type = 7; - break; - case "DRAINED": - case 8: - message.tablet_type = 8; - break; + let message = new $root.tabletmanagerdata.ChangeTagsRequest(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } - if (object.cell != null) - message.cell = String(object.cell); + if (object.replace != null) + message.replace = Boolean(object.replace); return message; }; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @static - * @param {query.Target} message Target + * @param {tabletmanagerdata.ChangeTagsRequest} message ChangeTagsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Target.toObject = function toObject(message, options) { + ChangeTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.cell = ""; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; + if (options.defaults) + object.replace = false; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; return object; }; /** - * Converts this Target to JSON. + * Converts this ChangeTagsRequest to JSON. * @function toJSON - * @memberof query.Target + * @memberof tabletmanagerdata.ChangeTagsRequest * @instance * @returns {Object.} JSON object */ - Target.prototype.toJSON = function toJSON() { + ChangeTagsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Target; + /** + * Gets the default type url for ChangeTagsRequest + * @function getTypeUrl + * @memberof tabletmanagerdata.ChangeTagsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; + }; + + return ChangeTagsRequest; })(); - query.VTGateCallerID = (function() { + tabletmanagerdata.ChangeTagsResponse = (function() { /** - * Properties of a VTGateCallerID. - * @memberof query - * @interface IVTGateCallerID - * @property {string|null} [username] VTGateCallerID username - * @property {Array.|null} [groups] VTGateCallerID groups + * Properties of a ChangeTagsResponse. + * @memberof tabletmanagerdata + * @interface IChangeTagsResponse + * @property {Object.|null} [tags] ChangeTagsResponse tags */ /** - * Constructs a new VTGateCallerID. - * @memberof query - * @classdesc Represents a VTGateCallerID. - * @implements IVTGateCallerID + * Constructs a new ChangeTagsResponse. + * @memberof tabletmanagerdata + * @classdesc Represents a ChangeTagsResponse. + * @implements IChangeTagsResponse * @constructor - * @param {query.IVTGateCallerID=} [properties] Properties to set + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set */ - function VTGateCallerID(properties) { - this.groups = []; + function ChangeTagsResponse(properties) { + this.tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * VTGateCallerID username. - * @member {string} username - * @memberof query.VTGateCallerID - * @instance - */ - VTGateCallerID.prototype.username = ""; - - /** - * VTGateCallerID groups. - * @member {Array.} groups - * @memberof query.VTGateCallerID + * ChangeTagsResponse tags. + * @member {Object.} tags + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance */ - VTGateCallerID.prototype.groups = $util.emptyArray; + ChangeTagsResponse.prototype.tags = $util.emptyObject; /** - * Creates a new VTGateCallerID instance using the specified properties. + * Creates a new ChangeTagsResponse instance using the specified properties. * @function create - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IVTGateCallerID=} [properties] Properties to set - * @returns {query.VTGateCallerID} VTGateCallerID instance + * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse instance */ - VTGateCallerID.create = function create(properties) { - return new VTGateCallerID(properties); + ChangeTagsResponse.create = function create(properties) { + return new ChangeTagsResponse(properties); }; /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encode - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encode = function encode(message, writer) { + ChangeTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer. + * Decodes a ChangeTagsResponse message from the specified reader or buffer. * @function decode - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decode = function decode(reader, length) { + ChangeTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.username = reader.string(); - break; - case 2: - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); - break; + case 1: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; + break; + } default: reader.skipType(tag & 7); break; @@ -56212,130 +56154,151 @@ $root.query = (function() { }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { + ChangeTagsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTGateCallerID message. + * Verifies a ChangeTagsResponse message. * @function verify - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTGateCallerID.verify = function verify(message) { + ChangeTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } return null; }; /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static * @param {Object.} object Plain object - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse */ - VTGateCallerID.fromObject = function fromObject(object) { - if (object instanceof $root.query.VTGateCallerID) + ChangeTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) return object; - var message = new $root.query.VTGateCallerID(); - if (object.username != null) - message.username = String(object.username); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".query.VTGateCallerID.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + let message = new $root.tabletmanagerdata.ChangeTagsResponse(); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".tabletmanagerdata.ChangeTagsResponse.tags: object expected"); + message.tags = {}; + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } return message; }; /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @static - * @param {query.VTGateCallerID} message VTGateCallerID + * @param {tabletmanagerdata.ChangeTagsResponse} message ChangeTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VTGateCallerID.toObject = function toObject(message, options) { + ChangeTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.groups = []; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + let object = {}; + if (options.objects || options.defaults) + object.tags = {}; + let keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (let j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; } return object; }; /** - * Converts this VTGateCallerID to JSON. + * Converts this ChangeTagsResponse to JSON. * @function toJSON - * @memberof query.VTGateCallerID + * @memberof tabletmanagerdata.ChangeTagsResponse * @instance * @returns {Object.} JSON object */ - VTGateCallerID.prototype.toJSON = function toJSON() { + ChangeTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VTGateCallerID; - })(); - - query.EventToken = (function() { - /** - * Properties of an EventToken. + * Gets the default type url for ChangeTagsResponse + * @function getTypeUrl + * @memberof tabletmanagerdata.ChangeTagsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; + }; + + return ChangeTagsResponse; + })(); + + return tabletmanagerdata; +})(); + +$root.query = (function() { + + /** + * Namespace query. + * @exports query + * @namespace + */ + var query = {}; + + query.Target = (function() { + + /** + * Properties of a Target. * @memberof query - * @interface IEventToken - * @property {number|Long|null} [timestamp] EventToken timestamp - * @property {string|null} [shard] EventToken shard - * @property {string|null} [position] EventToken position + * @interface ITarget + * @property {string|null} [keyspace] Target keyspace + * @property {string|null} [shard] Target shard + * @property {topodata.TabletType|null} [tablet_type] Target tablet_type + * @property {string|null} [cell] Target cell */ /** - * Constructs a new EventToken. + * Constructs a new Target. * @memberof query - * @classdesc Represents an EventToken. - * @implements IEventToken + * @classdesc Represents a Target. + * @implements ITarget * @constructor - * @param {query.IEventToken=} [properties] Properties to set + * @param {query.ITarget=} [properties] Properties to set */ - function EventToken(properties) { + function Target(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56343,101 +56306,114 @@ $root.query = (function() { } /** - * EventToken timestamp. - * @member {number|Long} timestamp - * @memberof query.EventToken + * Target keyspace. + * @member {string} keyspace + * @memberof query.Target * @instance */ - EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Target.prototype.keyspace = ""; /** - * EventToken shard. + * Target shard. * @member {string} shard - * @memberof query.EventToken + * @memberof query.Target * @instance */ - EventToken.prototype.shard = ""; + Target.prototype.shard = ""; /** - * EventToken position. - * @member {string} position - * @memberof query.EventToken + * Target tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof query.Target * @instance */ - EventToken.prototype.position = ""; + Target.prototype.tablet_type = 0; /** - * Creates a new EventToken instance using the specified properties. + * Target cell. + * @member {string} cell + * @memberof query.Target + * @instance + */ + Target.prototype.cell = ""; + + /** + * Creates a new Target instance using the specified properties. * @function create - * @memberof query.EventToken + * @memberof query.Target * @static - * @param {query.IEventToken=} [properties] Properties to set - * @returns {query.EventToken} EventToken instance + * @param {query.ITarget=} [properties] Properties to set + * @returns {query.Target} Target instance */ - EventToken.create = function create(properties) { - return new EventToken(properties); + Target.create = function create(properties) { + return new Target(properties); }; /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. * @function encode - * @memberof query.EventToken + * @memberof query.Target * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encode = function encode(message, writer) { + Target.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); return writer; }; /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. * @function encodeDelimited - * @memberof query.EventToken + * @memberof query.Target * @static - * @param {query.IEventToken} message EventToken message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventToken.encodeDelimited = function encodeDelimited(message, writer) { + Target.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventToken message from the specified reader or buffer. + * Decodes a Target message from the specified reader or buffer. * @function decode - * @memberof query.EventToken + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.EventToken} EventToken + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventToken.decode = function decode(reader, length) { + Target.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timestamp = reader.int64(); + message.keyspace = reader.string(); break; case 2: message.shard = reader.string(); break; case 3: - message.position = reader.string(); + message.tablet_type = reader.int32(); + break; + case 4: + message.cell = reader.string(); break; default: reader.skipType(tag & 7); @@ -56448,293 +56424,192 @@ $root.query = (function() { }; /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. + * Decodes a Target message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.EventToken + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.EventToken} EventToken + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventToken.decodeDelimited = function decodeDelimited(reader) { + Target.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventToken message. + * Verifies a Target message. * @function verify - * @memberof query.EventToken + * @memberof query.Target * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventToken.verify = function verify(message) { + Target.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + switch (message.tablet_type) { + default: + return "tablet_type: enum value expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. + * Creates a Target message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.EventToken + * @memberof query.Target * @static * @param {Object.} object Plain object - * @returns {query.EventToken} EventToken + * @returns {query.Target} Target */ - EventToken.fromObject = function fromObject(object) { - if (object instanceof $root.query.EventToken) + Target.fromObject = function fromObject(object) { + if (object instanceof $root.query.Target) return object; - var message = new $root.query.EventToken(); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + var message = new $root.query.Target(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); if (object.shard != null) message.shard = String(object.shard); - if (object.position != null) - message.position = String(object.position); + switch (object.tablet_type) { + case "UNKNOWN": + case 0: + message.tablet_type = 0; + break; + case "PRIMARY": + case 1: + message.tablet_type = 1; + break; + case "MASTER": + case 1: + message.tablet_type = 1; + break; + case "REPLICA": + case 2: + message.tablet_type = 2; + break; + case "RDONLY": + case 3: + message.tablet_type = 3; + break; + case "BATCH": + case 3: + message.tablet_type = 3; + break; + case "SPARE": + case 4: + message.tablet_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_type = 5; + break; + case "BACKUP": + case 6: + message.tablet_type = 6; + break; + case "RESTORE": + case 7: + message.tablet_type = 7; + break; + case "DRAINED": + case 8: + message.tablet_type = 8; + break; + } + if (object.cell != null) + message.cell = String(object.cell); return message; }; /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. + * Creates a plain object from a Target message. Also converts values to other types if specified. * @function toObject - * @memberof query.EventToken + * @memberof query.Target * @static - * @param {query.EventToken} message EventToken + * @param {query.Target} message Target * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventToken.toObject = function toObject(message, options) { + Target.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + object.keyspace = ""; object.shard = ""; - object.position = ""; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.cell = ""; } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; return object; }; /** - * Converts this EventToken to JSON. + * Converts this Target to JSON. * @function toJSON - * @memberof query.EventToken + * @memberof query.Target * @instance * @returns {Object.} JSON object */ - EventToken.prototype.toJSON = function toJSON() { + Target.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EventToken; - })(); - - /** - * MySqlFlag enum. - * @name query.MySqlFlag - * @enum {number} - * @property {number} EMPTY=0 EMPTY value - * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value - * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value - * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value - * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value - * @property {number} BLOB_FLAG=16 BLOB_FLAG value - * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value - * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value - * @property {number} BINARY_FLAG=128 BINARY_FLAG value - * @property {number} ENUM_FLAG=256 ENUM_FLAG value - * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value - * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value - * @property {number} SET_FLAG=2048 SET_FLAG value - * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value - * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value - * @property {number} NUM_FLAG=32768 NUM_FLAG value - * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value - * @property {number} GROUP_FLAG=32768 GROUP_FLAG value - * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value - * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value - */ - query.MySqlFlag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EMPTY"] = 0; - values[valuesById[1] = "NOT_NULL_FLAG"] = 1; - values[valuesById[2] = "PRI_KEY_FLAG"] = 2; - values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; - values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; - values[valuesById[16] = "BLOB_FLAG"] = 16; - values[valuesById[32] = "UNSIGNED_FLAG"] = 32; - values[valuesById[64] = "ZEROFILL_FLAG"] = 64; - values[valuesById[128] = "BINARY_FLAG"] = 128; - values[valuesById[256] = "ENUM_FLAG"] = 256; - values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; - values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; - values[valuesById[2048] = "SET_FLAG"] = 2048; - values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; - values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; - values[valuesById[32768] = "NUM_FLAG"] = 32768; - values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; - values["GROUP_FLAG"] = 32768; - values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; - values[valuesById[131072] = "BINCMP_FLAG"] = 131072; - return values; - })(); - - /** - * Flag enum. - * @name query.Flag - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} ISINTEGRAL=256 ISINTEGRAL value - * @property {number} ISUNSIGNED=512 ISUNSIGNED value - * @property {number} ISFLOAT=1024 ISFLOAT value - * @property {number} ISQUOTED=2048 ISQUOTED value - * @property {number} ISTEXT=4096 ISTEXT value - * @property {number} ISBINARY=8192 ISBINARY value - */ - query.Flag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[256] = "ISINTEGRAL"] = 256; - values[valuesById[512] = "ISUNSIGNED"] = 512; - values[valuesById[1024] = "ISFLOAT"] = 1024; - values[valuesById[2048] = "ISQUOTED"] = 2048; - values[valuesById[4096] = "ISTEXT"] = 4096; - values[valuesById[8192] = "ISBINARY"] = 8192; - return values; - })(); - - /** - * Type enum. - * @name query.Type - * @enum {number} - * @property {number} NULL_TYPE=0 NULL_TYPE value - * @property {number} INT8=257 INT8 value - * @property {number} UINT8=770 UINT8 value - * @property {number} INT16=259 INT16 value - * @property {number} UINT16=772 UINT16 value - * @property {number} INT24=261 INT24 value - * @property {number} UINT24=774 UINT24 value - * @property {number} INT32=263 INT32 value - * @property {number} UINT32=776 UINT32 value - * @property {number} INT64=265 INT64 value - * @property {number} UINT64=778 UINT64 value - * @property {number} FLOAT32=1035 FLOAT32 value - * @property {number} FLOAT64=1036 FLOAT64 value - * @property {number} TIMESTAMP=2061 TIMESTAMP value - * @property {number} DATE=2062 DATE value - * @property {number} TIME=2063 TIME value - * @property {number} DATETIME=2064 DATETIME value - * @property {number} YEAR=785 YEAR value - * @property {number} DECIMAL=18 DECIMAL value - * @property {number} TEXT=6163 TEXT value - * @property {number} BLOB=10260 BLOB value - * @property {number} VARCHAR=6165 VARCHAR value - * @property {number} VARBINARY=10262 VARBINARY value - * @property {number} CHAR=6167 CHAR value - * @property {number} BINARY=10264 BINARY value - * @property {number} BIT=2073 BIT value - * @property {number} ENUM=2074 ENUM value - * @property {number} SET=2075 SET value - * @property {number} TUPLE=28 TUPLE value - * @property {number} GEOMETRY=2077 GEOMETRY value - * @property {number} JSON=2078 JSON value - * @property {number} EXPRESSION=31 EXPRESSION value - * @property {number} HEXNUM=4128 HEXNUM value - * @property {number} HEXVAL=4129 HEXVAL value - * @property {number} BITNUM=4130 BITNUM value - */ - query.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_TYPE"] = 0; - values[valuesById[257] = "INT8"] = 257; - values[valuesById[770] = "UINT8"] = 770; - values[valuesById[259] = "INT16"] = 259; - values[valuesById[772] = "UINT16"] = 772; - values[valuesById[261] = "INT24"] = 261; - values[valuesById[774] = "UINT24"] = 774; - values[valuesById[263] = "INT32"] = 263; - values[valuesById[776] = "UINT32"] = 776; - values[valuesById[265] = "INT64"] = 265; - values[valuesById[778] = "UINT64"] = 778; - values[valuesById[1035] = "FLOAT32"] = 1035; - values[valuesById[1036] = "FLOAT64"] = 1036; - values[valuesById[2061] = "TIMESTAMP"] = 2061; - values[valuesById[2062] = "DATE"] = 2062; - values[valuesById[2063] = "TIME"] = 2063; - values[valuesById[2064] = "DATETIME"] = 2064; - values[valuesById[785] = "YEAR"] = 785; - values[valuesById[18] = "DECIMAL"] = 18; - values[valuesById[6163] = "TEXT"] = 6163; - values[valuesById[10260] = "BLOB"] = 10260; - values[valuesById[6165] = "VARCHAR"] = 6165; - values[valuesById[10262] = "VARBINARY"] = 10262; - values[valuesById[6167] = "CHAR"] = 6167; - values[valuesById[10264] = "BINARY"] = 10264; - values[valuesById[2073] = "BIT"] = 2073; - values[valuesById[2074] = "ENUM"] = 2074; - values[valuesById[2075] = "SET"] = 2075; - values[valuesById[28] = "TUPLE"] = 28; - values[valuesById[2077] = "GEOMETRY"] = 2077; - values[valuesById[2078] = "JSON"] = 2078; - values[valuesById[31] = "EXPRESSION"] = 31; - values[valuesById[4128] = "HEXNUM"] = 4128; - values[valuesById[4129] = "HEXVAL"] = 4129; - values[valuesById[4130] = "BITNUM"] = 4130; - return values; + return Target; })(); - query.Value = (function() { + query.VTGateCallerID = (function() { /** - * Properties of a Value. + * Properties of a VTGateCallerID. * @memberof query - * @interface IValue - * @property {query.Type|null} [type] Value type - * @property {Uint8Array|null} [value] Value value + * @interface IVTGateCallerID + * @property {string|null} [username] VTGateCallerID username + * @property {Array.|null} [groups] VTGateCallerID groups */ /** - * Constructs a new Value. + * Constructs a new VTGateCallerID. * @memberof query - * @classdesc Represents a Value. - * @implements IValue + * @classdesc Represents a VTGateCallerID. + * @implements IVTGateCallerID * @constructor - * @param {query.IValue=} [properties] Properties to set + * @param {query.IVTGateCallerID=} [properties] Properties to set */ - function Value(properties) { + function VTGateCallerID(properties) { + this.groups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56742,88 +56617,91 @@ $root.query = (function() { } /** - * Value type. - * @member {query.Type} type - * @memberof query.Value + * VTGateCallerID username. + * @member {string} username + * @memberof query.VTGateCallerID * @instance */ - Value.prototype.type = 0; + VTGateCallerID.prototype.username = ""; /** - * Value value. - * @member {Uint8Array} value - * @memberof query.Value + * VTGateCallerID groups. + * @member {Array.} groups + * @memberof query.VTGateCallerID * @instance */ - Value.prototype.value = $util.newBuffer([]); + VTGateCallerID.prototype.groups = $util.emptyArray; /** - * Creates a new Value instance using the specified properties. + * Creates a new VTGateCallerID instance using the specified properties. * @function create - * @memberof query.Value + * @memberof query.VTGateCallerID * @static - * @param {query.IValue=} [properties] Properties to set - * @returns {query.Value} Value instance + * @param {query.IVTGateCallerID=} [properties] Properties to set + * @returns {query.VTGateCallerID} VTGateCallerID instance */ - Value.create = function create(properties) { - return new Value(properties); + VTGateCallerID.create = function create(properties) { + return new VTGateCallerID(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encode - * @memberof query.Value + * @memberof query.VTGateCallerID * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + VTGateCallerID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encodeDelimited - * @memberof query.Value + * @memberof query.VTGateCallerID * @static - * @param {query.IValue} message Value message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a VTGateCallerID message from the specified reader or buffer. * @function decode - * @memberof query.Value + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Value} Value + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length) { + VTGateCallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.username = reader.string(); break; case 2: - message.value = reader.bytes(); + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -56834,306 +56712,130 @@ $root.query = (function() { }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Value + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Value} Value + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decodeDelimited = function decodeDelimited(reader) { + VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies a VTGateCallerID message. * @function verify - * @memberof query.Value + * @memberof query.VTGateCallerID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message) { + VTGateCallerID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Value + * @memberof query.VTGateCallerID * @static * @param {Object.} object Plain object - * @returns {query.Value} Value + * @returns {query.VTGateCallerID} VTGateCallerID */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.query.Value) + VTGateCallerID.fromObject = function fromObject(object) { + if (object instanceof $root.query.VTGateCallerID) return object; - var message = new $root.query.Value(); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; + var message = new $root.query.VTGateCallerID(); + if (object.username != null) + message.username = String(object.username); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".query.VTGateCallerID.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; return message; }; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. * @function toObject - * @memberof query.Value + * @memberof query.VTGateCallerID * @static - * @param {query.Value} message Value + * @param {query.VTGateCallerID} message VTGateCallerID * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + VTGateCallerID.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + if (options.arrays || options.defaults) + object.groups = []; + if (options.defaults) + object.username = ""; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this Value to JSON. + * Converts this VTGateCallerID to JSON. * @function toJSON - * @memberof query.Value + * @memberof query.VTGateCallerID * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + VTGateCallerID.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Value; + return VTGateCallerID; })(); - query.BindVariable = (function() { + query.EventToken = (function() { /** - * Properties of a BindVariable. + * Properties of an EventToken. * @memberof query - * @interface IBindVariable - * @property {query.Type|null} [type] BindVariable type - * @property {Uint8Array|null} [value] BindVariable value - * @property {Array.|null} [values] BindVariable values + * @interface IEventToken + * @property {number|Long|null} [timestamp] EventToken timestamp + * @property {string|null} [shard] EventToken shard + * @property {string|null} [position] EventToken position */ /** - * Constructs a new BindVariable. + * Constructs a new EventToken. * @memberof query - * @classdesc Represents a BindVariable. - * @implements IBindVariable + * @classdesc Represents an EventToken. + * @implements IEventToken * @constructor - * @param {query.IBindVariable=} [properties] Properties to set + * @param {query.IEventToken=} [properties] Properties to set */ - function BindVariable(properties) { - this.values = []; + function EventToken(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57141,104 +56843,101 @@ $root.query = (function() { } /** - * BindVariable type. - * @member {query.Type} type - * @memberof query.BindVariable + * EventToken timestamp. + * @member {number|Long} timestamp + * @memberof query.EventToken * @instance */ - BindVariable.prototype.type = 0; + EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BindVariable value. - * @member {Uint8Array} value - * @memberof query.BindVariable + * EventToken shard. + * @member {string} shard + * @memberof query.EventToken * @instance */ - BindVariable.prototype.value = $util.newBuffer([]); + EventToken.prototype.shard = ""; /** - * BindVariable values. - * @member {Array.} values - * @memberof query.BindVariable + * EventToken position. + * @member {string} position + * @memberof query.EventToken * @instance */ - BindVariable.prototype.values = $util.emptyArray; + EventToken.prototype.position = ""; /** - * Creates a new BindVariable instance using the specified properties. + * Creates a new EventToken instance using the specified properties. * @function create - * @memberof query.BindVariable + * @memberof query.EventToken * @static - * @param {query.IBindVariable=} [properties] Properties to set - * @returns {query.BindVariable} BindVariable instance + * @param {query.IEventToken=} [properties] Properties to set + * @returns {query.EventToken} EventToken instance */ - BindVariable.create = function create(properties) { - return new BindVariable(properties); + EventToken.create = function create(properties) { + return new EventToken(properties); }; /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encode - * @memberof query.BindVariable + * @memberof query.EventToken * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encode = function encode(message, writer) { + EventToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); return writer; }; /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encodeDelimited - * @memberof query.BindVariable + * @memberof query.EventToken * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encodeDelimited = function encodeDelimited(message, writer) { + EventToken.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BindVariable message from the specified reader or buffer. + * Decodes an EventToken message from the specified reader or buffer. * @function decode - * @memberof query.BindVariable + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BindVariable} BindVariable + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decode = function decode(reader, length) { + EventToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.timestamp = reader.int64(); break; case 2: - message.value = reader.bytes(); + message.shard = reader.string(); break; case 3: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.query.Value.decode(reader, reader.uint32())); + message.position = reader.string(); break; default: reader.skipType(tag & 7); @@ -57249,331 +56948,293 @@ $root.query = (function() { }; /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * Decodes an EventToken message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BindVariable + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BindVariable} BindVariable + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decodeDelimited = function decodeDelimited(reader) { + EventToken.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BindVariable message. + * Verifies an EventToken message. * @function verify - * @memberof query.BindVariable + * @memberof query.EventToken * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindVariable.verify = function verify(message) { + EventToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.query.Value.verify(message.values[i]); - if (error) - return "values." + error; - } - } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; return null; }; /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BindVariable + * @memberof query.EventToken * @static * @param {Object.} object Plain object - * @returns {query.BindVariable} BindVariable + * @returns {query.EventToken} EventToken */ - BindVariable.fromObject = function fromObject(object) { - if (object instanceof $root.query.BindVariable) + EventToken.fromObject = function fromObject(object) { + if (object instanceof $root.query.EventToken) return object; - var message = new $root.query.BindVariable(); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; - } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".query.BindVariable.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".query.BindVariable.values: object expected"); - message.values[i] = $root.query.Value.fromObject(object.values[i]); - } - } + var message = new $root.query.EventToken(); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + if (object.shard != null) + message.shard = String(object.shard); + if (object.position != null) + message.position = String(object.position); return message; }; /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * Creates a plain object from an EventToken message. Also converts values to other types if specified. * @function toObject - * @memberof query.BindVariable + * @memberof query.EventToken * @static - * @param {query.BindVariable} message BindVariable + * @param {query.EventToken} message EventToken * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BindVariable.toObject = function toObject(message, options) { + EventToken.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.query.Value.toObject(message.values[j], options); + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.shard = ""; + object.position = ""; } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; return object; }; /** - * Converts this BindVariable to JSON. + * Converts this EventToken to JSON. * @function toJSON - * @memberof query.BindVariable + * @memberof query.EventToken * @instance * @returns {Object.} JSON object */ - BindVariable.prototype.toJSON = function toJSON() { + EventToken.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BindVariable; + return EventToken; })(); - query.BoundQuery = (function() { - - /** - * Properties of a BoundQuery. - * @memberof query - * @interface IBoundQuery - * @property {string|null} [sql] BoundQuery sql - * @property {Object.|null} [bind_variables] BoundQuery bind_variables - */ + /** + * MySqlFlag enum. + * @name query.MySqlFlag + * @enum {number} + * @property {number} EMPTY=0 EMPTY value + * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value + * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value + * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value + * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value + * @property {number} BLOB_FLAG=16 BLOB_FLAG value + * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value + * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value + * @property {number} BINARY_FLAG=128 BINARY_FLAG value + * @property {number} ENUM_FLAG=256 ENUM_FLAG value + * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value + * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value + * @property {number} SET_FLAG=2048 SET_FLAG value + * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value + * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value + * @property {number} NUM_FLAG=32768 NUM_FLAG value + * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value + * @property {number} GROUP_FLAG=32768 GROUP_FLAG value + * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value + * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value + */ + query.MySqlFlag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EMPTY"] = 0; + values[valuesById[1] = "NOT_NULL_FLAG"] = 1; + values[valuesById[2] = "PRI_KEY_FLAG"] = 2; + values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; + values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; + values[valuesById[16] = "BLOB_FLAG"] = 16; + values[valuesById[32] = "UNSIGNED_FLAG"] = 32; + values[valuesById[64] = "ZEROFILL_FLAG"] = 64; + values[valuesById[128] = "BINARY_FLAG"] = 128; + values[valuesById[256] = "ENUM_FLAG"] = 256; + values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; + values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; + values[valuesById[2048] = "SET_FLAG"] = 2048; + values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; + values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; + values[valuesById[32768] = "NUM_FLAG"] = 32768; + values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; + values["GROUP_FLAG"] = 32768; + values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; + values[valuesById[131072] = "BINCMP_FLAG"] = 131072; + return values; + })(); - /** - * Constructs a new BoundQuery. - * @memberof query - * @classdesc Represents a BoundQuery. - * @implements IBoundQuery - * @constructor - * @param {query.IBoundQuery=} [properties] Properties to set + /** + * Flag enum. + * @name query.Flag + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} ISINTEGRAL=256 ISINTEGRAL value + * @property {number} ISUNSIGNED=512 ISUNSIGNED value + * @property {number} ISFLOAT=1024 ISFLOAT value + * @property {number} ISQUOTED=2048 ISQUOTED value + * @property {number} ISTEXT=4096 ISTEXT value + * @property {number} ISBINARY=8192 ISBINARY value + */ + query.Flag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[256] = "ISINTEGRAL"] = 256; + values[valuesById[512] = "ISUNSIGNED"] = 512; + values[valuesById[1024] = "ISFLOAT"] = 1024; + values[valuesById[2048] = "ISQUOTED"] = 2048; + values[valuesById[4096] = "ISTEXT"] = 4096; + values[valuesById[8192] = "ISBINARY"] = 8192; + return values; + })(); + + /** + * Type enum. + * @name query.Type + * @enum {number} + * @property {number} NULL_TYPE=0 NULL_TYPE value + * @property {number} INT8=257 INT8 value + * @property {number} UINT8=770 UINT8 value + * @property {number} INT16=259 INT16 value + * @property {number} UINT16=772 UINT16 value + * @property {number} INT24=261 INT24 value + * @property {number} UINT24=774 UINT24 value + * @property {number} INT32=263 INT32 value + * @property {number} UINT32=776 UINT32 value + * @property {number} INT64=265 INT64 value + * @property {number} UINT64=778 UINT64 value + * @property {number} FLOAT32=1035 FLOAT32 value + * @property {number} FLOAT64=1036 FLOAT64 value + * @property {number} TIMESTAMP=2061 TIMESTAMP value + * @property {number} DATE=2062 DATE value + * @property {number} TIME=2063 TIME value + * @property {number} DATETIME=2064 DATETIME value + * @property {number} YEAR=785 YEAR value + * @property {number} DECIMAL=18 DECIMAL value + * @property {number} TEXT=6163 TEXT value + * @property {number} BLOB=10260 BLOB value + * @property {number} VARCHAR=6165 VARCHAR value + * @property {number} VARBINARY=10262 VARBINARY value + * @property {number} CHAR=6167 CHAR value + * @property {number} BINARY=10264 BINARY value + * @property {number} BIT=2073 BIT value + * @property {number} ENUM=2074 ENUM value + * @property {number} SET=2075 SET value + * @property {number} TUPLE=28 TUPLE value + * @property {number} GEOMETRY=2077 GEOMETRY value + * @property {number} JSON=2078 JSON value + * @property {number} EXPRESSION=31 EXPRESSION value + * @property {number} HEXNUM=4128 HEXNUM value + * @property {number} HEXVAL=4129 HEXVAL value + * @property {number} BITNUM=4130 BITNUM value + */ + query.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_TYPE"] = 0; + values[valuesById[257] = "INT8"] = 257; + values[valuesById[770] = "UINT8"] = 770; + values[valuesById[259] = "INT16"] = 259; + values[valuesById[772] = "UINT16"] = 772; + values[valuesById[261] = "INT24"] = 261; + values[valuesById[774] = "UINT24"] = 774; + values[valuesById[263] = "INT32"] = 263; + values[valuesById[776] = "UINT32"] = 776; + values[valuesById[265] = "INT64"] = 265; + values[valuesById[778] = "UINT64"] = 778; + values[valuesById[1035] = "FLOAT32"] = 1035; + values[valuesById[1036] = "FLOAT64"] = 1036; + values[valuesById[2061] = "TIMESTAMP"] = 2061; + values[valuesById[2062] = "DATE"] = 2062; + values[valuesById[2063] = "TIME"] = 2063; + values[valuesById[2064] = "DATETIME"] = 2064; + values[valuesById[785] = "YEAR"] = 785; + values[valuesById[18] = "DECIMAL"] = 18; + values[valuesById[6163] = "TEXT"] = 6163; + values[valuesById[10260] = "BLOB"] = 10260; + values[valuesById[6165] = "VARCHAR"] = 6165; + values[valuesById[10262] = "VARBINARY"] = 10262; + values[valuesById[6167] = "CHAR"] = 6167; + values[valuesById[10264] = "BINARY"] = 10264; + values[valuesById[2073] = "BIT"] = 2073; + values[valuesById[2074] = "ENUM"] = 2074; + values[valuesById[2075] = "SET"] = 2075; + values[valuesById[28] = "TUPLE"] = 28; + values[valuesById[2077] = "GEOMETRY"] = 2077; + values[valuesById[2078] = "JSON"] = 2078; + values[valuesById[31] = "EXPRESSION"] = 31; + values[valuesById[4128] = "HEXNUM"] = 4128; + values[valuesById[4129] = "HEXVAL"] = 4129; + values[valuesById[4130] = "BITNUM"] = 4130; + return values; + })(); + + query.Value = (function() { + + /** + * Properties of a Value. + * @memberof query + * @interface IValue + * @property {query.Type|null} [type] Value type + * @property {Uint8Array|null} [value] Value value */ - function BoundQuery(properties) { - this.bind_variables = {}; + + /** + * Constructs a new Value. + * @memberof query + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {query.IValue=} [properties] Properties to set + */ + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57581,110 +57242,88 @@ $root.query = (function() { } /** - * BoundQuery sql. - * @member {string} sql - * @memberof query.BoundQuery + * Value type. + * @member {query.Type} type + * @memberof query.Value * @instance */ - BoundQuery.prototype.sql = ""; + Value.prototype.type = 0; /** - * BoundQuery bind_variables. - * @member {Object.} bind_variables - * @memberof query.BoundQuery + * Value value. + * @member {Uint8Array} value + * @memberof query.Value * @instance */ - BoundQuery.prototype.bind_variables = $util.emptyObject; + Value.prototype.value = $util.newBuffer([]); /** - * Creates a new BoundQuery instance using the specified properties. + * Creates a new Value instance using the specified properties. * @function create - * @memberof query.BoundQuery + * @memberof query.Value * @static - * @param {query.IBoundQuery=} [properties] Properties to set - * @returns {query.BoundQuery} BoundQuery instance + * @param {query.IValue=} [properties] Properties to set + * @returns {query.Value} Value instance */ - BoundQuery.create = function create(properties) { - return new BoundQuery(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. * @function encode - * @memberof query.BoundQuery + * @memberof query.Value * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); - if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) - for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. * @function encodeDelimited - * @memberof query.BoundQuery + * @memberof query.Value * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoundQuery message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof query.BoundQuery + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BoundQuery} BoundQuery + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoundQuery.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sql = reader.string(); + message.type = reader.int32(); break; case 2: - if (message.bind_variables === $util.emptyObject) - message.bind_variables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.query.BindVariable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.bind_variables[key] = value; + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -57695,144 +57334,306 @@ $root.query = (function() { }; /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BoundQuery + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BoundQuery} BoundQuery + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoundQuery.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BoundQuery message. + * Verifies a Value message. * @function verify - * @memberof query.BoundQuery + * @memberof query.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BoundQuery.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; - if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { - if (!$util.isObject(message.bind_variables)) - return "bind_variables: object expected"; - var key = Object.keys(message.bind_variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); - if (error) - return "bind_variables." + error; - } - } - return null; - }; - - /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.BoundQuery - * @static - * @param {Object.} object Plain object - * @returns {query.BoundQuery} BoundQuery - */ - BoundQuery.fromObject = function fromObject(object) { - if (object instanceof $root.query.BoundQuery) - return object; - var message = new $root.query.BoundQuery(); - if (object.sql != null) - message.sql = String(object.sql); - if (object.bind_variables) { - if (typeof object.bind_variables !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables = {}; - for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { - if (typeof object.bind_variables[keys[i]] !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.Value + * @static + * @param {Object.} object Plain object + * @returns {query.Value} Value + */ + Value.fromObject = function fromObject(object) { + if (object instanceof $root.query.Value) + return object; + var message = new $root.query.Value(); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof query.BoundQuery + * @memberof query.Value * @static - * @param {query.BoundQuery} message BoundQuery + * @param {query.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoundQuery.toObject = function toObject(message, options) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.bind_variables = {}; - if (options.defaults) - object.sql = ""; - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - var keys2; - if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { - object.bind_variables = {}; - for (var j = 0; j < keys2.length; ++j) - object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this BoundQuery to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof query.BoundQuery + * @memberof query.Value * @instance * @returns {Object.} JSON object */ - BoundQuery.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BoundQuery; + return Value; })(); - query.ExecuteOptions = (function() { + query.BindVariable = (function() { /** - * Properties of an ExecuteOptions. + * Properties of a BindVariable. * @memberof query - * @interface IExecuteOptions - * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields - * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows - * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload - * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit - * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation - * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache - * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version - * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables - * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName - * @property {string|null} [priority] ExecuteOptions priority + * @interface IBindVariable + * @property {query.Type|null} [type] BindVariable type + * @property {Uint8Array|null} [value] BindVariable value + * @property {Array.|null} [values] BindVariable values */ /** - * Constructs a new ExecuteOptions. + * Constructs a new BindVariable. * @memberof query - * @classdesc Represents an ExecuteOptions. - * @implements IExecuteOptions + * @classdesc Represents a BindVariable. + * @implements IBindVariable * @constructor - * @param {query.IExecuteOptions=} [properties] Properties to set + * @param {query.IBindVariable=} [properties] Properties to set */ - function ExecuteOptions(properties) { + function BindVariable(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57840,192 +57641,104 @@ $root.query = (function() { } /** - * ExecuteOptions included_fields. - * @member {query.ExecuteOptions.IncludedFields} included_fields - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.included_fields = 0; - - /** - * ExecuteOptions client_found_rows. - * @member {boolean} client_found_rows - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.client_found_rows = false; - - /** - * ExecuteOptions workload. - * @member {query.ExecuteOptions.Workload} workload - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.workload = 0; - - /** - * ExecuteOptions sql_select_limit. - * @member {number|Long} sql_select_limit - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ExecuteOptions transaction_isolation. - * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.transaction_isolation = 0; - - /** - * ExecuteOptions skip_query_plan_cache. - * @member {boolean} skip_query_plan_cache - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.skip_query_plan_cache = false; - - /** - * ExecuteOptions planner_version. - * @member {query.ExecuteOptions.PlannerVersion} planner_version - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.planner_version = 0; - - /** - * ExecuteOptions has_created_temp_tables. - * @member {boolean} has_created_temp_tables - * @memberof query.ExecuteOptions + * BindVariable type. + * @member {query.Type} type + * @memberof query.BindVariable * @instance */ - ExecuteOptions.prototype.has_created_temp_tables = false; + BindVariable.prototype.type = 0; /** - * ExecuteOptions WorkloadName. - * @member {string} WorkloadName - * @memberof query.ExecuteOptions + * BindVariable value. + * @member {Uint8Array} value + * @memberof query.BindVariable * @instance */ - ExecuteOptions.prototype.WorkloadName = ""; + BindVariable.prototype.value = $util.newBuffer([]); /** - * ExecuteOptions priority. - * @member {string} priority - * @memberof query.ExecuteOptions + * BindVariable values. + * @member {Array.} values + * @memberof query.BindVariable * @instance */ - ExecuteOptions.prototype.priority = ""; + BindVariable.prototype.values = $util.emptyArray; /** - * Creates a new ExecuteOptions instance using the specified properties. + * Creates a new BindVariable instance using the specified properties. * @function create - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static - * @param {query.IExecuteOptions=} [properties] Properties to set - * @returns {query.ExecuteOptions} ExecuteOptions instance + * @param {query.IBindVariable=} [properties] Properties to set + * @returns {query.BindVariable} BindVariable instance */ - ExecuteOptions.create = function create(properties) { - return new ExecuteOptions(properties); + BindVariable.create = function create(properties) { + return new BindVariable(properties); }; /** - * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encode - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode + * @param {query.IBindVariable} message BindVariable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.encode = function encode(message, writer) { + BindVariable.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.included_fields != null && Object.hasOwnProperty.call(message, "included_fields")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.included_fields); - if (message.client_found_rows != null && Object.hasOwnProperty.call(message, "client_found_rows")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_found_rows); - if (message.workload != null && Object.hasOwnProperty.call(message, "workload")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workload); - if (message.sql_select_limit != null && Object.hasOwnProperty.call(message, "sql_select_limit")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sql_select_limit); - if (message.transaction_isolation != null && Object.hasOwnProperty.call(message, "transaction_isolation")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.transaction_isolation); - if (message.skip_query_plan_cache != null && Object.hasOwnProperty.call(message, "skip_query_plan_cache")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.skip_query_plan_cache); - if (message.planner_version != null && Object.hasOwnProperty.call(message, "planner_version")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.planner_version); - if (message.has_created_temp_tables != null && Object.hasOwnProperty.call(message, "has_created_temp_tables")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.has_created_temp_tables); - if (message.WorkloadName != null && Object.hasOwnProperty.call(message, "WorkloadName")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.WorkloadName); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.priority); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static - * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode + * @param {query.IBindVariable} message BindVariable message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { + BindVariable.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteOptions message from the specified reader or buffer. + * Decodes a BindVariable message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {query.BindVariable} BindVariable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteOptions.decode = function decode(reader, length) { + BindVariable.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.included_fields = reader.int32(); - break; - case 5: - message.client_found_rows = reader.bool(); - break; - case 6: - message.workload = reader.int32(); - break; - case 8: - message.sql_select_limit = reader.int64(); - break; - case 9: - message.transaction_isolation = reader.int32(); - break; - case 10: - message.skip_query_plan_cache = reader.bool(); - break; - case 11: - message.planner_version = reader.int32(); - break; - case 12: - message.has_created_temp_tables = reader.bool(); + case 1: + message.type = reader.int32(); break; - case 15: - message.WorkloadName = reader.string(); + case 2: + message.value = reader.bytes(); break; - case 16: - message.priority = reader.string(); + case 3: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.query.Value.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -58036,609 +57749,442 @@ $root.query = (function() { }; /** - * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. + * Decodes a BindVariable message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {query.BindVariable} BindVariable * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteOptions.decodeDelimited = function decodeDelimited(reader) { + BindVariable.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteOptions message. + * Verifies a BindVariable message. * @function verify - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteOptions.verify = function verify(message) { + BindVariable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.included_fields != null && message.hasOwnProperty("included_fields")) - switch (message.included_fields) { - default: - return "included_fields: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) - if (typeof message.client_found_rows !== "boolean") - return "client_found_rows: boolean expected"; - if (message.workload != null && message.hasOwnProperty("workload")) - switch (message.workload) { - default: - return "workload: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) - if (!$util.isInteger(message.sql_select_limit) && !(message.sql_select_limit && $util.isInteger(message.sql_select_limit.low) && $util.isInteger(message.sql_select_limit.high))) - return "sql_select_limit: integer|Long expected"; - if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) - switch (message.transaction_isolation) { + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { default: - return "transaction_isolation: enum value expected"; + return "type: enum value expected"; case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: break; } - if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) - if (typeof message.skip_query_plan_cache !== "boolean") - return "skip_query_plan_cache: boolean expected"; - if (message.planner_version != null && message.hasOwnProperty("planner_version")) - switch (message.planner_version) { - default: - return "planner_version: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.query.Value.verify(message.values[i]); + if (error) + return "values." + error; } - if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) - if (typeof message.has_created_temp_tables !== "boolean") - return "has_created_temp_tables: boolean expected"; - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - if (!$util.isString(message.WorkloadName)) - return "WorkloadName: string expected"; - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isString(message.priority)) - return "priority: string expected"; + } return null; }; /** - * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @static * @param {Object.} object Plain object - * @returns {query.ExecuteOptions} ExecuteOptions + * @returns {query.BindVariable} BindVariable */ - ExecuteOptions.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteOptions) + BindVariable.fromObject = function fromObject(object) { + if (object instanceof $root.query.BindVariable) return object; - var message = new $root.query.ExecuteOptions(); - switch (object.included_fields) { - case "TYPE_AND_NAME": + var message = new $root.query.BindVariable(); + switch (object.type) { + case "NULL_TYPE": case 0: - message.included_fields = 0; + message.type = 0; break; - case "TYPE_ONLY": - case 1: - message.included_fields = 1; + case "INT8": + case 257: + message.type = 257; break; - case "ALL": - case 2: - message.included_fields = 2; + case "UINT8": + case 770: + message.type = 770; break; - } - if (object.client_found_rows != null) - message.client_found_rows = Boolean(object.client_found_rows); - switch (object.workload) { - case "UNSPECIFIED": - case 0: - message.workload = 0; + case "INT16": + case 259: + message.type = 259; break; - case "OLTP": - case 1: - message.workload = 1; + case "UINT16": + case 772: + message.type = 772; break; - case "OLAP": - case 2: - message.workload = 2; + case "INT24": + case 261: + message.type = 261; break; - case "DBA": - case 3: - message.workload = 3; + case "UINT24": + case 774: + message.type = 774; break; - } - if (object.sql_select_limit != null) - if ($util.Long) - (message.sql_select_limit = $util.Long.fromValue(object.sql_select_limit)).unsigned = false; - else if (typeof object.sql_select_limit === "string") - message.sql_select_limit = parseInt(object.sql_select_limit, 10); - else if (typeof object.sql_select_limit === "number") - message.sql_select_limit = object.sql_select_limit; - else if (typeof object.sql_select_limit === "object") - message.sql_select_limit = new $util.LongBits(object.sql_select_limit.low >>> 0, object.sql_select_limit.high >>> 0).toNumber(); - switch (object.transaction_isolation) { - case "DEFAULT": - case 0: - message.transaction_isolation = 0; + case "INT32": + case 263: + message.type = 263; break; - case "REPEATABLE_READ": - case 1: - message.transaction_isolation = 1; + case "UINT32": + case 776: + message.type = 776; break; - case "READ_COMMITTED": - case 2: - message.transaction_isolation = 2; + case "INT64": + case 265: + message.type = 265; break; - case "READ_UNCOMMITTED": - case 3: - message.transaction_isolation = 3; + case "UINT64": + case 778: + message.type = 778; break; - case "SERIALIZABLE": - case 4: - message.transaction_isolation = 4; + case "FLOAT32": + case 1035: + message.type = 1035; break; - case "CONSISTENT_SNAPSHOT_READ_ONLY": - case 5: - message.transaction_isolation = 5; + case "FLOAT64": + case 1036: + message.type = 1036; break; - case "AUTOCOMMIT": - case 6: - message.transaction_isolation = 6; + case "TIMESTAMP": + case 2061: + message.type = 2061; break; - } - if (object.skip_query_plan_cache != null) - message.skip_query_plan_cache = Boolean(object.skip_query_plan_cache); - switch (object.planner_version) { - case "DEFAULT_PLANNER": - case 0: - message.planner_version = 0; + case "DATE": + case 2062: + message.type = 2062; break; - case "V3": - case 1: - message.planner_version = 1; + case "TIME": + case 2063: + message.type = 2063; break; - case "Gen4": - case 2: - message.planner_version = 2; + case "DATETIME": + case 2064: + message.type = 2064; break; - case "Gen4Greedy": - case 3: - message.planner_version = 3; + case "YEAR": + case 785: + message.type = 785; break; - case "Gen4Left2Right": - case 4: - message.planner_version = 4; + case "DECIMAL": + case 18: + message.type = 18; break; - case "Gen4WithFallback": - case 5: - message.planner_version = 5; + case "TEXT": + case 6163: + message.type = 6163; break; - case "Gen4CompareV3": - case 6: - message.planner_version = 6; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; break; } - if (object.has_created_temp_tables != null) - message.has_created_temp_tables = Boolean(object.has_created_temp_tables); - if (object.WorkloadName != null) - message.WorkloadName = String(object.WorkloadName); - if (object.priority != null) - message.priority = String(object.priority); - return message; - }; - - /** - * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof query.ExecuteOptions - * @static - * @param {query.ExecuteOptions} message ExecuteOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecuteOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.included_fields = options.enums === String ? "TYPE_AND_NAME" : 0; - object.client_found_rows = false; - object.workload = options.enums === String ? "UNSPECIFIED" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.sql_select_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sql_select_limit = options.longs === String ? "0" : 0; - object.transaction_isolation = options.enums === String ? "DEFAULT" : 0; - object.skip_query_plan_cache = false; - object.planner_version = options.enums === String ? "DEFAULT_PLANNER" : 0; - object.has_created_temp_tables = false; - object.WorkloadName = ""; - object.priority = ""; - } - if (message.included_fields != null && message.hasOwnProperty("included_fields")) - object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] : message.included_fields; - if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) - object.client_found_rows = message.client_found_rows; - if (message.workload != null && message.hasOwnProperty("workload")) - object.workload = options.enums === String ? $root.query.ExecuteOptions.Workload[message.workload] : message.workload; - if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) - if (typeof message.sql_select_limit === "number") - object.sql_select_limit = options.longs === String ? String(message.sql_select_limit) : message.sql_select_limit; - else - object.sql_select_limit = options.longs === String ? $util.Long.prototype.toString.call(message.sql_select_limit) : options.longs === Number ? new $util.LongBits(message.sql_select_limit.low >>> 0, message.sql_select_limit.high >>> 0).toNumber() : message.sql_select_limit; - if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) - object.transaction_isolation = options.enums === String ? $root.query.ExecuteOptions.TransactionIsolation[message.transaction_isolation] : message.transaction_isolation; - if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) - object.skip_query_plan_cache = message.skip_query_plan_cache; - if (message.planner_version != null && message.hasOwnProperty("planner_version")) - object.planner_version = options.enums === String ? $root.query.ExecuteOptions.PlannerVersion[message.planner_version] : message.planner_version; - if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) - object.has_created_temp_tables = message.has_created_temp_tables; - if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) - object.WorkloadName = message.WorkloadName; - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".query.BindVariable.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".query.BindVariable.values: object expected"); + message.values[i] = $root.query.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * @function toObject + * @memberof query.BindVariable + * @static + * @param {query.BindVariable} message BindVariable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BindVariable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.query.Value.toObject(message.values[j], options); + } return object; }; /** - * Converts this ExecuteOptions to JSON. + * Converts this BindVariable to JSON. * @function toJSON - * @memberof query.ExecuteOptions + * @memberof query.BindVariable * @instance * @returns {Object.} JSON object */ - ExecuteOptions.prototype.toJSON = function toJSON() { + BindVariable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return BindVariable; + })(); + + query.BoundQuery = (function() { + /** - * IncludedFields enum. - * @name query.ExecuteOptions.IncludedFields - * @enum {number} - * @property {number} TYPE_AND_NAME=0 TYPE_AND_NAME value - * @property {number} TYPE_ONLY=1 TYPE_ONLY value - * @property {number} ALL=2 ALL value + * Properties of a BoundQuery. + * @memberof query + * @interface IBoundQuery + * @property {string|null} [sql] BoundQuery sql + * @property {Object.|null} [bind_variables] BoundQuery bind_variables */ - ExecuteOptions.IncludedFields = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_AND_NAME"] = 0; - values[valuesById[1] = "TYPE_ONLY"] = 1; - values[valuesById[2] = "ALL"] = 2; - return values; - })(); /** - * Workload enum. - * @name query.ExecuteOptions.Workload - * @enum {number} - * @property {number} UNSPECIFIED=0 UNSPECIFIED value - * @property {number} OLTP=1 OLTP value - * @property {number} OLAP=2 OLAP value - * @property {number} DBA=3 DBA value + * Constructs a new BoundQuery. + * @memberof query + * @classdesc Represents a BoundQuery. + * @implements IBoundQuery + * @constructor + * @param {query.IBoundQuery=} [properties] Properties to set */ - ExecuteOptions.Workload = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSPECIFIED"] = 0; - values[valuesById[1] = "OLTP"] = 1; - values[valuesById[2] = "OLAP"] = 2; - values[valuesById[3] = "DBA"] = 3; - return values; - })(); + function BoundQuery(properties) { + this.bind_variables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * TransactionIsolation enum. - * @name query.ExecuteOptions.TransactionIsolation - * @enum {number} - * @property {number} DEFAULT=0 DEFAULT value - * @property {number} REPEATABLE_READ=1 REPEATABLE_READ value - * @property {number} READ_COMMITTED=2 READ_COMMITTED value - * @property {number} READ_UNCOMMITTED=3 READ_UNCOMMITTED value - * @property {number} SERIALIZABLE=4 SERIALIZABLE value - * @property {number} CONSISTENT_SNAPSHOT_READ_ONLY=5 CONSISTENT_SNAPSHOT_READ_ONLY value - * @property {number} AUTOCOMMIT=6 AUTOCOMMIT value + * BoundQuery sql. + * @member {string} sql + * @memberof query.BoundQuery + * @instance */ - ExecuteOptions.TransactionIsolation = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT"] = 0; - values[valuesById[1] = "REPEATABLE_READ"] = 1; - values[valuesById[2] = "READ_COMMITTED"] = 2; - values[valuesById[3] = "READ_UNCOMMITTED"] = 3; - values[valuesById[4] = "SERIALIZABLE"] = 4; - values[valuesById[5] = "CONSISTENT_SNAPSHOT_READ_ONLY"] = 5; - values[valuesById[6] = "AUTOCOMMIT"] = 6; - return values; - })(); + BoundQuery.prototype.sql = ""; /** - * PlannerVersion enum. - * @name query.ExecuteOptions.PlannerVersion - * @enum {number} - * @property {number} DEFAULT_PLANNER=0 DEFAULT_PLANNER value - * @property {number} V3=1 V3 value - * @property {number} Gen4=2 Gen4 value - * @property {number} Gen4Greedy=3 Gen4Greedy value - * @property {number} Gen4Left2Right=4 Gen4Left2Right value - * @property {number} Gen4WithFallback=5 Gen4WithFallback value - * @property {number} Gen4CompareV3=6 Gen4CompareV3 value + * BoundQuery bind_variables. + * @member {Object.} bind_variables + * @memberof query.BoundQuery + * @instance */ - ExecuteOptions.PlannerVersion = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_PLANNER"] = 0; - values[valuesById[1] = "V3"] = 1; - values[valuesById[2] = "Gen4"] = 2; - values[valuesById[3] = "Gen4Greedy"] = 3; - values[valuesById[4] = "Gen4Left2Right"] = 4; - values[valuesById[5] = "Gen4WithFallback"] = 5; - values[valuesById[6] = "Gen4CompareV3"] = 6; - return values; - })(); - - return ExecuteOptions; - })(); - - query.Field = (function() { + BoundQuery.prototype.bind_variables = $util.emptyObject; /** - * Properties of a Field. - * @memberof query - * @interface IField - * @property {string|null} [name] Field name - * @property {query.Type|null} [type] Field type - * @property {string|null} [table] Field table - * @property {string|null} [org_table] Field org_table - * @property {string|null} [database] Field database - * @property {string|null} [org_name] Field org_name - * @property {number|null} [column_length] Field column_length - * @property {number|null} [charset] Field charset - * @property {number|null} [decimals] Field decimals - * @property {number|null} [flags] Field flags - * @property {string|null} [column_type] Field column_type - */ - - /** - * Constructs a new Field. - * @memberof query - * @classdesc Represents a Field. - * @implements IField - * @constructor - * @param {query.IField=} [properties] Properties to set - */ - function Field(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Field name. - * @member {string} name - * @memberof query.Field - * @instance - */ - Field.prototype.name = ""; - - /** - * Field type. - * @member {query.Type} type - * @memberof query.Field - * @instance - */ - Field.prototype.type = 0; - - /** - * Field table. - * @member {string} table - * @memberof query.Field - * @instance - */ - Field.prototype.table = ""; - - /** - * Field org_table. - * @member {string} org_table - * @memberof query.Field - * @instance - */ - Field.prototype.org_table = ""; - - /** - * Field database. - * @member {string} database - * @memberof query.Field - * @instance - */ - Field.prototype.database = ""; - - /** - * Field org_name. - * @member {string} org_name - * @memberof query.Field - * @instance - */ - Field.prototype.org_name = ""; - - /** - * Field column_length. - * @member {number} column_length - * @memberof query.Field - * @instance - */ - Field.prototype.column_length = 0; - - /** - * Field charset. - * @member {number} charset - * @memberof query.Field - * @instance - */ - Field.prototype.charset = 0; - - /** - * Field decimals. - * @member {number} decimals - * @memberof query.Field - * @instance - */ - Field.prototype.decimals = 0; - - /** - * Field flags. - * @member {number} flags - * @memberof query.Field - * @instance - */ - Field.prototype.flags = 0; - - /** - * Field column_type. - * @member {string} column_type - * @memberof query.Field - * @instance - */ - Field.prototype.column_type = ""; - - /** - * Creates a new Field instance using the specified properties. + * Creates a new BoundQuery instance using the specified properties. * @function create - * @memberof query.Field + * @memberof query.BoundQuery * @static - * @param {query.IField=} [properties] Properties to set - * @returns {query.Field} Field instance + * @param {query.IBoundQuery=} [properties] Properties to set + * @returns {query.BoundQuery} BoundQuery instance */ - Field.create = function create(properties) { - return new Field(properties); + BoundQuery.create = function create(properties) { + return new BoundQuery(properties); }; /** - * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encode - * @memberof query.Field + * @memberof query.BoundQuery * @static - * @param {query.IField} message Field message or plain object to encode + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encode = function encode(message, writer) { + BoundQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.table != null && Object.hasOwnProperty.call(message, "table")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.table); - if (message.org_table != null && Object.hasOwnProperty.call(message, "org_table")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org_table); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); - if (message.org_name != null && Object.hasOwnProperty.call(message, "org_name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org_name); - if (message.column_length != null && Object.hasOwnProperty.call(message, "column_length")) - writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.column_length); - if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) - writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.charset); - if (message.decimals != null && Object.hasOwnProperty.call(message, "decimals")) - writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.decimals); - if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) - writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.flags); - if (message.column_type != null && Object.hasOwnProperty.call(message, "column_type")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.column_type); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); + if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) + for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encodeDelimited - * @memberof query.Field + * @memberof query.BoundQuery * @static - * @param {query.IField} message Field message or plain object to encode + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Field.encodeDelimited = function encodeDelimited(message, writer) { + BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Field message from the specified reader or buffer. + * Decodes a BoundQuery message from the specified reader or buffer. * @function decode - * @memberof query.Field + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Field} Field + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decode = function decode(reader, length) { + BoundQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.sql = reader.string(); break; case 2: - message.type = reader.int32(); - break; - case 3: - message.table = reader.string(); - break; - case 4: - message.org_table = reader.string(); - break; - case 5: - message.database = reader.string(); - break; - case 6: - message.org_name = reader.string(); - break; - case 7: - message.column_length = reader.uint32(); - break; - case 8: - message.charset = reader.uint32(); - break; - case 9: - message.decimals = reader.uint32(); - break; - case 10: - message.flags = reader.uint32(); - break; - case 11: - message.column_type = reader.string(); + if (message.bind_variables === $util.emptyObject) + message.bind_variables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.query.BindVariable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bind_variables[key] = value; break; default: reader.skipType(tag & 7); @@ -58649,368 +58195,144 @@ $root.query = (function() { }; /** - * Decodes a Field message from the specified reader or buffer, length delimited. + * Decodes a BoundQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Field + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Field} Field + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Field.decodeDelimited = function decodeDelimited(reader) { + BoundQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Field message. + * Verifies a BoundQuery message. * @function verify - * @memberof query.Field + * @memberof query.BoundQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Field.verify = function verify(message) { + BoundQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { + if (!$util.isObject(message.bind_variables)) + return "bind_variables: object expected"; + var key = Object.keys(message.bind_variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); + if (error) + return "bind_variables." + error; } - if (message.table != null && message.hasOwnProperty("table")) - if (!$util.isString(message.table)) - return "table: string expected"; - if (message.org_table != null && message.hasOwnProperty("org_table")) - if (!$util.isString(message.org_table)) - return "org_table: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.org_name != null && message.hasOwnProperty("org_name")) - if (!$util.isString(message.org_name)) - return "org_name: string expected"; - if (message.column_length != null && message.hasOwnProperty("column_length")) - if (!$util.isInteger(message.column_length)) - return "column_length: integer expected"; - if (message.charset != null && message.hasOwnProperty("charset")) - if (!$util.isInteger(message.charset)) - return "charset: integer expected"; - if (message.decimals != null && message.hasOwnProperty("decimals")) - if (!$util.isInteger(message.decimals)) - return "decimals: integer expected"; - if (message.flags != null && message.hasOwnProperty("flags")) - if (!$util.isInteger(message.flags)) - return "flags: integer expected"; - if (message.column_type != null && message.hasOwnProperty("column_type")) - if (!$util.isString(message.column_type)) - return "column_type: string expected"; + } return null; }; /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. + * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Field + * @memberof query.BoundQuery * @static * @param {Object.} object Plain object - * @returns {query.Field} Field + * @returns {query.BoundQuery} BoundQuery */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.query.Field) + BoundQuery.fromObject = function fromObject(object) { + if (object instanceof $root.query.BoundQuery) return object; - var message = new $root.query.Field(); - if (object.name != null) - message.name = String(object.name); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; + var message = new $root.query.BoundQuery(); + if (object.sql != null) + message.sql = String(object.sql); + if (object.bind_variables) { + if (typeof object.bind_variables !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables = {}; + for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { + if (typeof object.bind_variables[keys[i]] !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); + } } - if (object.table != null) - message.table = String(object.table); - if (object.org_table != null) - message.org_table = String(object.org_table); - if (object.database != null) - message.database = String(object.database); - if (object.org_name != null) - message.org_name = String(object.org_name); - if (object.column_length != null) - message.column_length = object.column_length >>> 0; - if (object.charset != null) - message.charset = object.charset >>> 0; - if (object.decimals != null) - message.decimals = object.decimals >>> 0; - if (object.flags != null) - message.flags = object.flags >>> 0; - if (object.column_type != null) - message.column_type = String(object.column_type); return message; }; /** - * Creates a plain object from a Field message. Also converts values to other types if specified. + * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. * @function toObject - * @memberof query.Field + * @memberof query.BoundQuery * @static - * @param {query.Field} message Field + * @param {query.BoundQuery} message BoundQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Field.toObject = function toObject(message, options) { + BoundQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; - object.table = ""; - object.org_table = ""; - object.database = ""; - object.org_name = ""; - object.column_length = 0; - object.charset = 0; - object.decimals = 0; - object.flags = 0; - object.column_type = ""; + if (options.objects || options.defaults) + object.bind_variables = {}; + if (options.defaults) + object.sql = ""; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + var keys2; + if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { + object.bind_variables = {}; + for (var j = 0; j < keys2.length; ++j) + object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.table != null && message.hasOwnProperty("table")) - object.table = message.table; - if (message.org_table != null && message.hasOwnProperty("org_table")) - object.org_table = message.org_table; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.org_name != null && message.hasOwnProperty("org_name")) - object.org_name = message.org_name; - if (message.column_length != null && message.hasOwnProperty("column_length")) - object.column_length = message.column_length; - if (message.charset != null && message.hasOwnProperty("charset")) - object.charset = message.charset; - if (message.decimals != null && message.hasOwnProperty("decimals")) - object.decimals = message.decimals; - if (message.flags != null && message.hasOwnProperty("flags")) - object.flags = message.flags; - if (message.column_type != null && message.hasOwnProperty("column_type")) - object.column_type = message.column_type; return object; }; /** - * Converts this Field to JSON. + * Converts this BoundQuery to JSON. * @function toJSON - * @memberof query.Field + * @memberof query.BoundQuery * @instance * @returns {Object.} JSON object */ - Field.prototype.toJSON = function toJSON() { + BoundQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Field; + return BoundQuery; })(); - query.Row = (function() { + query.ExecuteOptions = (function() { /** - * Properties of a Row. + * Properties of an ExecuteOptions. * @memberof query - * @interface IRow - * @property {Array.|null} [lengths] Row lengths - * @property {Uint8Array|null} [values] Row values + * @interface IExecuteOptions + * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields + * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows + * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload + * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit + * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation + * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache + * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version + * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables + * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName + * @property {string|null} [priority] ExecuteOptions priority */ /** - * Constructs a new Row. + * Constructs a new ExecuteOptions. * @memberof query - * @classdesc Represents a Row. - * @implements IRow + * @classdesc Represents an ExecuteOptions. + * @implements IExecuteOptions * @constructor - * @param {query.IRow=} [properties] Properties to set + * @param {query.IExecuteOptions=} [properties] Properties to set */ - function Row(properties) { - this.lengths = []; + function ExecuteOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59018,101 +58340,194 @@ $root.query = (function() { } /** - * Row lengths. - * @member {Array.} lengths - * @memberof query.Row + * ExecuteOptions included_fields. + * @member {query.ExecuteOptions.IncludedFields} included_fields + * @memberof query.ExecuteOptions * @instance */ - Row.prototype.lengths = $util.emptyArray; + ExecuteOptions.prototype.included_fields = 0; /** - * Row values. - * @member {Uint8Array} values - * @memberof query.Row + * ExecuteOptions client_found_rows. + * @member {boolean} client_found_rows + * @memberof query.ExecuteOptions * @instance */ - Row.prototype.values = $util.newBuffer([]); + ExecuteOptions.prototype.client_found_rows = false; /** - * Creates a new Row instance using the specified properties. + * ExecuteOptions workload. + * @member {query.ExecuteOptions.Workload} workload + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.workload = 0; + + /** + * ExecuteOptions sql_select_limit. + * @member {number|Long} sql_select_limit + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.sql_select_limit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ExecuteOptions transaction_isolation. + * @member {query.ExecuteOptions.TransactionIsolation} transaction_isolation + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.transaction_isolation = 0; + + /** + * ExecuteOptions skip_query_plan_cache. + * @member {boolean} skip_query_plan_cache + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.skip_query_plan_cache = false; + + /** + * ExecuteOptions planner_version. + * @member {query.ExecuteOptions.PlannerVersion} planner_version + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.planner_version = 0; + + /** + * ExecuteOptions has_created_temp_tables. + * @member {boolean} has_created_temp_tables + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.has_created_temp_tables = false; + + /** + * ExecuteOptions WorkloadName. + * @member {string} WorkloadName + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.WorkloadName = ""; + + /** + * ExecuteOptions priority. + * @member {string} priority + * @memberof query.ExecuteOptions + * @instance + */ + ExecuteOptions.prototype.priority = ""; + + /** + * Creates a new ExecuteOptions instance using the specified properties. * @function create - * @memberof query.Row + * @memberof query.ExecuteOptions * @static - * @param {query.IRow=} [properties] Properties to set - * @returns {query.Row} Row instance + * @param {query.IExecuteOptions=} [properties] Properties to set + * @returns {query.ExecuteOptions} ExecuteOptions instance */ - Row.create = function create(properties) { - return new Row(properties); + ExecuteOptions.create = function create(properties) { + return new ExecuteOptions(properties); }; /** - * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encode - * @memberof query.Row + * @memberof query.ExecuteOptions * @static - * @param {query.IRow} message Row message or plain object to encode + * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encode = function encode(message, writer) { + ExecuteOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.lengths != null && message.lengths.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.lengths.length; ++i) - writer.sint64(message.lengths[i]); - writer.ldelim(); - } - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.values); + if (message.included_fields != null && Object.hasOwnProperty.call(message, "included_fields")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.included_fields); + if (message.client_found_rows != null && Object.hasOwnProperty.call(message, "client_found_rows")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_found_rows); + if (message.workload != null && Object.hasOwnProperty.call(message, "workload")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.workload); + if (message.sql_select_limit != null && Object.hasOwnProperty.call(message, "sql_select_limit")) + writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sql_select_limit); + if (message.transaction_isolation != null && Object.hasOwnProperty.call(message, "transaction_isolation")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.transaction_isolation); + if (message.skip_query_plan_cache != null && Object.hasOwnProperty.call(message, "skip_query_plan_cache")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.skip_query_plan_cache); + if (message.planner_version != null && Object.hasOwnProperty.call(message, "planner_version")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.planner_version); + if (message.has_created_temp_tables != null && Object.hasOwnProperty.call(message, "has_created_temp_tables")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.has_created_temp_tables); + if (message.WorkloadName != null && Object.hasOwnProperty.call(message, "WorkloadName")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.WorkloadName); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.priority); return writer; }; /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. + * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. * @function encodeDelimited - * @memberof query.Row + * @memberof query.ExecuteOptions * @static - * @param {query.IRow} message Row message or plain object to encode + * @param {query.IExecuteOptions} message ExecuteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Row.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Row message from the specified reader or buffer. + * Decodes an ExecuteOptions message from the specified reader or buffer. * @function decode - * @memberof query.Row + * @memberof query.ExecuteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Row} Row + * @returns {query.ExecuteOptions} ExecuteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decode = function decode(reader, length) { + ExecuteOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.lengths && message.lengths.length)) - message.lengths = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.lengths.push(reader.sint64()); - } else - message.lengths.push(reader.sint64()); + case 4: + message.included_fields = reader.int32(); break; - case 2: - message.values = reader.bytes(); + case 5: + message.client_found_rows = reader.bool(); break; - default: + case 6: + message.workload = reader.int32(); + break; + case 8: + message.sql_select_limit = reader.int64(); + break; + case 9: + message.transaction_isolation = reader.int32(); + break; + case 10: + message.skip_query_plan_cache = reader.bool(); + break; + case 11: + message.planner_version = reader.int32(); + break; + case 12: + message.has_created_temp_tables = reader.bool(); + break; + case 15: + message.WorkloadName = reader.string(); + break; + case 16: + message.priority = reader.string(); + break; + default: reader.skipType(tag & 7); break; } @@ -59121,154 +58536,403 @@ $root.query = (function() { }; /** - * Decodes a Row message from the specified reader or buffer, length delimited. + * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Row + * @memberof query.ExecuteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Row} Row + * @returns {query.ExecuteOptions} ExecuteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Row.decodeDelimited = function decodeDelimited(reader) { + ExecuteOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Row message. + * Verifies an ExecuteOptions message. * @function verify - * @memberof query.Row + * @memberof query.ExecuteOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Row.verify = function verify(message) { + ExecuteOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.lengths != null && message.hasOwnProperty("lengths")) { - if (!Array.isArray(message.lengths)) - return "lengths: array expected"; - for (var i = 0; i < message.lengths.length; ++i) - if (!$util.isInteger(message.lengths[i]) && !(message.lengths[i] && $util.isInteger(message.lengths[i].low) && $util.isInteger(message.lengths[i].high))) - return "lengths: integer|Long[] expected"; - } - if (message.values != null && message.hasOwnProperty("values")) - if (!(message.values && typeof message.values.length === "number" || $util.isString(message.values))) - return "values: buffer expected"; + if (message.included_fields != null && message.hasOwnProperty("included_fields")) + switch (message.included_fields) { + default: + return "included_fields: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) + if (typeof message.client_found_rows !== "boolean") + return "client_found_rows: boolean expected"; + if (message.workload != null && message.hasOwnProperty("workload")) + switch (message.workload) { + default: + return "workload: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) + if (!$util.isInteger(message.sql_select_limit) && !(message.sql_select_limit && $util.isInteger(message.sql_select_limit.low) && $util.isInteger(message.sql_select_limit.high))) + return "sql_select_limit: integer|Long expected"; + if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) + switch (message.transaction_isolation) { + default: + return "transaction_isolation: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) + if (typeof message.skip_query_plan_cache !== "boolean") + return "skip_query_plan_cache: boolean expected"; + if (message.planner_version != null && message.hasOwnProperty("planner_version")) + switch (message.planner_version) { + default: + return "planner_version: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) + if (typeof message.has_created_temp_tables !== "boolean") + return "has_created_temp_tables: boolean expected"; + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + if (!$util.isString(message.WorkloadName)) + return "WorkloadName: string expected"; + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isString(message.priority)) + return "priority: string expected"; return null; }; /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Row + * @memberof query.ExecuteOptions * @static * @param {Object.} object Plain object - * @returns {query.Row} Row + * @returns {query.ExecuteOptions} ExecuteOptions */ - Row.fromObject = function fromObject(object) { - if (object instanceof $root.query.Row) + ExecuteOptions.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteOptions) return object; - var message = new $root.query.Row(); - if (object.lengths) { - if (!Array.isArray(object.lengths)) - throw TypeError(".query.Row.lengths: array expected"); - message.lengths = []; - for (var i = 0; i < object.lengths.length; ++i) - if ($util.Long) - (message.lengths[i] = $util.Long.fromValue(object.lengths[i])).unsigned = false; - else if (typeof object.lengths[i] === "string") - message.lengths[i] = parseInt(object.lengths[i], 10); - else if (typeof object.lengths[i] === "number") - message.lengths[i] = object.lengths[i]; - else if (typeof object.lengths[i] === "object") - message.lengths[i] = new $util.LongBits(object.lengths[i].low >>> 0, object.lengths[i].high >>> 0).toNumber(); + var message = new $root.query.ExecuteOptions(); + switch (object.included_fields) { + case "TYPE_AND_NAME": + case 0: + message.included_fields = 0; + break; + case "TYPE_ONLY": + case 1: + message.included_fields = 1; + break; + case "ALL": + case 2: + message.included_fields = 2; + break; } - if (object.values != null) - if (typeof object.values === "string") - $util.base64.decode(object.values, message.values = $util.newBuffer($util.base64.length(object.values)), 0); - else if (object.values.length) - message.values = object.values; + if (object.client_found_rows != null) + message.client_found_rows = Boolean(object.client_found_rows); + switch (object.workload) { + case "UNSPECIFIED": + case 0: + message.workload = 0; + break; + case "OLTP": + case 1: + message.workload = 1; + break; + case "OLAP": + case 2: + message.workload = 2; + break; + case "DBA": + case 3: + message.workload = 3; + break; + } + if (object.sql_select_limit != null) + if ($util.Long) + (message.sql_select_limit = $util.Long.fromValue(object.sql_select_limit)).unsigned = false; + else if (typeof object.sql_select_limit === "string") + message.sql_select_limit = parseInt(object.sql_select_limit, 10); + else if (typeof object.sql_select_limit === "number") + message.sql_select_limit = object.sql_select_limit; + else if (typeof object.sql_select_limit === "object") + message.sql_select_limit = new $util.LongBits(object.sql_select_limit.low >>> 0, object.sql_select_limit.high >>> 0).toNumber(); + switch (object.transaction_isolation) { + case "DEFAULT": + case 0: + message.transaction_isolation = 0; + break; + case "REPEATABLE_READ": + case 1: + message.transaction_isolation = 1; + break; + case "READ_COMMITTED": + case 2: + message.transaction_isolation = 2; + break; + case "READ_UNCOMMITTED": + case 3: + message.transaction_isolation = 3; + break; + case "SERIALIZABLE": + case 4: + message.transaction_isolation = 4; + break; + case "CONSISTENT_SNAPSHOT_READ_ONLY": + case 5: + message.transaction_isolation = 5; + break; + case "AUTOCOMMIT": + case 6: + message.transaction_isolation = 6; + break; + } + if (object.skip_query_plan_cache != null) + message.skip_query_plan_cache = Boolean(object.skip_query_plan_cache); + switch (object.planner_version) { + case "DEFAULT_PLANNER": + case 0: + message.planner_version = 0; + break; + case "V3": + case 1: + message.planner_version = 1; + break; + case "Gen4": + case 2: + message.planner_version = 2; + break; + case "Gen4Greedy": + case 3: + message.planner_version = 3; + break; + case "Gen4Left2Right": + case 4: + message.planner_version = 4; + break; + case "Gen4WithFallback": + case 5: + message.planner_version = 5; + break; + case "Gen4CompareV3": + case 6: + message.planner_version = 6; + break; + } + if (object.has_created_temp_tables != null) + message.has_created_temp_tables = Boolean(object.has_created_temp_tables); + if (object.WorkloadName != null) + message.WorkloadName = String(object.WorkloadName); + if (object.priority != null) + message.priority = String(object.priority); return message; }; /** - * Creates a plain object from a Row message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. * @function toObject - * @memberof query.Row + * @memberof query.ExecuteOptions * @static - * @param {query.Row} message Row + * @param {query.ExecuteOptions} message ExecuteOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Row.toObject = function toObject(message, options) { + ExecuteOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.lengths = []; - if (options.defaults) - if (options.bytes === String) - object.values = ""; - else { - object.values = []; - if (options.bytes !== Array) - object.values = $util.newBuffer(object.values); - } - if (message.lengths && message.lengths.length) { - object.lengths = []; - for (var j = 0; j < message.lengths.length; ++j) - if (typeof message.lengths[j] === "number") - object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; - else - object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; + if (options.defaults) { + object.included_fields = options.enums === String ? "TYPE_AND_NAME" : 0; + object.client_found_rows = false; + object.workload = options.enums === String ? "UNSPECIFIED" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.sql_select_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sql_select_limit = options.longs === String ? "0" : 0; + object.transaction_isolation = options.enums === String ? "DEFAULT" : 0; + object.skip_query_plan_cache = false; + object.planner_version = options.enums === String ? "DEFAULT_PLANNER" : 0; + object.has_created_temp_tables = false; + object.WorkloadName = ""; + object.priority = ""; } - if (message.values != null && message.hasOwnProperty("values")) - object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; + if (message.included_fields != null && message.hasOwnProperty("included_fields")) + object.included_fields = options.enums === String ? $root.query.ExecuteOptions.IncludedFields[message.included_fields] : message.included_fields; + if (message.client_found_rows != null && message.hasOwnProperty("client_found_rows")) + object.client_found_rows = message.client_found_rows; + if (message.workload != null && message.hasOwnProperty("workload")) + object.workload = options.enums === String ? $root.query.ExecuteOptions.Workload[message.workload] : message.workload; + if (message.sql_select_limit != null && message.hasOwnProperty("sql_select_limit")) + if (typeof message.sql_select_limit === "number") + object.sql_select_limit = options.longs === String ? String(message.sql_select_limit) : message.sql_select_limit; + else + object.sql_select_limit = options.longs === String ? $util.Long.prototype.toString.call(message.sql_select_limit) : options.longs === Number ? new $util.LongBits(message.sql_select_limit.low >>> 0, message.sql_select_limit.high >>> 0).toNumber() : message.sql_select_limit; + if (message.transaction_isolation != null && message.hasOwnProperty("transaction_isolation")) + object.transaction_isolation = options.enums === String ? $root.query.ExecuteOptions.TransactionIsolation[message.transaction_isolation] : message.transaction_isolation; + if (message.skip_query_plan_cache != null && message.hasOwnProperty("skip_query_plan_cache")) + object.skip_query_plan_cache = message.skip_query_plan_cache; + if (message.planner_version != null && message.hasOwnProperty("planner_version")) + object.planner_version = options.enums === String ? $root.query.ExecuteOptions.PlannerVersion[message.planner_version] : message.planner_version; + if (message.has_created_temp_tables != null && message.hasOwnProperty("has_created_temp_tables")) + object.has_created_temp_tables = message.has_created_temp_tables; + if (message.WorkloadName != null && message.hasOwnProperty("WorkloadName")) + object.WorkloadName = message.WorkloadName; + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; return object; }; /** - * Converts this Row to JSON. + * Converts this ExecuteOptions to JSON. * @function toJSON - * @memberof query.Row + * @memberof query.ExecuteOptions * @instance * @returns {Object.} JSON object */ - Row.prototype.toJSON = function toJSON() { + ExecuteOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Row; + /** + * IncludedFields enum. + * @name query.ExecuteOptions.IncludedFields + * @enum {number} + * @property {number} TYPE_AND_NAME=0 TYPE_AND_NAME value + * @property {number} TYPE_ONLY=1 TYPE_ONLY value + * @property {number} ALL=2 ALL value + */ + ExecuteOptions.IncludedFields = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_AND_NAME"] = 0; + values[valuesById[1] = "TYPE_ONLY"] = 1; + values[valuesById[2] = "ALL"] = 2; + return values; + })(); + + /** + * Workload enum. + * @name query.ExecuteOptions.Workload + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} OLTP=1 OLTP value + * @property {number} OLAP=2 OLAP value + * @property {number} DBA=3 DBA value + */ + ExecuteOptions.Workload = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "OLTP"] = 1; + values[valuesById[2] = "OLAP"] = 2; + values[valuesById[3] = "DBA"] = 3; + return values; + })(); + + /** + * TransactionIsolation enum. + * @name query.ExecuteOptions.TransactionIsolation + * @enum {number} + * @property {number} DEFAULT=0 DEFAULT value + * @property {number} REPEATABLE_READ=1 REPEATABLE_READ value + * @property {number} READ_COMMITTED=2 READ_COMMITTED value + * @property {number} READ_UNCOMMITTED=3 READ_UNCOMMITTED value + * @property {number} SERIALIZABLE=4 SERIALIZABLE value + * @property {number} CONSISTENT_SNAPSHOT_READ_ONLY=5 CONSISTENT_SNAPSHOT_READ_ONLY value + * @property {number} AUTOCOMMIT=6 AUTOCOMMIT value + */ + ExecuteOptions.TransactionIsolation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT"] = 0; + values[valuesById[1] = "REPEATABLE_READ"] = 1; + values[valuesById[2] = "READ_COMMITTED"] = 2; + values[valuesById[3] = "READ_UNCOMMITTED"] = 3; + values[valuesById[4] = "SERIALIZABLE"] = 4; + values[valuesById[5] = "CONSISTENT_SNAPSHOT_READ_ONLY"] = 5; + values[valuesById[6] = "AUTOCOMMIT"] = 6; + return values; + })(); + + /** + * PlannerVersion enum. + * @name query.ExecuteOptions.PlannerVersion + * @enum {number} + * @property {number} DEFAULT_PLANNER=0 DEFAULT_PLANNER value + * @property {number} V3=1 V3 value + * @property {number} Gen4=2 Gen4 value + * @property {number} Gen4Greedy=3 Gen4Greedy value + * @property {number} Gen4Left2Right=4 Gen4Left2Right value + * @property {number} Gen4WithFallback=5 Gen4WithFallback value + * @property {number} Gen4CompareV3=6 Gen4CompareV3 value + */ + ExecuteOptions.PlannerVersion = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT_PLANNER"] = 0; + values[valuesById[1] = "V3"] = 1; + values[valuesById[2] = "Gen4"] = 2; + values[valuesById[3] = "Gen4Greedy"] = 3; + values[valuesById[4] = "Gen4Left2Right"] = 4; + values[valuesById[5] = "Gen4WithFallback"] = 5; + values[valuesById[6] = "Gen4CompareV3"] = 6; + return values; + })(); + + return ExecuteOptions; })(); - query.QueryResult = (function() { + query.Field = (function() { /** - * Properties of a QueryResult. + * Properties of a Field. * @memberof query - * @interface IQueryResult - * @property {Array.|null} [fields] QueryResult fields - * @property {number|Long|null} [rows_affected] QueryResult rows_affected - * @property {number|Long|null} [insert_id] QueryResult insert_id - * @property {Array.|null} [rows] QueryResult rows - * @property {string|null} [info] QueryResult info - * @property {string|null} [session_state_changes] QueryResult session_state_changes + * @interface IField + * @property {string|null} [name] Field name + * @property {query.Type|null} [type] Field type + * @property {string|null} [table] Field table + * @property {string|null} [org_table] Field org_table + * @property {string|null} [database] Field database + * @property {string|null} [org_name] Field org_name + * @property {number|null} [column_length] Field column_length + * @property {number|null} [charset] Field charset + * @property {number|null} [decimals] Field decimals + * @property {number|null} [flags] Field flags + * @property {string|null} [column_type] Field column_type */ /** - * Constructs a new QueryResult. + * Constructs a new Field. * @memberof query - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents a Field. + * @implements IField * @constructor - * @param {query.IQueryResult=} [properties] Properties to set + * @param {query.IField=} [properties] Properties to set */ - function QueryResult(properties) { - this.fields = []; - this.rows = []; + function Field(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59276,146 +58940,205 @@ $root.query = (function() { } /** - * QueryResult fields. - * @member {Array.} fields - * @memberof query.QueryResult + * Field name. + * @member {string} name + * @memberof query.Field * @instance */ - QueryResult.prototype.fields = $util.emptyArray; + Field.prototype.name = ""; /** - * QueryResult rows_affected. - * @member {number|Long} rows_affected - * @memberof query.QueryResult + * Field type. + * @member {query.Type} type + * @memberof query.Field * @instance */ - QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Field.prototype.type = 0; /** - * QueryResult insert_id. - * @member {number|Long} insert_id - * @memberof query.QueryResult + * Field table. + * @member {string} table + * @memberof query.Field * @instance */ - QueryResult.prototype.insert_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Field.prototype.table = ""; /** - * QueryResult rows. - * @member {Array.} rows - * @memberof query.QueryResult + * Field org_table. + * @member {string} org_table + * @memberof query.Field * @instance */ - QueryResult.prototype.rows = $util.emptyArray; + Field.prototype.org_table = ""; /** - * QueryResult info. - * @member {string} info - * @memberof query.QueryResult + * Field database. + * @member {string} database + * @memberof query.Field * @instance */ - QueryResult.prototype.info = ""; + Field.prototype.database = ""; /** - * QueryResult session_state_changes. - * @member {string} session_state_changes - * @memberof query.QueryResult + * Field org_name. + * @member {string} org_name + * @memberof query.Field * @instance */ - QueryResult.prototype.session_state_changes = ""; + Field.prototype.org_name = ""; /** - * Creates a new QueryResult instance using the specified properties. - * @function create - * @memberof query.QueryResult - * @static - * @param {query.IQueryResult=} [properties] Properties to set - * @returns {query.QueryResult} QueryResult instance + * Field column_length. + * @member {number} column_length + * @memberof query.Field + * @instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); - }; + Field.prototype.column_length = 0; /** - * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. - * @function encode - * @memberof query.QueryResult - * @static - * @param {query.IQueryResult} message QueryResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryResult.encode = function encode(message, writer) { + * Field charset. + * @member {number} charset + * @memberof query.Field + * @instance + */ + Field.prototype.charset = 0; + + /** + * Field decimals. + * @member {number} decimals + * @memberof query.Field + * @instance + */ + Field.prototype.decimals = 0; + + /** + * Field flags. + * @member {number} flags + * @memberof query.Field + * @instance + */ + Field.prototype.flags = 0; + + /** + * Field column_type. + * @member {string} column_type + * @memberof query.Field + * @instance + */ + Field.prototype.column_type = ""; + + /** + * Creates a new Field instance using the specified properties. + * @function create + * @memberof query.Field + * @static + * @param {query.IField=} [properties] Properties to set + * @returns {query.Field} Field instance + */ + Field.create = function create(properties) { + return new Field(properties); + }; + + /** + * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. + * @function encode + * @memberof query.Field + * @static + * @param {query.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rows_affected != null && Object.hasOwnProperty.call(message, "rows_affected")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected); - if (message.insert_id != null && Object.hasOwnProperty.call(message, "insert_id")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.insert_id); - if (message.rows != null && message.rows.length) - for (var i = 0; i < message.rows.length; ++i) - $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.info); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.session_state_changes); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.table != null && Object.hasOwnProperty.call(message, "table")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.table); + if (message.org_table != null && Object.hasOwnProperty.call(message, "org_table")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org_table); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); + if (message.org_name != null && Object.hasOwnProperty.call(message, "org_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org_name); + if (message.column_length != null && Object.hasOwnProperty.call(message, "column_length")) + writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.column_length); + if (message.charset != null && Object.hasOwnProperty.call(message, "charset")) + writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.charset); + if (message.decimals != null && Object.hasOwnProperty.call(message, "decimals")) + writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.decimals); + if (message.flags != null && Object.hasOwnProperty.call(message, "flags")) + writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.flags); + if (message.column_type != null && Object.hasOwnProperty.call(message, "column_type")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.column_type); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. + * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. * @function encodeDelimited - * @memberof query.QueryResult + * @memberof query.Field * @static - * @param {query.IQueryResult} message QueryResult message or plain object to encode + * @param {query.IField} message Field message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + Field.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a Field message from the specified reader or buffer. * @function decode - * @memberof query.QueryResult + * @memberof query.Field * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.QueryResult} QueryResult + * @returns {query.Field} Field * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + Field.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Field(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.query.Field.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.rows_affected = reader.uint64(); + message.type = reader.int32(); break; case 3: - message.insert_id = reader.uint64(); + message.table = reader.string(); break; case 4: - if (!(message.rows && message.rows.length)) - message.rows = []; - message.rows.push($root.query.Row.decode(reader, reader.uint32())); + message.org_table = reader.string(); + break; + case 5: + message.database = reader.string(); break; case 6: - message.info = reader.string(); + message.org_name = reader.string(); break; case 7: - message.session_state_changes = reader.string(); + message.column_length = reader.uint32(); + break; + case 8: + message.charset = reader.uint32(); + break; + case 9: + message.decimals = reader.uint32(); + break; + case 10: + message.flags = reader.uint32(); + break; + case 11: + message.column_type = reader.string(); break; default: reader.skipType(tag & 7); @@ -59426,213 +59149,368 @@ $root.query = (function() { }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a Field message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.QueryResult + * @memberof query.Field * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.QueryResult} QueryResult + * @returns {query.Field} Field * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + Field.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a Field message. * @function verify - * @memberof query.QueryResult + * @memberof query.Field * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + Field.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.query.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } - if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) - if (!$util.isInteger(message.rows_affected) && !(message.rows_affected && $util.isInteger(message.rows_affected.low) && $util.isInteger(message.rows_affected.high))) - return "rows_affected: integer|Long expected"; - if (message.insert_id != null && message.hasOwnProperty("insert_id")) - if (!$util.isInteger(message.insert_id) && !(message.insert_id && $util.isInteger(message.insert_id.low) && $util.isInteger(message.insert_id.high))) - return "insert_id: integer|Long expected"; - if (message.rows != null && message.hasOwnProperty("rows")) { - if (!Array.isArray(message.rows)) - return "rows: array expected"; - for (var i = 0; i < message.rows.length; ++i) { - var error = $root.query.Row.verify(message.rows[i]); - if (error) - return "rows." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; } - } - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; + if (message.table != null && message.hasOwnProperty("table")) + if (!$util.isString(message.table)) + return "table: string expected"; + if (message.org_table != null && message.hasOwnProperty("org_table")) + if (!$util.isString(message.org_table)) + return "org_table: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.org_name != null && message.hasOwnProperty("org_name")) + if (!$util.isString(message.org_name)) + return "org_name: string expected"; + if (message.column_length != null && message.hasOwnProperty("column_length")) + if (!$util.isInteger(message.column_length)) + return "column_length: integer expected"; + if (message.charset != null && message.hasOwnProperty("charset")) + if (!$util.isInteger(message.charset)) + return "charset: integer expected"; + if (message.decimals != null && message.hasOwnProperty("decimals")) + if (!$util.isInteger(message.decimals)) + return "decimals: integer expected"; + if (message.flags != null && message.hasOwnProperty("flags")) + if (!$util.isInteger(message.flags)) + return "flags: integer expected"; + if (message.column_type != null && message.hasOwnProperty("column_type")) + if (!$util.isString(message.column_type)) + return "column_type: string expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a Field message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.QueryResult + * @memberof query.Field * @static * @param {Object.} object Plain object - * @returns {query.QueryResult} QueryResult + * @returns {query.Field} Field */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryResult) + Field.fromObject = function fromObject(object) { + if (object instanceof $root.query.Field) return object; - var message = new $root.query.QueryResult(); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".query.QueryResult.fields: array expected"); - message.fields = []; - for (var i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".query.QueryResult.fields: object expected"); - message.fields[i] = $root.query.Field.fromObject(object.fields[i]); - } - } - if (object.rows_affected != null) - if ($util.Long) - (message.rows_affected = $util.Long.fromValue(object.rows_affected)).unsigned = true; - else if (typeof object.rows_affected === "string") - message.rows_affected = parseInt(object.rows_affected, 10); - else if (typeof object.rows_affected === "number") - message.rows_affected = object.rows_affected; - else if (typeof object.rows_affected === "object") - message.rows_affected = new $util.LongBits(object.rows_affected.low >>> 0, object.rows_affected.high >>> 0).toNumber(true); - if (object.insert_id != null) - if ($util.Long) - (message.insert_id = $util.Long.fromValue(object.insert_id)).unsigned = true; - else if (typeof object.insert_id === "string") - message.insert_id = parseInt(object.insert_id, 10); - else if (typeof object.insert_id === "number") - message.insert_id = object.insert_id; - else if (typeof object.insert_id === "object") - message.insert_id = new $util.LongBits(object.insert_id.low >>> 0, object.insert_id.high >>> 0).toNumber(true); - if (object.rows) { - if (!Array.isArray(object.rows)) - throw TypeError(".query.QueryResult.rows: array expected"); - message.rows = []; - for (var i = 0; i < object.rows.length; ++i) { - if (typeof object.rows[i] !== "object") - throw TypeError(".query.QueryResult.rows: object expected"); - message.rows[i] = $root.query.Row.fromObject(object.rows[i]); - } + var message = new $root.query.Field(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; } - if (object.info != null) - message.info = String(object.info); - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); + if (object.table != null) + message.table = String(object.table); + if (object.org_table != null) + message.org_table = String(object.org_table); + if (object.database != null) + message.database = String(object.database); + if (object.org_name != null) + message.org_name = String(object.org_name); + if (object.column_length != null) + message.column_length = object.column_length >>> 0; + if (object.charset != null) + message.charset = object.charset >>> 0; + if (object.decimals != null) + message.decimals = object.decimals >>> 0; + if (object.flags != null) + message.flags = object.flags >>> 0; + if (object.column_type != null) + message.column_type = String(object.column_type); return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a Field message. Also converts values to other types if specified. * @function toObject - * @memberof query.QueryResult + * @memberof query.Field * @static - * @param {query.QueryResult} message QueryResult + * @param {query.Field} message Field * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + Field.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.fields = []; - object.rows = []; - } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.rows_affected = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.rows_affected = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.insert_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.insert_id = options.longs === String ? "0" : 0; - object.info = ""; - object.session_state_changes = ""; - } - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; + object.table = ""; + object.org_table = ""; + object.database = ""; + object.org_name = ""; + object.column_length = 0; + object.charset = 0; + object.decimals = 0; + object.flags = 0; + object.column_type = ""; } - if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) - if (typeof message.rows_affected === "number") - object.rows_affected = options.longs === String ? String(message.rows_affected) : message.rows_affected; - else - object.rows_affected = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected) : options.longs === Number ? new $util.LongBits(message.rows_affected.low >>> 0, message.rows_affected.high >>> 0).toNumber(true) : message.rows_affected; - if (message.insert_id != null && message.hasOwnProperty("insert_id")) - if (typeof message.insert_id === "number") - object.insert_id = options.longs === String ? String(message.insert_id) : message.insert_id; - else - object.insert_id = options.longs === String ? $util.Long.prototype.toString.call(message.insert_id) : options.longs === Number ? new $util.LongBits(message.insert_id.low >>> 0, message.insert_id.high >>> 0).toNumber(true) : message.insert_id; - if (message.rows && message.rows.length) { - object.rows = []; - for (var j = 0; j < message.rows.length; ++j) - object.rows[j] = $root.query.Row.toObject(message.rows[j], options); - } - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.table != null && message.hasOwnProperty("table")) + object.table = message.table; + if (message.org_table != null && message.hasOwnProperty("org_table")) + object.org_table = message.org_table; + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; + if (message.org_name != null && message.hasOwnProperty("org_name")) + object.org_name = message.org_name; + if (message.column_length != null && message.hasOwnProperty("column_length")) + object.column_length = message.column_length; + if (message.charset != null && message.hasOwnProperty("charset")) + object.charset = message.charset; + if (message.decimals != null && message.hasOwnProperty("decimals")) + object.decimals = message.decimals; + if (message.flags != null && message.hasOwnProperty("flags")) + object.flags = message.flags; + if (message.column_type != null && message.hasOwnProperty("column_type")) + object.column_type = message.column_type; return object; }; /** - * Converts this QueryResult to JSON. + * Converts this Field to JSON. * @function toJSON - * @memberof query.QueryResult + * @memberof query.Field * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + Field.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + return Field; })(); - query.QueryWarning = (function() { + query.Row = (function() { /** - * Properties of a QueryWarning. + * Properties of a Row. * @memberof query - * @interface IQueryWarning - * @property {number|null} [code] QueryWarning code - * @property {string|null} [message] QueryWarning message + * @interface IRow + * @property {Array.|null} [lengths] Row lengths + * @property {Uint8Array|null} [values] Row values */ /** - * Constructs a new QueryWarning. + * Constructs a new Row. * @memberof query - * @classdesc Represents a QueryWarning. - * @implements IQueryWarning + * @classdesc Represents a Row. + * @implements IRow * @constructor - * @param {query.IQueryWarning=} [properties] Properties to set + * @param {query.IRow=} [properties] Properties to set */ - function QueryWarning(properties) { + function Row(properties) { + this.lengths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59640,88 +59518,99 @@ $root.query = (function() { } /** - * QueryWarning code. - * @member {number} code - * @memberof query.QueryWarning + * Row lengths. + * @member {Array.} lengths + * @memberof query.Row * @instance */ - QueryWarning.prototype.code = 0; + Row.prototype.lengths = $util.emptyArray; /** - * QueryWarning message. - * @member {string} message - * @memberof query.QueryWarning + * Row values. + * @member {Uint8Array} values + * @memberof query.Row * @instance */ - QueryWarning.prototype.message = ""; + Row.prototype.values = $util.newBuffer([]); /** - * Creates a new QueryWarning instance using the specified properties. + * Creates a new Row instance using the specified properties. * @function create - * @memberof query.QueryWarning + * @memberof query.Row * @static - * @param {query.IQueryWarning=} [properties] Properties to set - * @returns {query.QueryWarning} QueryWarning instance + * @param {query.IRow=} [properties] Properties to set + * @returns {query.Row} Row instance */ - QueryWarning.create = function create(properties) { - return new QueryWarning(properties); + Row.create = function create(properties) { + return new Row(properties); }; /** - * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. * @function encode - * @memberof query.QueryWarning + * @memberof query.Row * @static - * @param {query.IQueryWarning} message QueryWarning message or plain object to encode + * @param {query.IRow} message Row message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryWarning.encode = function encode(message, writer) { + Row.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.lengths != null && message.lengths.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.lengths.length; ++i) + writer.sint64(message.lengths[i]); + writer.ldelim(); + } + if (message.values != null && Object.hasOwnProperty.call(message, "values")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.values); return writer; }; /** - * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. * @function encodeDelimited - * @memberof query.QueryWarning + * @memberof query.Row * @static - * @param {query.IQueryWarning} message QueryWarning message or plain object to encode + * @param {query.IRow} message Row message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { + Row.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryWarning message from the specified reader or buffer. + * Decodes a Row message from the specified reader or buffer. * @function decode - * @memberof query.QueryWarning + * @memberof query.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.QueryWarning} QueryWarning + * @returns {query.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryWarning.decode = function decode(reader, length) { + Row.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Row(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.uint32(); + if (!(message.lengths && message.lengths.length)) + message.lengths = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.lengths.push(reader.sint64()); + } else + message.lengths.push(reader.sint64()); break; case 2: - message.message = reader.string(); + message.values = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -59732,118 +59621,154 @@ $root.query = (function() { }; /** - * Decodes a QueryWarning message from the specified reader or buffer, length delimited. + * Decodes a Row message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.QueryWarning + * @memberof query.Row * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.QueryWarning} QueryWarning + * @returns {query.Row} Row * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryWarning.decodeDelimited = function decodeDelimited(reader) { + Row.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryWarning message. + * Verifies a Row message. * @function verify - * @memberof query.QueryWarning + * @memberof query.Row * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryWarning.verify = function verify(message) { + Row.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isInteger(message.code)) - return "code: integer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.lengths != null && message.hasOwnProperty("lengths")) { + if (!Array.isArray(message.lengths)) + return "lengths: array expected"; + for (var i = 0; i < message.lengths.length; ++i) + if (!$util.isInteger(message.lengths[i]) && !(message.lengths[i] && $util.isInteger(message.lengths[i].low) && $util.isInteger(message.lengths[i].high))) + return "lengths: integer|Long[] expected"; + } + if (message.values != null && message.hasOwnProperty("values")) + if (!(message.values && typeof message.values.length === "number" || $util.isString(message.values))) + return "values: buffer expected"; return null; }; /** - * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. + * Creates a Row message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.QueryWarning + * @memberof query.Row * @static * @param {Object.} object Plain object - * @returns {query.QueryWarning} QueryWarning + * @returns {query.Row} Row */ - QueryWarning.fromObject = function fromObject(object) { - if (object instanceof $root.query.QueryWarning) + Row.fromObject = function fromObject(object) { + if (object instanceof $root.query.Row) return object; - var message = new $root.query.QueryWarning(); - if (object.code != null) - message.code = object.code >>> 0; - if (object.message != null) - message.message = String(object.message); + var message = new $root.query.Row(); + if (object.lengths) { + if (!Array.isArray(object.lengths)) + throw TypeError(".query.Row.lengths: array expected"); + message.lengths = []; + for (var i = 0; i < object.lengths.length; ++i) + if ($util.Long) + (message.lengths[i] = $util.Long.fromValue(object.lengths[i])).unsigned = false; + else if (typeof object.lengths[i] === "string") + message.lengths[i] = parseInt(object.lengths[i], 10); + else if (typeof object.lengths[i] === "number") + message.lengths[i] = object.lengths[i]; + else if (typeof object.lengths[i] === "object") + message.lengths[i] = new $util.LongBits(object.lengths[i].low >>> 0, object.lengths[i].high >>> 0).toNumber(); + } + if (object.values != null) + if (typeof object.values === "string") + $util.base64.decode(object.values, message.values = $util.newBuffer($util.base64.length(object.values)), 0); + else if (object.values.length) + message.values = object.values; return message; }; /** - * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. + * Creates a plain object from a Row message. Also converts values to other types if specified. * @function toObject - * @memberof query.QueryWarning + * @memberof query.Row * @static - * @param {query.QueryWarning} message QueryWarning + * @param {query.Row} message Row * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryWarning.toObject = function toObject(message, options) { + Row.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.code = 0; - object.message = ""; + if (options.arrays || options.defaults) + object.lengths = []; + if (options.defaults) + if (options.bytes === String) + object.values = ""; + else { + object.values = []; + if (options.bytes !== Array) + object.values = $util.newBuffer(object.values); + } + if (message.lengths && message.lengths.length) { + object.lengths = []; + for (var j = 0; j < message.lengths.length; ++j) + if (typeof message.lengths[j] === "number") + object.lengths[j] = options.longs === String ? String(message.lengths[j]) : message.lengths[j]; + else + object.lengths[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lengths[j]) : options.longs === Number ? new $util.LongBits(message.lengths[j].low >>> 0, message.lengths[j].high >>> 0).toNumber() : message.lengths[j]; } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.values != null && message.hasOwnProperty("values")) + object.values = options.bytes === String ? $util.base64.encode(message.values, 0, message.values.length) : options.bytes === Array ? Array.prototype.slice.call(message.values) : message.values; return object; }; /** - * Converts this QueryWarning to JSON. + * Converts this Row to JSON. * @function toJSON - * @memberof query.QueryWarning + * @memberof query.Row * @instance * @returns {Object.} JSON object */ - QueryWarning.prototype.toJSON = function toJSON() { + Row.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryWarning; + return Row; })(); - query.StreamEvent = (function() { + query.QueryResult = (function() { /** - * Properties of a StreamEvent. + * Properties of a QueryResult. * @memberof query - * @interface IStreamEvent - * @property {Array.|null} [statements] StreamEvent statements - * @property {query.IEventToken|null} [event_token] StreamEvent event_token - */ + * @interface IQueryResult + * @property {Array.|null} [fields] QueryResult fields + * @property {number|Long|null} [rows_affected] QueryResult rows_affected + * @property {number|Long|null} [insert_id] QueryResult insert_id + * @property {Array.|null} [rows] QueryResult rows + * @property {string|null} [info] QueryResult info + * @property {string|null} [session_state_changes] QueryResult session_state_changes + */ /** - * Constructs a new StreamEvent. + * Constructs a new QueryResult. * @memberof query - * @classdesc Represents a StreamEvent. - * @implements IStreamEvent + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {query.IStreamEvent=} [properties] Properties to set + * @param {query.IQueryResult=} [properties] Properties to set */ - function StreamEvent(properties) { - this.statements = []; + function QueryResult(properties) { + this.fields = []; + this.rows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59851,91 +59776,146 @@ $root.query = (function() { } /** - * StreamEvent statements. - * @member {Array.} statements - * @memberof query.StreamEvent + * QueryResult fields. + * @member {Array.} fields + * @memberof query.QueryResult * @instance */ - StreamEvent.prototype.statements = $util.emptyArray; + QueryResult.prototype.fields = $util.emptyArray; /** - * StreamEvent event_token. - * @member {query.IEventToken|null|undefined} event_token - * @memberof query.StreamEvent + * QueryResult rows_affected. + * @member {number|Long} rows_affected + * @memberof query.QueryResult * @instance */ - StreamEvent.prototype.event_token = null; + QueryResult.prototype.rows_affected = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new StreamEvent instance using the specified properties. + * QueryResult insert_id. + * @member {number|Long} insert_id + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.insert_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryResult rows. + * @member {Array.} rows + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.rows = $util.emptyArray; + + /** + * QueryResult info. + * @member {string} info + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.info = ""; + + /** + * QueryResult session_state_changes. + * @member {string} session_state_changes + * @memberof query.QueryResult + * @instance + */ + QueryResult.prototype.session_state_changes = ""; + + /** + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static - * @param {query.IStreamEvent=} [properties] Properties to set - * @returns {query.StreamEvent} StreamEvent instance + * @param {query.IQueryResult=} [properties] Properties to set + * @returns {query.QueryResult} QueryResult instance */ - StreamEvent.create = function create(properties) { - return new StreamEvent(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encode - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static - * @param {query.IStreamEvent} message StreamEvent message or plain object to encode + * @param {query.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamEvent.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.statements != null && message.statements.length) - for (var i = 0; i < message.statements.length; ++i) - $root.query.StreamEvent.Statement.encode(message.statements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.event_token != null && Object.hasOwnProperty.call(message, "event_token")) - $root.query.EventToken.encode(message.event_token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.query.Field.encode(message.fields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rows_affected != null && Object.hasOwnProperty.call(message, "rows_affected")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.rows_affected); + if (message.insert_id != null && Object.hasOwnProperty.call(message, "insert_id")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.insert_id); + if (message.rows != null && message.rows.length) + for (var i = 0; i < message.rows.length; ++i) + $root.query.Row.encode(message.rows[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.info); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.session_state_changes); return writer; }; /** - * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static - * @param {query.IStreamEvent} message StreamEvent message or plain object to encode + * @param {query.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamEvent message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamEvent} StreamEvent + * @returns {query.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamEvent.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.statements && message.statements.length)) - message.statements = []; - message.statements.push($root.query.StreamEvent.Statement.decode(reader, reader.uint32())); + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.query.Field.decode(reader, reader.uint32())); break; case 2: - message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); + message.rows_affected = reader.uint64(); + break; + case 3: + message.insert_id = reader.uint64(); + break; + case 4: + if (!(message.rows && message.rows.length)) + message.rows = []; + message.rows.push($root.query.Row.decode(reader, reader.uint32())); + break; + case 6: + message.info = reader.string(); + break; + case 7: + message.session_state_changes = reader.string(); break; default: reader.skipType(tag & 7); @@ -59946,661 +59926,516 @@ $root.query = (function() { }; /** - * Decodes a StreamEvent message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamEvent} StreamEvent + * @returns {query.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamEvent.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamEvent message. + * Verifies a QueryResult message. * @function verify - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamEvent.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.statements != null && message.hasOwnProperty("statements")) { - if (!Array.isArray(message.statements)) - return "statements: array expected"; - for (var i = 0; i < message.statements.length; ++i) { - var error = $root.query.StreamEvent.Statement.verify(message.statements[i]); + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.query.Field.verify(message.fields[i]); if (error) - return "statements." + error; + return "fields." + error; } } - if (message.event_token != null && message.hasOwnProperty("event_token")) { - var error = $root.query.EventToken.verify(message.event_token); - if (error) - return "event_token." + error; + if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) + if (!$util.isInteger(message.rows_affected) && !(message.rows_affected && $util.isInteger(message.rows_affected.low) && $util.isInteger(message.rows_affected.high))) + return "rows_affected: integer|Long expected"; + if (message.insert_id != null && message.hasOwnProperty("insert_id")) + if (!$util.isInteger(message.insert_id) && !(message.insert_id && $util.isInteger(message.insert_id.low) && $util.isInteger(message.insert_id.high))) + return "insert_id: integer|Long expected"; + if (message.rows != null && message.hasOwnProperty("rows")) { + if (!Array.isArray(message.rows)) + return "rows: array expected"; + for (var i = 0; i < message.rows.length; ++i) { + var error = $root.query.Row.verify(message.rows[i]); + if (error) + return "rows." + error; + } } + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamEvent + * @memberof query.QueryResult * @static * @param {Object.} object Plain object - * @returns {query.StreamEvent} StreamEvent + * @returns {query.QueryResult} QueryResult */ - StreamEvent.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamEvent) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryResult) return object; - var message = new $root.query.StreamEvent(); - if (object.statements) { - if (!Array.isArray(object.statements)) - throw TypeError(".query.StreamEvent.statements: array expected"); - message.statements = []; - for (var i = 0; i < object.statements.length; ++i) { - if (typeof object.statements[i] !== "object") - throw TypeError(".query.StreamEvent.statements: object expected"); - message.statements[i] = $root.query.StreamEvent.Statement.fromObject(object.statements[i]); + var message = new $root.query.QueryResult(); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".query.QueryResult.fields: array expected"); + message.fields = []; + for (var i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".query.QueryResult.fields: object expected"); + message.fields[i] = $root.query.Field.fromObject(object.fields[i]); } } - if (object.event_token != null) { - if (typeof object.event_token !== "object") - throw TypeError(".query.StreamEvent.event_token: object expected"); - message.event_token = $root.query.EventToken.fromObject(object.event_token); - } - return message; - }; - - /** - * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. - * @function toObject - * @memberof query.StreamEvent - * @static - * @param {query.StreamEvent} message StreamEvent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StreamEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.statements = []; - if (options.defaults) - object.event_token = null; - if (message.statements && message.statements.length) { - object.statements = []; - for (var j = 0; j < message.statements.length; ++j) - object.statements[j] = $root.query.StreamEvent.Statement.toObject(message.statements[j], options); - } - if (message.event_token != null && message.hasOwnProperty("event_token")) - object.event_token = $root.query.EventToken.toObject(message.event_token, options); + if (object.rows_affected != null) + if ($util.Long) + (message.rows_affected = $util.Long.fromValue(object.rows_affected)).unsigned = true; + else if (typeof object.rows_affected === "string") + message.rows_affected = parseInt(object.rows_affected, 10); + else if (typeof object.rows_affected === "number") + message.rows_affected = object.rows_affected; + else if (typeof object.rows_affected === "object") + message.rows_affected = new $util.LongBits(object.rows_affected.low >>> 0, object.rows_affected.high >>> 0).toNumber(true); + if (object.insert_id != null) + if ($util.Long) + (message.insert_id = $util.Long.fromValue(object.insert_id)).unsigned = true; + else if (typeof object.insert_id === "string") + message.insert_id = parseInt(object.insert_id, 10); + else if (typeof object.insert_id === "number") + message.insert_id = object.insert_id; + else if (typeof object.insert_id === "object") + message.insert_id = new $util.LongBits(object.insert_id.low >>> 0, object.insert_id.high >>> 0).toNumber(true); + if (object.rows) { + if (!Array.isArray(object.rows)) + throw TypeError(".query.QueryResult.rows: array expected"); + message.rows = []; + for (var i = 0; i < object.rows.length; ++i) { + if (typeof object.rows[i] !== "object") + throw TypeError(".query.QueryResult.rows: object expected"); + message.rows[i] = $root.query.Row.fromObject(object.rows[i]); + } + } + if (object.info != null) + message.info = String(object.info); + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; + }; + + /** + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @function toObject + * @memberof query.QueryResult + * @static + * @param {query.QueryResult} message QueryResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.fields = []; + object.rows = []; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.rows_affected = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.rows_affected = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.insert_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.insert_id = options.longs === String ? "0" : 0; + object.info = ""; + object.session_state_changes = ""; + } + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.query.Field.toObject(message.fields[j], options); + } + if (message.rows_affected != null && message.hasOwnProperty("rows_affected")) + if (typeof message.rows_affected === "number") + object.rows_affected = options.longs === String ? String(message.rows_affected) : message.rows_affected; + else + object.rows_affected = options.longs === String ? $util.Long.prototype.toString.call(message.rows_affected) : options.longs === Number ? new $util.LongBits(message.rows_affected.low >>> 0, message.rows_affected.high >>> 0).toNumber(true) : message.rows_affected; + if (message.insert_id != null && message.hasOwnProperty("insert_id")) + if (typeof message.insert_id === "number") + object.insert_id = options.longs === String ? String(message.insert_id) : message.insert_id; + else + object.insert_id = options.longs === String ? $util.Long.prototype.toString.call(message.insert_id) : options.longs === Number ? new $util.LongBits(message.insert_id.low >>> 0, message.insert_id.high >>> 0).toNumber(true) : message.insert_id; + if (message.rows && message.rows.length) { + object.rows = []; + for (var j = 0; j < message.rows.length; ++j) + object.rows[j] = $root.query.Row.toObject(message.rows[j], options); + } + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this StreamEvent to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof query.StreamEvent + * @memberof query.QueryResult * @instance * @returns {Object.} JSON object */ - StreamEvent.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - StreamEvent.Statement = (function() { + return QueryResult; + })(); - /** - * Properties of a Statement. - * @memberof query.StreamEvent - * @interface IStatement - * @property {query.StreamEvent.Statement.Category|null} [category] Statement category - * @property {string|null} [table_name] Statement table_name - * @property {Array.|null} [primary_key_fields] Statement primary_key_fields - * @property {Array.|null} [primary_key_values] Statement primary_key_values - * @property {Uint8Array|null} [sql] Statement sql - */ + query.QueryWarning = (function() { - /** - * Constructs a new Statement. - * @memberof query.StreamEvent - * @classdesc Represents a Statement. - * @implements IStatement - * @constructor - * @param {query.StreamEvent.IStatement=} [properties] Properties to set - */ - function Statement(properties) { - this.primary_key_fields = []; - this.primary_key_values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryWarning. + * @memberof query + * @interface IQueryWarning + * @property {number|null} [code] QueryWarning code + * @property {string|null} [message] QueryWarning message + */ - /** - * Statement category. - * @member {query.StreamEvent.Statement.Category} category - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.category = 0; + /** + * Constructs a new QueryWarning. + * @memberof query + * @classdesc Represents a QueryWarning. + * @implements IQueryWarning + * @constructor + * @param {query.IQueryWarning=} [properties] Properties to set + */ + function QueryWarning(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Statement table_name. - * @member {string} table_name - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.table_name = ""; + /** + * QueryWarning code. + * @member {number} code + * @memberof query.QueryWarning + * @instance + */ + QueryWarning.prototype.code = 0; - /** - * Statement primary_key_fields. - * @member {Array.} primary_key_fields - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.primary_key_fields = $util.emptyArray; + /** + * QueryWarning message. + * @member {string} message + * @memberof query.QueryWarning + * @instance + */ + QueryWarning.prototype.message = ""; - /** - * Statement primary_key_values. - * @member {Array.} primary_key_values - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.primary_key_values = $util.emptyArray; + /** + * Creates a new QueryWarning instance using the specified properties. + * @function create + * @memberof query.QueryWarning + * @static + * @param {query.IQueryWarning=} [properties] Properties to set + * @returns {query.QueryWarning} QueryWarning instance + */ + QueryWarning.create = function create(properties) { + return new QueryWarning(properties); + }; - /** - * Statement sql. - * @member {Uint8Array} sql - * @memberof query.StreamEvent.Statement - * @instance - */ - Statement.prototype.sql = $util.newBuffer([]); + /** + * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @function encode + * @memberof query.QueryWarning + * @static + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryWarning.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; - /** - * Creates a new Statement instance using the specified properties. - * @function create - * @memberof query.StreamEvent.Statement - * @static - * @param {query.StreamEvent.IStatement=} [properties] Properties to set - * @returns {query.StreamEvent.Statement} Statement instance - */ - Statement.create = function create(properties) { - return new Statement(properties); - }; + /** + * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. + * @function encodeDelimited + * @memberof query.QueryWarning + * @static + * @param {query.IQueryWarning} message QueryWarning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryWarning.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @function encode - * @memberof query.StreamEvent.Statement - * @static - * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Statement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.category != null && Object.hasOwnProperty.call(message, "category")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); - if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); - if (message.primary_key_fields != null && message.primary_key_fields.length) - for (var i = 0; i < message.primary_key_fields.length; ++i) - $root.query.Field.encode(message.primary_key_fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.primary_key_values != null && message.primary_key_values.length) - for (var i = 0; i < message.primary_key_values.length; ++i) - $root.query.Row.encode(message.primary_key_values[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.sql); - return writer; - }; - - /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @function encodeDelimited - * @memberof query.StreamEvent.Statement - * @static - * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Statement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Statement message from the specified reader or buffer. - * @function decode - * @memberof query.StreamEvent.Statement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.StreamEvent.Statement} Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Statement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.category = reader.int32(); - break; - case 2: - message.table_name = reader.string(); - break; - case 3: - if (!(message.primary_key_fields && message.primary_key_fields.length)) - message.primary_key_fields = []; - message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.primary_key_values && message.primary_key_values.length)) - message.primary_key_values = []; - message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); - break; - case 5: - message.sql = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Statement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.StreamEvent.Statement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamEvent.Statement} Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Statement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Statement message. - * @function verify - * @memberof query.StreamEvent.Statement - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Statement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { - default: - return "category: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.table_name != null && message.hasOwnProperty("table_name")) - if (!$util.isString(message.table_name)) - return "table_name: string expected"; - if (message.primary_key_fields != null && message.hasOwnProperty("primary_key_fields")) { - if (!Array.isArray(message.primary_key_fields)) - return "primary_key_fields: array expected"; - for (var i = 0; i < message.primary_key_fields.length; ++i) { - var error = $root.query.Field.verify(message.primary_key_fields[i]); - if (error) - return "primary_key_fields." + error; - } - } - if (message.primary_key_values != null && message.hasOwnProperty("primary_key_values")) { - if (!Array.isArray(message.primary_key_values)) - return "primary_key_values: array expected"; - for (var i = 0; i < message.primary_key_values.length; ++i) { - var error = $root.query.Row.verify(message.primary_key_values[i]); - if (error) - return "primary_key_values." + error; - } - } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) - return "sql: buffer expected"; - return null; - }; - - /** - * Creates a Statement message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.StreamEvent.Statement - * @static - * @param {Object.} object Plain object - * @returns {query.StreamEvent.Statement} Statement - */ - Statement.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamEvent.Statement) - return object; - var message = new $root.query.StreamEvent.Statement(); - switch (object.category) { - case "Error": - case 0: - message.category = 0; - break; - case "DML": + /** + * Decodes a QueryWarning message from the specified reader or buffer. + * @function decode + * @memberof query.QueryWarning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.QueryWarning} QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryWarning.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.QueryWarning(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - message.category = 1; + message.code = reader.uint32(); break; - case "DDL": case 2: - message.category = 2; + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); break; } - if (object.table_name != null) - message.table_name = String(object.table_name); - if (object.primary_key_fields) { - if (!Array.isArray(object.primary_key_fields)) - throw TypeError(".query.StreamEvent.Statement.primary_key_fields: array expected"); - message.primary_key_fields = []; - for (var i = 0; i < object.primary_key_fields.length; ++i) { - if (typeof object.primary_key_fields[i] !== "object") - throw TypeError(".query.StreamEvent.Statement.primary_key_fields: object expected"); - message.primary_key_fields[i] = $root.query.Field.fromObject(object.primary_key_fields[i]); - } - } - if (object.primary_key_values) { - if (!Array.isArray(object.primary_key_values)) - throw TypeError(".query.StreamEvent.Statement.primary_key_values: array expected"); - message.primary_key_values = []; - for (var i = 0; i < object.primary_key_values.length; ++i) { - if (typeof object.primary_key_values[i] !== "object") - throw TypeError(".query.StreamEvent.Statement.primary_key_values: object expected"); - message.primary_key_values[i] = $root.query.Row.fromObject(object.primary_key_values[i]); - } - } - if (object.sql != null) - if (typeof object.sql === "string") - $util.base64.decode(object.sql, message.sql = $util.newBuffer($util.base64.length(object.sql)), 0); - else if (object.sql.length) - message.sql = object.sql; - return message; - }; - - /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. - * @function toObject - * @memberof query.StreamEvent.Statement - * @static - * @param {query.StreamEvent.Statement} message Statement - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Statement.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.primary_key_fields = []; - object.primary_key_values = []; - } - if (options.defaults) { - object.category = options.enums === String ? "Error" : 0; - object.table_name = ""; - if (options.bytes === String) - object.sql = ""; - else { - object.sql = []; - if (options.bytes !== Array) - object.sql = $util.newBuffer(object.sql); - } - } - if (message.category != null && message.hasOwnProperty("category")) - object.category = options.enums === String ? $root.query.StreamEvent.Statement.Category[message.category] : message.category; - if (message.table_name != null && message.hasOwnProperty("table_name")) - object.table_name = message.table_name; - if (message.primary_key_fields && message.primary_key_fields.length) { - object.primary_key_fields = []; - for (var j = 0; j < message.primary_key_fields.length; ++j) - object.primary_key_fields[j] = $root.query.Field.toObject(message.primary_key_fields[j], options); - } - if (message.primary_key_values && message.primary_key_values.length) { - object.primary_key_values = []; - for (var j = 0; j < message.primary_key_values.length; ++j) - object.primary_key_values[j] = $root.query.Row.toObject(message.primary_key_values[j], options); - } - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; - return object; - }; - - /** - * Converts this Statement to JSON. - * @function toJSON - * @memberof query.StreamEvent.Statement - * @instance - * @returns {Object.} JSON object - */ - Statement.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Category enum. - * @name query.StreamEvent.Statement.Category - * @enum {number} - * @property {number} Error=0 Error value - * @property {number} DML=1 DML value - * @property {number} DDL=2 DDL value - */ - Statement.Category = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Error"] = 0; - values[valuesById[1] = "DML"] = 1; - values[valuesById[2] = "DDL"] = 2; - return values; - })(); - - return Statement; - })(); - - return StreamEvent; - })(); - - query.ExecuteRequest = (function() { + } + return message; + }; /** - * Properties of an ExecuteRequest. - * @memberof query - * @interface IExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ExecuteRequest target - * @property {query.IBoundQuery|null} [query] ExecuteRequest query - * @property {number|Long|null} [transaction_id] ExecuteRequest transaction_id - * @property {query.IExecuteOptions|null} [options] ExecuteRequest options - * @property {number|Long|null} [reserved_id] ExecuteRequest reserved_id + * Decodes a QueryWarning message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.QueryWarning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.QueryWarning} QueryWarning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + QueryWarning.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Constructs a new ExecuteRequest. - * @memberof query - * @classdesc Represents an ExecuteRequest. - * @implements IExecuteRequest - * @constructor - * @param {query.IExecuteRequest=} [properties] Properties to set + * Verifies a QueryWarning message. + * @function verify + * @memberof query.QueryWarning + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - function ExecuteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryWarning.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; /** - * ExecuteRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ExecuteRequest - * @instance + * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.QueryWarning + * @static + * @param {Object.} object Plain object + * @returns {query.QueryWarning} QueryWarning */ - ExecuteRequest.prototype.effective_caller_id = null; + QueryWarning.fromObject = function fromObject(object) { + if (object instanceof $root.query.QueryWarning) + return object; + var message = new $root.query.QueryWarning(); + if (object.code != null) + message.code = object.code >>> 0; + if (object.message != null) + message.message = String(object.message); + return message; + }; /** - * ExecuteRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ExecuteRequest - * @instance + * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. + * @function toObject + * @memberof query.QueryWarning + * @static + * @param {query.QueryWarning} message QueryWarning + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ExecuteRequest.prototype.immediate_caller_id = null; + QueryWarning.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.code = 0; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + return object; + }; /** - * ExecuteRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.ExecuteRequest + * Converts this QueryWarning to JSON. + * @function toJSON + * @memberof query.QueryWarning * @instance + * @returns {Object.} JSON object */ - ExecuteRequest.prototype.target = null; + QueryWarning.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryWarning; + })(); + + query.StreamEvent = (function() { /** - * ExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ExecuteRequest - * @instance + * Properties of a StreamEvent. + * @memberof query + * @interface IStreamEvent + * @property {Array.|null} [statements] StreamEvent statements + * @property {query.IEventToken|null} [event_token] StreamEvent event_token */ - ExecuteRequest.prototype.query = null; /** - * ExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ExecuteRequest - * @instance + * Constructs a new StreamEvent. + * @memberof query + * @classdesc Represents a StreamEvent. + * @implements IStreamEvent + * @constructor + * @param {query.IStreamEvent=} [properties] Properties to set */ - ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + function StreamEvent(properties) { + this.statements = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ExecuteRequest + * StreamEvent statements. + * @member {Array.} statements + * @memberof query.StreamEvent * @instance */ - ExecuteRequest.prototype.options = null; + StreamEvent.prototype.statements = $util.emptyArray; /** - * ExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ExecuteRequest + * StreamEvent event_token. + * @member {query.IEventToken|null|undefined} event_token + * @memberof query.StreamEvent * @instance */ - ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StreamEvent.prototype.event_token = null; /** - * Creates a new ExecuteRequest instance using the specified properties. + * Creates a new StreamEvent instance using the specified properties. * @function create - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static - * @param {query.IExecuteRequest=} [properties] Properties to set - * @returns {query.ExecuteRequest} ExecuteRequest instance + * @param {query.IStreamEvent=} [properties] Properties to set + * @returns {query.StreamEvent} StreamEvent instance */ - ExecuteRequest.create = function create(properties) { - return new ExecuteRequest(properties); + StreamEvent.create = function create(properties) { + return new StreamEvent(properties); }; /** - * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encode - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static - * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode + * @param {query.IStreamEvent} message StreamEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.encode = function encode(message, writer) { + StreamEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + if (message.statements != null && message.statements.length) + for (var i = 0; i < message.statements.length; ++i) + $root.query.StreamEvent.Statement.encode(message.statements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.event_token != null && Object.hasOwnProperty.call(message, "event_token")) + $root.query.EventToken.encode(message.event_token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. + * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. * @function encodeDelimited - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static - * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode + * @param {query.IStreamEvent} message StreamEvent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteRequest message from the specified reader or buffer. + * Decodes a StreamEvent message from the specified reader or buffer. * @function decode - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {query.StreamEvent} StreamEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteRequest.decode = function decode(reader, length) { + StreamEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + if (!(message.statements && message.statements.length)) + message.statements = []; + message.statements.push($root.query.StreamEvent.Statement.decode(reader, reader.uint32())); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.transaction_id = reader.int64(); - break; - case 6: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 7: - message.reserved_id = reader.int64(); + message.event_token = $root.query.EventToken.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60611,627 +60446,507 @@ $root.query = (function() { }; /** - * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {query.StreamEvent} StreamEvent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + StreamEvent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteRequest message. + * Verifies a StreamEvent message. * @function verify - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteRequest.verify = function verify(message) { + StreamEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; + if (message.statements != null && message.hasOwnProperty("statements")) { + if (!Array.isArray(message.statements)) + return "statements: array expected"; + for (var i = 0; i < message.statements.length; ++i) { + var error = $root.query.StreamEvent.Statement.verify(message.statements[i]); + if (error) + return "statements." + error; + } } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); + if (message.event_token != null && message.hasOwnProperty("event_token")) { + var error = $root.query.EventToken.verify(message.event_token); if (error) - return "options." + error; + return "event_token." + error; } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; return null; }; /** - * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static * @param {Object.} object Plain object - * @returns {query.ExecuteRequest} ExecuteRequest + * @returns {query.StreamEvent} StreamEvent */ - ExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteRequest) + StreamEvent.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamEvent) return object; - var message = new $root.query.ExecuteRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ExecuteRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.ExecuteRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); + var message = new $root.query.StreamEvent(); + if (object.statements) { + if (!Array.isArray(object.statements)) + throw TypeError(".query.StreamEvent.statements: array expected"); + message.statements = []; + for (var i = 0; i < object.statements.length; ++i) { + if (typeof object.statements[i] !== "object") + throw TypeError(".query.StreamEvent.statements: object expected"); + message.statements[i] = $root.query.StreamEvent.Statement.fromObject(object.statements[i]); + } } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); + if (object.event_token != null) { + if (typeof object.event_token !== "object") + throw TypeError(".query.StreamEvent.event_token: object expected"); + message.event_token = $root.query.EventToken.fromObject(object.event_token); } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. * @function toObject - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @static - * @param {query.ExecuteRequest} message ExecuteRequest + * @param {query.StreamEvent} message StreamEvent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteRequest.toObject = function toObject(message, options) { + StreamEvent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.query = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.statements = []; + if (options.defaults) + object.event_token = null; + if (message.statements && message.statements.length) { + object.statements = []; + for (var j = 0; j < message.statements.length; ++j) + object.statements[j] = $root.query.StreamEvent.Statement.toObject(message.statements[j], options); } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.event_token != null && message.hasOwnProperty("event_token")) + object.event_token = $root.query.EventToken.toObject(message.event_token, options); return object; }; /** - * Converts this ExecuteRequest to JSON. + * Converts this StreamEvent to JSON. * @function toJSON - * @memberof query.ExecuteRequest + * @memberof query.StreamEvent * @instance * @returns {Object.} JSON object */ - ExecuteRequest.prototype.toJSON = function toJSON() { + StreamEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteRequest; - })(); - - query.ExecuteResponse = (function() { + StreamEvent.Statement = (function() { - /** - * Properties of an ExecuteResponse. - * @memberof query - * @interface IExecuteResponse - * @property {query.IQueryResult|null} [result] ExecuteResponse result - */ + /** + * Properties of a Statement. + * @memberof query.StreamEvent + * @interface IStatement + * @property {query.StreamEvent.Statement.Category|null} [category] Statement category + * @property {string|null} [table_name] Statement table_name + * @property {Array.|null} [primary_key_fields] Statement primary_key_fields + * @property {Array.|null} [primary_key_values] Statement primary_key_values + * @property {Uint8Array|null} [sql] Statement sql + */ - /** - * Constructs a new ExecuteResponse. - * @memberof query - * @classdesc Represents an ExecuteResponse. - * @implements IExecuteResponse - * @constructor - * @param {query.IExecuteResponse=} [properties] Properties to set - */ - function ExecuteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Statement. + * @memberof query.StreamEvent + * @classdesc Represents a Statement. + * @implements IStatement + * @constructor + * @param {query.StreamEvent.IStatement=} [properties] Properties to set + */ + function Statement(properties) { + this.primary_key_fields = []; + this.primary_key_values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ExecuteResponse - * @instance - */ - ExecuteResponse.prototype.result = null; - - /** - * Creates a new ExecuteResponse instance using the specified properties. - * @function create - * @memberof query.ExecuteResponse - * @static - * @param {query.IExecuteResponse=} [properties] Properties to set - * @returns {query.ExecuteResponse} ExecuteResponse instance - */ - ExecuteResponse.create = function create(properties) { - return new ExecuteResponse(properties); - }; - - /** - * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @function encode - * @memberof query.ExecuteResponse - * @static - * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof query.ExecuteResponse - * @static - * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer. - * @function decode - * @memberof query.ExecuteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.ExecuteResponse} ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.ExecuteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ExecuteResponse} ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Statement category. + * @member {query.StreamEvent.Statement.Category} category + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.category = 0; - /** - * Verifies an ExecuteResponse message. - * @function verify - * @memberof query.ExecuteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecuteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; + /** + * Statement table_name. + * @member {string} table_name + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.table_name = ""; - /** - * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.ExecuteResponse - * @static - * @param {Object.} object Plain object - * @returns {query.ExecuteResponse} ExecuteResponse - */ - ExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ExecuteResponse) - return object; - var message = new $root.query.ExecuteResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; - }; + /** + * Statement primary_key_fields. + * @member {Array.} primary_key_fields + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_fields = $util.emptyArray; - /** - * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.ExecuteResponse - * @static - * @param {query.ExecuteResponse} message ExecuteResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExecuteResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; - }; + /** + * Statement primary_key_values. + * @member {Array.} primary_key_values + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.primary_key_values = $util.emptyArray; - /** - * Converts this ExecuteResponse to JSON. - * @function toJSON - * @memberof query.ExecuteResponse - * @instance - * @returns {Object.} JSON object - */ - ExecuteResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Statement sql. + * @member {Uint8Array} sql + * @memberof query.StreamEvent.Statement + * @instance + */ + Statement.prototype.sql = $util.newBuffer([]); - return ExecuteResponse; - })(); + /** + * Creates a new Statement instance using the specified properties. + * @function create + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement=} [properties] Properties to set + * @returns {query.StreamEvent.Statement} Statement instance + */ + Statement.create = function create(properties) { + return new Statement(properties); + }; - query.ResultWithError = (function() { + /** + * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @function encode + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Statement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.category != null && Object.hasOwnProperty.call(message, "category")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.category); + if (message.table_name != null && Object.hasOwnProperty.call(message, "table_name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.table_name); + if (message.primary_key_fields != null && message.primary_key_fields.length) + for (var i = 0; i < message.primary_key_fields.length; ++i) + $root.query.Field.encode(message.primary_key_fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.primary_key_values != null && message.primary_key_values.length) + for (var i = 0; i < message.primary_key_values.length; ++i) + $root.query.Row.encode(message.primary_key_values[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.sql); + return writer; + }; - /** - * Properties of a ResultWithError. - * @memberof query - * @interface IResultWithError - * @property {vtrpc.IRPCError|null} [error] ResultWithError error - * @property {query.IQueryResult|null} [result] ResultWithError result - */ + /** + * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. + * @function encodeDelimited + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.IStatement} message Statement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Statement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Constructs a new ResultWithError. - * @memberof query - * @classdesc Represents a ResultWithError. - * @implements IResultWithError - * @constructor - * @param {query.IResultWithError=} [properties] Properties to set - */ - function ResultWithError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResultWithError error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ResultWithError - * @instance - */ - ResultWithError.prototype.error = null; - - /** - * ResultWithError result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.ResultWithError - * @instance - */ - ResultWithError.prototype.result = null; - - /** - * Creates a new ResultWithError instance using the specified properties. - * @function create - * @memberof query.ResultWithError - * @static - * @param {query.IResultWithError=} [properties] Properties to set - * @returns {query.ResultWithError} ResultWithError instance - */ - ResultWithError.create = function create(properties) { - return new ResultWithError(properties); - }; + /** + * Decodes a Statement message from the specified reader or buffer. + * @function decode + * @memberof query.StreamEvent.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.StreamEvent.Statement} Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Statement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamEvent.Statement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.category = reader.int32(); + break; + case 2: + message.table_name = reader.string(); + break; + case 3: + if (!(message.primary_key_fields && message.primary_key_fields.length)) + message.primary_key_fields = []; + message.primary_key_fields.push($root.query.Field.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.primary_key_values && message.primary_key_values.length)) + message.primary_key_values = []; + message.primary_key_values.push($root.query.Row.decode(reader, reader.uint32())); + break; + case 5: + message.sql = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @function encode - * @memberof query.ResultWithError - * @static - * @param {query.IResultWithError} message ResultWithError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResultWithError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Decodes a Statement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.StreamEvent.Statement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.StreamEvent.Statement} Statement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Statement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @function encodeDelimited - * @memberof query.ResultWithError - * @static - * @param {query.IResultWithError} message ResultWithError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Statement message. + * @function verify + * @memberof query.StreamEvent.Statement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Statement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.category != null && message.hasOwnProperty("category")) + switch (message.category) { + default: + return "category: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.table_name != null && message.hasOwnProperty("table_name")) + if (!$util.isString(message.table_name)) + return "table_name: string expected"; + if (message.primary_key_fields != null && message.hasOwnProperty("primary_key_fields")) { + if (!Array.isArray(message.primary_key_fields)) + return "primary_key_fields: array expected"; + for (var i = 0; i < message.primary_key_fields.length; ++i) { + var error = $root.query.Field.verify(message.primary_key_fields[i]); + if (error) + return "primary_key_fields." + error; + } + } + if (message.primary_key_values != null && message.hasOwnProperty("primary_key_values")) { + if (!Array.isArray(message.primary_key_values)) + return "primary_key_values: array expected"; + for (var i = 0; i < message.primary_key_values.length; ++i) { + var error = $root.query.Row.verify(message.primary_key_values[i]); + if (error) + return "primary_key_values." + error; + } + } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!(message.sql && typeof message.sql.length === "number" || $util.isString(message.sql))) + return "sql: buffer expected"; + return null; + }; - /** - * Decodes a ResultWithError message from the specified reader or buffer. - * @function decode - * @memberof query.ResultWithError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.ResultWithError} ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResultWithError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Creates a Statement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.StreamEvent.Statement + * @static + * @param {Object.} object Plain object + * @returns {query.StreamEvent.Statement} Statement + */ + Statement.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamEvent.Statement) + return object; + var message = new $root.query.StreamEvent.Statement(); + switch (object.category) { + case "Error": + case 0: + message.category = 0; + break; + case "DML": case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + message.category = 1; break; + case "DDL": case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); + message.category = 2; break; } - } - return message; - }; + if (object.table_name != null) + message.table_name = String(object.table_name); + if (object.primary_key_fields) { + if (!Array.isArray(object.primary_key_fields)) + throw TypeError(".query.StreamEvent.Statement.primary_key_fields: array expected"); + message.primary_key_fields = []; + for (var i = 0; i < object.primary_key_fields.length; ++i) { + if (typeof object.primary_key_fields[i] !== "object") + throw TypeError(".query.StreamEvent.Statement.primary_key_fields: object expected"); + message.primary_key_fields[i] = $root.query.Field.fromObject(object.primary_key_fields[i]); + } + } + if (object.primary_key_values) { + if (!Array.isArray(object.primary_key_values)) + throw TypeError(".query.StreamEvent.Statement.primary_key_values: array expected"); + message.primary_key_values = []; + for (var i = 0; i < object.primary_key_values.length; ++i) { + if (typeof object.primary_key_values[i] !== "object") + throw TypeError(".query.StreamEvent.Statement.primary_key_values: object expected"); + message.primary_key_values[i] = $root.query.Row.fromObject(object.primary_key_values[i]); + } + } + if (object.sql != null) + if (typeof object.sql === "string") + $util.base64.decode(object.sql, message.sql = $util.newBuffer($util.base64.length(object.sql)), 0); + else if (object.sql.length) + message.sql = object.sql; + return message; + }; - /** - * Decodes a ResultWithError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.ResultWithError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ResultWithError} ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResultWithError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResultWithError message. - * @function verify - * @memberof query.ResultWithError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResultWithError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - return null; - }; - - /** - * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.ResultWithError - * @static - * @param {Object.} object Plain object - * @returns {query.ResultWithError} ResultWithError - */ - ResultWithError.fromObject = function fromObject(object) { - if (object instanceof $root.query.ResultWithError) + /** + * Creates a plain object from a Statement message. Also converts values to other types if specified. + * @function toObject + * @memberof query.StreamEvent.Statement + * @static + * @param {query.StreamEvent.Statement} message Statement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Statement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.primary_key_fields = []; + object.primary_key_values = []; + } + if (options.defaults) { + object.category = options.enums === String ? "Error" : 0; + object.table_name = ""; + if (options.bytes === String) + object.sql = ""; + else { + object.sql = []; + if (options.bytes !== Array) + object.sql = $util.newBuffer(object.sql); + } + } + if (message.category != null && message.hasOwnProperty("category")) + object.category = options.enums === String ? $root.query.StreamEvent.Statement.Category[message.category] : message.category; + if (message.table_name != null && message.hasOwnProperty("table_name")) + object.table_name = message.table_name; + if (message.primary_key_fields && message.primary_key_fields.length) { + object.primary_key_fields = []; + for (var j = 0; j < message.primary_key_fields.length; ++j) + object.primary_key_fields[j] = $root.query.Field.toObject(message.primary_key_fields[j], options); + } + if (message.primary_key_values && message.primary_key_values.length) { + object.primary_key_values = []; + for (var j = 0; j < message.primary_key_values.length; ++j) + object.primary_key_values[j] = $root.query.Row.toObject(message.primary_key_values[j], options); + } + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = options.bytes === String ? $util.base64.encode(message.sql, 0, message.sql.length) : options.bytes === Array ? Array.prototype.slice.call(message.sql) : message.sql; return object; - var message = new $root.query.ResultWithError(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ResultWithError.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.ResultWithError.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - return message; - }; + }; - /** - * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. - * @function toObject - * @memberof query.ResultWithError - * @static - * @param {query.ResultWithError} message ResultWithError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResultWithError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - return object; - }; + /** + * Converts this Statement to JSON. + * @function toJSON + * @memberof query.StreamEvent.Statement + * @instance + * @returns {Object.} JSON object + */ + Statement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ResultWithError to JSON. - * @function toJSON - * @memberof query.ResultWithError - * @instance - * @returns {Object.} JSON object - */ - ResultWithError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Category enum. + * @name query.StreamEvent.Statement.Category + * @enum {number} + * @property {number} Error=0 Error value + * @property {number} DML=1 DML value + * @property {number} DDL=2 DDL value + */ + Statement.Category = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Error"] = 0; + values[valuesById[1] = "DML"] = 1; + values[valuesById[2] = "DDL"] = 2; + return values; + })(); - return ResultWithError; + return Statement; + })(); + + return StreamEvent; })(); - query.StreamExecuteRequest = (function() { + query.ExecuteRequest = (function() { /** - * Properties of a StreamExecuteRequest. + * Properties of an ExecuteRequest. * @memberof query - * @interface IStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] StreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] StreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] StreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] StreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] StreamExecuteRequest options - * @property {number|Long|null} [transaction_id] StreamExecuteRequest transaction_id - * @property {number|Long|null} [reserved_id] StreamExecuteRequest reserved_id + * @interface IExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ExecuteRequest target + * @property {query.IBoundQuery|null} [query] ExecuteRequest query + * @property {number|Long|null} [transaction_id] ExecuteRequest transaction_id + * @property {query.IExecuteOptions|null} [options] ExecuteRequest options + * @property {number|Long|null} [reserved_id] ExecuteRequest reserved_id */ /** - * Constructs a new StreamExecuteRequest. + * Constructs a new ExecuteRequest. * @memberof query - * @classdesc Represents a StreamExecuteRequest. - * @implements IStreamExecuteRequest + * @classdesc Represents an ExecuteRequest. + * @implements IExecuteRequest * @constructor - * @param {query.IStreamExecuteRequest=} [properties] Properties to set + * @param {query.IExecuteRequest=} [properties] Properties to set */ - function StreamExecuteRequest(properties) { + function ExecuteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61239,83 +60954,83 @@ $root.query = (function() { } /** - * StreamExecuteRequest effective_caller_id. + * ExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.effective_caller_id = null; + ExecuteRequest.prototype.effective_caller_id = null; /** - * StreamExecuteRequest immediate_caller_id. + * ExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.immediate_caller_id = null; + ExecuteRequest.prototype.immediate_caller_id = null; /** - * StreamExecuteRequest target. + * ExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.target = null; + ExecuteRequest.prototype.target = null; /** - * StreamExecuteRequest query. + * ExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.query = null; + ExecuteRequest.prototype.query = null; /** - * StreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.StreamExecuteRequest + * ExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.options = null; + ExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StreamExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.StreamExecuteRequest + * ExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteRequest.prototype.options = null; /** - * StreamExecuteRequest reserved_id. + * ExecuteRequest reserved_id. * @member {number|Long} reserved_id - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance */ - StreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new StreamExecuteRequest instance using the specified properties. + * Creates a new ExecuteRequest instance using the specified properties. * @function create - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static - * @param {query.IStreamExecuteRequest=} [properties] Properties to set - * @returns {query.StreamExecuteRequest} StreamExecuteRequest instance + * @param {query.IExecuteRequest=} [properties] Properties to set + * @returns {query.ExecuteRequest} ExecuteRequest instance */ - StreamExecuteRequest.create = function create(properties) { - return new StreamExecuteRequest(properties); + ExecuteRequest.create = function create(properties) { + return new ExecuteRequest(properties); }; /** - * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static - * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode + * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteRequest.encode = function encode(message, writer) { + ExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -61326,43 +61041,43 @@ $root.query = (function() { $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.query != null && Object.hasOwnProperty.call(message, "query")) $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static - * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode + * @param {query.IExecuteRequest} message ExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer. + * Decodes an ExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.ExecuteRequest} ExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteRequest.decode = function decode(reader, length) { + ExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -61379,10 +61094,10 @@ $root.query = (function() { message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; case 6: - message.transaction_id = reader.int64(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 7: message.reserved_id = reader.int64(); @@ -61396,30 +61111,30 @@ $root.query = (function() { }; /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.ExecuteRequest} ExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamExecuteRequest message. + * Verifies an ExecuteRequest message. * @function verify - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamExecuteRequest.verify = function verify(message) { + ExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -61442,14 +61157,14 @@ $root.query = (function() { if (error) return "query." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; if (message.options != null && message.hasOwnProperty("options")) { var error = $root.query.ExecuteOptions.verify(message.options); if (error) return "options." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) return "reserved_id: integer|Long expected"; @@ -61457,42 +61172,37 @@ $root.query = (function() { }; /** - * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteRequest} StreamExecuteRequest + * @returns {query.ExecuteRequest} ExecuteRequest */ - StreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteRequest) + ExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteRequest) return object; - var message = new $root.query.StreamExecuteRequest(); + var message = new $root.query.ExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.StreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.StreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.StreamExecuteRequest.target: object expected"); + throw TypeError(".query.ExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.StreamExecuteRequest.query: object expected"); + throw TypeError(".query.ExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.StreamExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -61502,6 +61212,11 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } if (object.reserved_id != null) if ($util.Long) (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; @@ -61515,15 +61230,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @static - * @param {query.StreamExecuteRequest} message StreamExecuteRequest + * @param {query.ExecuteRequest} message ExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteRequest.toObject = function toObject(message, options) { + ExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -61532,12 +61247,12 @@ $root.query = (function() { object.immediate_caller_id = null; object.target = null; object.query = null; - object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; + object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; @@ -61552,13 +61267,13 @@ $root.query = (function() { object.target = $root.query.Target.toObject(message.target, options); if (message.query != null && message.hasOwnProperty("query")) object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (typeof message.reserved_id === "number") object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; @@ -61568,37 +61283,37 @@ $root.query = (function() { }; /** - * Converts this StreamExecuteRequest to JSON. + * Converts this ExecuteRequest to JSON. * @function toJSON - * @memberof query.StreamExecuteRequest + * @memberof query.ExecuteRequest * @instance * @returns {Object.} JSON object */ - StreamExecuteRequest.prototype.toJSON = function toJSON() { + ExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamExecuteRequest; + return ExecuteRequest; })(); - query.StreamExecuteResponse = (function() { + query.ExecuteResponse = (function() { /** - * Properties of a StreamExecuteResponse. + * Properties of an ExecuteResponse. * @memberof query - * @interface IStreamExecuteResponse - * @property {query.IQueryResult|null} [result] StreamExecuteResponse result + * @interface IExecuteResponse + * @property {query.IQueryResult|null} [result] ExecuteResponse result */ /** - * Constructs a new StreamExecuteResponse. + * Constructs a new ExecuteResponse. * @memberof query - * @classdesc Represents a StreamExecuteResponse. - * @implements IStreamExecuteResponse + * @classdesc Represents an ExecuteResponse. + * @implements IExecuteResponse * @constructor - * @param {query.IStreamExecuteResponse=} [properties] Properties to set + * @param {query.IExecuteResponse=} [properties] Properties to set */ - function StreamExecuteResponse(properties) { + function ExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61606,35 +61321,35 @@ $root.query = (function() { } /** - * StreamExecuteResponse result. + * ExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @instance */ - StreamExecuteResponse.prototype.result = null; + ExecuteResponse.prototype.result = null; /** - * Creates a new StreamExecuteResponse instance using the specified properties. + * Creates a new ExecuteResponse instance using the specified properties. * @function create - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static - * @param {query.IStreamExecuteResponse=} [properties] Properties to set - * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance + * @param {query.IExecuteResponse=} [properties] Properties to set + * @returns {query.ExecuteResponse} ExecuteResponse instance */ - StreamExecuteResponse.create = function create(properties) { - return new StreamExecuteResponse(properties); + ExecuteResponse.create = function create(properties) { + return new ExecuteResponse(properties); }; /** - * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encode = function encode(message, writer) { + ExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) @@ -61643,33 +61358,33 @@ $root.query = (function() { }; /** - * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. + * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static - * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode + * @param {query.IExecuteResponse} message ExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer. + * Decodes an ExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.ExecuteResponse} ExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteResponse.decode = function decode(reader, length) { + ExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -61685,30 +61400,30 @@ $root.query = (function() { }; /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.ExecuteResponse} ExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamExecuteResponse message. + * Verifies an ExecuteResponse message. * @function verify - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamExecuteResponse.verify = function verify(message) { + ExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.result != null && message.hasOwnProperty("result")) { @@ -61720,35 +61435,35 @@ $root.query = (function() { }; /** - * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.StreamExecuteResponse} StreamExecuteResponse + * @returns {query.ExecuteResponse} ExecuteResponse */ - StreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamExecuteResponse) + ExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ExecuteResponse) return object; - var message = new $root.query.StreamExecuteResponse(); + var message = new $root.query.ExecuteResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.StreamExecuteResponse.result: object expected"); + throw TypeError(".query.ExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @static - * @param {query.StreamExecuteResponse} message StreamExecuteResponse + * @param {query.ExecuteResponse} message ExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamExecuteResponse.toObject = function toObject(message, options) { + ExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -61760,40 +61475,38 @@ $root.query = (function() { }; /** - * Converts this StreamExecuteResponse to JSON. + * Converts this ExecuteResponse to JSON. * @function toJSON - * @memberof query.StreamExecuteResponse + * @memberof query.ExecuteResponse * @instance * @returns {Object.} JSON object */ - StreamExecuteResponse.prototype.toJSON = function toJSON() { + ExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamExecuteResponse; + return ExecuteResponse; })(); - query.BeginRequest = (function() { + query.ResultWithError = (function() { /** - * Properties of a BeginRequest. + * Properties of a ResultWithError. * @memberof query - * @interface IBeginRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginRequest target - * @property {query.IExecuteOptions|null} [options] BeginRequest options + * @interface IResultWithError + * @property {vtrpc.IRPCError|null} [error] ResultWithError error + * @property {query.IQueryResult|null} [result] ResultWithError result */ /** - * Constructs a new BeginRequest. + * Constructs a new ResultWithError. * @memberof query - * @classdesc Represents a BeginRequest. - * @implements IBeginRequest + * @classdesc Represents a ResultWithError. + * @implements IResultWithError * @constructor - * @param {query.IBeginRequest=} [properties] Properties to set + * @param {query.IResultWithError=} [properties] Properties to set */ - function BeginRequest(properties) { + function ResultWithError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61801,114 +61514,88 @@ $root.query = (function() { } /** - * BeginRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginRequest + * ResultWithError error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ResultWithError * @instance */ - BeginRequest.prototype.effective_caller_id = null; + ResultWithError.prototype.error = null; /** - * BeginRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginRequest + * ResultWithError result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ResultWithError * @instance */ - BeginRequest.prototype.immediate_caller_id = null; + ResultWithError.prototype.result = null; /** - * BeginRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.BeginRequest - * @instance - */ - BeginRequest.prototype.target = null; - - /** - * BeginRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginRequest - * @instance - */ - BeginRequest.prototype.options = null; - - /** - * Creates a new BeginRequest instance using the specified properties. + * Creates a new ResultWithError instance using the specified properties. * @function create - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static - * @param {query.IBeginRequest=} [properties] Properties to set - * @returns {query.BeginRequest} BeginRequest instance + * @param {query.IResultWithError=} [properties] Properties to set + * @returns {query.ResultWithError} ResultWithError instance */ - BeginRequest.create = function create(properties) { - return new BeginRequest(properties); + ResultWithError.create = function create(properties) { + return new ResultWithError(properties); }; /** - * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encode - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static - * @param {query.IBeginRequest} message BeginRequest message or plain object to encode + * @param {query.IResultWithError} message ResultWithError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginRequest.encode = function encode(message, writer) { + ResultWithError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. + * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static - * @param {query.IBeginRequest} message BeginRequest message or plain object to encode + * @param {query.IResultWithError} message ResultWithError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResultWithError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginRequest message from the specified reader or buffer. + * Decodes a ResultWithError message from the specified reader or buffer. * @function decode - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginRequest} BeginRequest + * @returns {query.ResultWithError} ResultWithError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginRequest.decode = function decode(reader, length) { + ResultWithError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ResultWithError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61919,154 +61606,132 @@ $root.query = (function() { }; /** - * Decodes a BeginRequest message from the specified reader or buffer, length delimited. + * Decodes a ResultWithError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginRequest} BeginRequest + * @returns {query.ResultWithError} ResultWithError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginRequest.decodeDelimited = function decodeDelimited(reader) { + ResultWithError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginRequest message. + * Verifies a ResultWithError message. * @function verify - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginRequest.verify = function verify(message) { + ResultWithError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); if (error) - return "target." + error; + return "error." + error; } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "options." + error; + return "result." + error; } return null; }; /** - * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static * @param {Object.} object Plain object - * @returns {query.BeginRequest} BeginRequest + * @returns {query.ResultWithError} ResultWithError */ - BeginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginRequest) + ResultWithError.fromObject = function fromObject(object) { + if (object instanceof $root.query.ResultWithError) return object; - var message = new $root.query.BeginRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.BeginRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + var message = new $root.query.ResultWithError(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ResultWithError.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ResultWithError.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @static - * @param {query.BeginRequest} message BeginRequest + * @param {query.ResultWithError} message ResultWithError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginRequest.toObject = function toObject(message, options) { + ResultWithError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.options = null; + object.error = null; + object.result = null; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this BeginRequest to JSON. + * Converts this ResultWithError to JSON. * @function toJSON - * @memberof query.BeginRequest + * @memberof query.ResultWithError * @instance * @returns {Object.} JSON object */ - BeginRequest.prototype.toJSON = function toJSON() { + ResultWithError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginRequest; + return ResultWithError; })(); - query.BeginResponse = (function() { + query.StreamExecuteRequest = (function() { /** - * Properties of a BeginResponse. + * Properties of a StreamExecuteRequest. * @memberof query - * @interface IBeginResponse - * @property {number|Long|null} [transaction_id] BeginResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginResponse tablet_alias - * @property {string|null} [session_state_changes] BeginResponse session_state_changes + * @interface IStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] StreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] StreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] StreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] StreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] StreamExecuteRequest options + * @property {number|Long|null} [transaction_id] StreamExecuteRequest transaction_id + * @property {number|Long|null} [reserved_id] StreamExecuteRequest reserved_id */ /** - * Constructs a new BeginResponse. + * Constructs a new StreamExecuteRequest. * @memberof query - * @classdesc Represents a BeginResponse. - * @implements IBeginResponse + * @classdesc Represents a StreamExecuteRequest. + * @implements IStreamExecuteRequest * @constructor - * @param {query.IBeginResponse=} [properties] Properties to set + * @param {query.IStreamExecuteRequest=} [properties] Properties to set */ - function BeginResponse(properties) { + function StreamExecuteRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62074,101 +61739,153 @@ $root.query = (function() { } /** - * BeginResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginResponse + * StreamExecuteRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.StreamExecuteRequest * @instance */ - BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StreamExecuteRequest.prototype.effective_caller_id = null; /** - * BeginResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginResponse + * StreamExecuteRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.StreamExecuteRequest * @instance */ - BeginResponse.prototype.tablet_alias = null; + StreamExecuteRequest.prototype.immediate_caller_id = null; /** - * BeginResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginResponse + * StreamExecuteRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StreamExecuteRequest * @instance */ - BeginResponse.prototype.session_state_changes = ""; + StreamExecuteRequest.prototype.target = null; /** - * Creates a new BeginResponse instance using the specified properties. - * @function create - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse=} [properties] Properties to set - * @returns {query.BeginResponse} BeginResponse instance + * StreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.StreamExecuteRequest + * @instance */ - BeginResponse.create = function create(properties) { - return new BeginResponse(properties); - }; + StreamExecuteRequest.prototype.query = null; /** - * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @function encode - * @memberof query.BeginResponse - * @static - * @param {query.IBeginResponse} message BeginResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * StreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.StreamExecuteRequest + * @instance */ - BeginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); + StreamExecuteRequest.prototype.options = null; + + /** + * StreamExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.StreamExecuteRequest + * @instance + */ + StreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * StreamExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.StreamExecuteRequest + * @instance + */ + StreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new StreamExecuteRequest instance using the specified properties. + * @function create + * @memberof query.StreamExecuteRequest + * @static + * @param {query.IStreamExecuteRequest=} [properties] Properties to set + * @returns {query.StreamExecuteRequest} StreamExecuteRequest instance + */ + StreamExecuteRequest.create = function create(properties) { + return new StreamExecuteRequest(properties); + }; + + /** + * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. + * @function encode + * @memberof query.StreamExecuteRequest + * @static + * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamExecuteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. + * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static - * @param {query.IBeginResponse} message BeginResponse message or plain object to encode + * @param {query.IStreamExecuteRequest} message StreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginResponse message from the specified reader or buffer. + * Decodes a StreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginResponse} BeginResponse + * @returns {query.StreamExecuteRequest} StreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginResponse.decode = function decode(reader, length) { + StreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.transaction_id = reader.int64(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; case 2: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); break; case 3: - message.session_state_changes = reader.string(); + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + message.transaction_id = reader.int64(); + break; + case 7: + message.reserved_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -62179,58 +61896,103 @@ $root.query = (function() { }; /** - * Decodes a BeginResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginResponse} BeginResponse + * @returns {query.StreamExecuteRequest} StreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginResponse.decodeDelimited = function decodeDelimited(reader) { + StreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginResponse message. + * Verifies a StreamExecuteRequest message. * @function verify - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginResponse.verify = function verify(message) { + StreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginResponse} BeginResponse + * @returns {query.StreamExecuteRequest} StreamExecuteRequest */ - BeginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginResponse) + StreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteRequest) return object; - var message = new $root.query.BeginResponse(); + var message = new $root.query.StreamExecuteRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.StreamExecuteRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.StreamExecuteRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.StreamExecuteRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.StreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.StreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -62240,85 +62002,103 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @static - * @param {query.BeginResponse} message BeginResponse + * @param {query.StreamExecuteRequest} message StreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginResponse.toObject = function toObject(message, options) { + StreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.query = null; + object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this BeginResponse to JSON. + * Converts this StreamExecuteRequest to JSON. * @function toJSON - * @memberof query.BeginResponse + * @memberof query.StreamExecuteRequest * @instance * @returns {Object.} JSON object */ - BeginResponse.prototype.toJSON = function toJSON() { + StreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginResponse; + return StreamExecuteRequest; })(); - query.CommitRequest = (function() { + query.StreamExecuteResponse = (function() { /** - * Properties of a CommitRequest. + * Properties of a StreamExecuteResponse. * @memberof query - * @interface ICommitRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitRequest immediate_caller_id - * @property {query.ITarget|null} [target] CommitRequest target - * @property {number|Long|null} [transaction_id] CommitRequest transaction_id + * @interface IStreamExecuteResponse + * @property {query.IQueryResult|null} [result] StreamExecuteResponse result */ /** - * Constructs a new CommitRequest. + * Constructs a new StreamExecuteResponse. * @memberof query - * @classdesc Represents a CommitRequest. - * @implements ICommitRequest + * @classdesc Represents a StreamExecuteResponse. + * @implements IStreamExecuteResponse * @constructor - * @param {query.ICommitRequest=} [properties] Properties to set + * @param {query.IStreamExecuteResponse=} [properties] Properties to set */ - function CommitRequest(properties) { + function StreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62326,114 +62106,75 @@ $root.query = (function() { } /** - * CommitRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitRequest - * @instance - */ - CommitRequest.prototype.effective_caller_id = null; - - /** - * CommitRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitRequest - * @instance - */ - CommitRequest.prototype.immediate_caller_id = null; - - /** - * CommitRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.CommitRequest - * @instance - */ - CommitRequest.prototype.target = null; - - /** - * CommitRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.CommitRequest + * StreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.StreamExecuteResponse * @instance */ - CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StreamExecuteResponse.prototype.result = null; /** - * Creates a new CommitRequest instance using the specified properties. + * Creates a new StreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICommitRequest=} [properties] Properties to set - * @returns {query.CommitRequest} CommitRequest instance + * @param {query.IStreamExecuteResponse=} [properties] Properties to set + * @returns {query.StreamExecuteResponse} StreamExecuteResponse instance */ - CommitRequest.create = function create(properties) { - return new CommitRequest(properties); + StreamExecuteResponse.create = function create(properties) { + return new StreamExecuteResponse(properties); }; /** - * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICommitRequest} message CommitRequest message or plain object to encode + * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitRequest.encode = function encode(message, writer) { + StreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. + * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static - * @param {query.ICommitRequest} message CommitRequest message or plain object to encode + * @param {query.IStreamExecuteResponse} message StreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitRequest message from the specified reader or buffer. + * Decodes a StreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitRequest} CommitRequest + * @returns {query.StreamExecuteResponse} StreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitRequest.decode = function decode(reader, length) { + StreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62444,161 +62185,115 @@ $root.query = (function() { }; /** - * Decodes a CommitRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitRequest} CommitRequest + * @returns {query.StreamExecuteResponse} StreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitRequest.decodeDelimited = function decodeDelimited(reader) { + StreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitRequest message. + * Verifies a StreamExecuteResponse message. * @function verify - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitRequest.verify = function verify(message) { + StreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); if (error) - return "target." + error; + return "result." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; return null; }; /** - * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.CommitRequest} CommitRequest + * @returns {query.StreamExecuteResponse} StreamExecuteResponse */ - CommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitRequest) + StreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamExecuteResponse) return object; - var message = new $root.query.CommitRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CommitRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.CommitRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); + var message = new $root.query.StreamExecuteResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.StreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @static - * @param {query.CommitRequest} message CommitRequest + * @param {query.StreamExecuteResponse} message StreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitRequest.toObject = function toObject(message, options) { + StreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); return object; }; /** - * Converts this CommitRequest to JSON. + * Converts this StreamExecuteResponse to JSON. * @function toJSON - * @memberof query.CommitRequest + * @memberof query.StreamExecuteResponse * @instance * @returns {Object.} JSON object */ - CommitRequest.prototype.toJSON = function toJSON() { + StreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitRequest; + return StreamExecuteResponse; })(); - query.CommitResponse = (function() { + query.BeginRequest = (function() { /** - * Properties of a CommitResponse. + * Properties of a BeginRequest. * @memberof query - * @interface ICommitResponse - * @property {number|Long|null} [reserved_id] CommitResponse reserved_id + * @interface IBeginRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginRequest target + * @property {query.IExecuteOptions|null} [options] BeginRequest options */ /** - * Constructs a new CommitResponse. + * Constructs a new BeginRequest. * @memberof query - * @classdesc Represents a CommitResponse. - * @implements ICommitResponse + * @classdesc Represents a BeginRequest. + * @implements IBeginRequest * @constructor - * @param {query.ICommitResponse=} [properties] Properties to set + * @param {query.IBeginRequest=} [properties] Properties to set */ - function CommitResponse(properties) { + function BeginRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62606,75 +62301,114 @@ $root.query = (function() { } /** - * CommitResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.CommitResponse + * BeginRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.BeginRequest * @instance */ - CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginRequest.prototype.effective_caller_id = null; /** - * Creates a new CommitResponse instance using the specified properties. - * @function create - * @memberof query.CommitResponse - * @static - * @param {query.ICommitResponse=} [properties] Properties to set - * @returns {query.CommitResponse} CommitResponse instance + * BeginRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.BeginRequest + * @instance */ - CommitResponse.create = function create(properties) { - return new CommitResponse(properties); + BeginRequest.prototype.immediate_caller_id = null; + + /** + * BeginRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.BeginRequest + * @instance + */ + BeginRequest.prototype.target = null; + + /** + * BeginRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginRequest + * @instance + */ + BeginRequest.prototype.options = null; + + /** + * Creates a new BeginRequest instance using the specified properties. + * @function create + * @memberof query.BeginRequest + * @static + * @param {query.IBeginRequest=} [properties] Properties to set + * @returns {query.BeginRequest} BeginRequest instance + */ + BeginRequest.create = function create(properties) { + return new BeginRequest(properties); }; /** - * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encode - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static - * @param {query.ICommitResponse} message CommitResponse message or plain object to encode + * @param {query.IBeginRequest} message BeginRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitResponse.encode = function encode(message, writer) { + BeginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. + * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static - * @param {query.ICommitResponse} message CommitResponse message or plain object to encode + * @param {query.IBeginRequest} message BeginRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitResponse message from the specified reader or buffer. + * Decodes a BeginRequest message from the specified reader or buffer. * @function decode - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitResponse} CommitResponse + * @returns {query.BeginRequest} BeginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitResponse.decode = function decode(reader, length) { + BeginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.reserved_id = reader.int64(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62685,124 +62419,154 @@ $root.query = (function() { }; /** - * Decodes a CommitResponse message from the specified reader or buffer, length delimited. + * Decodes a BeginRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitResponse} CommitResponse + * @returns {query.BeginRequest} BeginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitResponse.decodeDelimited = function decodeDelimited(reader) { + BeginRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitResponse message. + * Verifies a BeginRequest message. * @function verify - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitResponse.verify = function verify(message) { + BeginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static * @param {Object.} object Plain object - * @returns {query.CommitResponse} CommitResponse + * @returns {query.BeginRequest} BeginRequest */ - CommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitResponse) + BeginRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginRequest) return object; - var message = new $root.query.CommitResponse(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + var message = new $root.query.BeginRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.BeginRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.BeginRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.BeginRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.BeginRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @static - * @param {query.CommitResponse} message CommitResponse + * @param {query.BeginRequest} message BeginRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitResponse.toObject = function toObject(message, options) { + BeginRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.options = null; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); return object; }; /** - * Converts this CommitResponse to JSON. + * Converts this BeginRequest to JSON. * @function toJSON - * @memberof query.CommitResponse + * @memberof query.BeginRequest * @instance * @returns {Object.} JSON object */ - CommitResponse.prototype.toJSON = function toJSON() { + BeginRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitResponse; + return BeginRequest; })(); - query.RollbackRequest = (function() { + query.BeginResponse = (function() { /** - * Properties of a RollbackRequest. + * Properties of a BeginResponse. * @memberof query - * @interface IRollbackRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackRequest immediate_caller_id - * @property {query.ITarget|null} [target] RollbackRequest target - * @property {number|Long|null} [transaction_id] RollbackRequest transaction_id + * @interface IBeginResponse + * @property {number|Long|null} [transaction_id] BeginResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginResponse tablet_alias + * @property {string|null} [session_state_changes] BeginResponse session_state_changes */ /** - * Constructs a new RollbackRequest. + * Constructs a new BeginResponse. * @memberof query - * @classdesc Represents a RollbackRequest. - * @implements IRollbackRequest + * @classdesc Represents a BeginResponse. + * @implements IBeginResponse * @constructor - * @param {query.IRollbackRequest=} [properties] Properties to set + * @param {query.IBeginResponse=} [properties] Properties to set */ - function RollbackRequest(properties) { + function BeginResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62810,114 +62574,101 @@ $root.query = (function() { } /** - * RollbackRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackRequest + * BeginResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginResponse * @instance */ - RollbackRequest.prototype.effective_caller_id = null; + BeginResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * RollbackRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackRequest + * BeginResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.BeginResponse * @instance */ - RollbackRequest.prototype.immediate_caller_id = null; + BeginResponse.prototype.tablet_alias = null; /** - * RollbackRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.RollbackRequest + * BeginResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginResponse * @instance */ - RollbackRequest.prototype.target = null; + BeginResponse.prototype.session_state_changes = ""; /** - * RollbackRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.RollbackRequest - * @instance + * Creates a new BeginResponse instance using the specified properties. + * @function create + * @memberof query.BeginResponse + * @static + * @param {query.IBeginResponse=} [properties] Properties to set + * @returns {query.BeginResponse} BeginResponse instance */ - RollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginResponse.create = function create(properties) { + return new BeginResponse(properties); + }; /** - * Creates a new RollbackRequest instance using the specified properties. - * @function create - * @memberof query.RollbackRequest - * @static - * @param {query.IRollbackRequest=} [properties] Properties to set - * @returns {query.RollbackRequest} RollbackRequest instance - */ - RollbackRequest.create = function create(properties) { - return new RollbackRequest(properties); - }; - - /** - * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. * @function encode - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static - * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode + * @param {query.IBeginResponse} message BeginResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackRequest.encode = function encode(message, writer) { + BeginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transaction_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.session_state_changes); return writer; }; /** - * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. + * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static - * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode + * @param {query.IBeginResponse} message BeginResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackRequest message from the specified reader or buffer. + * Decodes a BeginResponse message from the specified reader or buffer. * @function decode - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.BeginResponse} BeginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackRequest.decode = function decode(reader, length) { + BeginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); + message.session_state_changes = reader.string(); break; default: reader.skipType(tag & 7); @@ -62928,80 +62679,58 @@ $root.query = (function() { }; /** - * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.BeginResponse} BeginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackRequest.decodeDelimited = function decodeDelimited(reader) { + BeginResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackRequest message. + * Verifies a BeginResponse message. * @function verify - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackRequest.verify = function verify(message) { + BeginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) return "transaction_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static * @param {Object.} object Plain object - * @returns {query.RollbackRequest} RollbackRequest + * @returns {query.BeginResponse} BeginResponse */ - RollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackRequest) + BeginResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginResponse) return object; - var message = new $root.query.RollbackRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.RollbackRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.RollbackRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.RollbackRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } + var message = new $root.query.BeginResponse(); if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -63011,78 +62740,85 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.BeginResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @static - * @param {query.RollbackRequest} message RollbackRequest + * @param {query.BeginResponse} message BeginResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackRequest.toObject = function toObject(message, options) { + BeginResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this RollbackRequest to JSON. + * Converts this BeginResponse to JSON. * @function toJSON - * @memberof query.RollbackRequest + * @memberof query.BeginResponse * @instance * @returns {Object.} JSON object */ - RollbackRequest.prototype.toJSON = function toJSON() { + BeginResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackRequest; + return BeginResponse; })(); - query.RollbackResponse = (function() { + query.CommitRequest = (function() { /** - * Properties of a RollbackResponse. + * Properties of a CommitRequest. * @memberof query - * @interface IRollbackResponse - * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id + * @interface ICommitRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitRequest immediate_caller_id + * @property {query.ITarget|null} [target] CommitRequest target + * @property {number|Long|null} [transaction_id] CommitRequest transaction_id */ /** - * Constructs a new RollbackResponse. + * Constructs a new CommitRequest. * @memberof query - * @classdesc Represents a RollbackResponse. - * @implements IRollbackResponse + * @classdesc Represents a CommitRequest. + * @implements ICommitRequest * @constructor - * @param {query.IRollbackResponse=} [properties] Properties to set + * @param {query.ICommitRequest=} [properties] Properties to set */ - function RollbackResponse(properties) { + function CommitRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63090,75 +62826,114 @@ $root.query = (function() { } /** - * RollbackResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.RollbackResponse + * CommitRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.CommitRequest * @instance */ - RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CommitRequest.prototype.effective_caller_id = null; /** - * Creates a new RollbackResponse instance using the specified properties. + * CommitRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.CommitRequest + * @instance + */ + CommitRequest.prototype.immediate_caller_id = null; + + /** + * CommitRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.CommitRequest + * @instance + */ + CommitRequest.prototype.target = null; + + /** + * CommitRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.CommitRequest + * @instance + */ + CommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CommitRequest instance using the specified properties. * @function create - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static - * @param {query.IRollbackResponse=} [properties] Properties to set - * @returns {query.RollbackResponse} RollbackResponse instance + * @param {query.ICommitRequest=} [properties] Properties to set + * @returns {query.CommitRequest} CommitRequest instance */ - RollbackResponse.create = function create(properties) { - return new RollbackResponse(properties); + CommitRequest.create = function create(properties) { + return new CommitRequest(properties); }; /** - * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encode - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode + * @param {query.ICommitRequest} message CommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackResponse.encode = function encode(message, writer) { + CommitRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); return writer; }; /** - * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. + * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static - * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode + * @param {query.ICommitRequest} message CommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackResponse message from the specified reader or buffer. + * Decodes a CommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.CommitRequest} CommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackResponse.decode = function decode(reader, length) { + CommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.reserved_id = reader.int64(); + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -63169,125 +62944,161 @@ $root.query = (function() { }; /** - * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.CommitRequest} CommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackResponse.decodeDelimited = function decodeDelimited(reader) { + CommitRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackResponse message. + * Verifies a CommitRequest message. * @function verify - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackResponse.verify = function verify(message) { + CommitRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; return null; }; /** - * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static * @param {Object.} object Plain object - * @returns {query.RollbackResponse} RollbackResponse + * @returns {query.CommitRequest} CommitRequest */ - RollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackResponse) + CommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitRequest) return object; - var message = new $root.query.RollbackResponse(); - if (object.reserved_id != null) + var message = new $root.query.CommitRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.CommitRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.CommitRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.CommitRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. + * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @static - * @param {query.RollbackResponse} message RollbackResponse + * @param {query.CommitRequest} message CommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackResponse.toObject = function toObject(message, options) { + CommitRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.reserved_id = options.longs === String ? "0" : 0; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + object.transaction_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; return object; }; /** - * Converts this RollbackResponse to JSON. + * Converts this CommitRequest to JSON. * @function toJSON - * @memberof query.RollbackResponse + * @memberof query.CommitRequest * @instance * @returns {Object.} JSON object */ - RollbackResponse.prototype.toJSON = function toJSON() { + CommitRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackResponse; + return CommitRequest; })(); - query.PrepareRequest = (function() { + query.CommitResponse = (function() { /** - * Properties of a PrepareRequest. + * Properties of a CommitResponse. * @memberof query - * @interface IPrepareRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] PrepareRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] PrepareRequest immediate_caller_id - * @property {query.ITarget|null} [target] PrepareRequest target - * @property {number|Long|null} [transaction_id] PrepareRequest transaction_id - * @property {string|null} [dtid] PrepareRequest dtid + * @interface ICommitResponse + * @property {number|Long|null} [reserved_id] CommitResponse reserved_id */ /** - * Constructs a new PrepareRequest. + * Constructs a new CommitResponse. * @memberof query - * @classdesc Represents a PrepareRequest. - * @implements IPrepareRequest + * @classdesc Represents a CommitResponse. + * @implements ICommitResponse * @constructor - * @param {query.IPrepareRequest=} [properties] Properties to set + * @param {query.ICommitResponse=} [properties] Properties to set */ - function PrepareRequest(properties) { + function CommitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63295,130 +63106,78 @@ $root.query = (function() { } /** - * PrepareRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.effective_caller_id = null; - - /** - * PrepareRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.immediate_caller_id = null; - - /** - * PrepareRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.target = null; - - /** - * PrepareRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.PrepareRequest - * @instance - */ - PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PrepareRequest dtid. - * @member {string} dtid - * @memberof query.PrepareRequest + * CommitResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.CommitResponse * @instance */ - PrepareRequest.prototype.dtid = ""; + CommitResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new PrepareRequest instance using the specified properties. + * Creates a new CommitResponse instance using the specified properties. * @function create - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static - * @param {query.IPrepareRequest=} [properties] Properties to set - * @returns {query.PrepareRequest} PrepareRequest instance + * @param {query.ICommitResponse=} [properties] Properties to set + * @returns {query.CommitResponse} CommitResponse instance */ - PrepareRequest.create = function create(properties) { - return new PrepareRequest(properties); + CommitResponse.create = function create(properties) { + return new CommitResponse(properties); }; /** - * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encode - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static - * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode + * @param {query.ICommitResponse} message CommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareRequest.encode = function encode(message, writer) { + CommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. + * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static - * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode + * @param {query.ICommitResponse} message CommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareRequest message from the specified reader or buffer. + * Decodes a CommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.CommitResponse} CommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareRequest.decode = function decode(reader, length) { + CommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + message.reserved_id = reader.int64(); break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -63426,168 +63185,124 @@ $root.query = (function() { }; /** - * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.CommitResponse} CommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareRequest.decodeDelimited = function decodeDelimited(reader) { + CommitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareRequest message. + * Verifies a CommitResponse message. * @function verify - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareRequest.verify = function verify(message) { + CommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static * @param {Object.} object Plain object - * @returns {query.PrepareRequest} PrepareRequest + * @returns {query.CommitResponse} CommitResponse */ - PrepareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareRequest) + CommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitResponse) return object; - var message = new $root.query.PrepareRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.PrepareRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.PrepareRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) + var message = new $root.query.CommitResponse(); + if (object.reserved_id != null) if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @static - * @param {query.PrepareRequest} message PrepareRequest + * @param {query.CommitResponse} message CommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareRequest.toObject = function toObject(message, options) { + CommitResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + object.reserved_id = options.longs === String ? "0" : 0; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this PrepareRequest to JSON. + * Converts this CommitResponse to JSON. * @function toJSON - * @memberof query.PrepareRequest + * @memberof query.CommitResponse * @instance * @returns {Object.} JSON object */ - PrepareRequest.prototype.toJSON = function toJSON() { + CommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrepareRequest; + return CommitResponse; })(); - query.PrepareResponse = (function() { + query.RollbackRequest = (function() { /** - * Properties of a PrepareResponse. + * Properties of a RollbackRequest. * @memberof query - * @interface IPrepareResponse + * @interface IRollbackRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackRequest immediate_caller_id + * @property {query.ITarget|null} [target] RollbackRequest target + * @property {number|Long|null} [transaction_id] RollbackRequest transaction_id */ /** - * Constructs a new PrepareResponse. + * Constructs a new RollbackRequest. * @memberof query - * @classdesc Represents a PrepareResponse. - * @implements IPrepareResponse + * @classdesc Represents a RollbackRequest. + * @implements IRollbackRequest * @constructor - * @param {query.IPrepareResponse=} [properties] Properties to set + * @param {query.IRollbackRequest=} [properties] Properties to set */ - function PrepareResponse(properties) { + function RollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63595,63 +63310,115 @@ $root.query = (function() { } /** - * Creates a new PrepareResponse instance using the specified properties. + * RollbackRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.RollbackRequest + * @instance + */ + RollbackRequest.prototype.effective_caller_id = null; + + /** + * RollbackRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.RollbackRequest + * @instance + */ + RollbackRequest.prototype.immediate_caller_id = null; + + /** + * RollbackRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.RollbackRequest + * @instance + */ + RollbackRequest.prototype.target = null; + + /** + * RollbackRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.RollbackRequest + * @instance + */ + RollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new RollbackRequest instance using the specified properties. * @function create - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static - * @param {query.IPrepareResponse=} [properties] Properties to set - * @returns {query.PrepareResponse} PrepareResponse instance + * @param {query.IRollbackRequest=} [properties] Properties to set + * @returns {query.RollbackRequest} RollbackRequest instance */ - PrepareResponse.create = function create(properties) { - return new PrepareResponse(properties); + RollbackRequest.create = function create(properties) { + return new RollbackRequest(properties); }; /** - * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encode - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static - * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode + * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareResponse.encode = function encode(message, writer) { + RollbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); return writer; }; /** - * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. + * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static - * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode + * @param {query.IRollbackRequest} message RollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrepareResponse message from the specified reader or buffer. + * Decodes a RollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.RollbackRequest} RollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareResponse.decode = function decode(reader, length) { + RollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -63661,97 +63428,161 @@ $root.query = (function() { }; /** - * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. + * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.RollbackRequest} RollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrepareResponse.decodeDelimited = function decodeDelimited(reader) { + RollbackRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrepareResponse message. + * Verifies a RollbackRequest message. * @function verify - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrepareResponse.verify = function verify(message) { + RollbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; return null; }; /** - * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.PrepareResponse} PrepareResponse + * @returns {query.RollbackRequest} RollbackRequest */ - PrepareResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.PrepareResponse) + RollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackRequest) return object; - return new $root.query.PrepareResponse(); + var message = new $root.query.RollbackRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.RollbackRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.RollbackRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.RollbackRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. + * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @static - * @param {query.PrepareResponse} message PrepareResponse + * @param {query.RollbackRequest} message RollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrepareResponse.toObject = function toObject() { - return {}; + RollbackRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + return object; }; /** - * Converts this PrepareResponse to JSON. + * Converts this RollbackRequest to JSON. * @function toJSON - * @memberof query.PrepareResponse + * @memberof query.RollbackRequest * @instance * @returns {Object.} JSON object */ - PrepareResponse.prototype.toJSON = function toJSON() { + RollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrepareResponse; + return RollbackRequest; })(); - query.CommitPreparedRequest = (function() { + query.RollbackResponse = (function() { /** - * Properties of a CommitPreparedRequest. + * Properties of a RollbackResponse. * @memberof query - * @interface ICommitPreparedRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitPreparedRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitPreparedRequest immediate_caller_id - * @property {query.ITarget|null} [target] CommitPreparedRequest target - * @property {string|null} [dtid] CommitPreparedRequest dtid + * @interface IRollbackResponse + * @property {number|Long|null} [reserved_id] RollbackResponse reserved_id */ /** - * Constructs a new CommitPreparedRequest. + * Constructs a new RollbackResponse. * @memberof query - * @classdesc Represents a CommitPreparedRequest. - * @implements ICommitPreparedRequest + * @classdesc Represents a RollbackResponse. + * @implements IRollbackResponse * @constructor - * @param {query.ICommitPreparedRequest=} [properties] Properties to set + * @param {query.IRollbackResponse=} [properties] Properties to set */ - function CommitPreparedRequest(properties) { + function RollbackResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63759,114 +63590,75 @@ $root.query = (function() { } /** - * CommitPreparedRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.effective_caller_id = null; - - /** - * CommitPreparedRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.immediate_caller_id = null; - - /** - * CommitPreparedRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.CommitPreparedRequest - * @instance - */ - CommitPreparedRequest.prototype.target = null; - - /** - * CommitPreparedRequest dtid. - * @member {string} dtid - * @memberof query.CommitPreparedRequest + * RollbackResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.RollbackResponse * @instance */ - CommitPreparedRequest.prototype.dtid = ""; + RollbackResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new CommitPreparedRequest instance using the specified properties. + * Creates a new RollbackResponse instance using the specified properties. * @function create - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static - * @param {query.ICommitPreparedRequest=} [properties] Properties to set - * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance + * @param {query.IRollbackResponse=} [properties] Properties to set + * @returns {query.RollbackResponse} RollbackResponse instance */ - CommitPreparedRequest.create = function create(properties) { - return new CommitPreparedRequest(properties); + RollbackResponse.create = function create(properties) { + return new RollbackResponse(properties); }; /** - * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encode - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode + * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedRequest.encode = function encode(message, writer) { + RollbackResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.reserved_id); return writer; }; /** - * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. + * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static - * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode + * @param {query.IRollbackResponse} message RollbackResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer. + * Decodes a RollbackResponse message from the specified reader or buffer. * @function decode - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitPreparedRequest} CommitPreparedRequest + * @returns {query.RollbackResponse} RollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedRequest.decode = function decode(reader, length) { + RollbackResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.dtid = reader.string(); + message.reserved_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -63877,146 +63669,125 @@ $root.query = (function() { }; /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. + * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedRequest} CommitPreparedRequest + * @returns {query.RollbackResponse} RollbackResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedRequest.decodeDelimited = function decodeDelimited(reader) { + RollbackResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitPreparedRequest message. + * Verifies a RollbackResponse message. * @function verify - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitPreparedRequest.verify = function verify(message) { + RollbackResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static * @param {Object.} object Plain object - * @returns {query.CommitPreparedRequest} CommitPreparedRequest + * @returns {query.RollbackResponse} RollbackResponse */ - CommitPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedRequest) - return object; - var message = new $root.query.CommitPreparedRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.CommitPreparedRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.dtid != null) - message.dtid = String(object.dtid); + RollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackResponse) + return object; + var message = new $root.query.RollbackResponse(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. + * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @static - * @param {query.CommitPreparedRequest} message CommitPreparedRequest + * @param {query.RollbackResponse} message RollbackResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CommitPreparedRequest.toObject = function toObject(message, options) { + RollbackResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this CommitPreparedRequest to JSON. + * Converts this RollbackResponse to JSON. * @function toJSON - * @memberof query.CommitPreparedRequest + * @memberof query.RollbackResponse * @instance * @returns {Object.} JSON object */ - CommitPreparedRequest.prototype.toJSON = function toJSON() { + RollbackResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitPreparedRequest; + return RollbackResponse; })(); - query.CommitPreparedResponse = (function() { + query.PrepareRequest = (function() { /** - * Properties of a CommitPreparedResponse. + * Properties of a PrepareRequest. * @memberof query - * @interface ICommitPreparedResponse + * @interface IPrepareRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] PrepareRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] PrepareRequest immediate_caller_id + * @property {query.ITarget|null} [target] PrepareRequest target + * @property {number|Long|null} [transaction_id] PrepareRequest transaction_id + * @property {string|null} [dtid] PrepareRequest dtid */ /** - * Constructs a new CommitPreparedResponse. + * Constructs a new PrepareRequest. * @memberof query - * @classdesc Represents a CommitPreparedResponse. - * @implements ICommitPreparedResponse + * @classdesc Represents a PrepareRequest. + * @implements IPrepareRequest * @constructor - * @param {query.ICommitPreparedResponse=} [properties] Properties to set + * @param {query.IPrepareRequest=} [properties] Properties to set */ - function CommitPreparedResponse(properties) { + function PrepareRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64024,63 +63795,128 @@ $root.query = (function() { } /** - * Creates a new CommitPreparedResponse instance using the specified properties. + * PrepareRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.effective_caller_id = null; + + /** + * PrepareRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.immediate_caller_id = null; + + /** + * PrepareRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.target = null; + + /** + * PrepareRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PrepareRequest dtid. + * @member {string} dtid + * @memberof query.PrepareRequest + * @instance + */ + PrepareRequest.prototype.dtid = ""; + + /** + * Creates a new PrepareRequest instance using the specified properties. * @function create - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static - * @param {query.ICommitPreparedResponse=} [properties] Properties to set - * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance + * @param {query.IPrepareRequest=} [properties] Properties to set + * @returns {query.PrepareRequest} PrepareRequest instance */ - CommitPreparedResponse.create = function create(properties) { - return new CommitPreparedResponse(properties); + PrepareRequest.create = function create(properties) { + return new PrepareRequest(properties); }; /** - * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encode - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode + * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedResponse.encode = function encode(message, writer) { + PrepareRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. + * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static - * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode + * @param {query.IPrepareRequest} message PrepareRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + PrepareRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer. + * Decodes a PrepareRequest message from the specified reader or buffer. * @function decode - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.PrepareRequest} PrepareRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedResponse.decode = function decode(reader, length) { + PrepareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.dtid = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -64090,98 +63926,168 @@ $root.query = (function() { }; /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. + * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.PrepareRequest} PrepareRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CommitPreparedResponse.decodeDelimited = function decodeDelimited(reader) { + PrepareRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CommitPreparedResponse message. + * Verifies a PrepareRequest message. * @function verify - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CommitPreparedResponse.verify = function verify(message) { + PrepareRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @static * @param {Object.} object Plain object - * @returns {query.CommitPreparedResponse} CommitPreparedResponse + * @returns {query.PrepareRequest} PrepareRequest */ - CommitPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CommitPreparedResponse) + PrepareRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareRequest) return object; - return new $root.query.CommitPreparedResponse(); - }; - - /** - * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.CommitPreparedResponse - * @static - * @param {query.CommitPreparedResponse} message CommitPreparedResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommitPreparedResponse.toObject = function toObject() { - return {}; - }; + var message = new $root.query.PrepareRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.PrepareRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.PrepareRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.PrepareRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; + }; /** - * Converts this CommitPreparedResponse to JSON. + * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof query.PrepareRequest + * @static + * @param {query.PrepareRequest} message PrepareRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrepareRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; + }; + + /** + * Converts this PrepareRequest to JSON. * @function toJSON - * @memberof query.CommitPreparedResponse + * @memberof query.PrepareRequest * @instance * @returns {Object.} JSON object */ - CommitPreparedResponse.prototype.toJSON = function toJSON() { + PrepareRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CommitPreparedResponse; + return PrepareRequest; })(); - query.RollbackPreparedRequest = (function() { + query.PrepareResponse = (function() { /** - * Properties of a RollbackPreparedRequest. + * Properties of a PrepareResponse. * @memberof query - * @interface IRollbackPreparedRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackPreparedRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackPreparedRequest immediate_caller_id - * @property {query.ITarget|null} [target] RollbackPreparedRequest target - * @property {number|Long|null} [transaction_id] RollbackPreparedRequest transaction_id - * @property {string|null} [dtid] RollbackPreparedRequest dtid + * @interface IPrepareResponse */ /** - * Constructs a new RollbackPreparedRequest. + * Constructs a new PrepareResponse. * @memberof query - * @classdesc Represents a RollbackPreparedRequest. - * @implements IRollbackPreparedRequest + * @classdesc Represents a PrepareResponse. + * @implements IPrepareResponse * @constructor - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @param {query.IPrepareResponse=} [properties] Properties to set */ - function RollbackPreparedRequest(properties) { + function PrepareResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64189,128 +64095,63 @@ $root.query = (function() { } /** - * RollbackPreparedRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.effective_caller_id = null; - - /** - * RollbackPreparedRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.immediate_caller_id = null; - - /** - * RollbackPreparedRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.target = null; - - /** - * RollbackPreparedRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RollbackPreparedRequest dtid. - * @member {string} dtid - * @memberof query.RollbackPreparedRequest - * @instance - */ - RollbackPreparedRequest.prototype.dtid = ""; - - /** - * Creates a new RollbackPreparedRequest instance using the specified properties. + * Creates a new PrepareResponse instance using the specified properties. * @function create - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static - * @param {query.IRollbackPreparedRequest=} [properties] Properties to set - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance + * @param {query.IPrepareResponse=} [properties] Properties to set + * @returns {query.PrepareResponse} PrepareResponse instance */ - RollbackPreparedRequest.create = function create(properties) { - return new RollbackPreparedRequest(properties); + PrepareResponse.create = function create(properties) { + return new PrepareResponse(properties); }; /** - * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encode - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode + * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedRequest.encode = function encode(message, writer) { + PrepareResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. + * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static - * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode + * @param {query.IPrepareResponse} message PrepareResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { + PrepareResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer. + * Decodes a PrepareResponse message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.PrepareResponse} PrepareResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedRequest.decode = function decode(reader, length) { + PrepareResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.PrepareResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -64320,168 +64161,97 @@ $root.query = (function() { }; /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. + * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.PrepareResponse} PrepareResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedRequest.decodeDelimited = function decodeDelimited(reader) { + PrepareResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackPreparedRequest message. + * Verifies a PrepareResponse message. * @function verify - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackPreparedRequest.verify = function verify(message) { + PrepareResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest + * @returns {query.PrepareResponse} PrepareResponse */ - RollbackPreparedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedRequest) + PrepareResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.PrepareResponse) return object; - var message = new $root.query.RollbackPreparedRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.RollbackPreparedRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); - return message; + return new $root.query.PrepareResponse(); }; /** - * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. + * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @static - * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest + * @param {query.PrepareResponse} message PrepareResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - return object; + PrepareResponse.toObject = function toObject() { + return {}; }; /** - * Converts this RollbackPreparedRequest to JSON. + * Converts this PrepareResponse to JSON. * @function toJSON - * @memberof query.RollbackPreparedRequest + * @memberof query.PrepareResponse * @instance * @returns {Object.} JSON object */ - RollbackPreparedRequest.prototype.toJSON = function toJSON() { + PrepareResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackPreparedRequest; + return PrepareResponse; })(); - query.RollbackPreparedResponse = (function() { + query.CommitPreparedRequest = (function() { /** - * Properties of a RollbackPreparedResponse. + * Properties of a CommitPreparedRequest. * @memberof query - * @interface IRollbackPreparedResponse + * @interface ICommitPreparedRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CommitPreparedRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CommitPreparedRequest immediate_caller_id + * @property {query.ITarget|null} [target] CommitPreparedRequest target + * @property {string|null} [dtid] CommitPreparedRequest dtid */ /** - * Constructs a new RollbackPreparedResponse. + * Constructs a new CommitPreparedRequest. * @memberof query - * @classdesc Represents a RollbackPreparedResponse. - * @implements IRollbackPreparedResponse + * @classdesc Represents a CommitPreparedRequest. + * @implements ICommitPreparedRequest * @constructor - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @param {query.ICommitPreparedRequest=} [properties] Properties to set */ - function RollbackPreparedResponse(properties) { + function CommitPreparedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64489,63 +64259,115 @@ $root.query = (function() { } /** - * Creates a new RollbackPreparedResponse instance using the specified properties. + * CommitPreparedRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.CommitPreparedRequest + * @instance + */ + CommitPreparedRequest.prototype.effective_caller_id = null; + + /** + * CommitPreparedRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.CommitPreparedRequest + * @instance + */ + CommitPreparedRequest.prototype.immediate_caller_id = null; + + /** + * CommitPreparedRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.CommitPreparedRequest + * @instance + */ + CommitPreparedRequest.prototype.target = null; + + /** + * CommitPreparedRequest dtid. + * @member {string} dtid + * @memberof query.CommitPreparedRequest + * @instance + */ + CommitPreparedRequest.prototype.dtid = ""; + + /** + * Creates a new CommitPreparedRequest instance using the specified properties. * @function create - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static - * @param {query.IRollbackPreparedResponse=} [properties] Properties to set - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance + * @param {query.ICommitPreparedRequest=} [properties] Properties to set + * @returns {query.CommitPreparedRequest} CommitPreparedRequest instance */ - RollbackPreparedResponse.create = function create(properties) { - return new RollbackPreparedResponse(properties); + CommitPreparedRequest.create = function create(properties) { + return new CommitPreparedRequest(properties); }; /** - * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode + * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedResponse.encode = function encode(message, writer) { + CommitPreparedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. + * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static - * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode + * @param {query.ICommitPreparedRequest} message CommitPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer. + * Decodes a CommitPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.CommitPreparedRequest} CommitPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedResponse.decode = function decode(reader, length) { + CommitPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.dtid = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -64555,99 +64377,146 @@ $root.query = (function() { }; /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. + * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.CommitPreparedRequest} CommitPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackPreparedResponse.decodeDelimited = function decodeDelimited(reader) { + CommitPreparedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackPreparedResponse message. + * Verifies a CommitPreparedRequest message. * @function verify - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackPreparedResponse.verify = function verify(message) { + CommitPreparedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse + * @returns {query.CommitPreparedRequest} CommitPreparedRequest */ - RollbackPreparedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.RollbackPreparedResponse) + CommitPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedRequest) return object; - return new $root.query.RollbackPreparedResponse(); + var message = new $root.query.CommitPreparedRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.CommitPreparedRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.CommitPreparedRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.CommitPreparedRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. + * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.RollbackPreparedResponse + * @memberof query.CommitPreparedRequest * @static - * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse + * @param {query.CommitPreparedRequest} message CommitPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackPreparedResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this RollbackPreparedResponse to JSON. - * @function toJSON - * @memberof query.RollbackPreparedResponse - * @instance - * @returns {Object.} JSON object - */ - RollbackPreparedResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + CommitPreparedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; + }; - return RollbackPreparedResponse; + /** + * Converts this CommitPreparedRequest to JSON. + * @function toJSON + * @memberof query.CommitPreparedRequest + * @instance + * @returns {Object.} JSON object + */ + CommitPreparedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CommitPreparedRequest; })(); - query.CreateTransactionRequest = (function() { + query.CommitPreparedResponse = (function() { /** - * Properties of a CreateTransactionRequest. + * Properties of a CommitPreparedResponse. * @memberof query - * @interface ICreateTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] CreateTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] CreateTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] CreateTransactionRequest target - * @property {string|null} [dtid] CreateTransactionRequest dtid - * @property {Array.|null} [participants] CreateTransactionRequest participants + * @interface ICommitPreparedResponse */ /** - * Constructs a new CreateTransactionRequest. + * Constructs a new CommitPreparedResponse. * @memberof query - * @classdesc Represents a CreateTransactionRequest. - * @implements ICreateTransactionRequest + * @classdesc Represents a CommitPreparedResponse. + * @implements ICommitPreparedResponse * @constructor - * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @param {query.ICommitPreparedResponse=} [properties] Properties to set */ - function CreateTransactionRequest(properties) { - this.participants = []; + function CommitPreparedResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64655,131 +64524,63 @@ $root.query = (function() { } /** - * CreateTransactionRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.effective_caller_id = null; - - /** - * CreateTransactionRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.immediate_caller_id = null; - - /** - * CreateTransactionRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.target = null; - - /** - * CreateTransactionRequest dtid. - * @member {string} dtid - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.dtid = ""; - - /** - * CreateTransactionRequest participants. - * @member {Array.} participants - * @memberof query.CreateTransactionRequest - * @instance - */ - CreateTransactionRequest.prototype.participants = $util.emptyArray; - - /** - * Creates a new CreateTransactionRequest instance using the specified properties. + * Creates a new CommitPreparedResponse instance using the specified properties. * @function create - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static - * @param {query.ICreateTransactionRequest=} [properties] Properties to set - * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance + * @param {query.ICommitPreparedResponse=} [properties] Properties to set + * @returns {query.CommitPreparedResponse} CommitPreparedResponse instance */ - CreateTransactionRequest.create = function create(properties) { - return new CreateTransactionRequest(properties); + CommitPreparedResponse.create = function create(properties) { + return new CommitPreparedResponse(properties); }; /** - * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode + * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionRequest.encode = function encode(message, writer) { + CommitPreparedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); - if (message.participants != null && message.participants.length) - for (var i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. + * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static - * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode + * @param {query.ICommitPreparedResponse} message CommitPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + CommitPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer. + * Decodes a CommitPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.CommitPreparedResponse} CommitPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionRequest.decode = function decode(reader, length) { + CommitPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CommitPreparedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.dtid = reader.string(); - break; - case 5: - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -64789,172 +64590,98 @@ $root.query = (function() { }; /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.CommitPreparedResponse} CommitPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + CommitPreparedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransactionRequest message. + * Verifies a CommitPreparedResponse message. * @function verify - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransactionRequest.verify = function verify(message) { + CommitPreparedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (var i = 0; i < message.participants.length; ++i) { - var error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; - } - } return null; }; /** - * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionRequest} CreateTransactionRequest + * @returns {query.CommitPreparedResponse} CommitPreparedResponse */ - CreateTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionRequest) + CommitPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CommitPreparedResponse) return object; - var message = new $root.query.CreateTransactionRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.CreateTransactionRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.CreateTransactionRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.CreateTransactionRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.dtid != null) - message.dtid = String(object.dtid); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".query.CreateTransactionRequest.participants: array expected"); - message.participants = []; - for (var i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".query.CreateTransactionRequest.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); - } - } - return message; + return new $root.query.CommitPreparedResponse(); }; /** - * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @static - * @param {query.CreateTransactionRequest} message CreateTransactionRequest + * @param {query.CommitPreparedResponse} message CommitPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.participants = []; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.participants && message.participants.length) { - object.participants = []; - for (var j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); - } - return object; + CommitPreparedResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CreateTransactionRequest to JSON. + * Converts this CommitPreparedResponse to JSON. * @function toJSON - * @memberof query.CreateTransactionRequest + * @memberof query.CommitPreparedResponse * @instance * @returns {Object.} JSON object */ - CreateTransactionRequest.prototype.toJSON = function toJSON() { + CommitPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTransactionRequest; + return CommitPreparedResponse; })(); - query.CreateTransactionResponse = (function() { + query.RollbackPreparedRequest = (function() { /** - * Properties of a CreateTransactionResponse. + * Properties of a RollbackPreparedRequest. * @memberof query - * @interface ICreateTransactionResponse + * @interface IRollbackPreparedRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] RollbackPreparedRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] RollbackPreparedRequest immediate_caller_id + * @property {query.ITarget|null} [target] RollbackPreparedRequest target + * @property {number|Long|null} [transaction_id] RollbackPreparedRequest transaction_id + * @property {string|null} [dtid] RollbackPreparedRequest dtid */ /** - * Constructs a new CreateTransactionResponse. + * Constructs a new RollbackPreparedRequest. * @memberof query - * @classdesc Represents a CreateTransactionResponse. - * @implements ICreateTransactionResponse + * @classdesc Represents a RollbackPreparedRequest. + * @implements IRollbackPreparedRequest * @constructor - * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set */ - function CreateTransactionResponse(properties) { + function RollbackPreparedRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64962,63 +64689,128 @@ $root.query = (function() { } /** - * Creates a new CreateTransactionResponse instance using the specified properties. + * RollbackPreparedRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.RollbackPreparedRequest + * @instance + */ + RollbackPreparedRequest.prototype.effective_caller_id = null; + + /** + * RollbackPreparedRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.RollbackPreparedRequest + * @instance + */ + RollbackPreparedRequest.prototype.immediate_caller_id = null; + + /** + * RollbackPreparedRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.RollbackPreparedRequest + * @instance + */ + RollbackPreparedRequest.prototype.target = null; + + /** + * RollbackPreparedRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.RollbackPreparedRequest + * @instance + */ + RollbackPreparedRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RollbackPreparedRequest dtid. + * @member {string} dtid + * @memberof query.RollbackPreparedRequest + * @instance + */ + RollbackPreparedRequest.prototype.dtid = ""; + + /** + * Creates a new RollbackPreparedRequest instance using the specified properties. * @function create - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static - * @param {query.ICreateTransactionResponse=} [properties] Properties to set - * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance + * @param {query.IRollbackPreparedRequest=} [properties] Properties to set + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest instance */ - CreateTransactionResponse.create = function create(properties) { - return new CreateTransactionResponse(properties); + RollbackPreparedRequest.create = function create(properties) { + return new RollbackPreparedRequest(properties); }; /** - * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encode - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode + * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionResponse.encode = function encode(message, writer) { + RollbackPreparedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. + * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static - * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode + * @param {query.IRollbackPreparedRequest} message RollbackPreparedRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer. + * Decodes a RollbackPreparedRequest message from the specified reader or buffer. * @function decode - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionResponse.decode = function decode(reader, length) { + RollbackPreparedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.dtid = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -65028,227 +64820,232 @@ $root.query = (function() { }; /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + RollbackPreparedRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTransactionResponse message. + * Verifies a RollbackPreparedRequest message. * @function verify - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTransactionResponse.verify = function verify(message) { + RollbackPreparedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static * @param {Object.} object Plain object - * @returns {query.CreateTransactionResponse} CreateTransactionResponse + * @returns {query.RollbackPreparedRequest} RollbackPreparedRequest */ - CreateTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.CreateTransactionResponse) + RollbackPreparedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedRequest) return object; - return new $root.query.CreateTransactionResponse(); + var message = new $root.query.RollbackPreparedRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.RollbackPreparedRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.RollbackPreparedRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.RollbackPreparedRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.CreateTransactionResponse + * @memberof query.RollbackPreparedRequest * @static - * @param {query.CreateTransactionResponse} message CreateTransactionResponse + * @param {query.RollbackPreparedRequest} message RollbackPreparedRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransactionResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this CreateTransactionResponse to JSON. - * @function toJSON - * @memberof query.CreateTransactionResponse - * @instance - * @returns {Object.} JSON object - */ - CreateTransactionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateTransactionResponse; - })(); - - query.StartCommitRequest = (function() { - - /** - * Properties of a StartCommitRequest. - * @memberof query - * @interface IStartCommitRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] StartCommitRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] StartCommitRequest immediate_caller_id - * @property {query.ITarget|null} [target] StartCommitRequest target - * @property {number|Long|null} [transaction_id] StartCommitRequest transaction_id - * @property {string|null} [dtid] StartCommitRequest dtid - */ - - /** - * Constructs a new StartCommitRequest. - * @memberof query - * @classdesc Represents a StartCommitRequest. - * @implements IStartCommitRequest - * @constructor - * @param {query.IStartCommitRequest=} [properties] Properties to set - */ - function StartCommitRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + RollbackPreparedRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; + }; /** - * StartCommitRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.StartCommitRequest + * Converts this RollbackPreparedRequest to JSON. + * @function toJSON + * @memberof query.RollbackPreparedRequest * @instance + * @returns {Object.} JSON object */ - StartCommitRequest.prototype.effective_caller_id = null; + RollbackPreparedRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * StartCommitRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.StartCommitRequest - * @instance - */ - StartCommitRequest.prototype.immediate_caller_id = null; + return RollbackPreparedRequest; + })(); - /** - * StartCommitRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StartCommitRequest - * @instance - */ - StartCommitRequest.prototype.target = null; + query.RollbackPreparedResponse = (function() { /** - * StartCommitRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.StartCommitRequest - * @instance + * Properties of a RollbackPreparedResponse. + * @memberof query + * @interface IRollbackPreparedResponse */ - StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StartCommitRequest dtid. - * @member {string} dtid - * @memberof query.StartCommitRequest - * @instance + * Constructs a new RollbackPreparedResponse. + * @memberof query + * @classdesc Represents a RollbackPreparedResponse. + * @implements IRollbackPreparedResponse + * @constructor + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set */ - StartCommitRequest.prototype.dtid = ""; + function RollbackPreparedResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new StartCommitRequest instance using the specified properties. + * Creates a new RollbackPreparedResponse instance using the specified properties. * @function create - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IStartCommitRequest=} [properties] Properties to set - * @returns {query.StartCommitRequest} StartCommitRequest instance + * @param {query.IRollbackPreparedResponse=} [properties] Properties to set + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse instance */ - StartCommitRequest.create = function create(properties) { - return new StartCommitRequest(properties); + RollbackPreparedResponse.create = function create(properties) { + return new RollbackPreparedResponse(properties); }; /** - * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encode - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode + * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitRequest.encode = function encode(message, writer) { + RollbackPreparedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. + * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static - * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode + * @param {query.IRollbackPreparedResponse} message RollbackPreparedResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { + RollbackPreparedResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitRequest message from the specified reader or buffer. + * Decodes a RollbackPreparedResponse message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitRequest.decode = function decode(reader, length) { + RollbackPreparedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RollbackPreparedResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -65258,168 +65055,99 @@ $root.query = (function() { }; /** - * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. + * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitRequest.decodeDelimited = function decodeDelimited(reader) { + RollbackPreparedResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartCommitRequest message. + * Verifies a RollbackPreparedResponse message. * @function verify - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartCommitRequest.verify = function verify(message) { + RollbackPreparedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static * @param {Object.} object Plain object - * @returns {query.StartCommitRequest} StartCommitRequest + * @returns {query.RollbackPreparedResponse} RollbackPreparedResponse */ - StartCommitRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitRequest) + RollbackPreparedResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.RollbackPreparedResponse) return object; - var message = new $root.query.StartCommitRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.StartCommitRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.StartCommitRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); - return message; + return new $root.query.RollbackPreparedResponse(); }; /** - * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. + * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @static - * @param {query.StartCommitRequest} message StartCommitRequest + * @param {query.RollbackPreparedResponse} message RollbackPreparedResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - return object; + RollbackPreparedResponse.toObject = function toObject() { + return {}; }; /** - * Converts this StartCommitRequest to JSON. + * Converts this RollbackPreparedResponse to JSON. * @function toJSON - * @memberof query.StartCommitRequest + * @memberof query.RollbackPreparedResponse * @instance * @returns {Object.} JSON object */ - StartCommitRequest.prototype.toJSON = function toJSON() { + RollbackPreparedResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartCommitRequest; + return RollbackPreparedResponse; })(); - query.StartCommitResponse = (function() { + query.CreateTransactionRequest = (function() { /** - * Properties of a StartCommitResponse. + * Properties of a CreateTransactionRequest. * @memberof query - * @interface IStartCommitResponse + * @interface ICreateTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] CreateTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] CreateTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] CreateTransactionRequest target + * @property {string|null} [dtid] CreateTransactionRequest dtid + * @property {Array.|null} [participants] CreateTransactionRequest participants */ /** - * Constructs a new StartCommitResponse. + * Constructs a new CreateTransactionRequest. * @memberof query - * @classdesc Represents a StartCommitResponse. - * @implements IStartCommitResponse + * @classdesc Represents a CreateTransactionRequest. + * @implements ICreateTransactionRequest * @constructor - * @param {query.IStartCommitResponse=} [properties] Properties to set + * @param {query.ICreateTransactionRequest=} [properties] Properties to set */ - function StartCommitResponse(properties) { + function CreateTransactionRequest(properties) { + this.participants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65427,63 +65155,131 @@ $root.query = (function() { } /** - * Creates a new StartCommitResponse instance using the specified properties. + * CreateTransactionRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.effective_caller_id = null; + + /** + * CreateTransactionRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.immediate_caller_id = null; + + /** + * CreateTransactionRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.target = null; + + /** + * CreateTransactionRequest dtid. + * @member {string} dtid + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.dtid = ""; + + /** + * CreateTransactionRequest participants. + * @member {Array.} participants + * @memberof query.CreateTransactionRequest + * @instance + */ + CreateTransactionRequest.prototype.participants = $util.emptyArray; + + /** + * Creates a new CreateTransactionRequest instance using the specified properties. * @function create - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static - * @param {query.IStartCommitResponse=} [properties] Properties to set - * @returns {query.StartCommitResponse} StartCommitResponse instance + * @param {query.ICreateTransactionRequest=} [properties] Properties to set + * @returns {query.CreateTransactionRequest} CreateTransactionRequest instance */ - StartCommitResponse.create = function create(properties) { - return new StartCommitResponse(properties); + CreateTransactionRequest.create = function create(properties) { + return new CreateTransactionRequest(properties); }; /** - * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static - * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode + * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitResponse.encode = function encode(message, writer) { + CreateTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); + if (message.participants != null && message.participants.length) + for (var i = 0; i < message.participants.length; ++i) + $root.query.Target.encode(message.participants[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. + * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static - * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode + * @param {query.ICreateTransactionRequest} message CreateTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartCommitResponse message from the specified reader or buffer. + * Decodes a CreateTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.CreateTransactionRequest} CreateTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitResponse.decode = function decode(reader, length) { + CreateTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.dtid = reader.string(); + break; + case 5: + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.query.Target.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -65493,98 +65289,172 @@ $root.query = (function() { }; /** - * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.CreateTransactionRequest} CreateTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartCommitResponse.decodeDelimited = function decodeDelimited(reader) { + CreateTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartCommitResponse message. + * Verifies a CreateTransactionRequest message. * @function verify - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartCommitResponse.verify = function verify(message) { + CreateTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.StartCommitResponse} StartCommitResponse + * @returns {query.CreateTransactionRequest} CreateTransactionRequest */ - StartCommitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StartCommitResponse) + CreateTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionRequest) return object; - return new $root.query.StartCommitResponse(); + var message = new $root.query.CreateTransactionRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.CreateTransactionRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.CreateTransactionRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.CreateTransactionRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.dtid != null) + message.dtid = String(object.dtid); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".query.CreateTransactionRequest.participants: array expected"); + message.participants = []; + for (var i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".query.CreateTransactionRequest.participants: object expected"); + message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + } + } + return message; }; /** - * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StartCommitResponse + * @memberof query.CreateTransactionRequest * @static - * @param {query.StartCommitResponse} message StartCommitResponse + * @param {query.CreateTransactionRequest} message CreateTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartCommitResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this StartCommitResponse to JSON. - * @function toJSON - * @memberof query.StartCommitResponse - * @instance - * @returns {Object.} JSON object - */ - StartCommitResponse.prototype.toJSON = function toJSON() { + CreateTransactionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.participants = []; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.participants && message.participants.length) { + object.participants = []; + for (var j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + } + return object; + }; + + /** + * Converts this CreateTransactionRequest to JSON. + * @function toJSON + * @memberof query.CreateTransactionRequest + * @instance + * @returns {Object.} JSON object + */ + CreateTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartCommitResponse; + return CreateTransactionRequest; })(); - query.SetRollbackRequest = (function() { + query.CreateTransactionResponse = (function() { /** - * Properties of a SetRollbackRequest. + * Properties of a CreateTransactionResponse. * @memberof query - * @interface ISetRollbackRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] SetRollbackRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] SetRollbackRequest immediate_caller_id - * @property {query.ITarget|null} [target] SetRollbackRequest target - * @property {number|Long|null} [transaction_id] SetRollbackRequest transaction_id - * @property {string|null} [dtid] SetRollbackRequest dtid + * @interface ICreateTransactionResponse */ /** - * Constructs a new SetRollbackRequest. + * Constructs a new CreateTransactionResponse. * @memberof query - * @classdesc Represents a SetRollbackRequest. - * @implements ISetRollbackRequest + * @classdesc Represents a CreateTransactionResponse. + * @implements ICreateTransactionResponse * @constructor - * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @param {query.ICreateTransactionResponse=} [properties] Properties to set */ - function SetRollbackRequest(properties) { + function CreateTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65592,128 +65462,63 @@ $root.query = (function() { } /** - * SetRollbackRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.effective_caller_id = null; - - /** - * SetRollbackRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.immediate_caller_id = null; - - /** - * SetRollbackRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.target = null; - - /** - * SetRollbackRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * SetRollbackRequest dtid. - * @member {string} dtid - * @memberof query.SetRollbackRequest - * @instance - */ - SetRollbackRequest.prototype.dtid = ""; - - /** - * Creates a new SetRollbackRequest instance using the specified properties. + * Creates a new CreateTransactionResponse instance using the specified properties. * @function create - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static - * @param {query.ISetRollbackRequest=} [properties] Properties to set - * @returns {query.SetRollbackRequest} SetRollbackRequest instance + * @param {query.ICreateTransactionResponse=} [properties] Properties to set + * @returns {query.CreateTransactionResponse} CreateTransactionResponse instance */ - SetRollbackRequest.create = function create(properties) { - return new SetRollbackRequest(properties); + CreateTransactionResponse.create = function create(properties) { + return new CreateTransactionResponse(properties); }; /** - * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode + * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackRequest.encode = function encode(message, writer) { + CreateTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. + * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static - * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode + * @param {query.ICreateTransactionResponse} message CreateTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackRequest message from the specified reader or buffer. + * Decodes a CreateTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CreateTransactionResponse} CreateTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackRequest.decode = function decode(reader, length) { + CreateTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.CreateTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.transaction_id = reader.int64(); - break; - case 5: - message.dtid = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -65723,168 +65528,98 @@ $root.query = (function() { }; /** - * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CreateTransactionResponse} CreateTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetRollbackRequest message. + * Verifies a CreateTransactionResponse message. * @function verify - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetRollbackRequest.verify = function verify(message) { + CreateTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackRequest} SetRollbackRequest + * @returns {query.CreateTransactionResponse} CreateTransactionResponse */ - SetRollbackRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackRequest) + CreateTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.CreateTransactionResponse) return object; - var message = new $root.query.SetRollbackRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.SetRollbackRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.SetRollbackRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.SetRollbackRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.dtid != null) - message.dtid = String(object.dtid); - return message; + return new $root.query.CreateTransactionResponse(); }; /** - * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @static - * @param {query.SetRollbackRequest} message SetRollbackRequest + * @param {query.CreateTransactionResponse} message CreateTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - return object; + CreateTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this SetRollbackRequest to JSON. + * Converts this CreateTransactionResponse to JSON. * @function toJSON - * @memberof query.SetRollbackRequest + * @memberof query.CreateTransactionResponse * @instance * @returns {Object.} JSON object */ - SetRollbackRequest.prototype.toJSON = function toJSON() { + CreateTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetRollbackRequest; + return CreateTransactionResponse; })(); - query.SetRollbackResponse = (function() { + query.StartCommitRequest = (function() { /** - * Properties of a SetRollbackResponse. + * Properties of a StartCommitRequest. * @memberof query - * @interface ISetRollbackResponse + * @interface IStartCommitRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] StartCommitRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] StartCommitRequest immediate_caller_id + * @property {query.ITarget|null} [target] StartCommitRequest target + * @property {number|Long|null} [transaction_id] StartCommitRequest transaction_id + * @property {string|null} [dtid] StartCommitRequest dtid */ /** - * Constructs a new SetRollbackResponse. + * Constructs a new StartCommitRequest. * @memberof query - * @classdesc Represents a SetRollbackResponse. - * @implements ISetRollbackResponse + * @classdesc Represents a StartCommitRequest. + * @implements IStartCommitRequest * @constructor - * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @param {query.IStartCommitRequest=} [properties] Properties to set */ - function SetRollbackResponse(properties) { + function StartCommitRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65892,63 +65627,128 @@ $root.query = (function() { } /** - * Creates a new SetRollbackResponse instance using the specified properties. + * StartCommitRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.StartCommitRequest + * @instance + */ + StartCommitRequest.prototype.effective_caller_id = null; + + /** + * StartCommitRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.StartCommitRequest + * @instance + */ + StartCommitRequest.prototype.immediate_caller_id = null; + + /** + * StartCommitRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StartCommitRequest + * @instance + */ + StartCommitRequest.prototype.target = null; + + /** + * StartCommitRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.StartCommitRequest + * @instance + */ + StartCommitRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * StartCommitRequest dtid. + * @member {string} dtid + * @memberof query.StartCommitRequest + * @instance + */ + StartCommitRequest.prototype.dtid = ""; + + /** + * Creates a new StartCommitRequest instance using the specified properties. * @function create - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static - * @param {query.ISetRollbackResponse=} [properties] Properties to set - * @returns {query.SetRollbackResponse} SetRollbackResponse instance + * @param {query.IStartCommitRequest=} [properties] Properties to set + * @returns {query.StartCommitRequest} StartCommitRequest instance */ - SetRollbackResponse.create = function create(properties) { - return new SetRollbackResponse(properties); + StartCommitRequest.create = function create(properties) { + return new StartCommitRequest(properties); }; /** - * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encode - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackResponse.encode = function encode(message, writer) { + StartCommitRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static - * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {query.IStartCommitRequest} message StartCommitRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetRollbackResponse message from the specified reader or buffer. + * Decodes a StartCommitRequest message from the specified reader or buffer. * @function decode - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.StartCommitRequest} StartCommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackResponse.decode = function decode(reader, length) { + StartCommitRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.dtid = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -65958,213 +65758,232 @@ $root.query = (function() { }; /** - * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. + * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.StartCommitRequest} StartCommitRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRollbackResponse.decodeDelimited = function decodeDelimited(reader) { + StartCommitRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetRollbackResponse message. + * Verifies a StartCommitRequest message. * @function verify - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetRollbackResponse.verify = function verify(message) { + StartCommitRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static * @param {Object.} object Plain object - * @returns {query.SetRollbackResponse} SetRollbackResponse + * @returns {query.StartCommitRequest} StartCommitRequest */ - SetRollbackResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.SetRollbackResponse) + StartCommitRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitRequest) return object; - return new $root.query.SetRollbackResponse(); + var message = new $root.query.StartCommitRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.StartCommitRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.StartCommitRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.StartCommitRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.SetRollbackResponse + * @memberof query.StartCommitRequest * @static - * @param {query.SetRollbackResponse} message SetRollbackResponse + * @param {query.StartCommitRequest} message StartCommitRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRollbackResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this SetRollbackResponse to JSON. - * @function toJSON - * @memberof query.SetRollbackResponse - * @instance - * @returns {Object.} JSON object - */ - SetRollbackResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SetRollbackResponse; - })(); - - query.ConcludeTransactionRequest = (function() { - - /** - * Properties of a ConcludeTransactionRequest. - * @memberof query - * @interface IConcludeTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ConcludeTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ConcludeTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] ConcludeTransactionRequest target - * @property {string|null} [dtid] ConcludeTransactionRequest dtid - */ - - /** - * Constructs a new ConcludeTransactionRequest. - * @memberof query - * @classdesc Represents a ConcludeTransactionRequest. - * @implements IConcludeTransactionRequest - * @constructor - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set - */ - function ConcludeTransactionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + StartCommitRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; + }; /** - * ConcludeTransactionRequest effective_caller_id. - * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ConcludeTransactionRequest + * Converts this StartCommitRequest to JSON. + * @function toJSON + * @memberof query.StartCommitRequest * @instance + * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.effective_caller_id = null; + StartCommitRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConcludeTransactionRequest immediate_caller_id. - * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ConcludeTransactionRequest - * @instance - */ - ConcludeTransactionRequest.prototype.immediate_caller_id = null; + return StartCommitRequest; + })(); + + query.StartCommitResponse = (function() { /** - * ConcludeTransactionRequest target. - * @member {query.ITarget|null|undefined} target - * @memberof query.ConcludeTransactionRequest - * @instance + * Properties of a StartCommitResponse. + * @memberof query + * @interface IStartCommitResponse */ - ConcludeTransactionRequest.prototype.target = null; /** - * ConcludeTransactionRequest dtid. - * @member {string} dtid - * @memberof query.ConcludeTransactionRequest - * @instance + * Constructs a new StartCommitResponse. + * @memberof query + * @classdesc Represents a StartCommitResponse. + * @implements IStartCommitResponse + * @constructor + * @param {query.IStartCommitResponse=} [properties] Properties to set */ - ConcludeTransactionRequest.prototype.dtid = ""; + function StartCommitResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. + * Creates a new StartCommitResponse instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static - * @param {query.IConcludeTransactionRequest=} [properties] Properties to set - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance + * @param {query.IStartCommitResponse=} [properties] Properties to set + * @returns {query.StartCommitResponse} StartCommitResponse instance */ - ConcludeTransactionRequest.create = function create(properties) { - return new ConcludeTransactionRequest(properties); + StartCommitResponse.create = function create(properties) { + return new StartCommitResponse(properties); }; /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encode = function encode(message, writer) { + StartCommitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) - $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) - $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. + * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static - * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode + * @param {query.IStartCommitResponse} message StartCommitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartCommitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. + * Decodes a StartCommitResponse message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.StartCommitResponse} StartCommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionRequest.decode = function decode(reader, length) { + StartCommitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StartCommitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); - break; - case 2: - message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); - break; - case 3: - message.target = $root.query.Target.decode(reader, reader.uint32()); - break; - case 4: - message.dtid = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -66174,146 +65993,98 @@ $root.query = (function() { }; /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.StartCommitResponse} StartCommitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + StartCommitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionRequest message. + * Verifies a StartCommitResponse message. * @function verify - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConcludeTransactionRequest.verify = function verify(message) { + StartCommitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); - if (error) - return "effective_caller_id." + error; - } - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { - var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); - if (error) - return "immediate_caller_id." + error; - } - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; return null; }; /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest + * @returns {query.StartCommitResponse} StartCommitResponse */ - ConcludeTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionRequest) + StartCommitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StartCommitResponse) return object; - var message = new $root.query.ConcludeTransactionRequest(); - if (object.effective_caller_id != null) { - if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ConcludeTransactionRequest.effective_caller_id: object expected"); - message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); - } - if (object.immediate_caller_id != null) { - if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ConcludeTransactionRequest.immediate_caller_id: object expected"); - message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); - } - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.dtid != null) - message.dtid = String(object.dtid); - return message; + return new $root.query.StartCommitResponse(); }; /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @static - * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest + * @param {query.StartCommitResponse} message StartCommitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.effective_caller_id = null; - object.immediate_caller_id = null; - object.target = null; - object.dtid = ""; - } - if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) - object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); - if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) - object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - return object; + StartCommitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ConcludeTransactionRequest to JSON. + * Converts this StartCommitResponse to JSON. * @function toJSON - * @memberof query.ConcludeTransactionRequest + * @memberof query.StartCommitResponse * @instance * @returns {Object.} JSON object */ - ConcludeTransactionRequest.prototype.toJSON = function toJSON() { + StartCommitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConcludeTransactionRequest; + return StartCommitResponse; })(); - query.ConcludeTransactionResponse = (function() { + query.SetRollbackRequest = (function() { /** - * Properties of a ConcludeTransactionResponse. + * Properties of a SetRollbackRequest. * @memberof query - * @interface IConcludeTransactionResponse - */ + * @interface ISetRollbackRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] SetRollbackRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] SetRollbackRequest immediate_caller_id + * @property {query.ITarget|null} [target] SetRollbackRequest target + * @property {number|Long|null} [transaction_id] SetRollbackRequest transaction_id + * @property {string|null} [dtid] SetRollbackRequest dtid + */ /** - * Constructs a new ConcludeTransactionResponse. + * Constructs a new SetRollbackRequest. * @memberof query - * @classdesc Represents a ConcludeTransactionResponse. - * @implements IConcludeTransactionResponse + * @classdesc Represents a SetRollbackRequest. + * @implements ISetRollbackRequest * @constructor - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @param {query.ISetRollbackRequest=} [properties] Properties to set */ - function ConcludeTransactionResponse(properties) { + function SetRollbackRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66321,63 +66092,128 @@ $root.query = (function() { } /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. + * SetRollbackRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.SetRollbackRequest + * @instance + */ + SetRollbackRequest.prototype.effective_caller_id = null; + + /** + * SetRollbackRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.SetRollbackRequest + * @instance + */ + SetRollbackRequest.prototype.immediate_caller_id = null; + + /** + * SetRollbackRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.SetRollbackRequest + * @instance + */ + SetRollbackRequest.prototype.target = null; + + /** + * SetRollbackRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.SetRollbackRequest + * @instance + */ + SetRollbackRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SetRollbackRequest dtid. + * @member {string} dtid + * @memberof query.SetRollbackRequest + * @instance + */ + SetRollbackRequest.prototype.dtid = ""; + + /** + * Creates a new SetRollbackRequest instance using the specified properties. * @function create - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static - * @param {query.IConcludeTransactionResponse=} [properties] Properties to set - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance + * @param {query.ISetRollbackRequest=} [properties] Properties to set + * @returns {query.SetRollbackRequest} SetRollbackRequest instance */ - ConcludeTransactionResponse.create = function create(properties) { - return new ConcludeTransactionResponse(properties); + SetRollbackRequest.create = function create(properties) { + return new SetRollbackRequest(properties); }; /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encode - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encode = function encode(message, writer) { + SetRollbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.dtid); return writer; }; /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. + * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static - * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode + * @param {query.ISetRollbackRequest} message SetRollbackRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetRollbackRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. + * Decodes a SetRollbackRequest message from the specified reader or buffer. * @function decode - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.SetRollbackRequest} SetRollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionResponse.decode = function decode(reader, length) { + SetRollbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + break; + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.dtid = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -66387,97 +66223,168 @@ $root.query = (function() { }; /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.SetRollbackRequest} SetRollbackRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConcludeTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + SetRollbackRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConcludeTransactionResponse message. + * Verifies a SetRollbackRequest message. * @function verify - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConcludeTransactionResponse.verify = function verify(message) { + SetRollbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static * @param {Object.} object Plain object - * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse + * @returns {query.SetRollbackRequest} SetRollbackRequest */ - ConcludeTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ConcludeTransactionResponse) + SetRollbackRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackRequest) return object; - return new $root.query.ConcludeTransactionResponse(); + var message = new $root.query.SetRollbackRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.SetRollbackRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.SetRollbackRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.SetRollbackRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.dtid != null) + message.dtid = String(object.dtid); + return message; }; /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @static - * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse + * @param {query.SetRollbackRequest} message SetRollbackRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConcludeTransactionResponse.toObject = function toObject() { - return {}; + SetRollbackRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.dtid = ""; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + return object; }; /** - * Converts this ConcludeTransactionResponse to JSON. + * Converts this SetRollbackRequest to JSON. * @function toJSON - * @memberof query.ConcludeTransactionResponse + * @memberof query.SetRollbackRequest * @instance * @returns {Object.} JSON object */ - ConcludeTransactionResponse.prototype.toJSON = function toJSON() { + SetRollbackRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConcludeTransactionResponse; + return SetRollbackRequest; })(); - query.ReadTransactionRequest = (function() { + query.SetRollbackResponse = (function() { /** - * Properties of a ReadTransactionRequest. + * Properties of a SetRollbackResponse. * @memberof query - * @interface IReadTransactionRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReadTransactionRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReadTransactionRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReadTransactionRequest target - * @property {string|null} [dtid] ReadTransactionRequest dtid + * @interface ISetRollbackResponse */ /** - * Constructs a new ReadTransactionRequest. + * Constructs a new SetRollbackResponse. * @memberof query - * @classdesc Represents a ReadTransactionRequest. - * @implements IReadTransactionRequest + * @classdesc Represents a SetRollbackResponse. + * @implements ISetRollbackResponse * @constructor - * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @param {query.ISetRollbackResponse=} [properties] Properties to set */ - function ReadTransactionRequest(properties) { + function SetRollbackResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66485,59 +66392,223 @@ $root.query = (function() { } /** - * ReadTransactionRequest effective_caller_id. + * Creates a new SetRollbackResponse instance using the specified properties. + * @function create + * @memberof query.SetRollbackResponse + * @static + * @param {query.ISetRollbackResponse=} [properties] Properties to set + * @returns {query.SetRollbackResponse} SetRollbackResponse instance + */ + SetRollbackResponse.create = function create(properties) { + return new SetRollbackResponse(properties); + }; + + /** + * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @function encode + * @memberof query.SetRollbackResponse + * @static + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetRollbackResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof query.SetRollbackResponse + * @static + * @param {query.ISetRollbackResponse} message SetRollbackResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetRollbackResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer. + * @function decode + * @memberof query.SetRollbackResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.SetRollbackResponse} SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetRollbackResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.SetRollbackResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.SetRollbackResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.SetRollbackResponse} SetRollbackResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetRollbackResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetRollbackResponse message. + * @function verify + * @memberof query.SetRollbackResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetRollbackResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.SetRollbackResponse + * @static + * @param {Object.} object Plain object + * @returns {query.SetRollbackResponse} SetRollbackResponse + */ + SetRollbackResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.SetRollbackResponse) + return object; + return new $root.query.SetRollbackResponse(); + }; + + /** + * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof query.SetRollbackResponse + * @static + * @param {query.SetRollbackResponse} message SetRollbackResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetRollbackResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SetRollbackResponse to JSON. + * @function toJSON + * @memberof query.SetRollbackResponse + * @instance + * @returns {Object.} JSON object + */ + SetRollbackResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetRollbackResponse; + })(); + + query.ConcludeTransactionRequest = (function() { + + /** + * Properties of a ConcludeTransactionRequest. + * @memberof query + * @interface IConcludeTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ConcludeTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ConcludeTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] ConcludeTransactionRequest target + * @property {string|null} [dtid] ConcludeTransactionRequest dtid + */ + + /** + * Constructs a new ConcludeTransactionRequest. + * @memberof query + * @classdesc Represents a ConcludeTransactionRequest. + * @implements IConcludeTransactionRequest + * @constructor + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + */ + function ConcludeTransactionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConcludeTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReadTransactionRequest.prototype.effective_caller_id = null; + ConcludeTransactionRequest.prototype.effective_caller_id = null; /** - * ReadTransactionRequest immediate_caller_id. + * ConcludeTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReadTransactionRequest.prototype.immediate_caller_id = null; + ConcludeTransactionRequest.prototype.immediate_caller_id = null; /** - * ReadTransactionRequest target. + * ConcludeTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReadTransactionRequest.prototype.target = null; + ConcludeTransactionRequest.prototype.target = null; /** - * ReadTransactionRequest dtid. + * ConcludeTransactionRequest dtid. * @member {string} dtid - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @instance */ - ReadTransactionRequest.prototype.dtid = ""; + ConcludeTransactionRequest.prototype.dtid = ""; /** - * Creates a new ReadTransactionRequest instance using the specified properties. + * Creates a new ConcludeTransactionRequest instance using the specified properties. * @function create - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IReadTransactionRequest=} [properties] Properties to set - * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance + * @param {query.IConcludeTransactionRequest=} [properties] Properties to set + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest instance */ - ReadTransactionRequest.create = function create(properties) { - return new ReadTransactionRequest(properties); + ConcludeTransactionRequest.create = function create(properties) { + return new ConcludeTransactionRequest(properties); }; /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode + * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionRequest.encode = function encode(message, writer) { + ConcludeTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -66552,33 +66623,33 @@ $root.query = (function() { }; /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. + * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode + * @param {query.IConcludeTransactionRequest} message ConcludeTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionRequest.decode = function decode(reader, length) { + ConcludeTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -66603,30 +66674,30 @@ $root.query = (function() { }; /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionRequest.decodeDelimited = function decodeDelimited(reader) { + ConcludeTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionRequest message. + * Verifies a ConcludeTransactionRequest message. * @function verify - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadTransactionRequest.verify = function verify(message) { + ConcludeTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -66651,30 +66722,30 @@ $root.query = (function() { }; /** - * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionRequest} ReadTransactionRequest + * @returns {query.ConcludeTransactionRequest} ConcludeTransactionRequest */ - ReadTransactionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionRequest) + ConcludeTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionRequest) return object; - var message = new $root.query.ReadTransactionRequest(); + var message = new $root.query.ConcludeTransactionRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReadTransactionRequest.effective_caller_id: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReadTransactionRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReadTransactionRequest.target: object expected"); + throw TypeError(".query.ConcludeTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.dtid != null) @@ -66683,15 +66754,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. + * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @static - * @param {query.ReadTransactionRequest} message ReadTransactionRequest + * @param {query.ConcludeTransactionRequest} message ConcludeTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionRequest.toObject = function toObject(message, options) { + ConcludeTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -66713,37 +66784,36 @@ $root.query = (function() { }; /** - * Converts this ReadTransactionRequest to JSON. + * Converts this ConcludeTransactionRequest to JSON. * @function toJSON - * @memberof query.ReadTransactionRequest + * @memberof query.ConcludeTransactionRequest * @instance * @returns {Object.} JSON object */ - ReadTransactionRequest.prototype.toJSON = function toJSON() { + ConcludeTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadTransactionRequest; + return ConcludeTransactionRequest; })(); - query.ReadTransactionResponse = (function() { + query.ConcludeTransactionResponse = (function() { /** - * Properties of a ReadTransactionResponse. + * Properties of a ConcludeTransactionResponse. * @memberof query - * @interface IReadTransactionResponse - * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata + * @interface IConcludeTransactionResponse */ /** - * Constructs a new ReadTransactionResponse. + * Constructs a new ConcludeTransactionResponse. * @memberof query - * @classdesc Represents a ReadTransactionResponse. - * @implements IReadTransactionResponse + * @classdesc Represents a ConcludeTransactionResponse. + * @implements IConcludeTransactionResponse * @constructor - * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set */ - function ReadTransactionResponse(properties) { + function ConcludeTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66751,76 +66821,63 @@ $root.query = (function() { } /** - * ReadTransactionResponse metadata. - * @member {query.ITransactionMetadata|null|undefined} metadata - * @memberof query.ReadTransactionResponse - * @instance - */ - ReadTransactionResponse.prototype.metadata = null; - - /** - * Creates a new ReadTransactionResponse instance using the specified properties. + * Creates a new ConcludeTransactionResponse instance using the specified properties. * @function create - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IReadTransactionResponse=} [properties] Properties to set - * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance + * @param {query.IConcludeTransactionResponse=} [properties] Properties to set + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse instance */ - ReadTransactionResponse.create = function create(properties) { - return new ReadTransactionResponse(properties); + ConcludeTransactionResponse.create = function create(properties) { + return new ConcludeTransactionResponse(properties); }; /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encode = function encode(message, writer) { + ConcludeTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.query.TransactionMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. + * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode + * @param {query.IConcludeTransactionResponse} message ConcludeTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConcludeTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionResponse.decode = function decode(reader, length) { + ConcludeTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ConcludeTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -66830,119 +66887,97 @@ $root.query = (function() { }; /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. + * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadTransactionResponse.decodeDelimited = function decodeDelimited(reader) { + ConcludeTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadTransactionResponse message. + * Verifies a ConcludeTransactionResponse message. * @function verify - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadTransactionResponse.verify = function verify(message) { + ConcludeTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.query.TransactionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } return null; }; /** - * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.ReadTransactionResponse} ReadTransactionResponse + * @returns {query.ConcludeTransactionResponse} ConcludeTransactionResponse */ - ReadTransactionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReadTransactionResponse) + ConcludeTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ConcludeTransactionResponse) return object; - var message = new $root.query.ReadTransactionResponse(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".query.ReadTransactionResponse.metadata: object expected"); - message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); - } - return message; + return new $root.query.ConcludeTransactionResponse(); }; /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @static - * @param {query.ReadTransactionResponse} message ReadTransactionResponse + * @param {query.ConcludeTransactionResponse} message ConcludeTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadTransactionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); - return object; + ConcludeTransactionResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ReadTransactionResponse to JSON. + * Converts this ConcludeTransactionResponse to JSON. * @function toJSON - * @memberof query.ReadTransactionResponse + * @memberof query.ConcludeTransactionResponse * @instance * @returns {Object.} JSON object */ - ReadTransactionResponse.prototype.toJSON = function toJSON() { + ConcludeTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadTransactionResponse; + return ConcludeTransactionResponse; })(); - query.BeginExecuteRequest = (function() { + query.ReadTransactionRequest = (function() { /** - * Properties of a BeginExecuteRequest. + * Properties of a ReadTransactionRequest. * @memberof query - * @interface IBeginExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginExecuteRequest target - * @property {query.IBoundQuery|null} [query] BeginExecuteRequest query - * @property {query.IExecuteOptions|null} [options] BeginExecuteRequest options - * @property {number|Long|null} [reserved_id] BeginExecuteRequest reserved_id - * @property {Array.|null} [pre_queries] BeginExecuteRequest pre_queries + * @interface IReadTransactionRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReadTransactionRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReadTransactionRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReadTransactionRequest target + * @property {string|null} [dtid] ReadTransactionRequest dtid */ /** - * Constructs a new BeginExecuteRequest. + * Constructs a new ReadTransactionRequest. * @memberof query - * @classdesc Represents a BeginExecuteRequest. - * @implements IBeginExecuteRequest + * @classdesc Represents a ReadTransactionRequest. + * @implements IReadTransactionRequest * @constructor - * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @param {query.IReadTransactionRequest=} [properties] Properties to set */ - function BeginExecuteRequest(properties) { - this.pre_queries = []; + function ReadTransactionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66950,83 +66985,59 @@ $root.query = (function() { } /** - * BeginExecuteRequest effective_caller_id. + * ReadTransactionRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - BeginExecuteRequest.prototype.effective_caller_id = null; + ReadTransactionRequest.prototype.effective_caller_id = null; /** - * BeginExecuteRequest immediate_caller_id. + * ReadTransactionRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - BeginExecuteRequest.prototype.immediate_caller_id = null; + ReadTransactionRequest.prototype.immediate_caller_id = null; /** - * BeginExecuteRequest target. + * ReadTransactionRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.target = null; - - /** - * BeginExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.query = null; - - /** - * BeginExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginExecuteRequest - * @instance - */ - BeginExecuteRequest.prototype.options = null; - - /** - * BeginExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance */ - BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReadTransactionRequest.prototype.target = null; /** - * BeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginExecuteRequest + * ReadTransactionRequest dtid. + * @member {string} dtid + * @memberof query.ReadTransactionRequest * @instance */ - BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + ReadTransactionRequest.prototype.dtid = ""; /** - * Creates a new BeginExecuteRequest instance using the specified properties. + * Creates a new ReadTransactionRequest instance using the specified properties. * @function create - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IBeginExecuteRequest=} [properties] Properties to set - * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance + * @param {query.IReadTransactionRequest=} [properties] Properties to set + * @returns {query.ReadTransactionRequest} ReadTransactionRequest instance */ - BeginExecuteRequest.create = function create(properties) { - return new BeginExecuteRequest(properties); + ReadTransactionRequest.create = function create(properties) { + return new ReadTransactionRequest(properties); }; /** - * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode + * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteRequest.encode = function encode(message, writer) { + ReadTransactionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -67035,46 +67046,39 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.reserved_id); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dtid); return writer; }; /** - * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode + * @param {query.IReadTransactionRequest} message ReadTransactionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer. + * Decodes a ReadTransactionRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteRequest.decode = function decode(reader, length) { + ReadTransactionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -67088,18 +67092,7 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); - break; - case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 6: - message.reserved_id = reader.int64(); - break; - case 7: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); + message.dtid = reader.string(); break; default: reader.skipType(tag & 7); @@ -67110,30 +67103,30 @@ $root.query = (function() { }; /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ReadTransactionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginExecuteRequest message. + * Verifies a ReadTransactionRequest message. * @function verify - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginExecuteRequest.verify = function verify(message) { + ReadTransactionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -67151,111 +67144,62 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; return null; }; /** - * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteRequest} BeginExecuteRequest + * @returns {query.ReadTransactionRequest} ReadTransactionRequest */ - BeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteRequest) + ReadTransactionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionRequest) return object; - var message = new $root.query.BeginExecuteRequest(); + var message = new $root.query.ReadTransactionRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReadTransactionRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReadTransactionRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.BeginExecuteRequest.target: object expected"); + throw TypeError(".query.ReadTransactionRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.BeginExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.BeginExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } + if (object.dtid != null) + message.dtid = String(object.dtid); return message; }; /** - * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @static - * @param {query.BeginExecuteRequest} message BeginExecuteRequest + * @param {query.ReadTransactionRequest} message ReadTransactionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteRequest.toObject = function toObject(message, options) { + ReadTransactionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - object.options = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; + object.dtid = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -67263,59 +67207,43 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; return object; }; /** - * Converts this BeginExecuteRequest to JSON. + * Converts this ReadTransactionRequest to JSON. * @function toJSON - * @memberof query.BeginExecuteRequest + * @memberof query.ReadTransactionRequest * @instance * @returns {Object.} JSON object */ - BeginExecuteRequest.prototype.toJSON = function toJSON() { + ReadTransactionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginExecuteRequest; + return ReadTransactionRequest; })(); - query.BeginExecuteResponse = (function() { + query.ReadTransactionResponse = (function() { /** - * Properties of a BeginExecuteResponse. + * Properties of a ReadTransactionResponse. * @memberof query - * @interface IBeginExecuteResponse - * @property {vtrpc.IRPCError|null} [error] BeginExecuteResponse error - * @property {query.IQueryResult|null} [result] BeginExecuteResponse result - * @property {number|Long|null} [transaction_id] BeginExecuteResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] BeginExecuteResponse session_state_changes + * @interface IReadTransactionResponse + * @property {query.ITransactionMetadata|null} [metadata] ReadTransactionResponse metadata */ /** - * Constructs a new BeginExecuteResponse. + * Constructs a new ReadTransactionResponse. * @memberof query - * @classdesc Represents a BeginExecuteResponse. - * @implements IBeginExecuteResponse + * @classdesc Represents a ReadTransactionResponse. + * @implements IReadTransactionResponse * @constructor - * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @param {query.IReadTransactionResponse=} [properties] Properties to set */ - function BeginExecuteResponse(properties) { + function ReadTransactionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67323,127 +67251,75 @@ $root.query = (function() { } /** - * BeginExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.error = null; - - /** - * BeginExecuteResponse result. - * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.result = null; - - /** - * BeginExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BeginExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginExecuteResponse - * @instance - */ - BeginExecuteResponse.prototype.tablet_alias = null; - - /** - * BeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.BeginExecuteResponse + * ReadTransactionResponse metadata. + * @member {query.ITransactionMetadata|null|undefined} metadata + * @memberof query.ReadTransactionResponse * @instance */ - BeginExecuteResponse.prototype.session_state_changes = ""; + ReadTransactionResponse.prototype.metadata = null; /** - * Creates a new BeginExecuteResponse instance using the specified properties. + * Creates a new ReadTransactionResponse instance using the specified properties. * @function create - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IBeginExecuteResponse=} [properties] Properties to set - * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance + * @param {query.IReadTransactionResponse=} [properties] Properties to set + * @returns {query.ReadTransactionResponse} ReadTransactionResponse instance */ - BeginExecuteResponse.create = function create(properties) { - return new BeginExecuteResponse(properties); + ReadTransactionResponse.create = function create(properties) { + return new ReadTransactionResponse(properties); }; /** - * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encode - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encode = function encode(message, writer) { + ReadTransactionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.query.TransactionMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode + * @param {query.IReadTransactionResponse} message ReadTransactionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReadTransactionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer. + * Decodes a ReadTransactionResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteResponse.decode = function decode(reader, length) { + ReadTransactionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReadTransactionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: - message.result = $root.query.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.transaction_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 5: - message.session_state_changes = reader.string(); + message.metadata = $root.query.TransactionMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67454,175 +67330,118 @@ $root.query = (function() { }; /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ReadTransactionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginExecuteResponse message. + * Verifies a ReadTransactionResponse message. * @function verify - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginExecuteResponse.verify = function verify(message) { + ReadTransactionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.query.QueryResult.verify(message.result); - if (error) - return "result." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.query.TransactionMetadata.verify(message.metadata); if (error) - return "tablet_alias." + error; + return "metadata." + error; } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginExecuteResponse} BeginExecuteResponse + * @returns {query.ReadTransactionResponse} ReadTransactionResponse */ - BeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginExecuteResponse) + ReadTransactionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReadTransactionResponse) return object; - var message = new $root.query.BeginExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.BeginExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".query.BeginExecuteResponse.result: object expected"); - message.result = $root.query.QueryResult.fromObject(object.result); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.query.ReadTransactionResponse(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".query.ReadTransactionResponse.metadata: object expected"); + message.metadata = $root.query.TransactionMetadata.fromObject(object.metadata); } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @static - * @param {query.BeginExecuteResponse} message BeginExecuteResponse + * @param {query.ReadTransactionResponse} message ReadTransactionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginExecuteResponse.toObject = function toObject(message, options) { + ReadTransactionResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.error = null; - object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - object.session_state_changes = ""; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.query.TransactionMetadata.toObject(message.metadata, options); return object; }; /** - * Converts this BeginExecuteResponse to JSON. + * Converts this ReadTransactionResponse to JSON. * @function toJSON - * @memberof query.BeginExecuteResponse + * @memberof query.ReadTransactionResponse * @instance * @returns {Object.} JSON object */ - BeginExecuteResponse.prototype.toJSON = function toJSON() { + ReadTransactionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginExecuteResponse; + return ReadTransactionResponse; })(); - query.BeginStreamExecuteRequest = (function() { + query.BeginExecuteRequest = (function() { /** - * Properties of a BeginStreamExecuteRequest. + * Properties of a BeginExecuteRequest. * @memberof query - * @interface IBeginStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] BeginStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] BeginStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] BeginStreamExecuteRequest options - * @property {Array.|null} [pre_queries] BeginStreamExecuteRequest pre_queries - * @property {number|Long|null} [reserved_id] BeginStreamExecuteRequest reserved_id + * @interface IBeginExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginExecuteRequest target + * @property {query.IBoundQuery|null} [query] BeginExecuteRequest query + * @property {query.IExecuteOptions|null} [options] BeginExecuteRequest options + * @property {number|Long|null} [reserved_id] BeginExecuteRequest reserved_id + * @property {Array.|null} [pre_queries] BeginExecuteRequest pre_queries */ /** - * Constructs a new BeginStreamExecuteRequest. + * Constructs a new BeginExecuteRequest. * @memberof query - * @classdesc Represents a BeginStreamExecuteRequest. - * @implements IBeginStreamExecuteRequest + * @classdesc Represents a BeginExecuteRequest. + * @implements IBeginExecuteRequest * @constructor - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IBeginExecuteRequest=} [properties] Properties to set */ - function BeginStreamExecuteRequest(properties) { + function BeginExecuteRequest(properties) { this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -67631,83 +67450,83 @@ $root.query = (function() { } /** - * BeginStreamExecuteRequest effective_caller_id. + * BeginExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.effective_caller_id = null; + BeginExecuteRequest.prototype.effective_caller_id = null; /** - * BeginStreamExecuteRequest immediate_caller_id. + * BeginExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.immediate_caller_id = null; + BeginExecuteRequest.prototype.immediate_caller_id = null; /** - * BeginStreamExecuteRequest target. + * BeginExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.target = null; + BeginExecuteRequest.prototype.target = null; /** - * BeginStreamExecuteRequest query. + * BeginExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.query = null; + BeginExecuteRequest.prototype.query = null; /** - * BeginStreamExecuteRequest options. + * BeginExecuteRequest options. * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.options = null; + BeginExecuteRequest.prototype.options = null; /** - * BeginStreamExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.BeginStreamExecuteRequest + * BeginExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + BeginExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BeginStreamExecuteRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.BeginStreamExecuteRequest + * BeginExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.BeginExecuteRequest * @instance */ - BeginStreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Creates a new BeginStreamExecuteRequest instance using the specified properties. + * Creates a new BeginExecuteRequest instance using the specified properties. * @function create - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance + * @param {query.IBeginExecuteRequest=} [properties] Properties to set + * @returns {query.BeginExecuteRequest} BeginExecuteRequest instance */ - BeginStreamExecuteRequest.create = function create(properties) { - return new BeginStreamExecuteRequest(properties); + BeginExecuteRequest.create = function create(properties) { + return new BeginExecuteRequest(properties); }; /** - * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode + * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteRequest.encode = function encode(message, writer) { + BeginExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -67720,42 +67539,42 @@ $root.query = (function() { $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.reserved_id); if (message.pre_queries != null && message.pre_queries.length) for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode + * @param {query.IBeginExecuteRequest} message BeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a BeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteRequest.decode = function decode(reader, length) { + BeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -67775,13 +67594,13 @@ $root.query = (function() { message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 6: + message.reserved_id = reader.int64(); + break; + case 7: if (!(message.pre_queries && message.pre_queries.length)) message.pre_queries = []; message.pre_queries.push(reader.string()); break; - case 7: - message.reserved_id = reader.int64(); - break; default: reader.skipType(tag & 7); break; @@ -67791,30 +67610,30 @@ $root.query = (function() { }; /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + BeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginStreamExecuteRequest message. + * Verifies a BeginExecuteRequest message. * @function verify - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginStreamExecuteRequest.verify = function verify(message) { + BeginExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -67842,6 +67661,9 @@ $root.query = (function() { if (error) return "options." + error; } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { if (!Array.isArray(message.pre_queries)) return "pre_queries: array expected"; @@ -67849,56 +67671,46 @@ $root.query = (function() { if (!$util.isString(message.pre_queries[i])) return "pre_queries: string[] expected"; } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest + * @returns {query.BeginExecuteRequest} BeginExecuteRequest */ - BeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteRequest) + BeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteRequest) return object; - var message = new $root.query.BeginStreamExecuteRequest(); + var message = new $root.query.BeginExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.target: object expected"); + throw TypeError(".query.BeginExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.query: object expected"); + throw TypeError(".query.BeginExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".query.BeginStreamExecuteRequest.options: object expected"); + throw TypeError(".query.BeginExecuteRequest.options: object expected"); message.options = $root.query.ExecuteOptions.fromObject(object.options); } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.BeginStreamExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); - } if (object.reserved_id != null) if ($util.Long) (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; @@ -67908,19 +67720,26 @@ $root.query = (function() { message.reserved_id = object.reserved_id; else if (typeof object.reserved_id === "object") message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.BeginExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } return message; }; /** - * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @static - * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest + * @param {query.BeginExecuteRequest} message BeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteRequest.toObject = function toObject(message, options) { + BeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -67948,55 +67767,55 @@ $root.query = (function() { object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.options != null && message.hasOwnProperty("options")) object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; - } if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (typeof message.reserved_id === "number") object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; else object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } return object; }; /** - * Converts this BeginStreamExecuteRequest to JSON. + * Converts this BeginExecuteRequest to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteRequest + * @memberof query.BeginExecuteRequest * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + BeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginStreamExecuteRequest; + return BeginExecuteRequest; })(); - query.BeginStreamExecuteResponse = (function() { + query.BeginExecuteResponse = (function() { /** - * Properties of a BeginStreamExecuteResponse. + * Properties of a BeginExecuteResponse. * @memberof query - * @interface IBeginStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] BeginStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] BeginStreamExecuteResponse result - * @property {number|Long|null} [transaction_id] BeginStreamExecuteResponse transaction_id - * @property {topodata.ITabletAlias|null} [tablet_alias] BeginStreamExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] BeginStreamExecuteResponse session_state_changes + * @interface IBeginExecuteResponse + * @property {vtrpc.IRPCError|null} [error] BeginExecuteResponse error + * @property {query.IQueryResult|null} [result] BeginExecuteResponse result + * @property {number|Long|null} [transaction_id] BeginExecuteResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] BeginExecuteResponse session_state_changes */ /** - * Constructs a new BeginStreamExecuteResponse. + * Constructs a new BeginExecuteResponse. * @memberof query - * @classdesc Represents a BeginStreamExecuteResponse. - * @implements IBeginStreamExecuteResponse + * @classdesc Represents a BeginExecuteResponse. + * @implements IBeginExecuteResponse * @constructor - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IBeginExecuteResponse=} [properties] Properties to set */ - function BeginStreamExecuteResponse(properties) { + function BeginExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68004,67 +67823,67 @@ $root.query = (function() { } /** - * BeginStreamExecuteResponse error. + * BeginExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - BeginStreamExecuteResponse.prototype.error = null; + BeginExecuteResponse.prototype.error = null; /** - * BeginStreamExecuteResponse result. + * BeginExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - BeginStreamExecuteResponse.prototype.result = null; + BeginExecuteResponse.prototype.result = null; /** - * BeginStreamExecuteResponse transaction_id. + * BeginExecuteResponse transaction_id. * @member {number|Long} transaction_id - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * BeginStreamExecuteResponse tablet_alias. + * BeginExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - BeginStreamExecuteResponse.prototype.tablet_alias = null; + BeginExecuteResponse.prototype.tablet_alias = null; /** - * BeginStreamExecuteResponse session_state_changes. + * BeginExecuteResponse session_state_changes. * @member {string} session_state_changes - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance */ - BeginStreamExecuteResponse.prototype.session_state_changes = ""; + BeginExecuteResponse.prototype.session_state_changes = ""; /** - * Creates a new BeginStreamExecuteResponse instance using the specified properties. + * Creates a new BeginExecuteResponse instance using the specified properties. * @function create - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance + * @param {query.IBeginExecuteResponse=} [properties] Properties to set + * @returns {query.BeginExecuteResponse} BeginExecuteResponse instance */ - BeginStreamExecuteResponse.create = function create(properties) { - return new BeginStreamExecuteResponse(properties); + BeginExecuteResponse.create = function create(properties) { + return new BeginExecuteResponse(properties); }; /** - * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode + * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteResponse.encode = function encode(message, writer) { + BeginExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) @@ -68081,33 +67900,33 @@ $root.query = (function() { }; /** - * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode + * @param {query.IBeginExecuteResponse} message BeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a BeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteResponse.decode = function decode(reader, length) { + BeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -68135,30 +67954,30 @@ $root.query = (function() { }; /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + BeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BeginStreamExecuteResponse message. + * Verifies a BeginExecuteResponse message. * @function verify - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BeginStreamExecuteResponse.verify = function verify(message) { + BeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -68186,25 +68005,25 @@ $root.query = (function() { }; /** - * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse + * @returns {query.BeginExecuteResponse} BeginExecuteResponse */ - BeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.BeginStreamExecuteResponse) + BeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginExecuteResponse) return object; - var message = new $root.query.BeginStreamExecuteResponse(); + var message = new $root.query.BeginExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.error: object expected"); + throw TypeError(".query.BeginExecuteResponse.error: object expected"); message.error = $root.vtrpc.RPCError.fromObject(object.error); } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); + throw TypeError(".query.BeginExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } if (object.transaction_id != null) @@ -68218,7 +68037,7 @@ $root.query = (function() { message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.BeginStreamExecuteResponse.tablet_alias: object expected"); + throw TypeError(".query.BeginExecuteResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } if (object.session_state_changes != null) @@ -68227,15 +68046,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @static - * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse + * @param {query.BeginExecuteResponse} message BeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BeginStreamExecuteResponse.toObject = function toObject(message, options) { + BeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -68267,40 +68086,44 @@ $root.query = (function() { }; /** - * Converts this BeginStreamExecuteResponse to JSON. + * Converts this BeginExecuteResponse to JSON. * @function toJSON - * @memberof query.BeginStreamExecuteResponse + * @memberof query.BeginExecuteResponse * @instance * @returns {Object.} JSON object */ - BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + BeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BeginStreamExecuteResponse; + return BeginExecuteResponse; })(); - query.MessageStreamRequest = (function() { + query.BeginStreamExecuteRequest = (function() { /** - * Properties of a MessageStreamRequest. + * Properties of a BeginStreamExecuteRequest. * @memberof query - * @interface IMessageStreamRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageStreamRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageStreamRequest immediate_caller_id - * @property {query.ITarget|null} [target] MessageStreamRequest target - * @property {string|null} [name] MessageStreamRequest name - */ - + * @interface IBeginStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] BeginStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] BeginStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] BeginStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] BeginStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] BeginStreamExecuteRequest options + * @property {Array.|null} [pre_queries] BeginStreamExecuteRequest pre_queries + * @property {number|Long|null} [reserved_id] BeginStreamExecuteRequest reserved_id + */ + /** - * Constructs a new MessageStreamRequest. + * Constructs a new BeginStreamExecuteRequest. * @memberof query - * @classdesc Represents a MessageStreamRequest. - * @implements IMessageStreamRequest + * @classdesc Represents a BeginStreamExecuteRequest. + * @implements IBeginStreamExecuteRequest * @constructor - * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set */ - function MessageStreamRequest(properties) { + function BeginStreamExecuteRequest(properties) { + this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68308,59 +68131,83 @@ $root.query = (function() { } /** - * MessageStreamRequest effective_caller_id. + * BeginStreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - MessageStreamRequest.prototype.effective_caller_id = null; + BeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * MessageStreamRequest immediate_caller_id. + * BeginStreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - MessageStreamRequest.prototype.immediate_caller_id = null; + BeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * MessageStreamRequest target. + * BeginStreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @instance */ - MessageStreamRequest.prototype.target = null; + BeginStreamExecuteRequest.prototype.target = null; /** - * MessageStreamRequest name. - * @member {string} name - * @memberof query.MessageStreamRequest + * BeginStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.BeginStreamExecuteRequest * @instance */ - MessageStreamRequest.prototype.name = ""; + BeginStreamExecuteRequest.prototype.query = null; /** - * Creates a new MessageStreamRequest instance using the specified properties. + * BeginStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.BeginStreamExecuteRequest + * @instance + */ + BeginStreamExecuteRequest.prototype.options = null; + + /** + * BeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.BeginStreamExecuteRequest + * @instance + */ + BeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * BeginStreamExecuteRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.BeginStreamExecuteRequest + * @instance + */ + BeginStreamExecuteRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new BeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IMessageStreamRequest=} [properties] Properties to set - * @returns {query.MessageStreamRequest} MessageStreamRequest instance + * @param {query.IBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest instance */ - MessageStreamRequest.create = function create(properties) { - return new MessageStreamRequest(properties); + BeginStreamExecuteRequest.create = function create(properties) { + return new BeginStreamExecuteRequest(properties); }; /** - * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode + * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamRequest.encode = function encode(message, writer) { + BeginStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -68369,39 +68216,46 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 7, wireType 0 =*/56).int64(message.reserved_id); return writer; }; /** - * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. + * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode + * @param {query.IBeginStreamExecuteRequest} message BeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamRequest message from the specified reader or buffer. + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamRequest.decode = function decode(reader, length) { + BeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -68415,7 +68269,18 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.name = reader.string(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + break; + case 5: + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + case 7: + message.reserved_id = reader.int64(); break; default: reader.skipType(tag & 7); @@ -68426,30 +68291,30 @@ $root.query = (function() { }; /** - * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. + * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamRequest.decodeDelimited = function decodeDelimited(reader) { + BeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageStreamRequest message. + * Verifies a BeginStreamExecuteRequest message. * @function verify - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageStreamRequest.verify = function verify(message) { + BeginStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -68467,62 +68332,111 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamRequest} MessageStreamRequest + * @returns {query.BeginStreamExecuteRequest} BeginStreamExecuteRequest */ - MessageStreamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamRequest) + BeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteRequest) return object; - var message = new $root.query.MessageStreamRequest(); + var message = new $root.query.BeginStreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.MessageStreamRequest.effective_caller_id: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.MessageStreamRequest.immediate_caller_id: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.MessageStreamRequest.target: object expected"); + throw TypeError(".query.BeginStreamExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.name != null) - message.name = String(object.name); + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.BeginStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.BeginStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.BeginStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. + * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @static - * @param {query.MessageStreamRequest} message MessageStreamRequest + * @param {query.BeginStreamExecuteRequest} message BeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamRequest.toObject = function toObject(message, options) { + BeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.pre_queries = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.name = ""; + object.query = null; + object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -68530,43 +68444,59 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; return object; }; /** - * Converts this MessageStreamRequest to JSON. + * Converts this BeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.MessageStreamRequest + * @memberof query.BeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - MessageStreamRequest.prototype.toJSON = function toJSON() { + BeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageStreamRequest; + return BeginStreamExecuteRequest; })(); - query.MessageStreamResponse = (function() { + query.BeginStreamExecuteResponse = (function() { /** - * Properties of a MessageStreamResponse. + * Properties of a BeginStreamExecuteResponse. * @memberof query - * @interface IMessageStreamResponse - * @property {query.IQueryResult|null} [result] MessageStreamResponse result + * @interface IBeginStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] BeginStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] BeginStreamExecuteResponse result + * @property {number|Long|null} [transaction_id] BeginStreamExecuteResponse transaction_id + * @property {topodata.ITabletAlias|null} [tablet_alias] BeginStreamExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] BeginStreamExecuteResponse session_state_changes */ /** - * Constructs a new MessageStreamResponse. + * Constructs a new BeginStreamExecuteResponse. * @memberof query - * @classdesc Represents a MessageStreamResponse. - * @implements IMessageStreamResponse + * @classdesc Represents a BeginStreamExecuteResponse. + * @implements IBeginStreamExecuteResponse * @constructor - * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set */ - function MessageStreamResponse(properties) { + function BeginStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68574,76 +68504,128 @@ $root.query = (function() { } /** - * MessageStreamResponse result. + * BeginStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.error = null; + + /** + * BeginStreamExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @instance */ - MessageStreamResponse.prototype.result = null; + BeginStreamExecuteResponse.prototype.result = null; /** - * Creates a new MessageStreamResponse instance using the specified properties. + * BeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * BeginStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.tablet_alias = null; + + /** + * BeginStreamExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.BeginStreamExecuteResponse + * @instance + */ + BeginStreamExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new BeginStreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IMessageStreamResponse=} [properties] Properties to set - * @returns {query.MessageStreamResponse} MessageStreamResponse instance + * @param {query.IBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse instance */ - MessageStreamResponse.create = function create(properties) { - return new MessageStreamResponse(properties); + BeginStreamExecuteResponse.create = function create(properties) { + return new BeginStreamExecuteResponse(properties); }; /** - * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode + * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamResponse.encode = function encode(message, writer) { + BeginStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.session_state_changes); return writer; }; /** - * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. + * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode + * @param {query.IBeginStreamExecuteResponse} message BeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { + BeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageStreamResponse message from the specified reader or buffer. + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamResponse.decode = function decode(reader, length) { + BeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BeginStreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + break; + case 2: message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; + case 3: + message.transaction_id = reader.int64(); + break; + case 4: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 5: + message.session_state_changes = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -68653,117 +68635,172 @@ $root.query = (function() { }; /** - * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. + * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageStreamResponse.decodeDelimited = function decodeDelimited(reader) { + BeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageStreamResponse message. + * Verifies a BeginStreamExecuteResponse message. * @function verify - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageStreamResponse.verify = function verify(message) { + BeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } if (message.result != null && message.hasOwnProperty("result")) { var error = $root.query.QueryResult.verify(message.result); if (error) return "result." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; return null; }; /** - * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageStreamResponse} MessageStreamResponse + * @returns {query.BeginStreamExecuteResponse} BeginStreamExecuteResponse */ - MessageStreamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageStreamResponse) + BeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.BeginStreamExecuteResponse) return object; - var message = new $root.query.MessageStreamResponse(); + var message = new $root.query.BeginStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.BeginStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.MessageStreamResponse.result: object expected"); + throw TypeError(".query.BeginStreamExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.BeginStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. + * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @static - * @param {query.MessageStreamResponse} message MessageStreamResponse + * @param {query.BeginStreamExecuteResponse} message BeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageStreamResponse.toObject = function toObject(message, options) { + BeginStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.error = null; object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); if (message.result != null && message.hasOwnProperty("result")) object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this MessageStreamResponse to JSON. + * Converts this BeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.MessageStreamResponse + * @memberof query.BeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - MessageStreamResponse.prototype.toJSON = function toJSON() { + BeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageStreamResponse; + return BeginStreamExecuteResponse; })(); - query.MessageAckRequest = (function() { + query.MessageStreamRequest = (function() { /** - * Properties of a MessageAckRequest. + * Properties of a MessageStreamRequest. * @memberof query - * @interface IMessageAckRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageAckRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageAckRequest immediate_caller_id - * @property {query.ITarget|null} [target] MessageAckRequest target - * @property {string|null} [name] MessageAckRequest name - * @property {Array.|null} [ids] MessageAckRequest ids + * @interface IMessageStreamRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageStreamRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageStreamRequest immediate_caller_id + * @property {query.ITarget|null} [target] MessageStreamRequest target + * @property {string|null} [name] MessageStreamRequest name */ /** - * Constructs a new MessageAckRequest. + * Constructs a new MessageStreamRequest. * @memberof query - * @classdesc Represents a MessageAckRequest. - * @implements IMessageAckRequest + * @classdesc Represents a MessageStreamRequest. + * @implements IMessageStreamRequest * @constructor - * @param {query.IMessageAckRequest=} [properties] Properties to set + * @param {query.IMessageStreamRequest=} [properties] Properties to set */ - function MessageAckRequest(properties) { - this.ids = []; + function MessageStreamRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68771,67 +68808,59 @@ $root.query = (function() { } /** - * MessageAckRequest effective_caller_id. + * MessageStreamRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @instance */ - MessageAckRequest.prototype.effective_caller_id = null; + MessageStreamRequest.prototype.effective_caller_id = null; /** - * MessageAckRequest immediate_caller_id. + * MessageStreamRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @instance */ - MessageAckRequest.prototype.immediate_caller_id = null; + MessageStreamRequest.prototype.immediate_caller_id = null; /** - * MessageAckRequest target. + * MessageStreamRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @instance */ - MessageAckRequest.prototype.target = null; + MessageStreamRequest.prototype.target = null; /** - * MessageAckRequest name. + * MessageStreamRequest name. * @member {string} name - * @memberof query.MessageAckRequest - * @instance - */ - MessageAckRequest.prototype.name = ""; - - /** - * MessageAckRequest ids. - * @member {Array.} ids - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @instance */ - MessageAckRequest.prototype.ids = $util.emptyArray; + MessageStreamRequest.prototype.name = ""; /** - * Creates a new MessageAckRequest instance using the specified properties. + * Creates a new MessageStreamRequest instance using the specified properties. * @function create - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IMessageAckRequest=} [properties] Properties to set - * @returns {query.MessageAckRequest} MessageAckRequest instance + * @param {query.IMessageStreamRequest=} [properties] Properties to set + * @returns {query.MessageStreamRequest} MessageStreamRequest instance */ - MessageAckRequest.create = function create(properties) { - return new MessageAckRequest(properties); + MessageStreamRequest.create = function create(properties) { + return new MessageStreamRequest(properties); }; /** - * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encode - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encode = function encode(message, writer) { + MessageStreamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -68842,40 +68871,37 @@ $root.query = (function() { $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - $root.query.Value.encode(message.ids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. + * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode + * @param {query.IMessageStreamRequest} message MessageStreamRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer. + * Decodes a MessageStreamRequest message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckRequest.decode = function decode(reader, length) { + MessageStreamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -68891,11 +68917,6 @@ $root.query = (function() { case 4: message.name = reader.string(); break; - case 5: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push($root.query.Value.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -68905,30 +68926,30 @@ $root.query = (function() { }; /** - * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. + * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckRequest.decodeDelimited = function decodeDelimited(reader) { + MessageStreamRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckRequest message. + * Verifies a MessageStreamRequest message. * @function verify - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageAckRequest.verify = function verify(message) { + MessageStreamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -68949,75 +68970,54 @@ $root.query = (function() { if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) { - var error = $root.query.Value.verify(message.ids[i]); - if (error) - return "ids." + error; - } - } return null; }; /** - * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static * @param {Object.} object Plain object - * @returns {query.MessageAckRequest} MessageAckRequest + * @returns {query.MessageStreamRequest} MessageStreamRequest */ - MessageAckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckRequest) + MessageStreamRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamRequest) return object; - var message = new $root.query.MessageAckRequest(); + var message = new $root.query.MessageStreamRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.MessageAckRequest.effective_caller_id: object expected"); + throw TypeError(".query.MessageStreamRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.MessageAckRequest.immediate_caller_id: object expected"); + throw TypeError(".query.MessageStreamRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.MessageAckRequest.target: object expected"); + throw TypeError(".query.MessageStreamRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.name != null) message.name = String(object.name); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".query.MessageAckRequest.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) { - if (typeof object.ids[i] !== "object") - throw TypeError(".query.MessageAckRequest.ids: object expected"); - message.ids[i] = $root.query.Value.fromObject(object.ids[i]); - } - } return message; }; /** - * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. + * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @static - * @param {query.MessageAckRequest} message MessageAckRequest + * @param {query.MessageStreamRequest} message MessageStreamRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckRequest.toObject = function toObject(message, options) { + MessageStreamRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.ids = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; @@ -69032,46 +69032,41 @@ $root.query = (function() { object.target = $root.query.Target.toObject(message.target, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = $root.query.Value.toObject(message.ids[j], options); - } return object; }; /** - * Converts this MessageAckRequest to JSON. + * Converts this MessageStreamRequest to JSON. * @function toJSON - * @memberof query.MessageAckRequest + * @memberof query.MessageStreamRequest * @instance * @returns {Object.} JSON object */ - MessageAckRequest.prototype.toJSON = function toJSON() { + MessageStreamRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageAckRequest; + return MessageStreamRequest; })(); - query.MessageAckResponse = (function() { + query.MessageStreamResponse = (function() { /** - * Properties of a MessageAckResponse. + * Properties of a MessageStreamResponse. * @memberof query - * @interface IMessageAckResponse - * @property {query.IQueryResult|null} [result] MessageAckResponse result + * @interface IMessageStreamResponse + * @property {query.IQueryResult|null} [result] MessageStreamResponse result */ /** - * Constructs a new MessageAckResponse. + * Constructs a new MessageStreamResponse. * @memberof query - * @classdesc Represents a MessageAckResponse. - * @implements IMessageAckResponse + * @classdesc Represents a MessageStreamResponse. + * @implements IMessageStreamResponse * @constructor - * @param {query.IMessageAckResponse=} [properties] Properties to set + * @param {query.IMessageStreamResponse=} [properties] Properties to set */ - function MessageAckResponse(properties) { + function MessageStreamResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69079,35 +69074,35 @@ $root.query = (function() { } /** - * MessageAckResponse result. + * MessageStreamResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @instance */ - MessageAckResponse.prototype.result = null; + MessageStreamResponse.prototype.result = null; /** - * Creates a new MessageAckResponse instance using the specified properties. + * Creates a new MessageStreamResponse instance using the specified properties. * @function create - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IMessageAckResponse=} [properties] Properties to set - * @returns {query.MessageAckResponse} MessageAckResponse instance + * @param {query.IMessageStreamResponse=} [properties] Properties to set + * @returns {query.MessageStreamResponse} MessageStreamResponse instance */ - MessageAckResponse.create = function create(properties) { - return new MessageAckResponse(properties); + MessageStreamResponse.create = function create(properties) { + return new MessageStreamResponse(properties); }; /** - * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encode - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encode = function encode(message, writer) { + MessageStreamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) @@ -69116,33 +69111,33 @@ $root.query = (function() { }; /** - * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. + * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode + * @param {query.IMessageStreamResponse} message MessageStreamResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + MessageStreamResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer. + * Decodes a MessageStreamResponse message from the specified reader or buffer. * @function decode - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.MessageStreamResponse} MessageStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckResponse.decode = function decode(reader, length) { + MessageStreamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageStreamResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -69158,30 +69153,30 @@ $root.query = (function() { }; /** - * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. + * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.MessageStreamResponse} MessageStreamResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageAckResponse.decodeDelimited = function decodeDelimited(reader) { + MessageStreamResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageAckResponse message. + * Verifies a MessageStreamResponse message. * @function verify - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageAckResponse.verify = function verify(message) { + MessageStreamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.result != null && message.hasOwnProperty("result")) { @@ -69193,35 +69188,35 @@ $root.query = (function() { }; /** - * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static * @param {Object.} object Plain object - * @returns {query.MessageAckResponse} MessageAckResponse + * @returns {query.MessageStreamResponse} MessageStreamResponse */ - MessageAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.MessageAckResponse) + MessageStreamResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageStreamResponse) return object; - var message = new $root.query.MessageAckResponse(); + var message = new $root.query.MessageStreamResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.MessageAckResponse.result: object expected"); + throw TypeError(".query.MessageStreamResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @static - * @param {query.MessageAckResponse} message MessageAckResponse + * @param {query.MessageStreamResponse} message MessageStreamResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageAckResponse.toObject = function toObject(message, options) { + MessageStreamResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -69233,44 +69228,42 @@ $root.query = (function() { }; /** - * Converts this MessageAckResponse to JSON. + * Converts this MessageStreamResponse to JSON. * @function toJSON - * @memberof query.MessageAckResponse + * @memberof query.MessageStreamResponse * @instance * @returns {Object.} JSON object */ - MessageAckResponse.prototype.toJSON = function toJSON() { + MessageStreamResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageAckResponse; + return MessageStreamResponse; })(); - query.ReserveExecuteRequest = (function() { + query.MessageAckRequest = (function() { /** - * Properties of a ReserveExecuteRequest. + * Properties of a MessageAckRequest. * @memberof query - * @interface IReserveExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveExecuteRequest query - * @property {number|Long|null} [transaction_id] ReserveExecuteRequest transaction_id - * @property {query.IExecuteOptions|null} [options] ReserveExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveExecuteRequest pre_queries + * @interface IMessageAckRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] MessageAckRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] MessageAckRequest immediate_caller_id + * @property {query.ITarget|null} [target] MessageAckRequest target + * @property {string|null} [name] MessageAckRequest name + * @property {Array.|null} [ids] MessageAckRequest ids */ /** - * Constructs a new ReserveExecuteRequest. + * Constructs a new MessageAckRequest. * @memberof query - * @classdesc Represents a ReserveExecuteRequest. - * @implements IReserveExecuteRequest + * @classdesc Represents a MessageAckRequest. + * @implements IMessageAckRequest * @constructor - * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @param {query.IMessageAckRequest=} [properties] Properties to set */ - function ReserveExecuteRequest(properties) { - this.pre_queries = []; + function MessageAckRequest(properties) { + this.ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69278,83 +69271,67 @@ $root.query = (function() { } /** - * ReserveExecuteRequest effective_caller_id. + * MessageAckRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveExecuteRequest.prototype.effective_caller_id = null; + MessageAckRequest.prototype.effective_caller_id = null; /** - * ReserveExecuteRequest immediate_caller_id. + * MessageAckRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveExecuteRequest.prototype.immediate_caller_id = null; + MessageAckRequest.prototype.immediate_caller_id = null; /** - * ReserveExecuteRequest target. + * MessageAckRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveExecuteRequest - * @instance - */ - ReserveExecuteRequest.prototype.target = null; - - /** - * ReserveExecuteRequest query. - * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveExecuteRequest - * @instance - */ - ReserveExecuteRequest.prototype.query = null; - - /** - * ReserveExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @instance */ - ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MessageAckRequest.prototype.target = null; /** - * ReserveExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveExecuteRequest + * MessageAckRequest name. + * @member {string} name + * @memberof query.MessageAckRequest * @instance */ - ReserveExecuteRequest.prototype.options = null; + MessageAckRequest.prototype.name = ""; /** - * ReserveExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveExecuteRequest + * MessageAckRequest ids. + * @member {Array.} ids + * @memberof query.MessageAckRequest * @instance */ - ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; + MessageAckRequest.prototype.ids = $util.emptyArray; /** - * Creates a new ReserveExecuteRequest instance using the specified properties. + * Creates a new MessageAckRequest instance using the specified properties. * @function create - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance + * @param {query.IMessageAckRequest=} [properties] Properties to set + * @returns {query.MessageAckRequest} MessageAckRequest instance */ - ReserveExecuteRequest.create = function create(properties) { - return new ReserveExecuteRequest(properties); + MessageAckRequest.create = function create(properties) { + return new MessageAckRequest(properties); }; /** - * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode + * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteRequest.encode = function encode(message, writer) { + MessageAckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -69363,46 +69340,42 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pre_queries != null && message.pre_queries.length) - for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + $root.query.Value.encode(message.ids[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. + * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode + * @param {query.IMessageAckRequest} message MessageAckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer. + * Decodes a MessageAckRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.MessageAckRequest} MessageAckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteRequest.decode = function decode(reader, length) { + MessageAckRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -69416,18 +69389,12 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 5: - message.transaction_id = reader.int64(); - break; - case 6: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.pre_queries && message.pre_queries.length)) - message.pre_queries = []; - message.pre_queries.push(reader.string()); + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push($root.query.Value.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -69438,30 +69405,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.MessageAckRequest} MessageAckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + MessageAckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveExecuteRequest message. + * Verifies a MessageAckRequest message. * @function verify - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveExecuteRequest.verify = function verify(message) { + MessageAckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -69479,111 +69446,83 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.query != null && message.hasOwnProperty("query")) { - var error = $root.query.BoundQuery.verify(message.query); - if (error) - return "query." + error; - } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.query.ExecuteOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { - if (!Array.isArray(message.pre_queries)) - return "pre_queries: array expected"; - for (var i = 0; i < message.pre_queries.length; ++i) - if (!$util.isString(message.pre_queries[i])) - return "pre_queries: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) { + var error = $root.query.Value.verify(message.ids[i]); + if (error) + return "ids." + error; + } } return null; }; /** - * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest + * @returns {query.MessageAckRequest} MessageAckRequest */ - ReserveExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteRequest) + MessageAckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckRequest) return object; - var message = new $root.query.ReserveExecuteRequest(); + var message = new $root.query.MessageAckRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.MessageAckRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.MessageAckRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveExecuteRequest.target: object expected"); + throw TypeError(".query.MessageAckRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.query != null) { - if (typeof object.query !== "object") - throw TypeError(".query.ReserveExecuteRequest.query: object expected"); - message.query = $root.query.BoundQuery.fromObject(object.query); - } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } - if (object.pre_queries) { - if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveExecuteRequest.pre_queries: array expected"); - message.pre_queries = []; - for (var i = 0; i < object.pre_queries.length; ++i) - message.pre_queries[i] = String(object.pre_queries[i]); + if (object.name != null) + message.name = String(object.name); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".query.MessageAckRequest.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) { + if (typeof object.ids[i] !== "object") + throw TypeError(".query.MessageAckRequest.ids: object expected"); + message.ids[i] = $root.query.Value.fromObject(object.ids[i]); + } } return message; }; /** - * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @static - * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest + * @param {query.MessageAckRequest} message MessageAckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteRequest.toObject = function toObject(message, options) { + MessageAckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pre_queries = []; + object.ids = []; if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - object.query = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - object.options = null; + object.name = ""; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -69591,58 +69530,48 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.query != null && message.hasOwnProperty("query")) - object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); - if (message.pre_queries && message.pre_queries.length) { - object.pre_queries = []; - for (var j = 0; j < message.pre_queries.length; ++j) - object.pre_queries[j] = message.pre_queries[j]; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + object.ids[j] = $root.query.Value.toObject(message.ids[j], options); } return object; }; /** - * Converts this ReserveExecuteRequest to JSON. + * Converts this MessageAckRequest to JSON. * @function toJSON - * @memberof query.ReserveExecuteRequest + * @memberof query.MessageAckRequest * @instance * @returns {Object.} JSON object */ - ReserveExecuteRequest.prototype.toJSON = function toJSON() { + MessageAckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveExecuteRequest; + return MessageAckRequest; })(); - query.ReserveExecuteResponse = (function() { + query.MessageAckResponse = (function() { /** - * Properties of a ReserveExecuteResponse. + * Properties of a MessageAckResponse. * @memberof query - * @interface IReserveExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveExecuteResponse result - * @property {number|Long|null} [reserved_id] ReserveExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveExecuteResponse tablet_alias + * @interface IMessageAckResponse + * @property {query.IQueryResult|null} [result] MessageAckResponse result */ /** - * Constructs a new ReserveExecuteResponse. + * Constructs a new MessageAckResponse. * @memberof query - * @classdesc Represents a ReserveExecuteResponse. - * @implements IReserveExecuteResponse + * @classdesc Represents a MessageAckResponse. + * @implements IMessageAckResponse * @constructor - * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @param {query.IMessageAckResponse=} [properties] Properties to set */ - function ReserveExecuteResponse(properties) { + function MessageAckResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69650,115 +69579,76 @@ $root.query = (function() { } /** - * ReserveExecuteResponse error. - * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.error = null; - - /** - * ReserveExecuteResponse result. + * MessageAckResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.result = null; - - /** - * ReserveExecuteResponse reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReserveExecuteResponse - * @instance - */ - ReserveExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ReserveExecuteResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @instance */ - ReserveExecuteResponse.prototype.tablet_alias = null; + MessageAckResponse.prototype.result = null; /** - * Creates a new ReserveExecuteResponse instance using the specified properties. + * Creates a new MessageAckResponse instance using the specified properties. * @function create - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance + * @param {query.IMessageAckResponse=} [properties] Properties to set + * @returns {query.MessageAckResponse} MessageAckResponse instance */ - ReserveExecuteResponse.create = function create(properties) { - return new ReserveExecuteResponse(properties); + MessageAckResponse.create = function create(properties) { + return new MessageAckResponse(properties); }; /** - * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode + * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteResponse.encode = function encode(message, writer) { + MessageAckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. + * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode + * @param {query.IMessageAckResponse} message MessageAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + MessageAckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer. + * Decodes a MessageAckResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.MessageAckResponse} MessageAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteResponse.decode = function decode(reader, length) { + MessageAckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.MessageAckResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); - break; - case 2: message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; - case 3: - message.reserved_id = reader.int64(); - break; - case 4: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -69768,167 +69658,118 @@ $root.query = (function() { }; /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.MessageAckResponse} MessageAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + MessageAckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveExecuteResponse message. + * Verifies a MessageAckResponse message. * @function verify - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveExecuteResponse.verify = function verify(message) { + MessageAckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.vtrpc.RPCError.verify(message.error); - if (error) - return "error." + error; - } if (message.result != null && message.hasOwnProperty("result")) { var error = $root.query.QueryResult.verify(message.result); if (error) return "result." + error; } - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } return null; }; /** - * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse + * @returns {query.MessageAckResponse} MessageAckResponse */ - ReserveExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveExecuteResponse) + MessageAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.MessageAckResponse) return object; - var message = new $root.query.ReserveExecuteResponse(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".query.ReserveExecuteResponse.error: object expected"); - message.error = $root.vtrpc.RPCError.fromObject(object.error); - } + var message = new $root.query.MessageAckResponse(); if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveExecuteResponse.result: object expected"); + throw TypeError(".query.MessageAckResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveExecuteResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } return message; }; /** - * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @static - * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse + * @param {query.MessageAckResponse} message MessageAckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveExecuteResponse.toObject = function toObject(message, options) { + MessageAckResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.error = null; + if (options.defaults) object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; - object.tablet_alias = null; - } - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.vtrpc.RPCError.toObject(message.error, options); if (message.result != null && message.hasOwnProperty("result")) object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this ReserveExecuteResponse to JSON. + * Converts this MessageAckResponse to JSON. * @function toJSON - * @memberof query.ReserveExecuteResponse + * @memberof query.MessageAckResponse * @instance * @returns {Object.} JSON object */ - ReserveExecuteResponse.prototype.toJSON = function toJSON() { + MessageAckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveExecuteResponse; + return MessageAckResponse; })(); - query.ReserveStreamExecuteRequest = (function() { + query.ReserveExecuteRequest = (function() { /** - * Properties of a ReserveStreamExecuteRequest. + * Properties of a ReserveExecuteRequest. * @memberof query - * @interface IReserveStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveStreamExecuteRequest options - * @property {number|Long|null} [transaction_id] ReserveStreamExecuteRequest transaction_id - * @property {Array.|null} [pre_queries] ReserveStreamExecuteRequest pre_queries + * @interface IReserveExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveExecuteRequest query + * @property {number|Long|null} [transaction_id] ReserveExecuteRequest transaction_id + * @property {query.IExecuteOptions|null} [options] ReserveExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveExecuteRequest pre_queries */ /** - * Constructs a new ReserveStreamExecuteRequest. + * Constructs a new ReserveExecuteRequest. * @memberof query - * @classdesc Represents a ReserveStreamExecuteRequest. - * @implements IReserveStreamExecuteRequest - * @constructor - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @classdesc Represents a ReserveExecuteRequest. + * @implements IReserveExecuteRequest + * @constructor + * @param {query.IReserveExecuteRequest=} [properties] Properties to set */ - function ReserveStreamExecuteRequest(properties) { + function ReserveExecuteRequest(properties) { this.pre_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -69937,83 +69778,83 @@ $root.query = (function() { } /** - * ReserveStreamExecuteRequest effective_caller_id. + * ReserveExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.effective_caller_id = null; + ReserveExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveStreamExecuteRequest immediate_caller_id. + * ReserveExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; + ReserveExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveStreamExecuteRequest target. + * ReserveExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.target = null; + ReserveExecuteRequest.prototype.target = null; /** - * ReserveStreamExecuteRequest query. + * ReserveExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.query = null; + ReserveExecuteRequest.prototype.query = null; /** - * ReserveStreamExecuteRequest options. - * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveStreamExecuteRequest + * ReserveExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.options = null; + ReserveExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveStreamExecuteRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveStreamExecuteRequest + * ReserveExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveExecuteRequest.prototype.options = null; /** - * ReserveStreamExecuteRequest pre_queries. + * ReserveExecuteRequest pre_queries. * @member {Array.} pre_queries - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance */ - ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + ReserveExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Creates a new ReserveStreamExecuteRequest instance using the specified properties. + * Creates a new ReserveExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance + * @param {query.IReserveExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest instance */ - ReserveStreamExecuteRequest.create = function create(properties) { - return new ReserveStreamExecuteRequest(properties); + ReserveExecuteRequest.create = function create(properties) { + return new ReserveExecuteRequest(properties); }; /** - * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode + * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteRequest.encode = function encode(message, writer) { + ReserveExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -70024,10 +69865,10 @@ $root.query = (function() { $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.query != null && Object.hasOwnProperty.call(message, "query")) $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transaction_id); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.pre_queries != null && message.pre_queries.length) for (var i = 0; i < message.pre_queries.length; ++i) writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); @@ -70035,33 +69876,33 @@ $root.query = (function() { }; /** - * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode + * @param {query.IReserveExecuteRequest} message ReserveExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. + * Decodes a ReserveExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteRequest.decode = function decode(reader, length) { + ReserveExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -70078,10 +69919,10 @@ $root.query = (function() { message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: - message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + message.transaction_id = reader.int64(); break; case 6: - message.transaction_id = reader.int64(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 7: if (!(message.pre_queries && message.pre_queries.length)) @@ -70097,30 +69938,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ReserveExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveStreamExecuteRequest message. + * Verifies a ReserveExecuteRequest message. * @function verify - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveStreamExecuteRequest.verify = function verify(message) { + ReserveExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -70143,14 +69984,14 @@ $root.query = (function() { if (error) return "query." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; if (message.options != null && message.hasOwnProperty("options")) { var error = $root.query.ExecuteOptions.verify(message.options); if (error) return "options." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { if (!Array.isArray(message.pre_queries)) return "pre_queries: array expected"; @@ -70162,42 +70003,37 @@ $root.query = (function() { }; /** - * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest + * @returns {query.ReserveExecuteRequest} ReserveExecuteRequest */ - ReserveStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteRequest) + ReserveExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteRequest) return object; - var message = new $root.query.ReserveStreamExecuteRequest(); + var message = new $root.query.ReserveExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReserveExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReserveExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.target: object expected"); + throw TypeError(".query.ReserveExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.query: object expected"); + throw TypeError(".query.ReserveExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".query.ReserveStreamExecuteRequest.options: object expected"); - message.options = $root.query.ExecuteOptions.fromObject(object.options); - } if (object.transaction_id != null) if ($util.Long) (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; @@ -70207,9 +70043,14 @@ $root.query = (function() { message.transaction_id = object.transaction_id; else if (typeof object.transaction_id === "object") message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } if (object.pre_queries) { if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.ReserveExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (var i = 0; i < object.pre_queries.length; ++i) message.pre_queries[i] = String(object.pre_queries[i]); @@ -70218,15 +70059,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @static - * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest + * @param {query.ReserveExecuteRequest} message ReserveExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteRequest.toObject = function toObject(message, options) { + ReserveExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -70237,12 +70078,12 @@ $root.query = (function() { object.immediate_caller_id = null; object.target = null; object.query = null; - object.options = null; if ($util.Long) { var long = new $util.Long(0, 0, false); object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transaction_id = options.longs === String ? "0" : 0; + object.options = null; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -70252,13 +70093,13 @@ $root.query = (function() { object.target = $root.query.Target.toObject(message.target, options); if (message.query != null && message.hasOwnProperty("query")) object.query = $root.query.BoundQuery.toObject(message.query, options); - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.query.ExecuteOptions.toObject(message.options, options); if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) if (typeof message.transaction_id === "number") object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; else object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); if (message.pre_queries && message.pre_queries.length) { object.pre_queries = []; for (var j = 0; j < message.pre_queries.length; ++j) @@ -70268,40 +70109,40 @@ $root.query = (function() { }; /** - * Converts this ReserveStreamExecuteRequest to JSON. + * Converts this ReserveExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteRequest + * @memberof query.ReserveExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { + ReserveExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveStreamExecuteRequest; + return ReserveExecuteRequest; })(); - query.ReserveStreamExecuteResponse = (function() { + query.ReserveExecuteResponse = (function() { /** - * Properties of a ReserveStreamExecuteResponse. + * Properties of a ReserveExecuteResponse. * @memberof query - * @interface IReserveStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveStreamExecuteResponse result - * @property {number|Long|null} [reserved_id] ReserveStreamExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveStreamExecuteResponse tablet_alias + * @interface IReserveExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveExecuteResponse result + * @property {number|Long|null} [reserved_id] ReserveExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveExecuteResponse tablet_alias */ /** - * Constructs a new ReserveStreamExecuteResponse. + * Constructs a new ReserveExecuteResponse. * @memberof query - * @classdesc Represents a ReserveStreamExecuteResponse. - * @implements IReserveStreamExecuteResponse + * @classdesc Represents a ReserveExecuteResponse. + * @implements IReserveExecuteResponse * @constructor - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @param {query.IReserveExecuteResponse=} [properties] Properties to set */ - function ReserveStreamExecuteResponse(properties) { + function ReserveExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70309,59 +70150,59 @@ $root.query = (function() { } /** - * ReserveStreamExecuteResponse error. + * ReserveExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.error = null; + ReserveExecuteResponse.prototype.error = null; /** - * ReserveStreamExecuteResponse result. + * ReserveExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.result = null; + ReserveExecuteResponse.prototype.result = null; /** - * ReserveStreamExecuteResponse reserved_id. + * ReserveExecuteResponse reserved_id. * @member {number|Long} reserved_id - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveStreamExecuteResponse tablet_alias. + * ReserveExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @instance */ - ReserveStreamExecuteResponse.prototype.tablet_alias = null; + ReserveExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new ReserveStreamExecuteResponse instance using the specified properties. + * Creates a new ReserveExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance + * @param {query.IReserveExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse instance */ - ReserveStreamExecuteResponse.create = function create(properties) { - return new ReserveStreamExecuteResponse(properties); + ReserveExecuteResponse.create = function create(properties) { + return new ReserveExecuteResponse(properties); }; /** - * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteResponse.encode = function encode(message, writer) { + ReserveExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) @@ -70376,33 +70217,33 @@ $root.query = (function() { }; /** - * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode + * @param {query.IReserveExecuteResponse} message ReserveExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. + * Decodes a ReserveExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteResponse.decode = function decode(reader, length) { + ReserveExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -70427,30 +70268,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ReserveExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveStreamExecuteResponse message. + * Verifies a ReserveExecuteResponse message. * @function verify - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveStreamExecuteResponse.verify = function verify(message) { + ReserveExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -70475,25 +70316,25 @@ $root.query = (function() { }; /** - * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse + * @returns {query.ReserveExecuteResponse} ReserveExecuteResponse */ - ReserveStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveStreamExecuteResponse) + ReserveExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveExecuteResponse) return object; - var message = new $root.query.ReserveStreamExecuteResponse(); + var message = new $root.query.ReserveExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); + throw TypeError(".query.ReserveExecuteResponse.error: object expected"); message.error = $root.vtrpc.RPCError.fromObject(object.error); } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.result: object expected"); + throw TypeError(".query.ReserveExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } if (object.reserved_id != null) @@ -70507,22 +70348,22 @@ $root.query = (function() { message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); + throw TypeError(".query.ReserveExecuteResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @static - * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse + * @param {query.ReserveExecuteResponse} message ReserveExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveStreamExecuteResponse.toObject = function toObject(message, options) { + ReserveExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -70551,45 +70392,44 @@ $root.query = (function() { }; /** - * Converts this ReserveStreamExecuteResponse to JSON. + * Converts this ReserveExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveStreamExecuteResponse + * @memberof query.ReserveExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { + ReserveExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveStreamExecuteResponse; + return ReserveExecuteResponse; })(); - query.ReserveBeginExecuteRequest = (function() { + query.ReserveStreamExecuteRequest = (function() { /** - * Properties of a ReserveBeginExecuteRequest. + * Properties of a ReserveStreamExecuteRequest. * @memberof query - * @interface IReserveBeginExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveBeginExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveBeginExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveBeginExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveBeginExecuteRequest pre_queries - * @property {Array.|null} [post_begin_queries] ReserveBeginExecuteRequest post_begin_queries + * @interface IReserveStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveStreamExecuteRequest options + * @property {number|Long|null} [transaction_id] ReserveStreamExecuteRequest transaction_id + * @property {Array.|null} [pre_queries] ReserveStreamExecuteRequest pre_queries */ /** - * Constructs a new ReserveBeginExecuteRequest. + * Constructs a new ReserveStreamExecuteRequest. * @memberof query - * @classdesc Represents a ReserveBeginExecuteRequest. - * @implements IReserveBeginExecuteRequest + * @classdesc Represents a ReserveStreamExecuteRequest. + * @implements IReserveStreamExecuteRequest * @constructor - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set */ - function ReserveBeginExecuteRequest(properties) { + function ReserveStreamExecuteRequest(properties) { this.pre_queries = []; - this.post_begin_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70597,83 +70437,83 @@ $root.query = (function() { } /** - * ReserveBeginExecuteRequest effective_caller_id. + * ReserveStreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.effective_caller_id = null; + ReserveStreamExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveBeginExecuteRequest immediate_caller_id. + * ReserveStreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; + ReserveStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginExecuteRequest target. + * ReserveStreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.target = null; + ReserveStreamExecuteRequest.prototype.target = null; /** - * ReserveBeginExecuteRequest query. + * ReserveStreamExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.query = null; + ReserveStreamExecuteRequest.prototype.query = null; /** - * ReserveBeginExecuteRequest options. + * ReserveStreamExecuteRequest options. * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.options = null; + ReserveStreamExecuteRequest.prototype.options = null; /** - * ReserveBeginExecuteRequest pre_queries. - * @member {Array.} pre_queries - * @memberof query.ReserveBeginExecuteRequest + * ReserveStreamExecuteRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; + ReserveStreamExecuteRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginExecuteRequest post_begin_queries. - * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginExecuteRequest + * ReserveStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveStreamExecuteRequest * @instance */ - ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + ReserveStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * Creates a new ReserveBeginExecuteRequest instance using the specified properties. + * Creates a new ReserveStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance + * @param {query.IReserveStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest instance */ - ReserveBeginExecuteRequest.create = function create(properties) { - return new ReserveBeginExecuteRequest(properties); + ReserveStreamExecuteRequest.create = function create(properties) { + return new ReserveStreamExecuteRequest(properties); }; /** - * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode + * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteRequest.encode = function encode(message, writer) { + ReserveStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -70686,43 +70526,42 @@ $root.query = (function() { $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.transaction_id); if (message.pre_queries != null && message.pre_queries.length) for (var i = 0; i < message.pre_queries.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); - if (message.post_begin_queries != null && message.post_begin_queries.length) - for (var i = 0; i < message.post_begin_queries.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.pre_queries[i]); return writer; }; /** - * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode + * @param {query.IReserveStreamExecuteRequest} message ReserveStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteRequest.decode = function decode(reader, length) { + ReserveStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -70742,15 +70581,13 @@ $root.query = (function() { message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); break; case 6: + message.transaction_id = reader.int64(); + break; + case 7: if (!(message.pre_queries && message.pre_queries.length)) message.pre_queries = []; message.pre_queries.push(reader.string()); break; - case 7: - if (!(message.post_begin_queries && message.post_begin_queries.length)) - message.post_begin_queries = []; - message.post_begin_queries.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -70760,30 +70597,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ReserveStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginExecuteRequest message. + * Verifies a ReserveStreamExecuteRequest message. * @function verify - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginExecuteRequest.verify = function verify(message) { + ReserveStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -70811,6 +70648,9 @@ $root.query = (function() { if (error) return "options." + error; } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { if (!Array.isArray(message.pre_queries)) return "pre_queries: array expected"; @@ -70818,93 +70658,91 @@ $root.query = (function() { if (!$util.isString(message.pre_queries[i])) return "pre_queries: string[] expected"; } - if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { - if (!Array.isArray(message.post_begin_queries)) - return "post_begin_queries: array expected"; - for (var i = 0; i < message.post_begin_queries.length; ++i) - if (!$util.isString(message.post_begin_queries[i])) - return "post_begin_queries: string[] expected"; - } return null; }; /** - * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest + * @returns {query.ReserveStreamExecuteRequest} ReserveStreamExecuteRequest */ - ReserveBeginExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteRequest) + ReserveStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteRequest) return object; - var message = new $root.query.ReserveBeginExecuteRequest(); + var message = new $root.query.ReserveStreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.target: object expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.options: object expected"); message.options = $root.query.ExecuteOptions.fromObject(object.options); } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.pre_queries) { if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.ReserveStreamExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (var i = 0; i < object.pre_queries.length; ++i) message.pre_queries[i] = String(object.pre_queries[i]); } - if (object.post_begin_queries) { - if (!Array.isArray(object.post_begin_queries)) - throw TypeError(".query.ReserveBeginExecuteRequest.post_begin_queries: array expected"); - message.post_begin_queries = []; - for (var i = 0; i < object.post_begin_queries.length; ++i) - message.post_begin_queries[i] = String(object.post_begin_queries[i]); - } return message; }; /** - * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @static - * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest + * @param {query.ReserveStreamExecuteRequest} message ReserveStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteRequest.toObject = function toObject(message, options) { + ReserveStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.pre_queries = []; - object.post_begin_queries = []; - } if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; object.query = null; object.options = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -70916,56 +70754,54 @@ $root.query = (function() { object.query = $root.query.BoundQuery.toObject(message.query, options); if (message.options != null && message.hasOwnProperty("options")) object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.pre_queries && message.pre_queries.length) { object.pre_queries = []; for (var j = 0; j < message.pre_queries.length; ++j) object.pre_queries[j] = message.pre_queries[j]; } - if (message.post_begin_queries && message.post_begin_queries.length) { - object.post_begin_queries = []; - for (var j = 0; j < message.post_begin_queries.length; ++j) - object.post_begin_queries[j] = message.post_begin_queries[j]; - } return object; }; /** - * Converts this ReserveBeginExecuteRequest to JSON. + * Converts this ReserveStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteRequest + * @memberof query.ReserveStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { + ReserveStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginExecuteRequest; + return ReserveStreamExecuteRequest; })(); - query.ReserveBeginExecuteResponse = (function() { + query.ReserveStreamExecuteResponse = (function() { /** - * Properties of a ReserveBeginExecuteResponse. + * Properties of a ReserveStreamExecuteResponse. * @memberof query - * @interface IReserveBeginExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveBeginExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveBeginExecuteResponse result - * @property {number|Long|null} [transaction_id] ReserveBeginExecuteResponse transaction_id - * @property {number|Long|null} [reserved_id] ReserveBeginExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] ReserveBeginExecuteResponse session_state_changes + * @interface IReserveStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveStreamExecuteResponse result + * @property {number|Long|null} [reserved_id] ReserveStreamExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveStreamExecuteResponse tablet_alias */ /** - * Constructs a new ReserveBeginExecuteResponse. + * Constructs a new ReserveStreamExecuteResponse. * @memberof query - * @classdesc Represents a ReserveBeginExecuteResponse. - * @implements IReserveBeginExecuteResponse + * @classdesc Represents a ReserveStreamExecuteResponse. + * @implements IReserveStreamExecuteResponse * @constructor - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set */ - function ReserveBeginExecuteResponse(properties) { + function ReserveStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70973,120 +70809,100 @@ $root.query = (function() { } /** - * ReserveBeginExecuteResponse error. + * ReserveStreamExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @instance */ - ReserveBeginExecuteResponse.prototype.error = null; + ReserveStreamExecuteResponse.prototype.error = null; /** - * ReserveBeginExecuteResponse result. + * ReserveStreamExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.result = null; - - /** - * ReserveBeginExecuteResponse transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @instance */ - ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveStreamExecuteResponse.prototype.result = null; /** - * ReserveBeginExecuteResponse reserved_id. + * ReserveStreamExecuteResponse reserved_id. * @member {number|Long} reserved_id - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @instance */ - ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginExecuteResponse tablet_alias. + * ReserveStreamExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveBeginExecuteResponse - * @instance - */ - ReserveBeginExecuteResponse.prototype.tablet_alias = null; - - /** - * ReserveBeginExecuteResponse session_state_changes. - * @member {string} session_state_changes - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @instance */ - ReserveBeginExecuteResponse.prototype.session_state_changes = ""; + ReserveStreamExecuteResponse.prototype.tablet_alias = null; /** - * Creates a new ReserveBeginExecuteResponse instance using the specified properties. + * Creates a new ReserveStreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static - * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance + * @param {query.IReserveStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse instance */ - ReserveBeginExecuteResponse.create = function create(properties) { - return new ReserveBeginExecuteResponse(properties); + ReserveStreamExecuteResponse.create = function create(properties) { + return new ReserveStreamExecuteResponse(properties); }; /** - * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteResponse.encode = function encode(message, writer) { + ReserveStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.reserved_id); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static - * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode + * @param {query.IReserveStreamExecuteResponse} message ReserveStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteResponse.decode = function decode(reader, length) { + ReserveStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveStreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71097,17 +70913,11 @@ $root.query = (function() { message.result = $root.query.QueryResult.decode(reader, reader.uint32()); break; case 3: - message.transaction_id = reader.int64(); - break; - case 4: message.reserved_id = reader.int64(); break; - case 5: + case 4: message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; - case 6: - message.session_state_changes = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -71117,30 +70927,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ReserveStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginExecuteResponse message. + * Verifies a ReserveStreamExecuteResponse message. * @function verify - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginExecuteResponse.verify = function verify(message) { + ReserveStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -71153,9 +70963,6 @@ $root.query = (function() { if (error) return "result." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) return "reserved_id: integer|Long expected"; @@ -71164,43 +70971,31 @@ $root.query = (function() { if (error) return "tablet_alias." + error; } - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - if (!$util.isString(message.session_state_changes)) - return "session_state_changes: string expected"; return null; }; /** - * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse + * @returns {query.ReserveStreamExecuteResponse} ReserveStreamExecuteResponse */ - ReserveBeginExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginExecuteResponse) + ReserveStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveStreamExecuteResponse) return object; - var message = new $root.query.ReserveBeginExecuteResponse(); + var message = new $root.query.ReserveStreamExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); + throw TypeError(".query.ReserveStreamExecuteResponse.error: object expected"); message.error = $root.vtrpc.RPCError.fromObject(object.error); } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); + throw TypeError(".query.ReserveStreamExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); if (object.reserved_id != null) if ($util.Long) (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; @@ -71212,52 +71007,39 @@ $root.query = (function() { message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveBeginExecuteResponse.tablet_alias: object expected"); + throw TypeError(".query.ReserveStreamExecuteResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.session_state_changes != null) - message.session_state_changes = String(object.session_state_changes); return message; }; /** - * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @static - * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse + * @param {query.ReserveStreamExecuteResponse} message ReserveStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginExecuteResponse.toObject = function toObject(message, options) { + ReserveStreamExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.error = null; object.result = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; if ($util.Long) { var long = new $util.Long(0, 0, false); object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.reserved_id = options.longs === String ? "0" : 0; object.tablet_alias = null; - object.session_state_changes = ""; } if (message.error != null && message.hasOwnProperty("error")) object.error = $root.vtrpc.RPCError.toObject(message.error, options); if (message.result != null && message.hasOwnProperty("result")) object.result = $root.query.QueryResult.toObject(message.result, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) if (typeof message.reserved_id === "number") object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; @@ -71265,49 +71047,47 @@ $root.query = (function() { object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) - object.session_state_changes = message.session_state_changes; return object; }; /** - * Converts this ReserveBeginExecuteResponse to JSON. + * Converts this ReserveStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginExecuteResponse + * @memberof query.ReserveStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { + ReserveStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginExecuteResponse; + return ReserveStreamExecuteResponse; })(); - query.ReserveBeginStreamExecuteRequest = (function() { + query.ReserveBeginExecuteRequest = (function() { /** - * Properties of a ReserveBeginStreamExecuteRequest. + * Properties of a ReserveBeginExecuteRequest. * @memberof query - * @interface IReserveBeginStreamExecuteRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginStreamExecuteRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginStreamExecuteRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReserveBeginStreamExecuteRequest target - * @property {query.IBoundQuery|null} [query] ReserveBeginStreamExecuteRequest query - * @property {query.IExecuteOptions|null} [options] ReserveBeginStreamExecuteRequest options - * @property {Array.|null} [pre_queries] ReserveBeginStreamExecuteRequest pre_queries - * @property {Array.|null} [post_begin_queries] ReserveBeginStreamExecuteRequest post_begin_queries + * @interface IReserveBeginExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveBeginExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveBeginExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveBeginExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveBeginExecuteRequest pre_queries + * @property {Array.|null} [post_begin_queries] ReserveBeginExecuteRequest post_begin_queries */ /** - * Constructs a new ReserveBeginStreamExecuteRequest. + * Constructs a new ReserveBeginExecuteRequest. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteRequest. - * @implements IReserveBeginStreamExecuteRequest + * @classdesc Represents a ReserveBeginExecuteRequest. + * @implements IReserveBeginExecuteRequest * @constructor - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set */ - function ReserveBeginStreamExecuteRequest(properties) { + function ReserveBeginExecuteRequest(properties) { this.pre_queries = []; this.post_begin_queries = []; if (properties) @@ -71317,83 +71097,83 @@ $root.query = (function() { } /** - * ReserveBeginStreamExecuteRequest effective_caller_id. + * ReserveBeginExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; + ReserveBeginExecuteRequest.prototype.effective_caller_id = null; /** - * ReserveBeginStreamExecuteRequest immediate_caller_id. + * ReserveBeginExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; + ReserveBeginExecuteRequest.prototype.immediate_caller_id = null; /** - * ReserveBeginStreamExecuteRequest target. + * ReserveBeginExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.target = null; + ReserveBeginExecuteRequest.prototype.target = null; /** - * ReserveBeginStreamExecuteRequest query. + * ReserveBeginExecuteRequest query. * @member {query.IBoundQuery|null|undefined} query - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.query = null; + ReserveBeginExecuteRequest.prototype.query = null; /** - * ReserveBeginStreamExecuteRequest options. + * ReserveBeginExecuteRequest options. * @member {query.IExecuteOptions|null|undefined} options - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.options = null; + ReserveBeginExecuteRequest.prototype.options = null; /** - * ReserveBeginStreamExecuteRequest pre_queries. + * ReserveBeginExecuteRequest pre_queries. * @member {Array.} pre_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + ReserveBeginExecuteRequest.prototype.pre_queries = $util.emptyArray; /** - * ReserveBeginStreamExecuteRequest post_begin_queries. + * ReserveBeginExecuteRequest post_begin_queries. * @member {Array.} post_begin_queries - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance */ - ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + ReserveBeginExecuteRequest.prototype.post_begin_queries = $util.emptyArray; /** - * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. + * Creates a new ReserveBeginExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance + * @param {query.IReserveBeginExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest instance */ - ReserveBeginStreamExecuteRequest.create = function create(properties) { - return new ReserveBeginStreamExecuteRequest(properties); + ReserveBeginExecuteRequest.create = function create(properties) { + return new ReserveBeginExecuteRequest(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteRequest.encode = function encode(message, writer) { + ReserveBeginExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -71416,33 +71196,33 @@ $root.query = (function() { }; /** - * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode + * @param {query.IReserveBeginExecuteRequest} message ReserveBeginExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { + ReserveBeginExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71480,30 +71260,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginStreamExecuteRequest message. + * Verifies a ReserveBeginExecuteRequest message. * @function verify - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginStreamExecuteRequest.verify = function verify(message) { + ReserveBeginExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -71549,52 +71329,52 @@ $root.query = (function() { }; /** - * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest + * @returns {query.ReserveBeginExecuteRequest} ReserveBeginExecuteRequest */ - ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) + ReserveBeginExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteRequest) return object; - var message = new $root.query.ReserveBeginStreamExecuteRequest(); + var message = new $root.query.ReserveBeginExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.target: object expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } if (object.query != null) { if (typeof object.query !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.query: object expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.query: object expected"); message.query = $root.query.BoundQuery.fromObject(object.query); } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteRequest.options: object expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.options: object expected"); message.options = $root.query.ExecuteOptions.fromObject(object.options); } if (object.pre_queries) { if (!Array.isArray(object.pre_queries)) - throw TypeError(".query.ReserveBeginStreamExecuteRequest.pre_queries: array expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.pre_queries: array expected"); message.pre_queries = []; for (var i = 0; i < object.pre_queries.length; ++i) message.pre_queries[i] = String(object.pre_queries[i]); } if (object.post_begin_queries) { if (!Array.isArray(object.post_begin_queries)) - throw TypeError(".query.ReserveBeginStreamExecuteRequest.post_begin_queries: array expected"); + throw TypeError(".query.ReserveBeginExecuteRequest.post_begin_queries: array expected"); message.post_begin_queries = []; for (var i = 0; i < object.post_begin_queries.length; ++i) message.post_begin_queries[i] = String(object.post_begin_queries[i]); @@ -71603,15 +71383,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @static - * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest + * @param {query.ReserveBeginExecuteRequest} message ReserveBeginExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { + ReserveBeginExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71650,42 +71430,42 @@ $root.query = (function() { }; /** - * Converts this ReserveBeginStreamExecuteRequest to JSON. + * Converts this ReserveBeginExecuteRequest to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteRequest + * @memberof query.ReserveBeginExecuteRequest * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { + ReserveBeginExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginStreamExecuteRequest; + return ReserveBeginExecuteRequest; })(); - query.ReserveBeginStreamExecuteResponse = (function() { + query.ReserveBeginExecuteResponse = (function() { /** - * Properties of a ReserveBeginStreamExecuteResponse. + * Properties of a ReserveBeginExecuteResponse. * @memberof query - * @interface IReserveBeginStreamExecuteResponse - * @property {vtrpc.IRPCError|null} [error] ReserveBeginStreamExecuteResponse error - * @property {query.IQueryResult|null} [result] ReserveBeginStreamExecuteResponse result - * @property {number|Long|null} [transaction_id] ReserveBeginStreamExecuteResponse transaction_id - * @property {number|Long|null} [reserved_id] ReserveBeginStreamExecuteResponse reserved_id - * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginStreamExecuteResponse tablet_alias - * @property {string|null} [session_state_changes] ReserveBeginStreamExecuteResponse session_state_changes + * @interface IReserveBeginExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveBeginExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveBeginExecuteResponse result + * @property {number|Long|null} [transaction_id] ReserveBeginExecuteResponse transaction_id + * @property {number|Long|null} [reserved_id] ReserveBeginExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] ReserveBeginExecuteResponse session_state_changes */ /** - * Constructs a new ReserveBeginStreamExecuteResponse. + * Constructs a new ReserveBeginExecuteResponse. * @memberof query - * @classdesc Represents a ReserveBeginStreamExecuteResponse. - * @implements IReserveBeginStreamExecuteResponse + * @classdesc Represents a ReserveBeginExecuteResponse. + * @implements IReserveBeginExecuteResponse * @constructor - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set */ - function ReserveBeginStreamExecuteResponse(properties) { + function ReserveBeginExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71693,75 +71473,75 @@ $root.query = (function() { } /** - * ReserveBeginStreamExecuteResponse error. + * ReserveBeginExecuteResponse error. * @member {vtrpc.IRPCError|null|undefined} error - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.error = null; + ReserveBeginExecuteResponse.prototype.error = null; /** - * ReserveBeginStreamExecuteResponse result. + * ReserveBeginExecuteResponse result. * @member {query.IQueryResult|null|undefined} result - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.result = null; + ReserveBeginExecuteResponse.prototype.result = null; /** - * ReserveBeginStreamExecuteResponse transaction_id. + * ReserveBeginExecuteResponse transaction_id. * @member {number|Long} transaction_id - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginStreamExecuteResponse reserved_id. + * ReserveBeginExecuteResponse reserved_id. * @member {number|Long} reserved_id - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ReserveBeginStreamExecuteResponse tablet_alias. + * ReserveBeginExecuteResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.tablet_alias = null; + ReserveBeginExecuteResponse.prototype.tablet_alias = null; /** - * ReserveBeginStreamExecuteResponse session_state_changes. + * ReserveBeginExecuteResponse session_state_changes. * @member {string} session_state_changes - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance */ - ReserveBeginStreamExecuteResponse.prototype.session_state_changes = ""; + ReserveBeginExecuteResponse.prototype.session_state_changes = ""; /** - * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. + * Creates a new ReserveBeginExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance + * @param {query.IReserveBeginExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse instance */ - ReserveBeginStreamExecuteResponse.create = function create(properties) { - return new ReserveBeginStreamExecuteResponse(properties); + ReserveBeginExecuteResponse.create = function create(properties) { + return new ReserveBeginExecuteResponse(properties); }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteResponse.encode = function encode(message, writer) { + ReserveBeginExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) @@ -71780,33 +71560,33 @@ $root.query = (function() { }; /** - * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. + * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode + * @param {query.IReserveBeginExecuteResponse} message ReserveBeginExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { + ReserveBeginExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71837,30 +71617,30 @@ $root.query = (function() { }; /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveBeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReserveBeginStreamExecuteResponse message. + * Verifies a ReserveBeginExecuteResponse message. * @function verify - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveBeginStreamExecuteResponse.verify = function verify(message) { + ReserveBeginExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.error != null && message.hasOwnProperty("error")) { @@ -71891,25 +71671,25 @@ $root.query = (function() { }; /** - * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static * @param {Object.} object Plain object - * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + * @returns {query.ReserveBeginExecuteResponse} ReserveBeginExecuteResponse */ - ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) + ReserveBeginExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginExecuteResponse) return object; - var message = new $root.query.ReserveBeginStreamExecuteResponse(); + var message = new $root.query.ReserveBeginExecuteResponse(); if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.error: object expected"); + throw TypeError(".query.ReserveBeginExecuteResponse.error: object expected"); message.error = $root.vtrpc.RPCError.fromObject(object.error); } if (object.result != null) { if (typeof object.result !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.result: object expected"); + throw TypeError(".query.ReserveBeginExecuteResponse.result: object expected"); message.result = $root.query.QueryResult.fromObject(object.result); } if (object.transaction_id != null) @@ -71932,7 +71712,7 @@ $root.query = (function() { message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".query.ReserveBeginStreamExecuteResponse.tablet_alias: object expected"); + throw TypeError(".query.ReserveBeginExecuteResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } if (object.session_state_changes != null) @@ -71941,15 +71721,15 @@ $root.query = (function() { }; /** - * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @static - * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse + * @param {query.ReserveBeginExecuteResponse} message ReserveBeginExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { + ReserveBeginExecuteResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71991,41 +71771,45 @@ $root.query = (function() { }; /** - * Converts this ReserveBeginStreamExecuteResponse to JSON. + * Converts this ReserveBeginExecuteResponse to JSON. * @function toJSON - * @memberof query.ReserveBeginStreamExecuteResponse + * @memberof query.ReserveBeginExecuteResponse * @instance * @returns {Object.} JSON object */ - ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { + ReserveBeginExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReserveBeginStreamExecuteResponse; + return ReserveBeginExecuteResponse; })(); - query.ReleaseRequest = (function() { + query.ReserveBeginStreamExecuteRequest = (function() { /** - * Properties of a ReleaseRequest. + * Properties of a ReserveBeginStreamExecuteRequest. * @memberof query - * @interface IReleaseRequest - * @property {vtrpc.ICallerID|null} [effective_caller_id] ReleaseRequest effective_caller_id - * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReleaseRequest immediate_caller_id - * @property {query.ITarget|null} [target] ReleaseRequest target - * @property {number|Long|null} [transaction_id] ReleaseRequest transaction_id - * @property {number|Long|null} [reserved_id] ReleaseRequest reserved_id + * @interface IReserveBeginStreamExecuteRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReserveBeginStreamExecuteRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReserveBeginStreamExecuteRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReserveBeginStreamExecuteRequest target + * @property {query.IBoundQuery|null} [query] ReserveBeginStreamExecuteRequest query + * @property {query.IExecuteOptions|null} [options] ReserveBeginStreamExecuteRequest options + * @property {Array.|null} [pre_queries] ReserveBeginStreamExecuteRequest pre_queries + * @property {Array.|null} [post_begin_queries] ReserveBeginStreamExecuteRequest post_begin_queries */ /** - * Constructs a new ReleaseRequest. + * Constructs a new ReserveBeginStreamExecuteRequest. * @memberof query - * @classdesc Represents a ReleaseRequest. - * @implements IReleaseRequest + * @classdesc Represents a ReserveBeginStreamExecuteRequest. + * @implements IReserveBeginStreamExecuteRequest * @constructor - * @param {query.IReleaseRequest=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set */ - function ReleaseRequest(properties) { + function ReserveBeginStreamExecuteRequest(properties) { + this.pre_queries = []; + this.post_begin_queries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72033,67 +71817,83 @@ $root.query = (function() { } /** - * ReleaseRequest effective_caller_id. + * ReserveBeginStreamExecuteRequest effective_caller_id. * @member {vtrpc.ICallerID|null|undefined} effective_caller_id - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.effective_caller_id = null; + ReserveBeginStreamExecuteRequest.prototype.effective_caller_id = null; /** - * ReleaseRequest immediate_caller_id. + * ReserveBeginStreamExecuteRequest immediate_caller_id. * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.immediate_caller_id = null; + ReserveBeginStreamExecuteRequest.prototype.immediate_caller_id = null; /** - * ReleaseRequest target. + * ReserveBeginStreamExecuteRequest target. * @member {query.ITarget|null|undefined} target - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.target = null; + ReserveBeginStreamExecuteRequest.prototype.target = null; /** - * ReleaseRequest transaction_id. - * @member {number|Long} transaction_id - * @memberof query.ReleaseRequest + * ReserveBeginStreamExecuteRequest query. + * @member {query.IBoundQuery|null|undefined} query + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginStreamExecuteRequest.prototype.query = null; /** - * ReleaseRequest reserved_id. - * @member {number|Long} reserved_id - * @memberof query.ReleaseRequest + * ReserveBeginStreamExecuteRequest options. + * @member {query.IExecuteOptions|null|undefined} options + * @memberof query.ReserveBeginStreamExecuteRequest * @instance */ - ReleaseRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReserveBeginStreamExecuteRequest.prototype.options = null; /** - * Creates a new ReleaseRequest instance using the specified properties. + * ReserveBeginStreamExecuteRequest pre_queries. + * @member {Array.} pre_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.pre_queries = $util.emptyArray; + + /** + * ReserveBeginStreamExecuteRequest post_begin_queries. + * @member {Array.} post_begin_queries + * @memberof query.ReserveBeginStreamExecuteRequest + * @instance + */ + ReserveBeginStreamExecuteRequest.prototype.post_begin_queries = $util.emptyArray; + + /** + * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. * @function create - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest=} [properties] Properties to set - * @returns {query.ReleaseRequest} ReleaseRequest instance + * @param {query.IReserveBeginStreamExecuteRequest=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest instance */ - ReleaseRequest.create = function create(properties) { - return new ReleaseRequest(properties); + ReserveBeginStreamExecuteRequest.create = function create(properties) { + return new ReserveBeginStreamExecuteRequest(properties); }; /** - * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encode - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode + * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseRequest.encode = function encode(message, writer) { + ReserveBeginStreamExecuteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) @@ -72102,41 +71902,47 @@ $root.query = (function() { $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.target != null && Object.hasOwnProperty.call(message, "target")) $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); - if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.reserved_id); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + $root.query.BoundQuery.encode(message.query, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.query.ExecuteOptions.encode(message.options, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pre_queries != null && message.pre_queries.length) + for (var i = 0; i < message.pre_queries.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pre_queries[i]); + if (message.post_begin_queries != null && message.post_begin_queries.length) + for (var i = 0; i < message.post_begin_queries.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.post_begin_queries[i]); return writer; }; /** - * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode + * @param {query.IReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseRequest message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseRequest.decode = function decode(reader, length) { + ReserveBeginStreamExecuteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -72150,10 +71956,20 @@ $root.query = (function() { message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 4: - message.transaction_id = reader.int64(); + message.query = $root.query.BoundQuery.decode(reader, reader.uint32()); break; case 5: - message.reserved_id = reader.int64(); + message.options = $root.query.ExecuteOptions.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.pre_queries && message.pre_queries.length)) + message.pre_queries = []; + message.pre_queries.push(reader.string()); + break; + case 7: + if (!(message.post_begin_queries && message.post_begin_queries.length)) + message.post_begin_queries = []; + message.post_begin_queries.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -72164,30 +71980,30 @@ $root.query = (function() { }; /** - * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseRequest.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginStreamExecuteRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReleaseRequest message. + * Verifies a ReserveBeginStreamExecuteRequest message. * @function verify - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReleaseRequest.verify = function verify(message) { + ReserveBeginStreamExecuteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { @@ -72205,90 +72021,110 @@ $root.query = (function() { if (error) return "target." + error; } - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) - return "transaction_id: integer|Long expected"; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) - return "reserved_id: integer|Long expected"; + if (message.query != null && message.hasOwnProperty("query")) { + var error = $root.query.BoundQuery.verify(message.query); + if (error) + return "query." + error; + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.query.ExecuteOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.pre_queries != null && message.hasOwnProperty("pre_queries")) { + if (!Array.isArray(message.pre_queries)) + return "pre_queries: array expected"; + for (var i = 0; i < message.pre_queries.length; ++i) + if (!$util.isString(message.pre_queries[i])) + return "pre_queries: string[] expected"; + } + if (message.post_begin_queries != null && message.hasOwnProperty("post_begin_queries")) { + if (!Array.isArray(message.post_begin_queries)) + return "post_begin_queries: array expected"; + for (var i = 0; i < message.post_begin_queries.length; ++i) + if (!$util.isString(message.post_begin_queries[i])) + return "post_begin_queries: string[] expected"; + } return null; }; /** - * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static * @param {Object.} object Plain object - * @returns {query.ReleaseRequest} ReleaseRequest + * @returns {query.ReserveBeginStreamExecuteRequest} ReserveBeginStreamExecuteRequest */ - ReleaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseRequest) + ReserveBeginStreamExecuteRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteRequest) return object; - var message = new $root.query.ReleaseRequest(); + var message = new $root.query.ReserveBeginStreamExecuteRequest(); if (object.effective_caller_id != null) { if (typeof object.effective_caller_id !== "object") - throw TypeError(".query.ReleaseRequest.effective_caller_id: object expected"); + throw TypeError(".query.ReserveBeginStreamExecuteRequest.effective_caller_id: object expected"); message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); } if (object.immediate_caller_id != null) { if (typeof object.immediate_caller_id !== "object") - throw TypeError(".query.ReleaseRequest.immediate_caller_id: object expected"); + throw TypeError(".query.ReserveBeginStreamExecuteRequest.immediate_caller_id: object expected"); message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); } if (object.target != null) { if (typeof object.target !== "object") - throw TypeError(".query.ReleaseRequest.target: object expected"); + throw TypeError(".query.ReserveBeginStreamExecuteRequest.target: object expected"); message.target = $root.query.Target.fromObject(object.target); } - if (object.transaction_id != null) - if ($util.Long) - (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; - else if (typeof object.transaction_id === "string") - message.transaction_id = parseInt(object.transaction_id, 10); - else if (typeof object.transaction_id === "number") - message.transaction_id = object.transaction_id; - else if (typeof object.transaction_id === "object") - message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); - if (object.reserved_id != null) - if ($util.Long) - (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; - else if (typeof object.reserved_id === "string") - message.reserved_id = parseInt(object.reserved_id, 10); - else if (typeof object.reserved_id === "number") - message.reserved_id = object.reserved_id; - else if (typeof object.reserved_id === "object") - message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); - return message; - }; + if (object.query != null) { + if (typeof object.query !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.query: object expected"); + message.query = $root.query.BoundQuery.fromObject(object.query); + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteRequest.options: object expected"); + message.options = $root.query.ExecuteOptions.fromObject(object.options); + } + if (object.pre_queries) { + if (!Array.isArray(object.pre_queries)) + throw TypeError(".query.ReserveBeginStreamExecuteRequest.pre_queries: array expected"); + message.pre_queries = []; + for (var i = 0; i < object.pre_queries.length; ++i) + message.pre_queries[i] = String(object.pre_queries[i]); + } + if (object.post_begin_queries) { + if (!Array.isArray(object.post_begin_queries)) + throw TypeError(".query.ReserveBeginStreamExecuteRequest.post_begin_queries: array expected"); + message.post_begin_queries = []; + for (var i = 0; i < object.post_begin_queries.length; ++i) + message.post_begin_queries[i] = String(object.post_begin_queries[i]); + } + return message; + }; /** - * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @static - * @param {query.ReleaseRequest} message ReleaseRequest + * @param {query.ReserveBeginStreamExecuteRequest} message ReserveBeginStreamExecuteRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseRequest.toObject = function toObject(message, options) { + ReserveBeginStreamExecuteRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.pre_queries = []; + object.post_begin_queries = []; + } if (options.defaults) { object.effective_caller_id = null; object.immediate_caller_id = null; object.target = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.transaction_id = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.reserved_id = options.longs === String ? "0" : 0; + object.query = null; + object.options = null; } if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); @@ -72296,50 +72132,60 @@ $root.query = (function() { object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); if (message.target != null && message.hasOwnProperty("target")) object.target = $root.query.Target.toObject(message.target, options); - if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) - if (typeof message.transaction_id === "number") - object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; - else - object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; - if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) - if (typeof message.reserved_id === "number") - object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; - else - object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.query != null && message.hasOwnProperty("query")) + object.query = $root.query.BoundQuery.toObject(message.query, options); + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.query.ExecuteOptions.toObject(message.options, options); + if (message.pre_queries && message.pre_queries.length) { + object.pre_queries = []; + for (var j = 0; j < message.pre_queries.length; ++j) + object.pre_queries[j] = message.pre_queries[j]; + } + if (message.post_begin_queries && message.post_begin_queries.length) { + object.post_begin_queries = []; + for (var j = 0; j < message.post_begin_queries.length; ++j) + object.post_begin_queries[j] = message.post_begin_queries[j]; + } return object; }; /** - * Converts this ReleaseRequest to JSON. + * Converts this ReserveBeginStreamExecuteRequest to JSON. * @function toJSON - * @memberof query.ReleaseRequest + * @memberof query.ReserveBeginStreamExecuteRequest * @instance * @returns {Object.} JSON object */ - ReleaseRequest.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReleaseRequest; + return ReserveBeginStreamExecuteRequest; })(); - query.ReleaseResponse = (function() { + query.ReserveBeginStreamExecuteResponse = (function() { /** - * Properties of a ReleaseResponse. + * Properties of a ReserveBeginStreamExecuteResponse. * @memberof query - * @interface IReleaseResponse + * @interface IReserveBeginStreamExecuteResponse + * @property {vtrpc.IRPCError|null} [error] ReserveBeginStreamExecuteResponse error + * @property {query.IQueryResult|null} [result] ReserveBeginStreamExecuteResponse result + * @property {number|Long|null} [transaction_id] ReserveBeginStreamExecuteResponse transaction_id + * @property {number|Long|null} [reserved_id] ReserveBeginStreamExecuteResponse reserved_id + * @property {topodata.ITabletAlias|null} [tablet_alias] ReserveBeginStreamExecuteResponse tablet_alias + * @property {string|null} [session_state_changes] ReserveBeginStreamExecuteResponse session_state_changes */ /** - * Constructs a new ReleaseResponse. + * Constructs a new ReserveBeginStreamExecuteResponse. * @memberof query - * @classdesc Represents a ReleaseResponse. - * @implements IReleaseResponse + * @classdesc Represents a ReserveBeginStreamExecuteResponse. + * @implements IReserveBeginStreamExecuteResponse * @constructor - * @param {query.IReleaseResponse=} [properties] Properties to set + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set */ - function ReleaseResponse(properties) { + function ReserveBeginStreamExecuteResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72347,63 +72193,141 @@ $root.query = (function() { } /** - * Creates a new ReleaseResponse instance using the specified properties. + * ReserveBeginStreamExecuteResponse error. + * @member {vtrpc.IRPCError|null|undefined} error + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.error = null; + + /** + * ReserveBeginStreamExecuteResponse result. + * @member {query.IQueryResult|null|undefined} result + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.result = null; + + /** + * ReserveBeginStreamExecuteResponse transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveBeginStreamExecuteResponse reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReserveBeginStreamExecuteResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.tablet_alias = null; + + /** + * ReserveBeginStreamExecuteResponse session_state_changes. + * @member {string} session_state_changes + * @memberof query.ReserveBeginStreamExecuteResponse + * @instance + */ + ReserveBeginStreamExecuteResponse.prototype.session_state_changes = ""; + + /** + * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. * @function create - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse=} [properties] Properties to set - * @returns {query.ReleaseResponse} ReleaseResponse instance + * @param {query.IReserveBeginStreamExecuteResponse=} [properties] Properties to set + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse instance */ - ReleaseResponse.create = function create(properties) { - return new ReleaseResponse(properties); + ReserveBeginStreamExecuteResponse.create = function create(properties) { + return new ReserveBeginStreamExecuteResponse(properties); }; /** - * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encode - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode + * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseResponse.encode = function encode(message, writer) { + ReserveBeginStreamExecuteResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.vtrpc.RPCError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.query.QueryResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.reserved_id); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.session_state_changes != null && Object.hasOwnProperty.call(message, "session_state_changes")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.session_state_changes); return writer; }; /** - * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. + * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static - * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode + * @param {query.IReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + ReserveBeginStreamExecuteResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReleaseResponse message from the specified reader or buffer. + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. * @function decode - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseResponse.decode = function decode(reader, length) { + ReserveBeginStreamExecuteResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReserveBeginStreamExecuteResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.error = $root.vtrpc.RPCError.decode(reader, reader.uint32()); + break; + case 2: + message.result = $root.query.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.transaction_id = reader.int64(); + break; + case 4: + message.reserved_id = reader.int64(); + break; + case 5: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 6: + message.session_state_changes = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -72413,93 +72337,195 @@ $root.query = (function() { }; /** - * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. + * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.ReleaseResponse} ReleaseResponse + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReleaseResponse.decodeDelimited = function decodeDelimited(reader) { + ReserveBeginStreamExecuteResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReleaseResponse message. + * Verifies a ReserveBeginStreamExecuteResponse message. * @function verify - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReleaseResponse.verify = function verify(message) { + ReserveBeginStreamExecuteResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - return null; - }; - - /** - * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.ReleaseResponse - * @static - * @param {Object.} object Plain object - * @returns {query.ReleaseResponse} ReleaseResponse - */ - ReleaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.ReleaseResponse) - return object; - return new $root.query.ReleaseResponse(); - }; - - /** - * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof query.ReleaseResponse - * @static - * @param {query.ReleaseResponse} message ReleaseResponse + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.vtrpc.RPCError.verify(message.error); + if (error) + return "error." + error; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.query.QueryResult.verify(message.result); + if (error) + return "result." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + if (!$util.isString(message.session_state_changes)) + return "session_state_changes: string expected"; + return null; + }; + + /** + * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof query.ReserveBeginStreamExecuteResponse + * @static + * @param {Object.} object Plain object + * @returns {query.ReserveBeginStreamExecuteResponse} ReserveBeginStreamExecuteResponse + */ + ReserveBeginStreamExecuteResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReserveBeginStreamExecuteResponse) + return object; + var message = new $root.query.ReserveBeginStreamExecuteResponse(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.error: object expected"); + message.error = $root.vtrpc.RPCError.fromObject(object.error); + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.result: object expected"); + message.result = $root.query.QueryResult.fromObject(object.result); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.ReserveBeginStreamExecuteResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.session_state_changes != null) + message.session_state_changes = String(object.session_state_changes); + return message; + }; + + /** + * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof query.ReserveBeginStreamExecuteResponse + * @static + * @param {query.ReserveBeginStreamExecuteResponse} message ReserveBeginStreamExecuteResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReleaseResponse.toObject = function toObject() { - return {}; + ReserveBeginStreamExecuteResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.error = null; + object.result = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + object.tablet_alias = null; + object.session_state_changes = ""; + } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.vtrpc.RPCError.toObject(message.error, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.query.QueryResult.toObject(message.result, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.session_state_changes != null && message.hasOwnProperty("session_state_changes")) + object.session_state_changes = message.session_state_changes; + return object; }; /** - * Converts this ReleaseResponse to JSON. + * Converts this ReserveBeginStreamExecuteResponse to JSON. * @function toJSON - * @memberof query.ReleaseResponse + * @memberof query.ReserveBeginStreamExecuteResponse * @instance * @returns {Object.} JSON object */ - ReleaseResponse.prototype.toJSON = function toJSON() { + ReserveBeginStreamExecuteResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReleaseResponse; + return ReserveBeginStreamExecuteResponse; })(); - query.StreamHealthRequest = (function() { + query.ReleaseRequest = (function() { /** - * Properties of a StreamHealthRequest. + * Properties of a ReleaseRequest. * @memberof query - * @interface IStreamHealthRequest + * @interface IReleaseRequest + * @property {vtrpc.ICallerID|null} [effective_caller_id] ReleaseRequest effective_caller_id + * @property {query.IVTGateCallerID|null} [immediate_caller_id] ReleaseRequest immediate_caller_id + * @property {query.ITarget|null} [target] ReleaseRequest target + * @property {number|Long|null} [transaction_id] ReleaseRequest transaction_id + * @property {number|Long|null} [reserved_id] ReleaseRequest reserved_id */ /** - * Constructs a new StreamHealthRequest. + * Constructs a new ReleaseRequest. * @memberof query - * @classdesc Represents a StreamHealthRequest. - * @implements IStreamHealthRequest + * @classdesc Represents a ReleaseRequest. + * @implements IReleaseRequest * @constructor - * @param {query.IStreamHealthRequest=} [properties] Properties to set + * @param {query.IReleaseRequest=} [properties] Properties to set */ - function StreamHealthRequest(properties) { + function ReleaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72507,167 +72533,313 @@ $root.query = (function() { } /** - * Creates a new StreamHealthRequest instance using the specified properties. + * ReleaseRequest effective_caller_id. + * @member {vtrpc.ICallerID|null|undefined} effective_caller_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.effective_caller_id = null; + + /** + * ReleaseRequest immediate_caller_id. + * @member {query.IVTGateCallerID|null|undefined} immediate_caller_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.immediate_caller_id = null; + + /** + * ReleaseRequest target. + * @member {query.ITarget|null|undefined} target + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.target = null; + + /** + * ReleaseRequest transaction_id. + * @member {number|Long} transaction_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.transaction_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ReleaseRequest reserved_id. + * @member {number|Long} reserved_id + * @memberof query.ReleaseRequest + * @instance + */ + ReleaseRequest.prototype.reserved_id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ReleaseRequest instance using the specified properties. * @function create - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static - * @param {query.IStreamHealthRequest=} [properties] Properties to set - * @returns {query.StreamHealthRequest} StreamHealthRequest instance + * @param {query.IReleaseRequest=} [properties] Properties to set + * @returns {query.ReleaseRequest} ReleaseRequest instance */ - StreamHealthRequest.create = function create(properties) { - return new StreamHealthRequest(properties); + ReleaseRequest.create = function create(properties) { + return new ReleaseRequest(properties); }; /** - * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encode - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthRequest.encode = function encode(message, writer) { + ReleaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.effective_caller_id != null && Object.hasOwnProperty.call(message, "effective_caller_id")) + $root.vtrpc.CallerID.encode(message.effective_caller_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.immediate_caller_id != null && Object.hasOwnProperty.call(message, "immediate_caller_id")) + $root.query.VTGateCallerID.encode(message.immediate_caller_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.transaction_id != null && Object.hasOwnProperty.call(message, "transaction_id")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.transaction_id); + if (message.reserved_id != null && Object.hasOwnProperty.call(message, "reserved_id")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.reserved_id); return writer; }; /** - * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static - * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {query.IReleaseRequest} message ReleaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthRequest message from the specified reader or buffer. + * Decodes a ReleaseRequest message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.ReleaseRequest} ReleaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthRequest.decode = function decode(reader, length) { + ReleaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); + case 1: + message.effective_caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; - } - } - return message; - }; - - /** - * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.StreamHealthRequest - * @static + case 2: + message.immediate_caller_id = $root.query.VTGateCallerID.decode(reader, reader.uint32()); + break; + case 3: + message.target = $root.query.Target.decode(reader, reader.uint32()); + break; + case 4: + message.transaction_id = reader.int64(); + break; + case 5: + message.reserved_id = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.ReleaseRequest + * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.ReleaseRequest} ReleaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthRequest.decodeDelimited = function decodeDelimited(reader) { + ReleaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamHealthRequest message. + * Verifies a ReleaseRequest message. * @function verify - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamHealthRequest.verify = function verify(message) { + ReleaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.effective_caller_id); + if (error) + return "effective_caller_id." + error; + } + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) { + var error = $root.query.VTGateCallerID.verify(message.immediate_caller_id); + if (error) + return "immediate_caller_id." + error; + } + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (!$util.isInteger(message.transaction_id) && !(message.transaction_id && $util.isInteger(message.transaction_id.low) && $util.isInteger(message.transaction_id.high))) + return "transaction_id: integer|Long expected"; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (!$util.isInteger(message.reserved_id) && !(message.reserved_id && $util.isInteger(message.reserved_id.low) && $util.isInteger(message.reserved_id.high))) + return "reserved_id: integer|Long expected"; return null; }; /** - * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthRequest} StreamHealthRequest + * @returns {query.ReleaseRequest} ReleaseRequest */ - StreamHealthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthRequest) + ReleaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseRequest) return object; - return new $root.query.StreamHealthRequest(); + var message = new $root.query.ReleaseRequest(); + if (object.effective_caller_id != null) { + if (typeof object.effective_caller_id !== "object") + throw TypeError(".query.ReleaseRequest.effective_caller_id: object expected"); + message.effective_caller_id = $root.vtrpc.CallerID.fromObject(object.effective_caller_id); + } + if (object.immediate_caller_id != null) { + if (typeof object.immediate_caller_id !== "object") + throw TypeError(".query.ReleaseRequest.immediate_caller_id: object expected"); + message.immediate_caller_id = $root.query.VTGateCallerID.fromObject(object.immediate_caller_id); + } + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.ReleaseRequest.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.transaction_id != null) + if ($util.Long) + (message.transaction_id = $util.Long.fromValue(object.transaction_id)).unsigned = false; + else if (typeof object.transaction_id === "string") + message.transaction_id = parseInt(object.transaction_id, 10); + else if (typeof object.transaction_id === "number") + message.transaction_id = object.transaction_id; + else if (typeof object.transaction_id === "object") + message.transaction_id = new $util.LongBits(object.transaction_id.low >>> 0, object.transaction_id.high >>> 0).toNumber(); + if (object.reserved_id != null) + if ($util.Long) + (message.reserved_id = $util.Long.fromValue(object.reserved_id)).unsigned = false; + else if (typeof object.reserved_id === "string") + message.reserved_id = parseInt(object.reserved_id, 10); + else if (typeof object.reserved_id === "number") + message.reserved_id = object.reserved_id; + else if (typeof object.reserved_id === "object") + message.reserved_id = new $util.LongBits(object.reserved_id.low >>> 0, object.reserved_id.high >>> 0).toNumber(); + return message; }; /** - * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. + * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @static - * @param {query.StreamHealthRequest} message StreamHealthRequest + * @param {query.ReleaseRequest} message ReleaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthRequest.toObject = function toObject() { - return {}; + ReleaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.effective_caller_id = null; + object.immediate_caller_id = null; + object.target = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.transaction_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.transaction_id = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.reserved_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.reserved_id = options.longs === String ? "0" : 0; + } + if (message.effective_caller_id != null && message.hasOwnProperty("effective_caller_id")) + object.effective_caller_id = $root.vtrpc.CallerID.toObject(message.effective_caller_id, options); + if (message.immediate_caller_id != null && message.hasOwnProperty("immediate_caller_id")) + object.immediate_caller_id = $root.query.VTGateCallerID.toObject(message.immediate_caller_id, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.transaction_id != null && message.hasOwnProperty("transaction_id")) + if (typeof message.transaction_id === "number") + object.transaction_id = options.longs === String ? String(message.transaction_id) : message.transaction_id; + else + object.transaction_id = options.longs === String ? $util.Long.prototype.toString.call(message.transaction_id) : options.longs === Number ? new $util.LongBits(message.transaction_id.low >>> 0, message.transaction_id.high >>> 0).toNumber() : message.transaction_id; + if (message.reserved_id != null && message.hasOwnProperty("reserved_id")) + if (typeof message.reserved_id === "number") + object.reserved_id = options.longs === String ? String(message.reserved_id) : message.reserved_id; + else + object.reserved_id = options.longs === String ? $util.Long.prototype.toString.call(message.reserved_id) : options.longs === Number ? new $util.LongBits(message.reserved_id.low >>> 0, message.reserved_id.high >>> 0).toNumber() : message.reserved_id; + return object; }; /** - * Converts this StreamHealthRequest to JSON. + * Converts this ReleaseRequest to JSON. * @function toJSON - * @memberof query.StreamHealthRequest + * @memberof query.ReleaseRequest * @instance * @returns {Object.} JSON object */ - StreamHealthRequest.prototype.toJSON = function toJSON() { + ReleaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamHealthRequest; + return ReleaseRequest; })(); - query.RealtimeStats = (function() { + query.ReleaseResponse = (function() { /** - * Properties of a RealtimeStats. + * Properties of a ReleaseResponse. * @memberof query - * @interface IRealtimeStats - * @property {string|null} [health_error] RealtimeStats health_error - * @property {number|null} [replication_lag_seconds] RealtimeStats replication_lag_seconds - * @property {number|null} [binlog_players_count] RealtimeStats binlog_players_count - * @property {number|Long|null} [filtered_replication_lag_seconds] RealtimeStats filtered_replication_lag_seconds - * @property {number|null} [cpu_usage] RealtimeStats cpu_usage - * @property {number|null} [qps] RealtimeStats qps - * @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed + * @interface IReleaseResponse */ /** - * Constructs a new RealtimeStats. + * Constructs a new ReleaseResponse. * @memberof query - * @classdesc Represents a RealtimeStats. - * @implements IRealtimeStats + * @classdesc Represents a ReleaseResponse. + * @implements IReleaseResponse * @constructor - * @param {query.IRealtimeStats=} [properties] Properties to set + * @param {query.IReleaseResponse=} [properties] Properties to set */ - function RealtimeStats(properties) { - this.table_schema_changed = []; + function ReleaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72675,157 +72847,63 @@ $root.query = (function() { } /** - * RealtimeStats health_error. - * @member {string} health_error - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.health_error = ""; - - /** - * RealtimeStats replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.replication_lag_seconds = 0; - - /** - * RealtimeStats binlog_players_count. - * @member {number} binlog_players_count - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.binlog_players_count = 0; - - /** - * RealtimeStats filtered_replication_lag_seconds. - * @member {number|Long} filtered_replication_lag_seconds - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RealtimeStats cpu_usage. - * @member {number} cpu_usage - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.cpu_usage = 0; - - /** - * RealtimeStats qps. - * @member {number} qps - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.qps = 0; - - /** - * RealtimeStats table_schema_changed. - * @member {Array.} table_schema_changed - * @memberof query.RealtimeStats - * @instance - */ - RealtimeStats.prototype.table_schema_changed = $util.emptyArray; - - /** - * Creates a new RealtimeStats instance using the specified properties. + * Creates a new ReleaseResponse instance using the specified properties. * @function create - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static - * @param {query.IRealtimeStats=} [properties] Properties to set - * @returns {query.RealtimeStats} RealtimeStats instance + * @param {query.IReleaseResponse=} [properties] Properties to set + * @returns {query.ReleaseResponse} ReleaseResponse instance */ - RealtimeStats.create = function create(properties) { - return new RealtimeStats(properties); + ReleaseResponse.create = function create(properties) { + return new ReleaseResponse(properties); }; /** - * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encode - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode + * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RealtimeStats.encode = function encode(message, writer) { + ReleaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.health_error != null && Object.hasOwnProperty.call(message, "health_error")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.health_error); - if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.replication_lag_seconds); - if (message.binlog_players_count != null && Object.hasOwnProperty.call(message, "binlog_players_count")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.binlog_players_count); - if (message.filtered_replication_lag_seconds != null && Object.hasOwnProperty.call(message, "filtered_replication_lag_seconds")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.filtered_replication_lag_seconds); - if (message.cpu_usage != null && Object.hasOwnProperty.call(message, "cpu_usage")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.cpu_usage); - if (message.qps != null && Object.hasOwnProperty.call(message, "qps")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.qps); - if (message.table_schema_changed != null && message.table_schema_changed.length) - for (var i = 0; i < message.table_schema_changed.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); return writer; }; /** - * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. + * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static - * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode + * @param {query.IReleaseResponse} message ReleaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RealtimeStats message from the specified reader or buffer. + * Decodes a ReleaseResponse message from the specified reader or buffer. * @function decode - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.ReleaseResponse} ReleaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RealtimeStats.decode = function decode(reader, length) { + ReleaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.ReleaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.health_error = reader.string(); - break; - case 2: - message.replication_lag_seconds = reader.uint32(); - break; - case 3: - message.binlog_players_count = reader.int32(); - break; - case 4: - message.filtered_replication_lag_seconds = reader.int64(); - break; - case 5: - message.cpu_usage = reader.double(); - break; - case 6: - message.qps = reader.double(); - break; - case 7: - if (!(message.table_schema_changed && message.table_schema_changed.length)) - message.table_schema_changed = []; - message.table_schema_changed.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -72835,186 +72913,93 @@ $root.query = (function() { }; /** - * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. + * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.ReleaseResponse} ReleaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RealtimeStats.decodeDelimited = function decodeDelimited(reader) { + ReleaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RealtimeStats message. + * Verifies a ReleaseResponse message. * @function verify - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RealtimeStats.verify = function verify(message) { + ReleaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.health_error != null && message.hasOwnProperty("health_error")) - if (!$util.isString(message.health_error)) - return "health_error: string expected"; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - if (!$util.isInteger(message.replication_lag_seconds)) - return "replication_lag_seconds: integer expected"; - if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) - if (!$util.isInteger(message.binlog_players_count)) - return "binlog_players_count: integer expected"; - if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) - if (!$util.isInteger(message.filtered_replication_lag_seconds) && !(message.filtered_replication_lag_seconds && $util.isInteger(message.filtered_replication_lag_seconds.low) && $util.isInteger(message.filtered_replication_lag_seconds.high))) - return "filtered_replication_lag_seconds: integer|Long expected"; - if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) - if (typeof message.cpu_usage !== "number") - return "cpu_usage: number expected"; - if (message.qps != null && message.hasOwnProperty("qps")) - if (typeof message.qps !== "number") - return "qps: number expected"; - if (message.table_schema_changed != null && message.hasOwnProperty("table_schema_changed")) { - if (!Array.isArray(message.table_schema_changed)) - return "table_schema_changed: array expected"; - for (var i = 0; i < message.table_schema_changed.length; ++i) - if (!$util.isString(message.table_schema_changed[i])) - return "table_schema_changed: string[] expected"; - } return null; }; /** - * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static * @param {Object.} object Plain object - * @returns {query.RealtimeStats} RealtimeStats + * @returns {query.ReleaseResponse} ReleaseResponse */ - RealtimeStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.RealtimeStats) + ReleaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.ReleaseResponse) return object; - var message = new $root.query.RealtimeStats(); - if (object.health_error != null) - message.health_error = String(object.health_error); - if (object.replication_lag_seconds != null) - message.replication_lag_seconds = object.replication_lag_seconds >>> 0; - if (object.binlog_players_count != null) - message.binlog_players_count = object.binlog_players_count | 0; - if (object.filtered_replication_lag_seconds != null) - if ($util.Long) - (message.filtered_replication_lag_seconds = $util.Long.fromValue(object.filtered_replication_lag_seconds)).unsigned = false; - else if (typeof object.filtered_replication_lag_seconds === "string") - message.filtered_replication_lag_seconds = parseInt(object.filtered_replication_lag_seconds, 10); - else if (typeof object.filtered_replication_lag_seconds === "number") - message.filtered_replication_lag_seconds = object.filtered_replication_lag_seconds; - else if (typeof object.filtered_replication_lag_seconds === "object") - message.filtered_replication_lag_seconds = new $util.LongBits(object.filtered_replication_lag_seconds.low >>> 0, object.filtered_replication_lag_seconds.high >>> 0).toNumber(); - if (object.cpu_usage != null) - message.cpu_usage = Number(object.cpu_usage); - if (object.qps != null) - message.qps = Number(object.qps); - if (object.table_schema_changed) { - if (!Array.isArray(object.table_schema_changed)) - throw TypeError(".query.RealtimeStats.table_schema_changed: array expected"); - message.table_schema_changed = []; - for (var i = 0; i < object.table_schema_changed.length; ++i) - message.table_schema_changed[i] = String(object.table_schema_changed[i]); - } - return message; + return new $root.query.ReleaseResponse(); }; /** - * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. + * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @static - * @param {query.RealtimeStats} message RealtimeStats + * @param {query.ReleaseResponse} message ReleaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RealtimeStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.table_schema_changed = []; - if (options.defaults) { - object.health_error = ""; - object.replication_lag_seconds = 0; - object.binlog_players_count = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.filtered_replication_lag_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.filtered_replication_lag_seconds = options.longs === String ? "0" : 0; - object.cpu_usage = 0; - object.qps = 0; - } - if (message.health_error != null && message.hasOwnProperty("health_error")) - object.health_error = message.health_error; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - object.replication_lag_seconds = message.replication_lag_seconds; - if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) - object.binlog_players_count = message.binlog_players_count; - if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) - if (typeof message.filtered_replication_lag_seconds === "number") - object.filtered_replication_lag_seconds = options.longs === String ? String(message.filtered_replication_lag_seconds) : message.filtered_replication_lag_seconds; - else - object.filtered_replication_lag_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.filtered_replication_lag_seconds) : options.longs === Number ? new $util.LongBits(message.filtered_replication_lag_seconds.low >>> 0, message.filtered_replication_lag_seconds.high >>> 0).toNumber() : message.filtered_replication_lag_seconds; - if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) - object.cpu_usage = options.json && !isFinite(message.cpu_usage) ? String(message.cpu_usage) : message.cpu_usage; - if (message.qps != null && message.hasOwnProperty("qps")) - object.qps = options.json && !isFinite(message.qps) ? String(message.qps) : message.qps; - if (message.table_schema_changed && message.table_schema_changed.length) { - object.table_schema_changed = []; - for (var j = 0; j < message.table_schema_changed.length; ++j) - object.table_schema_changed[j] = message.table_schema_changed[j]; - } - return object; + ReleaseResponse.toObject = function toObject() { + return {}; }; /** - * Converts this RealtimeStats to JSON. + * Converts this ReleaseResponse to JSON. * @function toJSON - * @memberof query.RealtimeStats + * @memberof query.ReleaseResponse * @instance * @returns {Object.} JSON object */ - RealtimeStats.prototype.toJSON = function toJSON() { + ReleaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RealtimeStats; + return ReleaseResponse; })(); - query.AggregateStats = (function() { + query.StreamHealthRequest = (function() { /** - * Properties of an AggregateStats. + * Properties of a StreamHealthRequest. * @memberof query - * @interface IAggregateStats - * @property {number|null} [healthy_tablet_count] AggregateStats healthy_tablet_count - * @property {number|null} [unhealthy_tablet_count] AggregateStats unhealthy_tablet_count - * @property {number|null} [replication_lag_seconds_min] AggregateStats replication_lag_seconds_min - * @property {number|null} [replication_lag_seconds_max] AggregateStats replication_lag_seconds_max + * @interface IStreamHealthRequest */ /** - * Constructs a new AggregateStats. + * Constructs a new StreamHealthRequest. * @memberof query - * @classdesc Represents an AggregateStats. - * @implements IAggregateStats + * @classdesc Represents a StreamHealthRequest. + * @implements IStreamHealthRequest * @constructor - * @param {query.IAggregateStats=} [properties] Properties to set + * @param {query.IStreamHealthRequest=} [properties] Properties to set */ - function AggregateStats(properties) { + function StreamHealthRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73022,115 +73007,63 @@ $root.query = (function() { } /** - * AggregateStats healthy_tablet_count. - * @member {number} healthy_tablet_count - * @memberof query.AggregateStats - * @instance + * Creates a new StreamHealthRequest instance using the specified properties. + * @function create + * @memberof query.StreamHealthRequest + * @static + * @param {query.IStreamHealthRequest=} [properties] Properties to set + * @returns {query.StreamHealthRequest} StreamHealthRequest instance */ - AggregateStats.prototype.healthy_tablet_count = 0; + StreamHealthRequest.create = function create(properties) { + return new StreamHealthRequest(properties); + }; /** - * AggregateStats unhealthy_tablet_count. - * @member {number} unhealthy_tablet_count - * @memberof query.AggregateStats - * @instance + * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @function encode + * @memberof query.StreamHealthRequest + * @static + * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - AggregateStats.prototype.unhealthy_tablet_count = 0; + StreamHealthRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * AggregateStats replication_lag_seconds_min. - * @member {number} replication_lag_seconds_min - * @memberof query.AggregateStats - * @instance + * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof query.StreamHealthRequest + * @static + * @param {query.IStreamHealthRequest} message StreamHealthRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - AggregateStats.prototype.replication_lag_seconds_min = 0; + StreamHealthRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * AggregateStats replication_lag_seconds_max. - * @member {number} replication_lag_seconds_max - * @memberof query.AggregateStats - * @instance - */ - AggregateStats.prototype.replication_lag_seconds_max = 0; - - /** - * Creates a new AggregateStats instance using the specified properties. - * @function create - * @memberof query.AggregateStats - * @static - * @param {query.IAggregateStats=} [properties] Properties to set - * @returns {query.AggregateStats} AggregateStats instance - */ - AggregateStats.create = function create(properties) { - return new AggregateStats(properties); - }; - - /** - * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @function encode - * @memberof query.AggregateStats - * @static - * @param {query.IAggregateStats} message AggregateStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AggregateStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.healthy_tablet_count != null && Object.hasOwnProperty.call(message, "healthy_tablet_count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.healthy_tablet_count); - if (message.unhealthy_tablet_count != null && Object.hasOwnProperty.call(message, "unhealthy_tablet_count")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unhealthy_tablet_count); - if (message.replication_lag_seconds_min != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_min")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.replication_lag_seconds_min); - if (message.replication_lag_seconds_max != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_max")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds_max); - return writer; - }; - - /** - * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @function encodeDelimited - * @memberof query.AggregateStats - * @static - * @param {query.IAggregateStats} message AggregateStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AggregateStats message from the specified reader or buffer. + * Decodes a StreamHealthRequest message from the specified reader or buffer. * @function decode - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.AggregateStats} AggregateStats + * @returns {query.StreamHealthRequest} StreamHealthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregateStats.decode = function decode(reader, length) { + StreamHealthRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.healthy_tablet_count = reader.int32(); - break; - case 2: - message.unhealthy_tablet_count = reader.int32(); - break; - case 3: - message.replication_lag_seconds_min = reader.uint32(); - break; - case 4: - message.replication_lag_seconds_max = reader.uint32(); - break; default: reader.skipType(tag & 7); break; @@ -73140,136 +73073,101 @@ $root.query = (function() { }; /** - * Decodes an AggregateStats message from the specified reader or buffer, length delimited. + * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.AggregateStats} AggregateStats + * @returns {query.StreamHealthRequest} StreamHealthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregateStats.decodeDelimited = function decodeDelimited(reader) { + StreamHealthRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregateStats message. + * Verifies a StreamHealthRequest message. * @function verify - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregateStats.verify = function verify(message) { + StreamHealthRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - if (!$util.isInteger(message.healthy_tablet_count)) - return "healthy_tablet_count: integer expected"; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - if (!$util.isInteger(message.unhealthy_tablet_count)) - return "unhealthy_tablet_count: integer expected"; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - if (!$util.isInteger(message.replication_lag_seconds_min)) - return "replication_lag_seconds_min: integer expected"; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - if (!$util.isInteger(message.replication_lag_seconds_max)) - return "replication_lag_seconds_max: integer expected"; return null; }; /** - * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. + * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @static * @param {Object.} object Plain object - * @returns {query.AggregateStats} AggregateStats + * @returns {query.StreamHealthRequest} StreamHealthRequest */ - AggregateStats.fromObject = function fromObject(object) { - if (object instanceof $root.query.AggregateStats) + StreamHealthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthRequest) return object; - var message = new $root.query.AggregateStats(); - if (object.healthy_tablet_count != null) - message.healthy_tablet_count = object.healthy_tablet_count | 0; - if (object.unhealthy_tablet_count != null) - message.unhealthy_tablet_count = object.unhealthy_tablet_count | 0; - if (object.replication_lag_seconds_min != null) - message.replication_lag_seconds_min = object.replication_lag_seconds_min >>> 0; - if (object.replication_lag_seconds_max != null) - message.replication_lag_seconds_max = object.replication_lag_seconds_max >>> 0; - return message; + return new $root.query.StreamHealthRequest(); }; /** - * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. + * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. * @function toObject - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @static - * @param {query.AggregateStats} message AggregateStats + * @param {query.StreamHealthRequest} message StreamHealthRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregateStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.healthy_tablet_count = 0; - object.unhealthy_tablet_count = 0; - object.replication_lag_seconds_min = 0; - object.replication_lag_seconds_max = 0; - } - if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) - object.healthy_tablet_count = message.healthy_tablet_count; - if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) - object.unhealthy_tablet_count = message.unhealthy_tablet_count; - if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) - object.replication_lag_seconds_min = message.replication_lag_seconds_min; - if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) - object.replication_lag_seconds_max = message.replication_lag_seconds_max; - return object; + StreamHealthRequest.toObject = function toObject() { + return {}; }; /** - * Converts this AggregateStats to JSON. + * Converts this StreamHealthRequest to JSON. * @function toJSON - * @memberof query.AggregateStats + * @memberof query.StreamHealthRequest * @instance * @returns {Object.} JSON object */ - AggregateStats.prototype.toJSON = function toJSON() { + StreamHealthRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AggregateStats; + return StreamHealthRequest; })(); - query.StreamHealthResponse = (function() { + query.RealtimeStats = (function() { /** - * Properties of a StreamHealthResponse. + * Properties of a RealtimeStats. * @memberof query - * @interface IStreamHealthResponse - * @property {query.ITarget|null} [target] StreamHealthResponse target - * @property {boolean|null} [serving] StreamHealthResponse serving - * @property {number|Long|null} [tablet_externally_reparented_timestamp] StreamHealthResponse tablet_externally_reparented_timestamp - * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats - * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias + * @interface IRealtimeStats + * @property {string|null} [health_error] RealtimeStats health_error + * @property {number|null} [replication_lag_seconds] RealtimeStats replication_lag_seconds + * @property {number|null} [binlog_players_count] RealtimeStats binlog_players_count + * @property {number|Long|null} [filtered_replication_lag_seconds] RealtimeStats filtered_replication_lag_seconds + * @property {number|null} [cpu_usage] RealtimeStats cpu_usage + * @property {number|null} [qps] RealtimeStats qps + * @property {Array.|null} [table_schema_changed] RealtimeStats table_schema_changed */ /** - * Constructs a new StreamHealthResponse. + * Constructs a new RealtimeStats. * @memberof query - * @classdesc Represents a StreamHealthResponse. - * @implements IStreamHealthResponse + * @classdesc Represents a RealtimeStats. + * @implements IRealtimeStats * @constructor - * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @param {query.IRealtimeStats=} [properties] Properties to set */ - function StreamHealthResponse(properties) { + function RealtimeStats(properties) { + this.table_schema_changed = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73277,127 +73175,156 @@ $root.query = (function() { } /** - * StreamHealthResponse target. - * @member {query.ITarget|null|undefined} target - * @memberof query.StreamHealthResponse + * RealtimeStats health_error. + * @member {string} health_error + * @memberof query.RealtimeStats * @instance */ - StreamHealthResponse.prototype.target = null; + RealtimeStats.prototype.health_error = ""; /** - * StreamHealthResponse serving. - * @member {boolean} serving - * @memberof query.StreamHealthResponse + * RealtimeStats replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof query.RealtimeStats * @instance */ - StreamHealthResponse.prototype.serving = false; + RealtimeStats.prototype.replication_lag_seconds = 0; /** - * StreamHealthResponse tablet_externally_reparented_timestamp. - * @member {number|Long} tablet_externally_reparented_timestamp - * @memberof query.StreamHealthResponse + * RealtimeStats binlog_players_count. + * @member {number} binlog_players_count + * @memberof query.RealtimeStats * @instance */ - StreamHealthResponse.prototype.tablet_externally_reparented_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RealtimeStats.prototype.binlog_players_count = 0; /** - * StreamHealthResponse realtime_stats. - * @member {query.IRealtimeStats|null|undefined} realtime_stats - * @memberof query.StreamHealthResponse + * RealtimeStats filtered_replication_lag_seconds. + * @member {number|Long} filtered_replication_lag_seconds + * @memberof query.RealtimeStats * @instance */ - StreamHealthResponse.prototype.realtime_stats = null; + RealtimeStats.prototype.filtered_replication_lag_seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * StreamHealthResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof query.StreamHealthResponse + * RealtimeStats cpu_usage. + * @member {number} cpu_usage + * @memberof query.RealtimeStats * @instance */ - StreamHealthResponse.prototype.tablet_alias = null; + RealtimeStats.prototype.cpu_usage = 0; /** - * Creates a new StreamHealthResponse instance using the specified properties. + * RealtimeStats qps. + * @member {number} qps + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.qps = 0; + + /** + * RealtimeStats table_schema_changed. + * @member {Array.} table_schema_changed + * @memberof query.RealtimeStats + * @instance + */ + RealtimeStats.prototype.table_schema_changed = $util.emptyArray; + + /** + * Creates a new RealtimeStats instance using the specified properties. * @function create - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static - * @param {query.IStreamHealthResponse=} [properties] Properties to set - * @returns {query.StreamHealthResponse} StreamHealthResponse instance + * @param {query.IRealtimeStats=} [properties] Properties to set + * @returns {query.RealtimeStats} RealtimeStats instance */ - StreamHealthResponse.create = function create(properties) { - return new StreamHealthResponse(properties); + RealtimeStats.create = function create(properties) { + return new RealtimeStats(properties); }; /** - * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encode - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode + * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthResponse.encode = function encode(message, writer) { + RealtimeStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.query.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.serving != null && Object.hasOwnProperty.call(message, "serving")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.serving); - if (message.tablet_externally_reparented_timestamp != null && Object.hasOwnProperty.call(message, "tablet_externally_reparented_timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tablet_externally_reparented_timestamp); - if (message.realtime_stats != null && Object.hasOwnProperty.call(message, "realtime_stats")) - $root.query.RealtimeStats.encode(message.realtime_stats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.health_error != null && Object.hasOwnProperty.call(message, "health_error")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.health_error); + if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.replication_lag_seconds); + if (message.binlog_players_count != null && Object.hasOwnProperty.call(message, "binlog_players_count")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.binlog_players_count); + if (message.filtered_replication_lag_seconds != null && Object.hasOwnProperty.call(message, "filtered_replication_lag_seconds")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.filtered_replication_lag_seconds); + if (message.cpu_usage != null && Object.hasOwnProperty.call(message, "cpu_usage")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.cpu_usage); + if (message.qps != null && Object.hasOwnProperty.call(message, "qps")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.qps); + if (message.table_schema_changed != null && message.table_schema_changed.length) + for (var i = 0; i < message.table_schema_changed.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.table_schema_changed[i]); return writer; }; /** - * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. + * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. * @function encodeDelimited - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static - * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode + * @param {query.IRealtimeStats} message RealtimeStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { + RealtimeStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamHealthResponse message from the specified reader or buffer. + * Decodes a RealtimeStats message from the specified reader or buffer. * @function decode - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.RealtimeStats} RealtimeStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthResponse.decode = function decode(reader, length) { + RealtimeStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.RealtimeStats(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.target = $root.query.Target.decode(reader, reader.uint32()); + message.health_error = reader.string(); break; case 2: - message.serving = reader.bool(); + message.replication_lag_seconds = reader.uint32(); break; case 3: - message.tablet_externally_reparented_timestamp = reader.int64(); + message.binlog_players_count = reader.int32(); break; case 4: - message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); + message.filtered_replication_lag_seconds = reader.int64(); break; case 5: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.cpu_usage = reader.double(); + break; + case 6: + message.qps = reader.double(); + break; + case 7: + if (!(message.table_schema_changed && message.table_schema_changed.length)) + message.table_schema_changed = []; + message.table_schema_changed.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -73408,191 +73335,186 @@ $root.query = (function() { }; /** - * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. + * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.RealtimeStats} RealtimeStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamHealthResponse.decodeDelimited = function decodeDelimited(reader) { + RealtimeStats.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamHealthResponse message. + * Verifies a RealtimeStats message. * @function verify - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamHealthResponse.verify = function verify(message) { + RealtimeStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.query.Target.verify(message.target); - if (error) - return "target." + error; - } - if (message.serving != null && message.hasOwnProperty("serving")) - if (typeof message.serving !== "boolean") - return "serving: boolean expected"; - if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) - if (!$util.isInteger(message.tablet_externally_reparented_timestamp) && !(message.tablet_externally_reparented_timestamp && $util.isInteger(message.tablet_externally_reparented_timestamp.low) && $util.isInteger(message.tablet_externally_reparented_timestamp.high))) - return "tablet_externally_reparented_timestamp: integer|Long expected"; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { - var error = $root.query.RealtimeStats.verify(message.realtime_stats); - if (error) - return "realtime_stats." + error; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; + if (message.health_error != null && message.hasOwnProperty("health_error")) + if (!$util.isString(message.health_error)) + return "health_error: string expected"; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + if (!$util.isInteger(message.replication_lag_seconds)) + return "replication_lag_seconds: integer expected"; + if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) + if (!$util.isInteger(message.binlog_players_count)) + return "binlog_players_count: integer expected"; + if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) + if (!$util.isInteger(message.filtered_replication_lag_seconds) && !(message.filtered_replication_lag_seconds && $util.isInteger(message.filtered_replication_lag_seconds.low) && $util.isInteger(message.filtered_replication_lag_seconds.high))) + return "filtered_replication_lag_seconds: integer|Long expected"; + if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) + if (typeof message.cpu_usage !== "number") + return "cpu_usage: number expected"; + if (message.qps != null && message.hasOwnProperty("qps")) + if (typeof message.qps !== "number") + return "qps: number expected"; + if (message.table_schema_changed != null && message.hasOwnProperty("table_schema_changed")) { + if (!Array.isArray(message.table_schema_changed)) + return "table_schema_changed: array expected"; + for (var i = 0; i < message.table_schema_changed.length; ++i) + if (!$util.isString(message.table_schema_changed[i])) + return "table_schema_changed: string[] expected"; } return null; }; /** - * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static * @param {Object.} object Plain object - * @returns {query.StreamHealthResponse} StreamHealthResponse + * @returns {query.RealtimeStats} RealtimeStats */ - StreamHealthResponse.fromObject = function fromObject(object) { - if (object instanceof $root.query.StreamHealthResponse) + RealtimeStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.RealtimeStats) return object; - var message = new $root.query.StreamHealthResponse(); - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".query.StreamHealthResponse.target: object expected"); - message.target = $root.query.Target.fromObject(object.target); - } - if (object.serving != null) - message.serving = Boolean(object.serving); - if (object.tablet_externally_reparented_timestamp != null) + var message = new $root.query.RealtimeStats(); + if (object.health_error != null) + message.health_error = String(object.health_error); + if (object.replication_lag_seconds != null) + message.replication_lag_seconds = object.replication_lag_seconds >>> 0; + if (object.binlog_players_count != null) + message.binlog_players_count = object.binlog_players_count | 0; + if (object.filtered_replication_lag_seconds != null) if ($util.Long) - (message.tablet_externally_reparented_timestamp = $util.Long.fromValue(object.tablet_externally_reparented_timestamp)).unsigned = false; - else if (typeof object.tablet_externally_reparented_timestamp === "string") - message.tablet_externally_reparented_timestamp = parseInt(object.tablet_externally_reparented_timestamp, 10); - else if (typeof object.tablet_externally_reparented_timestamp === "number") - message.tablet_externally_reparented_timestamp = object.tablet_externally_reparented_timestamp; - else if (typeof object.tablet_externally_reparented_timestamp === "object") - message.tablet_externally_reparented_timestamp = new $util.LongBits(object.tablet_externally_reparented_timestamp.low >>> 0, object.tablet_externally_reparented_timestamp.high >>> 0).toNumber(); - if (object.realtime_stats != null) { - if (typeof object.realtime_stats !== "object") - throw TypeError(".query.StreamHealthResponse.realtime_stats: object expected"); - message.realtime_stats = $root.query.RealtimeStats.fromObject(object.realtime_stats); - } - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".query.StreamHealthResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + (message.filtered_replication_lag_seconds = $util.Long.fromValue(object.filtered_replication_lag_seconds)).unsigned = false; + else if (typeof object.filtered_replication_lag_seconds === "string") + message.filtered_replication_lag_seconds = parseInt(object.filtered_replication_lag_seconds, 10); + else if (typeof object.filtered_replication_lag_seconds === "number") + message.filtered_replication_lag_seconds = object.filtered_replication_lag_seconds; + else if (typeof object.filtered_replication_lag_seconds === "object") + message.filtered_replication_lag_seconds = new $util.LongBits(object.filtered_replication_lag_seconds.low >>> 0, object.filtered_replication_lag_seconds.high >>> 0).toNumber(); + if (object.cpu_usage != null) + message.cpu_usage = Number(object.cpu_usage); + if (object.qps != null) + message.qps = Number(object.qps); + if (object.table_schema_changed) { + if (!Array.isArray(object.table_schema_changed)) + throw TypeError(".query.RealtimeStats.table_schema_changed: array expected"); + message.table_schema_changed = []; + for (var i = 0; i < object.table_schema_changed.length; ++i) + message.table_schema_changed[i] = String(object.table_schema_changed[i]); } return message; }; /** - * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. + * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. * @function toObject - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @static - * @param {query.StreamHealthResponse} message StreamHealthResponse + * @param {query.RealtimeStats} message RealtimeStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamHealthResponse.toObject = function toObject(message, options) { + RealtimeStats.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.table_schema_changed = []; if (options.defaults) { - object.target = null; - object.serving = false; + object.health_error = ""; + object.replication_lag_seconds = 0; + object.binlog_players_count = 0; if ($util.Long) { var long = new $util.Long(0, 0, false); - object.tablet_externally_reparented_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.filtered_replication_lag_seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.tablet_externally_reparented_timestamp = options.longs === String ? "0" : 0; - object.realtime_stats = null; - object.tablet_alias = null; + object.filtered_replication_lag_seconds = options.longs === String ? "0" : 0; + object.cpu_usage = 0; + object.qps = 0; } - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.query.Target.toObject(message.target, options); - if (message.serving != null && message.hasOwnProperty("serving")) - object.serving = message.serving; - if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) - if (typeof message.tablet_externally_reparented_timestamp === "number") - object.tablet_externally_reparented_timestamp = options.longs === String ? String(message.tablet_externally_reparented_timestamp) : message.tablet_externally_reparented_timestamp; + if (message.health_error != null && message.hasOwnProperty("health_error")) + object.health_error = message.health_error; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + object.replication_lag_seconds = message.replication_lag_seconds; + if (message.binlog_players_count != null && message.hasOwnProperty("binlog_players_count")) + object.binlog_players_count = message.binlog_players_count; + if (message.filtered_replication_lag_seconds != null && message.hasOwnProperty("filtered_replication_lag_seconds")) + if (typeof message.filtered_replication_lag_seconds === "number") + object.filtered_replication_lag_seconds = options.longs === String ? String(message.filtered_replication_lag_seconds) : message.filtered_replication_lag_seconds; else - object.tablet_externally_reparented_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tablet_externally_reparented_timestamp) : options.longs === Number ? new $util.LongBits(message.tablet_externally_reparented_timestamp.low >>> 0, message.tablet_externally_reparented_timestamp.high >>> 0).toNumber() : message.tablet_externally_reparented_timestamp; - if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) - object.realtime_stats = $root.query.RealtimeStats.toObject(message.realtime_stats, options); - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + object.filtered_replication_lag_seconds = options.longs === String ? $util.Long.prototype.toString.call(message.filtered_replication_lag_seconds) : options.longs === Number ? new $util.LongBits(message.filtered_replication_lag_seconds.low >>> 0, message.filtered_replication_lag_seconds.high >>> 0).toNumber() : message.filtered_replication_lag_seconds; + if (message.cpu_usage != null && message.hasOwnProperty("cpu_usage")) + object.cpu_usage = options.json && !isFinite(message.cpu_usage) ? String(message.cpu_usage) : message.cpu_usage; + if (message.qps != null && message.hasOwnProperty("qps")) + object.qps = options.json && !isFinite(message.qps) ? String(message.qps) : message.qps; + if (message.table_schema_changed && message.table_schema_changed.length) { + object.table_schema_changed = []; + for (var j = 0; j < message.table_schema_changed.length; ++j) + object.table_schema_changed[j] = message.table_schema_changed[j]; + } return object; }; /** - * Converts this StreamHealthResponse to JSON. + * Converts this RealtimeStats to JSON. * @function toJSON - * @memberof query.StreamHealthResponse + * @memberof query.RealtimeStats * @instance * @returns {Object.} JSON object */ - StreamHealthResponse.prototype.toJSON = function toJSON() { + RealtimeStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamHealthResponse; + return RealtimeStats; })(); - /** - * TransactionState enum. - * @name query.TransactionState - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} PREPARE=1 PREPARE value - * @property {number} COMMIT=2 COMMIT value - * @property {number} ROLLBACK=3 ROLLBACK value - */ - query.TransactionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "PREPARE"] = 1; - values[valuesById[2] = "COMMIT"] = 2; - values[valuesById[3] = "ROLLBACK"] = 3; - return values; - })(); - - query.TransactionMetadata = (function() { + query.AggregateStats = (function() { /** - * Properties of a TransactionMetadata. + * Properties of an AggregateStats. * @memberof query - * @interface ITransactionMetadata - * @property {string|null} [dtid] TransactionMetadata dtid - * @property {query.TransactionState|null} [state] TransactionMetadata state - * @property {number|Long|null} [time_created] TransactionMetadata time_created - * @property {Array.|null} [participants] TransactionMetadata participants + * @interface IAggregateStats + * @property {number|null} [healthy_tablet_count] AggregateStats healthy_tablet_count + * @property {number|null} [unhealthy_tablet_count] AggregateStats unhealthy_tablet_count + * @property {number|null} [replication_lag_seconds_min] AggregateStats replication_lag_seconds_min + * @property {number|null} [replication_lag_seconds_max] AggregateStats replication_lag_seconds_max */ /** - * Constructs a new TransactionMetadata. + * Constructs a new AggregateStats. * @memberof query - * @classdesc Represents a TransactionMetadata. - * @implements ITransactionMetadata + * @classdesc Represents an AggregateStats. + * @implements IAggregateStats * @constructor - * @param {query.ITransactionMetadata=} [properties] Properties to set + * @param {query.IAggregateStats=} [properties] Properties to set */ - function TransactionMetadata(properties) { - this.participants = []; + function AggregateStats(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73600,117 +73522,114 @@ $root.query = (function() { } /** - * TransactionMetadata dtid. - * @member {string} dtid - * @memberof query.TransactionMetadata + * AggregateStats healthy_tablet_count. + * @member {number} healthy_tablet_count + * @memberof query.AggregateStats * @instance */ - TransactionMetadata.prototype.dtid = ""; + AggregateStats.prototype.healthy_tablet_count = 0; /** - * TransactionMetadata state. - * @member {query.TransactionState} state - * @memberof query.TransactionMetadata + * AggregateStats unhealthy_tablet_count. + * @member {number} unhealthy_tablet_count + * @memberof query.AggregateStats * @instance */ - TransactionMetadata.prototype.state = 0; + AggregateStats.prototype.unhealthy_tablet_count = 0; /** - * TransactionMetadata time_created. - * @member {number|Long} time_created - * @memberof query.TransactionMetadata + * AggregateStats replication_lag_seconds_min. + * @member {number} replication_lag_seconds_min + * @memberof query.AggregateStats * @instance */ - TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AggregateStats.prototype.replication_lag_seconds_min = 0; /** - * TransactionMetadata participants. - * @member {Array.} participants - * @memberof query.TransactionMetadata + * AggregateStats replication_lag_seconds_max. + * @member {number} replication_lag_seconds_max + * @memberof query.AggregateStats * @instance */ - TransactionMetadata.prototype.participants = $util.emptyArray; + AggregateStats.prototype.replication_lag_seconds_max = 0; /** - * Creates a new TransactionMetadata instance using the specified properties. + * Creates a new AggregateStats instance using the specified properties. * @function create - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static - * @param {query.ITransactionMetadata=} [properties] Properties to set - * @returns {query.TransactionMetadata} TransactionMetadata instance + * @param {query.IAggregateStats=} [properties] Properties to set + * @returns {query.AggregateStats} AggregateStats instance */ - TransactionMetadata.create = function create(properties) { - return new TransactionMetadata(properties); + AggregateStats.create = function create(properties) { + return new AggregateStats(properties); }; /** - * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encode - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static - * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode + * @param {query.IAggregateStats} message AggregateStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransactionMetadata.encode = function encode(message, writer) { + AggregateStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); - if (message.participants != null && message.participants.length) - for (var i = 0; i < message.participants.length; ++i) - $root.query.Target.encode(message.participants[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.healthy_tablet_count != null && Object.hasOwnProperty.call(message, "healthy_tablet_count")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.healthy_tablet_count); + if (message.unhealthy_tablet_count != null && Object.hasOwnProperty.call(message, "unhealthy_tablet_count")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unhealthy_tablet_count); + if (message.replication_lag_seconds_min != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_min")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.replication_lag_seconds_min); + if (message.replication_lag_seconds_max != null && Object.hasOwnProperty.call(message, "replication_lag_seconds_max")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds_max); return writer; }; /** - * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. + * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. * @function encodeDelimited - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static - * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode + * @param {query.IAggregateStats} message AggregateStats message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { + AggregateStats.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransactionMetadata message from the specified reader or buffer. + * Decodes an AggregateStats message from the specified reader or buffer. * @function decode - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.AggregateStats} AggregateStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransactionMetadata.decode = function decode(reader, length) { + AggregateStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.AggregateStats(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dtid = reader.string(); + message.healthy_tablet_count = reader.int32(); break; case 2: - message.state = reader.int32(); + message.unhealthy_tablet_count = reader.int32(); break; case 3: - message.time_created = reader.int64(); + message.replication_lag_seconds_min = reader.uint32(); break; case 4: - if (!(message.participants && message.participants.length)) - message.participants = []; - message.participants.push($root.query.Target.decode(reader, reader.uint32())); + message.replication_lag_seconds_max = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -73721,203 +73640,136 @@ $root.query = (function() { }; /** - * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. + * Decodes an AggregateStats message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.AggregateStats} AggregateStats * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransactionMetadata.decodeDelimited = function decodeDelimited(reader) { + AggregateStats.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransactionMetadata message. + * Verifies an AggregateStats message. * @function verify - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransactionMetadata.verify = function verify(message) { + AggregateStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dtid != null && message.hasOwnProperty("dtid")) - if (!$util.isString(message.dtid)) - return "dtid: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.time_created != null && message.hasOwnProperty("time_created")) - if (!$util.isInteger(message.time_created) && !(message.time_created && $util.isInteger(message.time_created.low) && $util.isInteger(message.time_created.high))) - return "time_created: integer|Long expected"; - if (message.participants != null && message.hasOwnProperty("participants")) { - if (!Array.isArray(message.participants)) - return "participants: array expected"; - for (var i = 0; i < message.participants.length; ++i) { - var error = $root.query.Target.verify(message.participants[i]); - if (error) - return "participants." + error; - } - } + if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) + if (!$util.isInteger(message.healthy_tablet_count)) + return "healthy_tablet_count: integer expected"; + if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) + if (!$util.isInteger(message.unhealthy_tablet_count)) + return "unhealthy_tablet_count: integer expected"; + if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) + if (!$util.isInteger(message.replication_lag_seconds_min)) + return "replication_lag_seconds_min: integer expected"; + if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) + if (!$util.isInteger(message.replication_lag_seconds_max)) + return "replication_lag_seconds_max: integer expected"; return null; }; /** - * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static * @param {Object.} object Plain object - * @returns {query.TransactionMetadata} TransactionMetadata + * @returns {query.AggregateStats} AggregateStats */ - TransactionMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.query.TransactionMetadata) + AggregateStats.fromObject = function fromObject(object) { + if (object instanceof $root.query.AggregateStats) return object; - var message = new $root.query.TransactionMetadata(); - if (object.dtid != null) - message.dtid = String(object.dtid); - switch (object.state) { - case "UNKNOWN": - case 0: - message.state = 0; - break; - case "PREPARE": - case 1: - message.state = 1; - break; - case "COMMIT": - case 2: - message.state = 2; - break; - case "ROLLBACK": - case 3: - message.state = 3; - break; - } - if (object.time_created != null) - if ($util.Long) - (message.time_created = $util.Long.fromValue(object.time_created)).unsigned = false; - else if (typeof object.time_created === "string") - message.time_created = parseInt(object.time_created, 10); - else if (typeof object.time_created === "number") - message.time_created = object.time_created; - else if (typeof object.time_created === "object") - message.time_created = new $util.LongBits(object.time_created.low >>> 0, object.time_created.high >>> 0).toNumber(); - if (object.participants) { - if (!Array.isArray(object.participants)) - throw TypeError(".query.TransactionMetadata.participants: array expected"); - message.participants = []; - for (var i = 0; i < object.participants.length; ++i) { - if (typeof object.participants[i] !== "object") - throw TypeError(".query.TransactionMetadata.participants: object expected"); - message.participants[i] = $root.query.Target.fromObject(object.participants[i]); - } - } + var message = new $root.query.AggregateStats(); + if (object.healthy_tablet_count != null) + message.healthy_tablet_count = object.healthy_tablet_count | 0; + if (object.unhealthy_tablet_count != null) + message.unhealthy_tablet_count = object.unhealthy_tablet_count | 0; + if (object.replication_lag_seconds_min != null) + message.replication_lag_seconds_min = object.replication_lag_seconds_min >>> 0; + if (object.replication_lag_seconds_max != null) + message.replication_lag_seconds_max = object.replication_lag_seconds_max >>> 0; return message; }; /** - * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. + * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. * @function toObject - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @static - * @param {query.TransactionMetadata} message TransactionMetadata + * @param {query.AggregateStats} message AggregateStats * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransactionMetadata.toObject = function toObject(message, options) { + AggregateStats.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.participants = []; if (options.defaults) { - object.dtid = ""; - object.state = options.enums === String ? "UNKNOWN" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.time_created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.time_created = options.longs === String ? "0" : 0; - } - if (message.dtid != null && message.hasOwnProperty("dtid")) - object.dtid = message.dtid; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.query.TransactionState[message.state] : message.state; - if (message.time_created != null && message.hasOwnProperty("time_created")) - if (typeof message.time_created === "number") - object.time_created = options.longs === String ? String(message.time_created) : message.time_created; - else - object.time_created = options.longs === String ? $util.Long.prototype.toString.call(message.time_created) : options.longs === Number ? new $util.LongBits(message.time_created.low >>> 0, message.time_created.high >>> 0).toNumber() : message.time_created; - if (message.participants && message.participants.length) { - object.participants = []; - for (var j = 0; j < message.participants.length; ++j) - object.participants[j] = $root.query.Target.toObject(message.participants[j], options); + object.healthy_tablet_count = 0; + object.unhealthy_tablet_count = 0; + object.replication_lag_seconds_min = 0; + object.replication_lag_seconds_max = 0; } + if (message.healthy_tablet_count != null && message.hasOwnProperty("healthy_tablet_count")) + object.healthy_tablet_count = message.healthy_tablet_count; + if (message.unhealthy_tablet_count != null && message.hasOwnProperty("unhealthy_tablet_count")) + object.unhealthy_tablet_count = message.unhealthy_tablet_count; + if (message.replication_lag_seconds_min != null && message.hasOwnProperty("replication_lag_seconds_min")) + object.replication_lag_seconds_min = message.replication_lag_seconds_min; + if (message.replication_lag_seconds_max != null && message.hasOwnProperty("replication_lag_seconds_max")) + object.replication_lag_seconds_max = message.replication_lag_seconds_max; return object; }; /** - * Converts this TransactionMetadata to JSON. + * Converts this AggregateStats to JSON. * @function toJSON - * @memberof query.TransactionMetadata + * @memberof query.AggregateStats * @instance * @returns {Object.} JSON object */ - TransactionMetadata.prototype.toJSON = function toJSON() { + AggregateStats.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TransactionMetadata; + return AggregateStats; })(); - return query; -})(); - -$root.vtrpc = (function() { - - /** - * Namespace vtrpc. - * @exports vtrpc - * @namespace - */ - var vtrpc = {}; - - vtrpc.CallerID = (function() { + query.StreamHealthResponse = (function() { /** - * Properties of a CallerID. - * @memberof vtrpc - * @interface ICallerID - * @property {string|null} [principal] CallerID principal - * @property {string|null} [component] CallerID component - * @property {string|null} [subcomponent] CallerID subcomponent - * @property {Array.|null} [groups] CallerID groups + * Properties of a StreamHealthResponse. + * @memberof query + * @interface IStreamHealthResponse + * @property {query.ITarget|null} [target] StreamHealthResponse target + * @property {boolean|null} [serving] StreamHealthResponse serving + * @property {number|Long|null} [tablet_externally_reparented_timestamp] StreamHealthResponse tablet_externally_reparented_timestamp + * @property {query.IRealtimeStats|null} [realtime_stats] StreamHealthResponse realtime_stats + * @property {topodata.ITabletAlias|null} [tablet_alias] StreamHealthResponse tablet_alias */ /** - * Constructs a new CallerID. - * @memberof vtrpc - * @classdesc Represents a CallerID. - * @implements ICallerID + * Constructs a new StreamHealthResponse. + * @memberof query + * @classdesc Represents a StreamHealthResponse. + * @implements IStreamHealthResponse * @constructor - * @param {vtrpc.ICallerID=} [properties] Properties to set + * @param {query.IStreamHealthResponse=} [properties] Properties to set */ - function CallerID(properties) { - this.groups = []; + function StreamHealthResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73925,117 +73777,127 @@ $root.vtrpc = (function() { } /** - * CallerID principal. - * @member {string} principal - * @memberof vtrpc.CallerID + * StreamHealthResponse target. + * @member {query.ITarget|null|undefined} target + * @memberof query.StreamHealthResponse * @instance */ - CallerID.prototype.principal = ""; + StreamHealthResponse.prototype.target = null; /** - * CallerID component. - * @member {string} component - * @memberof vtrpc.CallerID + * StreamHealthResponse serving. + * @member {boolean} serving + * @memberof query.StreamHealthResponse * @instance */ - CallerID.prototype.component = ""; + StreamHealthResponse.prototype.serving = false; /** - * CallerID subcomponent. - * @member {string} subcomponent - * @memberof vtrpc.CallerID + * StreamHealthResponse tablet_externally_reparented_timestamp. + * @member {number|Long} tablet_externally_reparented_timestamp + * @memberof query.StreamHealthResponse * @instance */ - CallerID.prototype.subcomponent = ""; + StreamHealthResponse.prototype.tablet_externally_reparented_timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CallerID groups. - * @member {Array.} groups - * @memberof vtrpc.CallerID + * StreamHealthResponse realtime_stats. + * @member {query.IRealtimeStats|null|undefined} realtime_stats + * @memberof query.StreamHealthResponse * @instance */ - CallerID.prototype.groups = $util.emptyArray; + StreamHealthResponse.prototype.realtime_stats = null; /** - * Creates a new CallerID instance using the specified properties. + * StreamHealthResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof query.StreamHealthResponse + * @instance + */ + StreamHealthResponse.prototype.tablet_alias = null; + + /** + * Creates a new StreamHealthResponse instance using the specified properties. * @function create - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static - * @param {vtrpc.ICallerID=} [properties] Properties to set - * @returns {vtrpc.CallerID} CallerID instance + * @param {query.IStreamHealthResponse=} [properties] Properties to set + * @returns {query.StreamHealthResponse} StreamHealthResponse instance */ - CallerID.create = function create(properties) { - return new CallerID(properties); + StreamHealthResponse.create = function create(properties) { + return new StreamHealthResponse(properties); }; /** - * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encode - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encode = function encode(message, writer) { + StreamHealthResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); - if (message.component != null && Object.hasOwnProperty.call(message, "component")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); - if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.query.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.serving != null && Object.hasOwnProperty.call(message, "serving")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.serving); + if (message.tablet_externally_reparented_timestamp != null && Object.hasOwnProperty.call(message, "tablet_externally_reparented_timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.tablet_externally_reparented_timestamp); + if (message.realtime_stats != null && Object.hasOwnProperty.call(message, "realtime_stats")) + $root.query.RealtimeStats.encode(message.realtime_stats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static - * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {query.IStreamHealthResponse} message StreamHealthResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CallerID.encodeDelimited = function encodeDelimited(message, writer) { + StreamHealthResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CallerID message from the specified reader or buffer. + * Decodes a StreamHealthResponse message from the specified reader or buffer. * @function decode - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.CallerID} CallerID + * @returns {query.StreamHealthResponse} StreamHealthResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decode = function decode(reader, length) { + StreamHealthResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.StreamHealthResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.principal = reader.string(); + message.target = $root.query.Target.decode(reader, reader.uint32()); break; case 2: - message.component = reader.string(); + message.serving = reader.bool(); break; case 3: - message.subcomponent = reader.string(); + message.tablet_externally_reparented_timestamp = reader.int64(); break; case 4: - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); + message.realtime_stats = $root.query.RealtimeStats.decode(reader, reader.uint32()); + break; + case 5: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -74046,194 +73908,191 @@ $root.vtrpc = (function() { }; /** - * Decodes a CallerID message from the specified reader or buffer, length delimited. + * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.CallerID} CallerID + * @returns {query.StreamHealthResponse} StreamHealthResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CallerID.decodeDelimited = function decodeDelimited(reader) { + StreamHealthResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CallerID message. + * Verifies a StreamHealthResponse message. * @function verify - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CallerID.verify = function verify(message) { + StreamHealthResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.component != null && message.hasOwnProperty("component")) - if (!$util.isString(message.component)) - return "component: string expected"; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - if (!$util.isString(message.subcomponent)) - return "subcomponent: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.query.Target.verify(message.target); + if (error) + return "target." + error; + } + if (message.serving != null && message.hasOwnProperty("serving")) + if (typeof message.serving !== "boolean") + return "serving: boolean expected"; + if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) + if (!$util.isInteger(message.tablet_externally_reparented_timestamp) && !(message.tablet_externally_reparented_timestamp && $util.isInteger(message.tablet_externally_reparented_timestamp.low) && $util.isInteger(message.tablet_externally_reparented_timestamp.high))) + return "tablet_externally_reparented_timestamp: integer|Long expected"; + if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) { + var error = $root.query.RealtimeStats.verify(message.realtime_stats); + if (error) + return "realtime_stats." + error; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; } return null; }; /** - * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static * @param {Object.} object Plain object - * @returns {vtrpc.CallerID} CallerID + * @returns {query.StreamHealthResponse} StreamHealthResponse */ - CallerID.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.CallerID) + StreamHealthResponse.fromObject = function fromObject(object) { + if (object instanceof $root.query.StreamHealthResponse) return object; - var message = new $root.vtrpc.CallerID(); - if (object.principal != null) - message.principal = String(object.principal); - if (object.component != null) - message.component = String(object.component); - if (object.subcomponent != null) - message.subcomponent = String(object.subcomponent); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".vtrpc.CallerID.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + var message = new $root.query.StreamHealthResponse(); + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".query.StreamHealthResponse.target: object expected"); + message.target = $root.query.Target.fromObject(object.target); + } + if (object.serving != null) + message.serving = Boolean(object.serving); + if (object.tablet_externally_reparented_timestamp != null) + if ($util.Long) + (message.tablet_externally_reparented_timestamp = $util.Long.fromValue(object.tablet_externally_reparented_timestamp)).unsigned = false; + else if (typeof object.tablet_externally_reparented_timestamp === "string") + message.tablet_externally_reparented_timestamp = parseInt(object.tablet_externally_reparented_timestamp, 10); + else if (typeof object.tablet_externally_reparented_timestamp === "number") + message.tablet_externally_reparented_timestamp = object.tablet_externally_reparented_timestamp; + else if (typeof object.tablet_externally_reparented_timestamp === "object") + message.tablet_externally_reparented_timestamp = new $util.LongBits(object.tablet_externally_reparented_timestamp.low >>> 0, object.tablet_externally_reparented_timestamp.high >>> 0).toNumber(); + if (object.realtime_stats != null) { + if (typeof object.realtime_stats !== "object") + throw TypeError(".query.StreamHealthResponse.realtime_stats: object expected"); + message.realtime_stats = $root.query.RealtimeStats.fromObject(object.realtime_stats); + } + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".query.StreamHealthResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } return message; }; /** - * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @static - * @param {vtrpc.CallerID} message CallerID + * @param {query.StreamHealthResponse} message StreamHealthResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CallerID.toObject = function toObject(message, options) { + StreamHealthResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.groups = []; if (options.defaults) { - object.principal = ""; - object.component = ""; - object.subcomponent = ""; - } - if (message.principal != null && message.hasOwnProperty("principal")) - object.principal = message.principal; - if (message.component != null && message.hasOwnProperty("component")) - object.component = message.component; - if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) - object.subcomponent = message.subcomponent; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + object.target = null; + object.serving = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.tablet_externally_reparented_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tablet_externally_reparented_timestamp = options.longs === String ? "0" : 0; + object.realtime_stats = null; + object.tablet_alias = null; } + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.query.Target.toObject(message.target, options); + if (message.serving != null && message.hasOwnProperty("serving")) + object.serving = message.serving; + if (message.tablet_externally_reparented_timestamp != null && message.hasOwnProperty("tablet_externally_reparented_timestamp")) + if (typeof message.tablet_externally_reparented_timestamp === "number") + object.tablet_externally_reparented_timestamp = options.longs === String ? String(message.tablet_externally_reparented_timestamp) : message.tablet_externally_reparented_timestamp; + else + object.tablet_externally_reparented_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tablet_externally_reparented_timestamp) : options.longs === Number ? new $util.LongBits(message.tablet_externally_reparented_timestamp.low >>> 0, message.tablet_externally_reparented_timestamp.high >>> 0).toNumber() : message.tablet_externally_reparented_timestamp; + if (message.realtime_stats != null && message.hasOwnProperty("realtime_stats")) + object.realtime_stats = $root.query.RealtimeStats.toObject(message.realtime_stats, options); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); return object; }; /** - * Converts this CallerID to JSON. + * Converts this StreamHealthResponse to JSON. * @function toJSON - * @memberof vtrpc.CallerID + * @memberof query.StreamHealthResponse * @instance * @returns {Object.} JSON object */ - CallerID.prototype.toJSON = function toJSON() { + StreamHealthResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CallerID; + return StreamHealthResponse; })(); /** - * Code enum. - * @name vtrpc.Code + * TransactionState enum. + * @name query.TransactionState * @enum {number} - * @property {number} OK=0 OK value - * @property {number} CANCELED=1 CANCELED value - * @property {number} UNKNOWN=2 UNKNOWN value - * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value - * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value - * @property {number} NOT_FOUND=5 NOT_FOUND value - * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value - * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value - * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value - * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value - * @property {number} ABORTED=10 ABORTED value - * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value - * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value - * @property {number} INTERNAL=13 INTERNAL value - * @property {number} UNAVAILABLE=14 UNAVAILABLE value - * @property {number} DATA_LOSS=15 DATA_LOSS value - * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value - * @property {number} CLUSTER_EVENT=17 CLUSTER_EVENT value - * @property {number} READ_ONLY=18 READ_ONLY value + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PREPARE=1 PREPARE value + * @property {number} COMMIT=2 COMMIT value + * @property {number} ROLLBACK=3 ROLLBACK value */ - vtrpc.Code = (function() { + query.TransactionState = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "CANCELED"] = 1; - values[valuesById[2] = "UNKNOWN"] = 2; - values[valuesById[3] = "INVALID_ARGUMENT"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; - values[valuesById[5] = "NOT_FOUND"] = 5; - values[valuesById[6] = "ALREADY_EXISTS"] = 6; - values[valuesById[7] = "PERMISSION_DENIED"] = 7; - values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; - values[valuesById[9] = "FAILED_PRECONDITION"] = 9; - values[valuesById[10] = "ABORTED"] = 10; - values[valuesById[11] = "OUT_OF_RANGE"] = 11; - values[valuesById[12] = "UNIMPLEMENTED"] = 12; - values[valuesById[13] = "INTERNAL"] = 13; - values[valuesById[14] = "UNAVAILABLE"] = 14; - values[valuesById[15] = "DATA_LOSS"] = 15; - values[valuesById[16] = "UNAUTHENTICATED"] = 16; - values[valuesById[17] = "CLUSTER_EVENT"] = 17; - values[valuesById[18] = "READ_ONLY"] = 18; + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PREPARE"] = 1; + values[valuesById[2] = "COMMIT"] = 2; + values[valuesById[3] = "ROLLBACK"] = 3; return values; })(); - vtrpc.RPCError = (function() { + query.TransactionMetadata = (function() { /** - * Properties of a RPCError. - * @memberof vtrpc - * @interface IRPCError - * @property {string|null} [message] RPCError message - * @property {vtrpc.Code|null} [code] RPCError code + * Properties of a TransactionMetadata. + * @memberof query + * @interface ITransactionMetadata + * @property {string|null} [dtid] TransactionMetadata dtid + * @property {query.TransactionState|null} [state] TransactionMetadata state + * @property {number|Long|null} [time_created] TransactionMetadata time_created + * @property {Array.|null} [participants] TransactionMetadata participants */ /** - * Constructs a new RPCError. - * @memberof vtrpc - * @classdesc Represents a RPCError. - * @implements IRPCError + * Constructs a new TransactionMetadata. + * @memberof query + * @classdesc Represents a TransactionMetadata. + * @implements ITransactionMetadata * @constructor - * @param {vtrpc.IRPCError=} [properties] Properties to set + * @param {query.ITransactionMetadata=} [properties] Properties to set */ - function RPCError(properties) { + function TransactionMetadata(properties) { + this.participants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74241,91 +74100,120 @@ $root.vtrpc = (function() { } /** - * RPCError message. - * @member {string} message - * @memberof vtrpc.RPCError + * TransactionMetadata dtid. + * @member {string} dtid + * @memberof query.TransactionMetadata * @instance */ - RPCError.prototype.message = ""; + TransactionMetadata.prototype.dtid = ""; /** - * RPCError code. - * @member {vtrpc.Code} code - * @memberof vtrpc.RPCError + * TransactionMetadata state. + * @member {query.TransactionState} state + * @memberof query.TransactionMetadata * @instance */ - RPCError.prototype.code = 0; + TransactionMetadata.prototype.state = 0; /** - * Creates a new RPCError instance using the specified properties. + * TransactionMetadata time_created. + * @member {number|Long} time_created + * @memberof query.TransactionMetadata + * @instance + */ + TransactionMetadata.prototype.time_created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TransactionMetadata participants. + * @member {Array.} participants + * @memberof query.TransactionMetadata + * @instance + */ + TransactionMetadata.prototype.participants = $util.emptyArray; + + /** + * Creates a new TransactionMetadata instance using the specified properties. * @function create - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static - * @param {vtrpc.IRPCError=} [properties] Properties to set - * @returns {vtrpc.RPCError} RPCError instance + * @param {query.ITransactionMetadata=} [properties] Properties to set + * @returns {query.TransactionMetadata} TransactionMetadata instance */ - RPCError.create = function create(properties) { - return new RPCError(properties); + TransactionMetadata.create = function create(properties) { + return new TransactionMetadata(properties); }; /** - * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encode - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encode = function encode(message, writer) { + TransactionMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); + if (message.dtid != null && Object.hasOwnProperty.call(message, "dtid")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dtid); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.time_created != null && Object.hasOwnProperty.call(message, "time_created")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time_created); + if (message.participants != null && message.participants.length) + for (var i = 0; i < message.participants.length; ++i) + $root.query.Target.encode(message.participants[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. + * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static - * @param {vtrpc.IRPCError} message RPCError message or plain object to encode + * @param {query.ITransactionMetadata} message TransactionMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RPCError.encodeDelimited = function encodeDelimited(message, writer) { + TransactionMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RPCError message from the specified reader or buffer. + * Decodes a TransactionMetadata message from the specified reader or buffer. * @function decode - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtrpc.RPCError} RPCError + * @returns {query.TransactionMetadata} TransactionMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decode = function decode(reader, length) { + TransactionMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.TransactionMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.dtid = reader.string(); + break; case 2: - message.message = reader.string(); + message.state = reader.int32(); break; case 3: - message.code = reader.int32(); - break; - default: - reader.skipType(tag & 7); + message.time_created = reader.int64(); + break; + case 4: + if (!(message.participants && message.participants.length)) + message.participants = []; + message.participants.push($root.query.Target.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); break; } } @@ -74333,249 +74221,203 @@ $root.vtrpc = (function() { }; /** - * Decodes a RPCError message from the specified reader or buffer, length delimited. + * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtrpc.RPCError} RPCError + * @returns {query.TransactionMetadata} TransactionMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RPCError.decodeDelimited = function decodeDelimited(reader) { + TransactionMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RPCError message. + * Verifies a TransactionMetadata message. * @function verify - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RPCError.verify = function verify(message) { + TransactionMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { + if (message.dtid != null && message.hasOwnProperty("dtid")) + if (!$util.isString(message.dtid)) + return "dtid: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { default: - return "code: enum value expected"; + return "state: enum value expected"; case 0: case 1: case 2: case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: break; } + if (message.time_created != null && message.hasOwnProperty("time_created")) + if (!$util.isInteger(message.time_created) && !(message.time_created && $util.isInteger(message.time_created.low) && $util.isInteger(message.time_created.high))) + return "time_created: integer|Long expected"; + if (message.participants != null && message.hasOwnProperty("participants")) { + if (!Array.isArray(message.participants)) + return "participants: array expected"; + for (var i = 0; i < message.participants.length; ++i) { + var error = $root.query.Target.verify(message.participants[i]); + if (error) + return "participants." + error; + } + } return null; }; /** - * Creates a RPCError message from a plain object. Also converts values to their respective internal types. + * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static * @param {Object.} object Plain object - * @returns {vtrpc.RPCError} RPCError + * @returns {query.TransactionMetadata} TransactionMetadata */ - RPCError.fromObject = function fromObject(object) { - if (object instanceof $root.vtrpc.RPCError) + TransactionMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.query.TransactionMetadata) return object; - var message = new $root.vtrpc.RPCError(); - if (object.message != null) - message.message = String(object.message); - switch (object.code) { - case "OK": + var message = new $root.query.TransactionMetadata(); + if (object.dtid != null) + message.dtid = String(object.dtid); + switch (object.state) { + case "UNKNOWN": case 0: - message.code = 0; + message.state = 0; break; - case "CANCELED": + case "PREPARE": case 1: - message.code = 1; + message.state = 1; break; - case "UNKNOWN": + case "COMMIT": case 2: - message.code = 2; + message.state = 2; break; - case "INVALID_ARGUMENT": + case "ROLLBACK": case 3: - message.code = 3; - break; - case "DEADLINE_EXCEEDED": - case 4: - message.code = 4; - break; - case "NOT_FOUND": - case 5: - message.code = 5; - break; - case "ALREADY_EXISTS": - case 6: - message.code = 6; - break; - case "PERMISSION_DENIED": - case 7: - message.code = 7; - break; - case "RESOURCE_EXHAUSTED": - case 8: - message.code = 8; - break; - case "FAILED_PRECONDITION": - case 9: - message.code = 9; - break; - case "ABORTED": - case 10: - message.code = 10; - break; - case "OUT_OF_RANGE": - case 11: - message.code = 11; - break; - case "UNIMPLEMENTED": - case 12: - message.code = 12; - break; - case "INTERNAL": - case 13: - message.code = 13; - break; - case "UNAVAILABLE": - case 14: - message.code = 14; - break; - case "DATA_LOSS": - case 15: - message.code = 15; - break; - case "UNAUTHENTICATED": - case 16: - message.code = 16; - break; - case "CLUSTER_EVENT": - case 17: - message.code = 17; - break; - case "READ_ONLY": - case 18: - message.code = 18; + message.state = 3; break; } + if (object.time_created != null) + if ($util.Long) + (message.time_created = $util.Long.fromValue(object.time_created)).unsigned = false; + else if (typeof object.time_created === "string") + message.time_created = parseInt(object.time_created, 10); + else if (typeof object.time_created === "number") + message.time_created = object.time_created; + else if (typeof object.time_created === "object") + message.time_created = new $util.LongBits(object.time_created.low >>> 0, object.time_created.high >>> 0).toNumber(); + if (object.participants) { + if (!Array.isArray(object.participants)) + throw TypeError(".query.TransactionMetadata.participants: array expected"); + message.participants = []; + for (var i = 0; i < object.participants.length; ++i) { + if (typeof object.participants[i] !== "object") + throw TypeError(".query.TransactionMetadata.participants: object expected"); + message.participants[i] = $root.query.Target.fromObject(object.participants[i]); + } + } return message; }; /** - * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @static - * @param {vtrpc.RPCError} message RPCError + * @param {query.TransactionMetadata} message TransactionMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RPCError.toObject = function toObject(message, options) { + TransactionMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.participants = []; if (options.defaults) { - object.message = ""; - object.code = options.enums === String ? "OK" : 0; + object.dtid = ""; + object.state = options.enums === String ? "UNKNOWN" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.time_created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.time_created = options.longs === String ? "0" : 0; + } + if (message.dtid != null && message.hasOwnProperty("dtid")) + object.dtid = message.dtid; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.query.TransactionState[message.state] : message.state; + if (message.time_created != null && message.hasOwnProperty("time_created")) + if (typeof message.time_created === "number") + object.time_created = options.longs === String ? String(message.time_created) : message.time_created; + else + object.time_created = options.longs === String ? $util.Long.prototype.toString.call(message.time_created) : options.longs === Number ? new $util.LongBits(message.time_created.low >>> 0, message.time_created.high >>> 0).toNumber() : message.time_created; + if (message.participants && message.participants.length) { + object.participants = []; + for (var j = 0; j < message.participants.length; ++j) + object.participants[j] = $root.query.Target.toObject(message.participants[j], options); } - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this RPCError to JSON. + * Converts this TransactionMetadata to JSON. * @function toJSON - * @memberof vtrpc.RPCError + * @memberof query.TransactionMetadata * @instance * @returns {Object.} JSON object */ - RPCError.prototype.toJSON = function toJSON() { + TransactionMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RPCError; + return TransactionMetadata; })(); - return vtrpc; + return query; })(); -$root.replicationdata = (function() { +$root.vtrpc = (function() { /** - * Namespace replicationdata. - * @exports replicationdata + * Namespace vtrpc. + * @exports vtrpc * @namespace */ - var replicationdata = {}; + var vtrpc = {}; - replicationdata.Status = (function() { + vtrpc.CallerID = (function() { /** - * Properties of a Status. - * @memberof replicationdata - * @interface IStatus - * @property {string|null} [position] Status position - * @property {boolean|null} [io_thread_running] Status io_thread_running - * @property {boolean|null} [sql_thread_running] Status sql_thread_running - * @property {number|null} [replication_lag_seconds] Status replication_lag_seconds - * @property {string|null} [source_host] Status source_host - * @property {number|null} [source_port] Status source_port - * @property {number|null} [connect_retry] Status connect_retry - * @property {string|null} [relay_log_position] Status relay_log_position - * @property {string|null} [file_position] Status file_position - * @property {string|null} [relay_log_source_binlog_equivalent_position] Status relay_log_source_binlog_equivalent_position - * @property {number|null} [source_server_id] Status source_server_id - * @property {string|null} [source_uuid] Status source_uuid - * @property {number|null} [io_state] Status io_state - * @property {string|null} [last_io_error] Status last_io_error - * @property {number|null} [sql_state] Status sql_state - * @property {string|null} [last_sql_error] Status last_sql_error - * @property {string|null} [relay_log_file_position] Status relay_log_file_position - * @property {string|null} [source_user] Status source_user - * @property {number|null} [sql_delay] Status sql_delay - * @property {boolean|null} [auto_position] Status auto_position - * @property {boolean|null} [using_gtid] Status using_gtid - * @property {boolean|null} [has_replication_filters] Status has_replication_filters - * @property {boolean|null} [ssl_allowed] Status ssl_allowed - * @property {boolean|null} [replication_lag_unknown] Status replication_lag_unknown + * Properties of a CallerID. + * @memberof vtrpc + * @interface ICallerID + * @property {string|null} [principal] CallerID principal + * @property {string|null} [component] CallerID component + * @property {string|null} [subcomponent] CallerID subcomponent + * @property {Array.|null} [groups] CallerID groups */ /** - * Constructs a new Status. - * @memberof replicationdata - * @classdesc Represents a Status. - * @implements IStatus + * Constructs a new CallerID. + * @memberof vtrpc + * @classdesc Represents a CallerID. + * @implements ICallerID * @constructor - * @param {replicationdata.IStatus=} [properties] Properties to set + * @param {vtrpc.ICallerID=} [properties] Properties to set */ - function Status(properties) { + function CallerID(properties) { + this.groups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74583,374 +74425,404 @@ $root.replicationdata = (function() { } /** - * Status position. - * @member {string} position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.position = ""; - - /** - * Status io_thread_running. - * @member {boolean} io_thread_running - * @memberof replicationdata.Status + * CallerID principal. + * @member {string} principal + * @memberof vtrpc.CallerID * @instance */ - Status.prototype.io_thread_running = false; + CallerID.prototype.principal = ""; /** - * Status sql_thread_running. - * @member {boolean} sql_thread_running - * @memberof replicationdata.Status + * CallerID component. + * @member {string} component + * @memberof vtrpc.CallerID * @instance */ - Status.prototype.sql_thread_running = false; + CallerID.prototype.component = ""; /** - * Status replication_lag_seconds. - * @member {number} replication_lag_seconds - * @memberof replicationdata.Status + * CallerID subcomponent. + * @member {string} subcomponent + * @memberof vtrpc.CallerID * @instance */ - Status.prototype.replication_lag_seconds = 0; + CallerID.prototype.subcomponent = ""; /** - * Status source_host. - * @member {string} source_host - * @memberof replicationdata.Status + * CallerID groups. + * @member {Array.} groups + * @memberof vtrpc.CallerID * @instance */ - Status.prototype.source_host = ""; + CallerID.prototype.groups = $util.emptyArray; /** - * Status source_port. - * @member {number} source_port - * @memberof replicationdata.Status - * @instance + * Creates a new CallerID instance using the specified properties. + * @function create + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID=} [properties] Properties to set + * @returns {vtrpc.CallerID} CallerID instance */ - Status.prototype.source_port = 0; + CallerID.create = function create(properties) { + return new CallerID(properties); + }; /** - * Status connect_retry. - * @member {number} connect_retry - * @memberof replicationdata.Status - * @instance + * Encodes the specified CallerID message. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @function encode + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Status.prototype.connect_retry = 0; + CallerID.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.principal != null && Object.hasOwnProperty.call(message, "principal")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.principal); + if (message.component != null && Object.hasOwnProperty.call(message, "component")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.component); + if (message.subcomponent != null && Object.hasOwnProperty.call(message, "subcomponent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subcomponent); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.groups[i]); + return writer; + }; /** - * Status relay_log_position. - * @member {string} relay_log_position - * @memberof replicationdata.Status - * @instance + * Encodes the specified CallerID message, length delimited. Does not implicitly {@link vtrpc.CallerID.verify|verify} messages. + * @function encodeDelimited + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.ICallerID} message CallerID message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Status.prototype.relay_log_position = ""; + CallerID.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Status file_position. - * @member {string} file_position - * @memberof replicationdata.Status - * @instance + * Decodes a CallerID message from the specified reader or buffer. + * @function decode + * @memberof vtrpc.CallerID + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtrpc.CallerID} CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.prototype.file_position = ""; + CallerID.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.CallerID(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.principal = reader.string(); + break; + case 2: + message.component = reader.string(); + break; + case 3: + message.subcomponent = reader.string(); + break; + case 4: + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Status relay_log_source_binlog_equivalent_position. - * @member {string} relay_log_source_binlog_equivalent_position - * @memberof replicationdata.Status - * @instance + * Decodes a CallerID message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtrpc.CallerID + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtrpc.CallerID} CallerID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.prototype.relay_log_source_binlog_equivalent_position = ""; + CallerID.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Status source_server_id. - * @member {number} source_server_id - * @memberof replicationdata.Status - * @instance + * Verifies a CallerID message. + * @function verify + * @memberof vtrpc.CallerID + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.prototype.source_server_id = 0; + CallerID.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.component != null && message.hasOwnProperty("component")) + if (!$util.isString(message.component)) + return "component: string expected"; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + if (!$util.isString(message.subcomponent)) + return "subcomponent: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } + return null; + }; /** - * Status source_uuid. - * @member {string} source_uuid - * @memberof replicationdata.Status - * @instance + * Creates a CallerID message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtrpc.CallerID + * @static + * @param {Object.} object Plain object + * @returns {vtrpc.CallerID} CallerID */ - Status.prototype.source_uuid = ""; + CallerID.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.CallerID) + return object; + var message = new $root.vtrpc.CallerID(); + if (object.principal != null) + message.principal = String(object.principal); + if (object.component != null) + message.component = String(object.component); + if (object.subcomponent != null) + message.subcomponent = String(object.subcomponent); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".vtrpc.CallerID.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); + } + return message; + }; /** - * Status io_state. - * @member {number} io_state - * @memberof replicationdata.Status - * @instance + * Creates a plain object from a CallerID message. Also converts values to other types if specified. + * @function toObject + * @memberof vtrpc.CallerID + * @static + * @param {vtrpc.CallerID} message CallerID + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Status.prototype.io_state = 0; - - /** - * Status last_io_error. - * @member {string} last_io_error - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.last_io_error = ""; - - /** - * Status sql_state. - * @member {number} sql_state - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.sql_state = 0; - - /** - * Status last_sql_error. - * @member {string} last_sql_error - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.last_sql_error = ""; + CallerID.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.groups = []; + if (options.defaults) { + object.principal = ""; + object.component = ""; + object.subcomponent = ""; + } + if (message.principal != null && message.hasOwnProperty("principal")) + object.principal = message.principal; + if (message.component != null && message.hasOwnProperty("component")) + object.component = message.component; + if (message.subcomponent != null && message.hasOwnProperty("subcomponent")) + object.subcomponent = message.subcomponent; + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; + } + return object; + }; /** - * Status relay_log_file_position. - * @member {string} relay_log_file_position - * @memberof replicationdata.Status + * Converts this CallerID to JSON. + * @function toJSON + * @memberof vtrpc.CallerID * @instance + * @returns {Object.} JSON object */ - Status.prototype.relay_log_file_position = ""; + CallerID.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Status source_user. - * @member {string} source_user - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.source_user = ""; + return CallerID; + })(); - /** - * Status sql_delay. - * @member {number} sql_delay - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.sql_delay = 0; + /** + * Code enum. + * @name vtrpc.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELED=1 CANCELED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} CLUSTER_EVENT=17 CLUSTER_EVENT value + * @property {number} READ_ONLY=18 READ_ONLY value + */ + vtrpc.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[17] = "CLUSTER_EVENT"] = 17; + values[valuesById[18] = "READ_ONLY"] = 18; + return values; + })(); - /** - * Status auto_position. - * @member {boolean} auto_position - * @memberof replicationdata.Status - * @instance - */ - Status.prototype.auto_position = false; + vtrpc.RPCError = (function() { /** - * Status using_gtid. - * @member {boolean} using_gtid - * @memberof replicationdata.Status - * @instance + * Properties of a RPCError. + * @memberof vtrpc + * @interface IRPCError + * @property {string|null} [message] RPCError message + * @property {vtrpc.Code|null} [code] RPCError code */ - Status.prototype.using_gtid = false; /** - * Status has_replication_filters. - * @member {boolean} has_replication_filters - * @memberof replicationdata.Status - * @instance + * Constructs a new RPCError. + * @memberof vtrpc + * @classdesc Represents a RPCError. + * @implements IRPCError + * @constructor + * @param {vtrpc.IRPCError=} [properties] Properties to set */ - Status.prototype.has_replication_filters = false; + function RPCError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Status ssl_allowed. - * @member {boolean} ssl_allowed - * @memberof replicationdata.Status + * RPCError message. + * @member {string} message + * @memberof vtrpc.RPCError * @instance */ - Status.prototype.ssl_allowed = false; + RPCError.prototype.message = ""; /** - * Status replication_lag_unknown. - * @member {boolean} replication_lag_unknown - * @memberof replicationdata.Status + * RPCError code. + * @member {vtrpc.Code} code + * @memberof vtrpc.RPCError * @instance */ - Status.prototype.replication_lag_unknown = false; + RPCError.prototype.code = 0; /** - * Creates a new Status instance using the specified properties. + * Creates a new RPCError instance using the specified properties. * @function create - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static - * @param {replicationdata.IStatus=} [properties] Properties to set - * @returns {replicationdata.Status} Status instance + * @param {vtrpc.IRPCError=} [properties] Properties to set + * @returns {vtrpc.RPCError} RPCError instance */ - Status.create = function create(properties) { - return new Status(properties); + RPCError.create = function create(properties) { + return new RPCError(properties); }; /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified RPCError message. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encode - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encode = function encode(message, writer) { + RPCError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); - if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); - if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); - if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds); - if (message.source_host != null && Object.hasOwnProperty.call(message, "source_host")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_host); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.source_port); - if (message.connect_retry != null && Object.hasOwnProperty.call(message, "connect_retry")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.connect_retry); - if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); - if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); - if (message.relay_log_source_binlog_equivalent_position != null && Object.hasOwnProperty.call(message, "relay_log_source_binlog_equivalent_position")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.relay_log_source_binlog_equivalent_position); - if (message.source_server_id != null && Object.hasOwnProperty.call(message, "source_server_id")) - writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.source_server_id); - if (message.source_uuid != null && Object.hasOwnProperty.call(message, "source_uuid")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_uuid); - if (message.io_state != null && Object.hasOwnProperty.call(message, "io_state")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.io_state); - if (message.last_io_error != null && Object.hasOwnProperty.call(message, "last_io_error")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.last_io_error); - if (message.sql_state != null && Object.hasOwnProperty.call(message, "sql_state")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.sql_state); - if (message.last_sql_error != null && Object.hasOwnProperty.call(message, "last_sql_error")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.last_sql_error); - if (message.relay_log_file_position != null && Object.hasOwnProperty.call(message, "relay_log_file_position")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.relay_log_file_position); - if (message.source_user != null && Object.hasOwnProperty.call(message, "source_user")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.source_user); - if (message.sql_delay != null && Object.hasOwnProperty.call(message, "sql_delay")) - writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.sql_delay); - if (message.auto_position != null && Object.hasOwnProperty.call(message, "auto_position")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.auto_position); - if (message.using_gtid != null && Object.hasOwnProperty.call(message, "using_gtid")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.using_gtid); - if (message.has_replication_filters != null && Object.hasOwnProperty.call(message, "has_replication_filters")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.has_replication_filters); - if (message.ssl_allowed != null && Object.hasOwnProperty.call(message, "ssl_allowed")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.ssl_allowed); - if (message.replication_lag_unknown != null && Object.hasOwnProperty.call(message, "replication_lag_unknown")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.replication_lag_unknown); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.code); return writer; }; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. + * Encodes the specified RPCError message, length delimited. Does not implicitly {@link vtrpc.RPCError.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static - * @param {replicationdata.IStatus} message Status message or plain object to encode + * @param {vtrpc.IRPCError} message RPCError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encodeDelimited = function encodeDelimited(message, writer) { + RPCError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a RPCError message from the specified reader or buffer. * @function decode - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.Status} Status + * @returns {vtrpc.RPCError} RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decode = function decode(reader, length) { + RPCError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtrpc.RPCError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.position = reader.string(); - break; case 2: - message.io_thread_running = reader.bool(); + message.message = reader.string(); break; case 3: - message.sql_thread_running = reader.bool(); - break; - case 4: - message.replication_lag_seconds = reader.uint32(); - break; - case 5: - message.source_host = reader.string(); - break; - case 6: - message.source_port = reader.int32(); - break; - case 7: - message.connect_retry = reader.int32(); - break; - case 8: - message.relay_log_position = reader.string(); - break; - case 9: - message.file_position = reader.string(); - break; - case 10: - message.relay_log_source_binlog_equivalent_position = reader.string(); - break; - case 11: - message.source_server_id = reader.uint32(); - break; - case 12: - message.source_uuid = reader.string(); - break; - case 13: - message.io_state = reader.int32(); - break; - case 14: - message.last_io_error = reader.string(); - break; - case 15: - message.sql_state = reader.int32(); - break; - case 16: - message.last_sql_error = reader.string(); - break; - case 17: - message.relay_log_file_position = reader.string(); - break; - case 18: - message.source_user = reader.string(); - break; - case 19: - message.sql_delay = reader.uint32(); - break; - case 20: - message.auto_position = reader.bool(); - break; - case 21: - message.using_gtid = reader.bool(); - break; - case 22: - message.has_replication_filters = reader.bool(); - break; - case 23: - message.ssl_allowed = reader.bool(); - break; - case 24: - message.replication_lag_unknown = reader.bool(); + message.code = reader.int32(); break; default: reader.skipType(tag & 7); @@ -74961,293 +74833,249 @@ $root.replicationdata = (function() { }; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a RPCError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.Status} Status + * @returns {vtrpc.RPCError} RPCError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decodeDelimited = function decodeDelimited(reader) { + RPCError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Status message. + * Verifies a RPCError message. * @function verify - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.verify = function verify(message) { + RPCError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - if (typeof message.io_thread_running !== "boolean") - return "io_thread_running: boolean expected"; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - if (typeof message.sql_thread_running !== "boolean") - return "sql_thread_running: boolean expected"; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - if (!$util.isInteger(message.replication_lag_seconds)) - return "replication_lag_seconds: integer expected"; - if (message.source_host != null && message.hasOwnProperty("source_host")) - if (!$util.isString(message.source_host)) - return "source_host: string expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isInteger(message.source_port)) - return "source_port: integer expected"; - if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) - if (!$util.isInteger(message.connect_retry)) - return "connect_retry: integer expected"; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - if (!$util.isString(message.relay_log_position)) - return "relay_log_position: string expected"; - if (message.file_position != null && message.hasOwnProperty("file_position")) - if (!$util.isString(message.file_position)) - return "file_position: string expected"; - if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) - if (!$util.isString(message.relay_log_source_binlog_equivalent_position)) - return "relay_log_source_binlog_equivalent_position: string expected"; - if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) - if (!$util.isInteger(message.source_server_id)) - return "source_server_id: integer expected"; - if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) - if (!$util.isString(message.source_uuid)) - return "source_uuid: string expected"; - if (message.io_state != null && message.hasOwnProperty("io_state")) - if (!$util.isInteger(message.io_state)) - return "io_state: integer expected"; - if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) - if (!$util.isString(message.last_io_error)) - return "last_io_error: string expected"; - if (message.sql_state != null && message.hasOwnProperty("sql_state")) - if (!$util.isInteger(message.sql_state)) - return "sql_state: integer expected"; - if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) - if (!$util.isString(message.last_sql_error)) - return "last_sql_error: string expected"; - if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) - if (!$util.isString(message.relay_log_file_position)) - return "relay_log_file_position: string expected"; - if (message.source_user != null && message.hasOwnProperty("source_user")) - if (!$util.isString(message.source_user)) - return "source_user: string expected"; - if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) - if (!$util.isInteger(message.sql_delay)) - return "sql_delay: integer expected"; - if (message.auto_position != null && message.hasOwnProperty("auto_position")) - if (typeof message.auto_position !== "boolean") - return "auto_position: boolean expected"; - if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) - if (typeof message.using_gtid !== "boolean") - return "using_gtid: boolean expected"; - if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) - if (typeof message.has_replication_filters !== "boolean") - return "has_replication_filters: boolean expected"; - if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) - if (typeof message.ssl_allowed !== "boolean") - return "ssl_allowed: boolean expected"; - if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) - if (typeof message.replication_lag_unknown !== "boolean") - return "replication_lag_unknown: boolean expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } return null; }; /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. + * Creates a RPCError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @static * @param {Object.} object Plain object - * @returns {replicationdata.Status} Status + * @returns {vtrpc.RPCError} RPCError */ - Status.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.Status) + RPCError.fromObject = function fromObject(object) { + if (object instanceof $root.vtrpc.RPCError) return object; - var message = new $root.replicationdata.Status(); - if (object.position != null) - message.position = String(object.position); - if (object.io_thread_running != null) - message.io_thread_running = Boolean(object.io_thread_running); - if (object.sql_thread_running != null) - message.sql_thread_running = Boolean(object.sql_thread_running); - if (object.replication_lag_seconds != null) - message.replication_lag_seconds = object.replication_lag_seconds >>> 0; - if (object.source_host != null) - message.source_host = String(object.source_host); - if (object.source_port != null) - message.source_port = object.source_port | 0; - if (object.connect_retry != null) - message.connect_retry = object.connect_retry | 0; - if (object.relay_log_position != null) - message.relay_log_position = String(object.relay_log_position); - if (object.file_position != null) - message.file_position = String(object.file_position); - if (object.relay_log_source_binlog_equivalent_position != null) - message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); - if (object.source_server_id != null) - message.source_server_id = object.source_server_id >>> 0; - if (object.source_uuid != null) - message.source_uuid = String(object.source_uuid); - if (object.io_state != null) - message.io_state = object.io_state | 0; - if (object.last_io_error != null) - message.last_io_error = String(object.last_io_error); - if (object.sql_state != null) - message.sql_state = object.sql_state | 0; - if (object.last_sql_error != null) - message.last_sql_error = String(object.last_sql_error); - if (object.relay_log_file_position != null) - message.relay_log_file_position = String(object.relay_log_file_position); - if (object.source_user != null) - message.source_user = String(object.source_user); - if (object.sql_delay != null) - message.sql_delay = object.sql_delay >>> 0; - if (object.auto_position != null) - message.auto_position = Boolean(object.auto_position); - if (object.using_gtid != null) - message.using_gtid = Boolean(object.using_gtid); - if (object.has_replication_filters != null) - message.has_replication_filters = Boolean(object.has_replication_filters); - if (object.ssl_allowed != null) - message.ssl_allowed = Boolean(object.ssl_allowed); - if (object.replication_lag_unknown != null) - message.replication_lag_unknown = Boolean(object.replication_lag_unknown); - return message; - }; - - /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @function toObject - * @memberof replicationdata.Status - * @static - * @param {replicationdata.Status} message Status - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + var message = new $root.vtrpc.RPCError(); + if (object.message != null) + message.message = String(object.message); + switch (object.code) { + case "OK": + case 0: + message.code = 0; + break; + case "CANCELED": + case 1: + message.code = 1; + break; + case "UNKNOWN": + case 2: + message.code = 2; + break; + case "INVALID_ARGUMENT": + case 3: + message.code = 3; + break; + case "DEADLINE_EXCEEDED": + case 4: + message.code = 4; + break; + case "NOT_FOUND": + case 5: + message.code = 5; + break; + case "ALREADY_EXISTS": + case 6: + message.code = 6; + break; + case "PERMISSION_DENIED": + case 7: + message.code = 7; + break; + case "RESOURCE_EXHAUSTED": + case 8: + message.code = 8; + break; + case "FAILED_PRECONDITION": + case 9: + message.code = 9; + break; + case "ABORTED": + case 10: + message.code = 10; + break; + case "OUT_OF_RANGE": + case 11: + message.code = 11; + break; + case "UNIMPLEMENTED": + case 12: + message.code = 12; + break; + case "INTERNAL": + case 13: + message.code = 13; + break; + case "UNAVAILABLE": + case 14: + message.code = 14; + break; + case "DATA_LOSS": + case 15: + message.code = 15; + break; + case "UNAUTHENTICATED": + case 16: + message.code = 16; + break; + case "CLUSTER_EVENT": + case 17: + message.code = 17; + break; + case "READ_ONLY": + case 18: + message.code = 18; + break; + } + return message; + }; + + /** + * Creates a plain object from a RPCError message. Also converts values to other types if specified. + * @function toObject + * @memberof vtrpc.RPCError + * @static + * @param {vtrpc.RPCError} message RPCError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options) { + RPCError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.position = ""; - object.io_thread_running = false; - object.sql_thread_running = false; - object.replication_lag_seconds = 0; - object.source_host = ""; - object.source_port = 0; - object.connect_retry = 0; - object.relay_log_position = ""; - object.file_position = ""; - object.relay_log_source_binlog_equivalent_position = ""; - object.source_server_id = 0; - object.source_uuid = ""; - object.io_state = 0; - object.last_io_error = ""; - object.sql_state = 0; - object.last_sql_error = ""; - object.relay_log_file_position = ""; - object.source_user = ""; - object.sql_delay = 0; - object.auto_position = false; - object.using_gtid = false; - object.has_replication_filters = false; - object.ssl_allowed = false; - object.replication_lag_unknown = false; + object.message = ""; + object.code = options.enums === String ? "OK" : 0; } - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) - object.io_thread_running = message.io_thread_running; - if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) - object.sql_thread_running = message.sql_thread_running; - if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) - object.replication_lag_seconds = message.replication_lag_seconds; - if (message.source_host != null && message.hasOwnProperty("source_host")) - object.source_host = message.source_host; - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) - object.connect_retry = message.connect_retry; - if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) - object.relay_log_position = message.relay_log_position; - if (message.file_position != null && message.hasOwnProperty("file_position")) - object.file_position = message.file_position; - if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) - object.relay_log_source_binlog_equivalent_position = message.relay_log_source_binlog_equivalent_position; - if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) - object.source_server_id = message.source_server_id; - if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) - object.source_uuid = message.source_uuid; - if (message.io_state != null && message.hasOwnProperty("io_state")) - object.io_state = message.io_state; - if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) - object.last_io_error = message.last_io_error; - if (message.sql_state != null && message.hasOwnProperty("sql_state")) - object.sql_state = message.sql_state; - if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) - object.last_sql_error = message.last_sql_error; - if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) - object.relay_log_file_position = message.relay_log_file_position; - if (message.source_user != null && message.hasOwnProperty("source_user")) - object.source_user = message.source_user; - if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) - object.sql_delay = message.sql_delay; - if (message.auto_position != null && message.hasOwnProperty("auto_position")) - object.auto_position = message.auto_position; - if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) - object.using_gtid = message.using_gtid; - if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) - object.has_replication_filters = message.has_replication_filters; - if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) - object.ssl_allowed = message.ssl_allowed; - if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) - object.replication_lag_unknown = message.replication_lag_unknown; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.vtrpc.Code[message.code] : message.code; return object; }; /** - * Converts this Status to JSON. + * Converts this RPCError to JSON. * @function toJSON - * @memberof replicationdata.Status + * @memberof vtrpc.RPCError * @instance * @returns {Object.} JSON object */ - Status.prototype.toJSON = function toJSON() { + RPCError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Status; + return RPCError; })(); - replicationdata.StopReplicationStatus = (function() { + return vtrpc; +})(); + +$root.replicationdata = (function() { + + /** + * Namespace replicationdata. + * @exports replicationdata + * @namespace + */ + var replicationdata = {}; + + replicationdata.Status = (function() { /** - * Properties of a StopReplicationStatus. + * Properties of a Status. * @memberof replicationdata - * @interface IStopReplicationStatus - * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before - * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after + * @interface IStatus + * @property {string|null} [position] Status position + * @property {boolean|null} [io_thread_running] Status io_thread_running + * @property {boolean|null} [sql_thread_running] Status sql_thread_running + * @property {number|null} [replication_lag_seconds] Status replication_lag_seconds + * @property {string|null} [source_host] Status source_host + * @property {number|null} [source_port] Status source_port + * @property {number|null} [connect_retry] Status connect_retry + * @property {string|null} [relay_log_position] Status relay_log_position + * @property {string|null} [file_position] Status file_position + * @property {string|null} [relay_log_source_binlog_equivalent_position] Status relay_log_source_binlog_equivalent_position + * @property {number|null} [source_server_id] Status source_server_id + * @property {string|null} [source_uuid] Status source_uuid + * @property {number|null} [io_state] Status io_state + * @property {string|null} [last_io_error] Status last_io_error + * @property {number|null} [sql_state] Status sql_state + * @property {string|null} [last_sql_error] Status last_sql_error + * @property {string|null} [relay_log_file_position] Status relay_log_file_position + * @property {string|null} [source_user] Status source_user + * @property {number|null} [sql_delay] Status sql_delay + * @property {boolean|null} [auto_position] Status auto_position + * @property {boolean|null} [using_gtid] Status using_gtid + * @property {boolean|null} [has_replication_filters] Status has_replication_filters + * @property {boolean|null} [ssl_allowed] Status ssl_allowed + * @property {boolean|null} [replication_lag_unknown] Status replication_lag_unknown */ /** - * Constructs a new StopReplicationStatus. + * Constructs a new Status. * @memberof replicationdata - * @classdesc Represents a StopReplicationStatus. - * @implements IStopReplicationStatus + * @classdesc Represents a Status. + * @implements IStatus * @constructor - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @param {replicationdata.IStatus=} [properties] Properties to set */ - function StopReplicationStatus(properties) { + function Status(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75255,314 +75083,300 @@ $root.replicationdata = (function() { } /** - * StopReplicationStatus before. - * @member {replicationdata.IStatus|null|undefined} before - * @memberof replicationdata.StopReplicationStatus + * Status position. + * @member {string} position + * @memberof replicationdata.Status * @instance */ - StopReplicationStatus.prototype.before = null; + Status.prototype.position = ""; /** - * StopReplicationStatus after. - * @member {replicationdata.IStatus|null|undefined} after - * @memberof replicationdata.StopReplicationStatus + * Status io_thread_running. + * @member {boolean} io_thread_running + * @memberof replicationdata.Status * @instance */ - StopReplicationStatus.prototype.after = null; + Status.prototype.io_thread_running = false; /** - * Creates a new StopReplicationStatus instance using the specified properties. - * @function create - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance + * Status sql_thread_running. + * @member {boolean} sql_thread_running + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.create = function create(properties) { - return new StopReplicationStatus(properties); - }; + Status.prototype.sql_thread_running = false; /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @function encode - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Status replication_lag_seconds. + * @member {number} replication_lag_seconds + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.before != null && Object.hasOwnProperty.call(message, "before")) - $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.after != null && Object.hasOwnProperty.call(message, "after")) - $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Status.prototype.replication_lag_seconds = 0; /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Status source_host. + * @member {string} source_host + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Status.prototype.source_host = ""; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. - * @function decode - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Status source_port. + * @member {number} source_port + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); - break; - case 2: - message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Status.prototype.source_port = 0; /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Status connect_retry. + * @member {number} connect_retry + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Status.prototype.connect_retry = 0; /** - * Verifies a StopReplicationStatus message. - * @function verify - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Status relay_log_position. + * @member {string} relay_log_position + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.before != null && message.hasOwnProperty("before")) { - var error = $root.replicationdata.Status.verify(message.before); - if (error) - return "before." + error; - } - if (message.after != null && message.hasOwnProperty("after")) { - var error = $root.replicationdata.Status.verify(message.after); - if (error) - return "after." + error; - } - return null; - }; + Status.prototype.relay_log_position = ""; /** - * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {Object.} object Plain object - * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * Status file_position. + * @member {string} file_position + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.StopReplicationStatus) - return object; - var message = new $root.replicationdata.StopReplicationStatus(); - if (object.before != null) { - if (typeof object.before !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); - message.before = $root.replicationdata.Status.fromObject(object.before); - } - if (object.after != null) { - if (typeof object.after !== "object") - throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); - message.after = $root.replicationdata.Status.fromObject(object.after); - } - return message; - }; + Status.prototype.file_position = ""; /** - * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof replicationdata.StopReplicationStatus - * @static - * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Status relay_log_source_binlog_equivalent_position. + * @member {string} relay_log_source_binlog_equivalent_position + * @memberof replicationdata.Status + * @instance */ - StopReplicationStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.before = null; - object.after = null; - } - if (message.before != null && message.hasOwnProperty("before")) - object.before = $root.replicationdata.Status.toObject(message.before, options); - if (message.after != null && message.hasOwnProperty("after")) - object.after = $root.replicationdata.Status.toObject(message.after, options); - return object; - }; + Status.prototype.relay_log_source_binlog_equivalent_position = ""; /** - * Converts this StopReplicationStatus to JSON. - * @function toJSON - * @memberof replicationdata.StopReplicationStatus + * Status source_server_id. + * @member {number} source_server_id + * @memberof replicationdata.Status * @instance - * @returns {Object.} JSON object */ - StopReplicationStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StopReplicationStatus; - })(); - - /** - * StopReplicationMode enum. - * @name replicationdata.StopReplicationMode - * @enum {number} - * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value - * @property {number} IOTHREADONLY=1 IOTHREADONLY value - */ - replicationdata.StopReplicationMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IOANDSQLTHREAD"] = 0; - values[valuesById[1] = "IOTHREADONLY"] = 1; - return values; - })(); + Status.prototype.source_server_id = 0; - replicationdata.PrimaryStatus = (function() { + /** + * Status source_uuid. + * @member {string} source_uuid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_uuid = ""; /** - * Properties of a PrimaryStatus. - * @memberof replicationdata - * @interface IPrimaryStatus - * @property {string|null} [position] PrimaryStatus position - * @property {string|null} [file_position] PrimaryStatus file_position + * Status io_state. + * @member {number} io_state + * @memberof replicationdata.Status + * @instance */ + Status.prototype.io_state = 0; /** - * Constructs a new PrimaryStatus. - * @memberof replicationdata - * @classdesc Represents a PrimaryStatus. - * @implements IPrimaryStatus - * @constructor - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * Status last_io_error. + * @member {string} last_io_error + * @memberof replicationdata.Status + * @instance */ - function PrimaryStatus(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Status.prototype.last_io_error = ""; /** - * PrimaryStatus position. - * @member {string} position - * @memberof replicationdata.PrimaryStatus + * Status sql_state. + * @member {number} sql_state + * @memberof replicationdata.Status * @instance */ - PrimaryStatus.prototype.position = ""; + Status.prototype.sql_state = 0; /** - * PrimaryStatus file_position. - * @member {string} file_position - * @memberof replicationdata.PrimaryStatus + * Status last_sql_error. + * @member {string} last_sql_error + * @memberof replicationdata.Status * @instance */ - PrimaryStatus.prototype.file_position = ""; + Status.prototype.last_sql_error = ""; /** - * Creates a new PrimaryStatus instance using the specified properties. - * @function create - * @memberof replicationdata.PrimaryStatus + * Status relay_log_file_position. + * @member {string} relay_log_file_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.relay_log_file_position = ""; + + /** + * Status source_user. + * @member {string} source_user + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.source_user = ""; + + /** + * Status sql_delay. + * @member {number} sql_delay + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.sql_delay = 0; + + /** + * Status auto_position. + * @member {boolean} auto_position + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.auto_position = false; + + /** + * Status using_gtid. + * @member {boolean} using_gtid + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.using_gtid = false; + + /** + * Status has_replication_filters. + * @member {boolean} has_replication_filters + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.has_replication_filters = false; + + /** + * Status ssl_allowed. + * @member {boolean} ssl_allowed + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.ssl_allowed = false; + + /** + * Status replication_lag_unknown. + * @member {boolean} replication_lag_unknown + * @memberof replicationdata.Status + * @instance + */ + Status.prototype.replication_lag_unknown = false; + + /** + * Creates a new Status instance using the specified properties. + * @function create + * @memberof replicationdata.Status * @static - * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set - * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance + * @param {replicationdata.IStatus=} [properties] Properties to set + * @returns {replicationdata.Status} Status instance */ - PrimaryStatus.create = function create(properties) { - return new PrimaryStatus(properties); + Status.create = function create(properties) { + return new Status(properties); }; /** - * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encode - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode + * @param {replicationdata.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatus.encode = function encode(message, writer) { + Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.position != null && Object.hasOwnProperty.call(message, "position")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.io_thread_running != null && Object.hasOwnProperty.call(message, "io_thread_running")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.io_thread_running); + if (message.sql_thread_running != null && Object.hasOwnProperty.call(message, "sql_thread_running")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.sql_thread_running); + if (message.replication_lag_seconds != null && Object.hasOwnProperty.call(message, "replication_lag_seconds")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.replication_lag_seconds); + if (message.source_host != null && Object.hasOwnProperty.call(message, "source_host")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.source_host); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.source_port); + if (message.connect_retry != null && Object.hasOwnProperty.call(message, "connect_retry")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.connect_retry); + if (message.relay_log_position != null && Object.hasOwnProperty.call(message, "relay_log_position")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.relay_log_position); if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); + writer.uint32(/* id 9, wireType 2 =*/74).string(message.file_position); + if (message.relay_log_source_binlog_equivalent_position != null && Object.hasOwnProperty.call(message, "relay_log_source_binlog_equivalent_position")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.relay_log_source_binlog_equivalent_position); + if (message.source_server_id != null && Object.hasOwnProperty.call(message, "source_server_id")) + writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.source_server_id); + if (message.source_uuid != null && Object.hasOwnProperty.call(message, "source_uuid")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_uuid); + if (message.io_state != null && Object.hasOwnProperty.call(message, "io_state")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.io_state); + if (message.last_io_error != null && Object.hasOwnProperty.call(message, "last_io_error")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.last_io_error); + if (message.sql_state != null && Object.hasOwnProperty.call(message, "sql_state")) + writer.uint32(/* id 15, wireType 0 =*/120).int32(message.sql_state); + if (message.last_sql_error != null && Object.hasOwnProperty.call(message, "last_sql_error")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.last_sql_error); + if (message.relay_log_file_position != null && Object.hasOwnProperty.call(message, "relay_log_file_position")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.relay_log_file_position); + if (message.source_user != null && Object.hasOwnProperty.call(message, "source_user")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.source_user); + if (message.sql_delay != null && Object.hasOwnProperty.call(message, "sql_delay")) + writer.uint32(/* id 19, wireType 0 =*/152).uint32(message.sql_delay); + if (message.auto_position != null && Object.hasOwnProperty.call(message, "auto_position")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.auto_position); + if (message.using_gtid != null && Object.hasOwnProperty.call(message, "using_gtid")) + writer.uint32(/* id 21, wireType 0 =*/168).bool(message.using_gtid); + if (message.has_replication_filters != null && Object.hasOwnProperty.call(message, "has_replication_filters")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.has_replication_filters); + if (message.ssl_allowed != null && Object.hasOwnProperty.call(message, "ssl_allowed")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.ssl_allowed); + if (message.replication_lag_unknown != null && Object.hasOwnProperty.call(message, "replication_lag_unknown")) + writer.uint32(/* id 24, wireType 0 =*/192).bool(message.replication_lag_unknown); return writer; }; /** - * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. + * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static - * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode + * @param {replicationdata.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { + Status.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @function decode - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {replicationdata.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatus.decode = function decode(reader, length) { + Status.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.Status(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -75570,8 +75384,74 @@ $root.replicationdata = (function() { message.position = reader.string(); break; case 2: + message.io_thread_running = reader.bool(); + break; + case 3: + message.sql_thread_running = reader.bool(); + break; + case 4: + message.replication_lag_seconds = reader.uint32(); + break; + case 5: + message.source_host = reader.string(); + break; + case 6: + message.source_port = reader.int32(); + break; + case 7: + message.connect_retry = reader.int32(); + break; + case 8: + message.relay_log_position = reader.string(); + break; + case 9: message.file_position = reader.string(); break; + case 10: + message.relay_log_source_binlog_equivalent_position = reader.string(); + break; + case 11: + message.source_server_id = reader.uint32(); + break; + case 12: + message.source_uuid = reader.string(); + break; + case 13: + message.io_state = reader.int32(); + break; + case 14: + message.last_io_error = reader.string(); + break; + case 15: + message.sql_state = reader.int32(); + break; + case 16: + message.last_sql_error = reader.string(); + break; + case 17: + message.relay_log_file_position = reader.string(); + break; + case 18: + message.source_user = reader.string(); + break; + case 19: + message.sql_delay = reader.uint32(); + break; + case 20: + message.auto_position = reader.bool(); + break; + case 21: + message.using_gtid = reader.bool(); + break; + case 22: + message.has_replication_filters = reader.bool(); + break; + case 23: + message.ssl_allowed = reader.bool(); + break; + case 24: + message.replication_lag_unknown = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -75581,135 +75461,293 @@ $root.replicationdata = (function() { }; /** - * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. + * Decodes a Status message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {replicationdata.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrimaryStatus.decodeDelimited = function decodeDelimited(reader) { + Status.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrimaryStatus message. + * Verifies a Status message. * @function verify - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrimaryStatus.verify = function verify(message) { + Status.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.position != null && message.hasOwnProperty("position")) if (!$util.isString(message.position)) return "position: string expected"; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + if (typeof message.io_thread_running !== "boolean") + return "io_thread_running: boolean expected"; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + if (typeof message.sql_thread_running !== "boolean") + return "sql_thread_running: boolean expected"; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + if (!$util.isInteger(message.replication_lag_seconds)) + return "replication_lag_seconds: integer expected"; + if (message.source_host != null && message.hasOwnProperty("source_host")) + if (!$util.isString(message.source_host)) + return "source_host: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isInteger(message.source_port)) + return "source_port: integer expected"; + if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) + if (!$util.isInteger(message.connect_retry)) + return "connect_retry: integer expected"; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + if (!$util.isString(message.relay_log_position)) + return "relay_log_position: string expected"; if (message.file_position != null && message.hasOwnProperty("file_position")) if (!$util.isString(message.file_position)) return "file_position: string expected"; - return null; - }; - - /** - * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof replicationdata.PrimaryStatus + if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) + if (!$util.isString(message.relay_log_source_binlog_equivalent_position)) + return "relay_log_source_binlog_equivalent_position: string expected"; + if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) + if (!$util.isInteger(message.source_server_id)) + return "source_server_id: integer expected"; + if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) + if (!$util.isString(message.source_uuid)) + return "source_uuid: string expected"; + if (message.io_state != null && message.hasOwnProperty("io_state")) + if (!$util.isInteger(message.io_state)) + return "io_state: integer expected"; + if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) + if (!$util.isString(message.last_io_error)) + return "last_io_error: string expected"; + if (message.sql_state != null && message.hasOwnProperty("sql_state")) + if (!$util.isInteger(message.sql_state)) + return "sql_state: integer expected"; + if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) + if (!$util.isString(message.last_sql_error)) + return "last_sql_error: string expected"; + if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) + if (!$util.isString(message.relay_log_file_position)) + return "relay_log_file_position: string expected"; + if (message.source_user != null && message.hasOwnProperty("source_user")) + if (!$util.isString(message.source_user)) + return "source_user: string expected"; + if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) + if (!$util.isInteger(message.sql_delay)) + return "sql_delay: integer expected"; + if (message.auto_position != null && message.hasOwnProperty("auto_position")) + if (typeof message.auto_position !== "boolean") + return "auto_position: boolean expected"; + if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) + if (typeof message.using_gtid !== "boolean") + return "using_gtid: boolean expected"; + if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) + if (typeof message.has_replication_filters !== "boolean") + return "has_replication_filters: boolean expected"; + if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) + if (typeof message.ssl_allowed !== "boolean") + return "ssl_allowed: boolean expected"; + if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) + if (typeof message.replication_lag_unknown !== "boolean") + return "replication_lag_unknown: boolean expected"; + return null; + }; + + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.Status * @static * @param {Object.} object Plain object - * @returns {replicationdata.PrimaryStatus} PrimaryStatus + * @returns {replicationdata.Status} Status */ - PrimaryStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.PrimaryStatus) + Status.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.Status) return object; - var message = new $root.replicationdata.PrimaryStatus(); + var message = new $root.replicationdata.Status(); if (object.position != null) message.position = String(object.position); + if (object.io_thread_running != null) + message.io_thread_running = Boolean(object.io_thread_running); + if (object.sql_thread_running != null) + message.sql_thread_running = Boolean(object.sql_thread_running); + if (object.replication_lag_seconds != null) + message.replication_lag_seconds = object.replication_lag_seconds >>> 0; + if (object.source_host != null) + message.source_host = String(object.source_host); + if (object.source_port != null) + message.source_port = object.source_port | 0; + if (object.connect_retry != null) + message.connect_retry = object.connect_retry | 0; + if (object.relay_log_position != null) + message.relay_log_position = String(object.relay_log_position); if (object.file_position != null) message.file_position = String(object.file_position); + if (object.relay_log_source_binlog_equivalent_position != null) + message.relay_log_source_binlog_equivalent_position = String(object.relay_log_source_binlog_equivalent_position); + if (object.source_server_id != null) + message.source_server_id = object.source_server_id >>> 0; + if (object.source_uuid != null) + message.source_uuid = String(object.source_uuid); + if (object.io_state != null) + message.io_state = object.io_state | 0; + if (object.last_io_error != null) + message.last_io_error = String(object.last_io_error); + if (object.sql_state != null) + message.sql_state = object.sql_state | 0; + if (object.last_sql_error != null) + message.last_sql_error = String(object.last_sql_error); + if (object.relay_log_file_position != null) + message.relay_log_file_position = String(object.relay_log_file_position); + if (object.source_user != null) + message.source_user = String(object.source_user); + if (object.sql_delay != null) + message.sql_delay = object.sql_delay >>> 0; + if (object.auto_position != null) + message.auto_position = Boolean(object.auto_position); + if (object.using_gtid != null) + message.using_gtid = Boolean(object.using_gtid); + if (object.has_replication_filters != null) + message.has_replication_filters = Boolean(object.has_replication_filters); + if (object.ssl_allowed != null) + message.ssl_allowed = Boolean(object.ssl_allowed); + if (object.replication_lag_unknown != null) + message.replication_lag_unknown = Boolean(object.replication_lag_unknown); return message; }; /** - * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. + * Creates a plain object from a Status message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @static - * @param {replicationdata.PrimaryStatus} message PrimaryStatus + * @param {replicationdata.Status} message Status * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrimaryStatus.toObject = function toObject(message, options) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.position = ""; + object.io_thread_running = false; + object.sql_thread_running = false; + object.replication_lag_seconds = 0; + object.source_host = ""; + object.source_port = 0; + object.connect_retry = 0; + object.relay_log_position = ""; object.file_position = ""; + object.relay_log_source_binlog_equivalent_position = ""; + object.source_server_id = 0; + object.source_uuid = ""; + object.io_state = 0; + object.last_io_error = ""; + object.sql_state = 0; + object.last_sql_error = ""; + object.relay_log_file_position = ""; + object.source_user = ""; + object.sql_delay = 0; + object.auto_position = false; + object.using_gtid = false; + object.has_replication_filters = false; + object.ssl_allowed = false; + object.replication_lag_unknown = false; } if (message.position != null && message.hasOwnProperty("position")) object.position = message.position; + if (message.io_thread_running != null && message.hasOwnProperty("io_thread_running")) + object.io_thread_running = message.io_thread_running; + if (message.sql_thread_running != null && message.hasOwnProperty("sql_thread_running")) + object.sql_thread_running = message.sql_thread_running; + if (message.replication_lag_seconds != null && message.hasOwnProperty("replication_lag_seconds")) + object.replication_lag_seconds = message.replication_lag_seconds; + if (message.source_host != null && message.hasOwnProperty("source_host")) + object.source_host = message.source_host; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.connect_retry != null && message.hasOwnProperty("connect_retry")) + object.connect_retry = message.connect_retry; + if (message.relay_log_position != null && message.hasOwnProperty("relay_log_position")) + object.relay_log_position = message.relay_log_position; if (message.file_position != null && message.hasOwnProperty("file_position")) object.file_position = message.file_position; + if (message.relay_log_source_binlog_equivalent_position != null && message.hasOwnProperty("relay_log_source_binlog_equivalent_position")) + object.relay_log_source_binlog_equivalent_position = message.relay_log_source_binlog_equivalent_position; + if (message.source_server_id != null && message.hasOwnProperty("source_server_id")) + object.source_server_id = message.source_server_id; + if (message.source_uuid != null && message.hasOwnProperty("source_uuid")) + object.source_uuid = message.source_uuid; + if (message.io_state != null && message.hasOwnProperty("io_state")) + object.io_state = message.io_state; + if (message.last_io_error != null && message.hasOwnProperty("last_io_error")) + object.last_io_error = message.last_io_error; + if (message.sql_state != null && message.hasOwnProperty("sql_state")) + object.sql_state = message.sql_state; + if (message.last_sql_error != null && message.hasOwnProperty("last_sql_error")) + object.last_sql_error = message.last_sql_error; + if (message.relay_log_file_position != null && message.hasOwnProperty("relay_log_file_position")) + object.relay_log_file_position = message.relay_log_file_position; + if (message.source_user != null && message.hasOwnProperty("source_user")) + object.source_user = message.source_user; + if (message.sql_delay != null && message.hasOwnProperty("sql_delay")) + object.sql_delay = message.sql_delay; + if (message.auto_position != null && message.hasOwnProperty("auto_position")) + object.auto_position = message.auto_position; + if (message.using_gtid != null && message.hasOwnProperty("using_gtid")) + object.using_gtid = message.using_gtid; + if (message.has_replication_filters != null && message.hasOwnProperty("has_replication_filters")) + object.has_replication_filters = message.has_replication_filters; + if (message.ssl_allowed != null && message.hasOwnProperty("ssl_allowed")) + object.ssl_allowed = message.ssl_allowed; + if (message.replication_lag_unknown != null && message.hasOwnProperty("replication_lag_unknown")) + object.replication_lag_unknown = message.replication_lag_unknown; return object; }; /** - * Converts this PrimaryStatus to JSON. + * Converts this Status to JSON. * @function toJSON - * @memberof replicationdata.PrimaryStatus + * @memberof replicationdata.Status * @instance * @returns {Object.} JSON object */ - PrimaryStatus.prototype.toJSON = function toJSON() { + Status.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrimaryStatus; + return Status; })(); - replicationdata.FullStatus = (function() { + replicationdata.StopReplicationStatus = (function() { /** - * Properties of a FullStatus. + * Properties of a StopReplicationStatus. * @memberof replicationdata - * @interface IFullStatus - * @property {number|null} [server_id] FullStatus server_id - * @property {string|null} [server_uuid] FullStatus server_uuid - * @property {replicationdata.IStatus|null} [replication_status] FullStatus replication_status - * @property {replicationdata.IPrimaryStatus|null} [primary_status] FullStatus primary_status - * @property {string|null} [gtid_purged] FullStatus gtid_purged - * @property {string|null} [version] FullStatus version - * @property {string|null} [version_comment] FullStatus version_comment - * @property {boolean|null} [read_only] FullStatus read_only - * @property {string|null} [gtid_mode] FullStatus gtid_mode - * @property {string|null} [binlog_format] FullStatus binlog_format - * @property {string|null} [binlog_row_image] FullStatus binlog_row_image - * @property {boolean|null} [log_bin_enabled] FullStatus log_bin_enabled - * @property {boolean|null} [log_replica_updates] FullStatus log_replica_updates - * @property {boolean|null} [semi_sync_primary_enabled] FullStatus semi_sync_primary_enabled - * @property {boolean|null} [semi_sync_replica_enabled] FullStatus semi_sync_replica_enabled - * @property {boolean|null} [semi_sync_primary_status] FullStatus semi_sync_primary_status - * @property {boolean|null} [semi_sync_replica_status] FullStatus semi_sync_replica_status - * @property {number|null} [semi_sync_primary_clients] FullStatus semi_sync_primary_clients - * @property {number|Long|null} [semi_sync_primary_timeout] FullStatus semi_sync_primary_timeout - * @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count + * @interface IStopReplicationStatus + * @property {replicationdata.IStatus|null} [before] StopReplicationStatus before + * @property {replicationdata.IStatus|null} [after] StopReplicationStatus after */ /** - * Constructs a new FullStatus. + * Constructs a new StopReplicationStatus. * @memberof replicationdata - * @classdesc Represents a FullStatus. - * @implements IFullStatus + * @classdesc Represents a StopReplicationStatus. + * @implements IStopReplicationStatus * @constructor - * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set */ - function FullStatus(properties) { + function StopReplicationStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75717,322 +75755,322 @@ $root.replicationdata = (function() { } /** - * FullStatus server_id. - * @member {number} server_id - * @memberof replicationdata.FullStatus + * StopReplicationStatus before. + * @member {replicationdata.IStatus|null|undefined} before + * @memberof replicationdata.StopReplicationStatus * @instance */ - FullStatus.prototype.server_id = 0; + StopReplicationStatus.prototype.before = null; /** - * FullStatus server_uuid. - * @member {string} server_uuid - * @memberof replicationdata.FullStatus + * StopReplicationStatus after. + * @member {replicationdata.IStatus|null|undefined} after + * @memberof replicationdata.StopReplicationStatus * @instance */ - FullStatus.prototype.server_uuid = ""; + StopReplicationStatus.prototype.after = null; /** - * FullStatus replication_status. - * @member {replicationdata.IStatus|null|undefined} replication_status - * @memberof replicationdata.FullStatus - * @instance + * Creates a new StopReplicationStatus instance using the specified properties. + * @function create + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus=} [properties] Properties to set + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus instance */ - FullStatus.prototype.replication_status = null; + StopReplicationStatus.create = function create(properties) { + return new StopReplicationStatus(properties); + }; /** - * FullStatus primary_status. - * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status - * @memberof replicationdata.FullStatus - * @instance + * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @function encode + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FullStatus.prototype.primary_status = null; + StopReplicationStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.before != null && Object.hasOwnProperty.call(message, "before")) + $root.replicationdata.Status.encode(message.before, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.after != null && Object.hasOwnProperty.call(message, "after")) + $root.replicationdata.Status.encode(message.after, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * FullStatus gtid_purged. - * @member {string} gtid_purged - * @memberof replicationdata.FullStatus - * @instance + * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.IStopReplicationStatus} message StopReplicationStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FullStatus.prototype.gtid_purged = ""; + StopReplicationStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FullStatus version. - * @member {string} version - * @memberof replicationdata.FullStatus - * @instance + * Decodes a StopReplicationStatus message from the specified reader or buffer. + * @function decode + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.prototype.version = ""; + StopReplicationStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.StopReplicationStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.before = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + case 2: + message.after = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * FullStatus version_comment. - * @member {string} version_comment - * @memberof replicationdata.FullStatus - * @instance + * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.prototype.version_comment = ""; + StopReplicationStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FullStatus read_only. - * @member {boolean} read_only - * @memberof replicationdata.FullStatus - * @instance + * Verifies a StopReplicationStatus message. + * @function verify + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FullStatus.prototype.read_only = false; + StopReplicationStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.before != null && message.hasOwnProperty("before")) { + var error = $root.replicationdata.Status.verify(message.before); + if (error) + return "before." + error; + } + if (message.after != null && message.hasOwnProperty("after")) { + var error = $root.replicationdata.Status.verify(message.after); + if (error) + return "after." + error; + } + return null; + }; /** - * FullStatus gtid_mode. - * @member {string} gtid_mode - * @memberof replicationdata.FullStatus - * @instance + * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {Object.} object Plain object + * @returns {replicationdata.StopReplicationStatus} StopReplicationStatus */ - FullStatus.prototype.gtid_mode = ""; + StopReplicationStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.StopReplicationStatus) + return object; + var message = new $root.replicationdata.StopReplicationStatus(); + if (object.before != null) { + if (typeof object.before !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.before: object expected"); + message.before = $root.replicationdata.Status.fromObject(object.before); + } + if (object.after != null) { + if (typeof object.after !== "object") + throw TypeError(".replicationdata.StopReplicationStatus.after: object expected"); + message.after = $root.replicationdata.Status.fromObject(object.after); + } + return message; + }; /** - * FullStatus binlog_format. - * @member {string} binlog_format - * @memberof replicationdata.FullStatus - * @instance + * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.StopReplicationStatus + * @static + * @param {replicationdata.StopReplicationStatus} message StopReplicationStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FullStatus.prototype.binlog_format = ""; + StopReplicationStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.before = null; + object.after = null; + } + if (message.before != null && message.hasOwnProperty("before")) + object.before = $root.replicationdata.Status.toObject(message.before, options); + if (message.after != null && message.hasOwnProperty("after")) + object.after = $root.replicationdata.Status.toObject(message.after, options); + return object; + }; /** - * FullStatus binlog_row_image. - * @member {string} binlog_row_image - * @memberof replicationdata.FullStatus + * Converts this StopReplicationStatus to JSON. + * @function toJSON + * @memberof replicationdata.StopReplicationStatus * @instance + * @returns {Object.} JSON object */ - FullStatus.prototype.binlog_row_image = ""; + StopReplicationStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FullStatus log_bin_enabled. - * @member {boolean} log_bin_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_bin_enabled = false; + return StopReplicationStatus; + })(); - /** - * FullStatus log_replica_updates. - * @member {boolean} log_replica_updates - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.log_replica_updates = false; + /** + * StopReplicationMode enum. + * @name replicationdata.StopReplicationMode + * @enum {number} + * @property {number} IOANDSQLTHREAD=0 IOANDSQLTHREAD value + * @property {number} IOTHREADONLY=1 IOTHREADONLY value + */ + replicationdata.StopReplicationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IOANDSQLTHREAD"] = 0; + values[valuesById[1] = "IOTHREADONLY"] = 1; + return values; + })(); - /** - * FullStatus semi_sync_primary_enabled. - * @member {boolean} semi_sync_primary_enabled - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_enabled = false; + replicationdata.PrimaryStatus = (function() { /** - * FullStatus semi_sync_replica_enabled. - * @member {boolean} semi_sync_replica_enabled - * @memberof replicationdata.FullStatus - * @instance + * Properties of a PrimaryStatus. + * @memberof replicationdata + * @interface IPrimaryStatus + * @property {string|null} [position] PrimaryStatus position + * @property {string|null} [file_position] PrimaryStatus file_position */ - FullStatus.prototype.semi_sync_replica_enabled = false; /** - * FullStatus semi_sync_primary_status. - * @member {boolean} semi_sync_primary_status - * @memberof replicationdata.FullStatus - * @instance + * Constructs a new PrimaryStatus. + * @memberof replicationdata + * @classdesc Represents a PrimaryStatus. + * @implements IPrimaryStatus + * @constructor + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set */ - FullStatus.prototype.semi_sync_primary_status = false; + function PrimaryStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FullStatus semi_sync_replica_status. - * @member {boolean} semi_sync_replica_status - * @memberof replicationdata.FullStatus + * PrimaryStatus position. + * @member {string} position + * @memberof replicationdata.PrimaryStatus * @instance */ - FullStatus.prototype.semi_sync_replica_status = false; + PrimaryStatus.prototype.position = ""; /** - * FullStatus semi_sync_primary_clients. - * @member {number} semi_sync_primary_clients - * @memberof replicationdata.FullStatus + * PrimaryStatus file_position. + * @member {string} file_position + * @memberof replicationdata.PrimaryStatus * @instance */ - FullStatus.prototype.semi_sync_primary_clients = 0; + PrimaryStatus.prototype.file_position = ""; /** - * FullStatus semi_sync_primary_timeout. - * @member {number|Long} semi_sync_primary_timeout - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * FullStatus semi_sync_wait_for_replica_count. - * @member {number} semi_sync_wait_for_replica_count - * @memberof replicationdata.FullStatus - * @instance - */ - FullStatus.prototype.semi_sync_wait_for_replica_count = 0; - - /** - * Creates a new FullStatus instance using the specified properties. + * Creates a new PrimaryStatus instance using the specified properties. * @function create - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static - * @param {replicationdata.IFullStatus=} [properties] Properties to set - * @returns {replicationdata.FullStatus} FullStatus instance + * @param {replicationdata.IPrimaryStatus=} [properties] Properties to set + * @returns {replicationdata.PrimaryStatus} PrimaryStatus instance */ - FullStatus.create = function create(properties) { - return new FullStatus(properties); + PrimaryStatus.create = function create(properties) { + return new PrimaryStatus(properties); }; /** - * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encode - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encode = function encode(message, writer) { + PrimaryStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.server_id != null && Object.hasOwnProperty.call(message, "server_id")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.server_id); - if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.server_uuid); - if (message.replication_status != null && Object.hasOwnProperty.call(message, "replication_status")) - $root.replicationdata.Status.encode(message.replication_status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) - $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.gtid_purged != null && Object.hasOwnProperty.call(message, "gtid_purged")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.gtid_purged); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.version); - if (message.version_comment != null && Object.hasOwnProperty.call(message, "version_comment")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.version_comment); - if (message.read_only != null && Object.hasOwnProperty.call(message, "read_only")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.read_only); - if (message.gtid_mode != null && Object.hasOwnProperty.call(message, "gtid_mode")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.gtid_mode); - if (message.binlog_format != null && Object.hasOwnProperty.call(message, "binlog_format")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.binlog_format); - if (message.binlog_row_image != null && Object.hasOwnProperty.call(message, "binlog_row_image")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.binlog_row_image); - if (message.log_bin_enabled != null && Object.hasOwnProperty.call(message, "log_bin_enabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.log_bin_enabled); - if (message.log_replica_updates != null && Object.hasOwnProperty.call(message, "log_replica_updates")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.log_replica_updates); - if (message.semi_sync_primary_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_primary_enabled")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.semi_sync_primary_enabled); - if (message.semi_sync_replica_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_replica_enabled")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.semi_sync_replica_enabled); - if (message.semi_sync_primary_status != null && Object.hasOwnProperty.call(message, "semi_sync_primary_status")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.semi_sync_primary_status); - if (message.semi_sync_replica_status != null && Object.hasOwnProperty.call(message, "semi_sync_replica_status")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.semi_sync_replica_status); - if (message.semi_sync_primary_clients != null && Object.hasOwnProperty.call(message, "semi_sync_primary_clients")) - writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.semi_sync_primary_clients); - if (message.semi_sync_primary_timeout != null && Object.hasOwnProperty.call(message, "semi_sync_primary_timeout")) - writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.semi_sync_primary_timeout); - if (message.semi_sync_wait_for_replica_count != null && Object.hasOwnProperty.call(message, "semi_sync_wait_for_replica_count")) - writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.semi_sync_wait_for_replica_count); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.position); + if (message.file_position != null && Object.hasOwnProperty.call(message, "file_position")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.file_position); return writer; }; /** - * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. + * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. * @function encodeDelimited - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static - * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode + * @param {replicationdata.IPrimaryStatus} message PrimaryStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FullStatus.encodeDelimited = function encodeDelimited(message, writer) { + PrimaryStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FullStatus message from the specified reader or buffer. + * Decodes a PrimaryStatus message from the specified reader or buffer. * @function decode - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {replicationdata.FullStatus} FullStatus + * @returns {replicationdata.PrimaryStatus} PrimaryStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.decode = function decode(reader, length) { + PrimaryStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.PrimaryStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.server_id = reader.uint32(); + message.position = reader.string(); break; case 2: - message.server_uuid = reader.string(); - break; - case 3: - message.replication_status = $root.replicationdata.Status.decode(reader, reader.uint32()); - break; - case 4: - message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); - break; - case 5: - message.gtid_purged = reader.string(); - break; - case 6: - message.version = reader.string(); - break; - case 7: - message.version_comment = reader.string(); - break; - case 8: - message.read_only = reader.bool(); - break; - case 9: - message.gtid_mode = reader.string(); - break; - case 10: - message.binlog_format = reader.string(); - break; - case 11: - message.binlog_row_image = reader.string(); - break; - case 12: - message.log_bin_enabled = reader.bool(); - break; - case 13: - message.log_replica_updates = reader.bool(); - break; - case 14: - message.semi_sync_primary_enabled = reader.bool(); - break; - case 15: - message.semi_sync_replica_enabled = reader.bool(); - break; - case 16: - message.semi_sync_primary_status = reader.bool(); - break; - case 17: - message.semi_sync_replica_status = reader.bool(); - break; - case 18: - message.semi_sync_primary_clients = reader.uint32(); - break; - case 19: - message.semi_sync_primary_timeout = reader.uint64(); - break; - case 20: - message.semi_sync_wait_for_replica_count = reader.uint32(); + message.file_position = reader.string(); break; default: reader.skipType(tag & 7); @@ -76043,297 +76081,135 @@ $root.replicationdata = (function() { }; /** - * Decodes a FullStatus message from the specified reader or buffer, length delimited. + * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {replicationdata.FullStatus} FullStatus + * @returns {replicationdata.PrimaryStatus} PrimaryStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FullStatus.decodeDelimited = function decodeDelimited(reader) { + PrimaryStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FullStatus message. + * Verifies a PrimaryStatus message. * @function verify - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FullStatus.verify = function verify(message) { + PrimaryStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.server_id != null && message.hasOwnProperty("server_id")) - if (!$util.isInteger(message.server_id)) - return "server_id: integer expected"; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - if (!$util.isString(message.server_uuid)) - return "server_uuid: string expected"; - if (message.replication_status != null && message.hasOwnProperty("replication_status")) { - var error = $root.replicationdata.Status.verify(message.replication_status); - if (error) - return "replication_status." + error; - } - if (message.primary_status != null && message.hasOwnProperty("primary_status")) { - var error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); - if (error) - return "primary_status." + error; - } - if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) - if (!$util.isString(message.gtid_purged)) - return "gtid_purged: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.version_comment != null && message.hasOwnProperty("version_comment")) - if (!$util.isString(message.version_comment)) - return "version_comment: string expected"; - if (message.read_only != null && message.hasOwnProperty("read_only")) - if (typeof message.read_only !== "boolean") - return "read_only: boolean expected"; - if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) - if (!$util.isString(message.gtid_mode)) - return "gtid_mode: string expected"; - if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) - if (!$util.isString(message.binlog_format)) - return "binlog_format: string expected"; - if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) - if (!$util.isString(message.binlog_row_image)) - return "binlog_row_image: string expected"; - if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) - if (typeof message.log_bin_enabled !== "boolean") - return "log_bin_enabled: boolean expected"; - if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) - if (typeof message.log_replica_updates !== "boolean") - return "log_replica_updates: boolean expected"; - if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) - if (typeof message.semi_sync_primary_enabled !== "boolean") - return "semi_sync_primary_enabled: boolean expected"; - if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) - if (typeof message.semi_sync_replica_enabled !== "boolean") - return "semi_sync_replica_enabled: boolean expected"; - if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) - if (typeof message.semi_sync_primary_status !== "boolean") - return "semi_sync_primary_status: boolean expected"; - if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) - if (typeof message.semi_sync_replica_status !== "boolean") - return "semi_sync_replica_status: boolean expected"; - if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) - if (!$util.isInteger(message.semi_sync_primary_clients)) - return "semi_sync_primary_clients: integer expected"; - if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) - if (!$util.isInteger(message.semi_sync_primary_timeout) && !(message.semi_sync_primary_timeout && $util.isInteger(message.semi_sync_primary_timeout.low) && $util.isInteger(message.semi_sync_primary_timeout.high))) - return "semi_sync_primary_timeout: integer|Long expected"; - if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) - if (!$util.isInteger(message.semi_sync_wait_for_replica_count)) - return "semi_sync_wait_for_replica_count: integer expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; + if (message.file_position != null && message.hasOwnProperty("file_position")) + if (!$util.isString(message.file_position)) + return "file_position: string expected"; return null; }; /** - * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. + * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static * @param {Object.} object Plain object - * @returns {replicationdata.FullStatus} FullStatus + * @returns {replicationdata.PrimaryStatus} PrimaryStatus */ - FullStatus.fromObject = function fromObject(object) { - if (object instanceof $root.replicationdata.FullStatus) + PrimaryStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.PrimaryStatus) return object; - var message = new $root.replicationdata.FullStatus(); - if (object.server_id != null) - message.server_id = object.server_id >>> 0; - if (object.server_uuid != null) - message.server_uuid = String(object.server_uuid); - if (object.replication_status != null) { - if (typeof object.replication_status !== "object") - throw TypeError(".replicationdata.FullStatus.replication_status: object expected"); - message.replication_status = $root.replicationdata.Status.fromObject(object.replication_status); - } - if (object.primary_status != null) { - if (typeof object.primary_status !== "object") - throw TypeError(".replicationdata.FullStatus.primary_status: object expected"); - message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); - } - if (object.gtid_purged != null) - message.gtid_purged = String(object.gtid_purged); - if (object.version != null) - message.version = String(object.version); - if (object.version_comment != null) - message.version_comment = String(object.version_comment); - if (object.read_only != null) - message.read_only = Boolean(object.read_only); - if (object.gtid_mode != null) - message.gtid_mode = String(object.gtid_mode); - if (object.binlog_format != null) - message.binlog_format = String(object.binlog_format); - if (object.binlog_row_image != null) - message.binlog_row_image = String(object.binlog_row_image); - if (object.log_bin_enabled != null) - message.log_bin_enabled = Boolean(object.log_bin_enabled); - if (object.log_replica_updates != null) - message.log_replica_updates = Boolean(object.log_replica_updates); - if (object.semi_sync_primary_enabled != null) - message.semi_sync_primary_enabled = Boolean(object.semi_sync_primary_enabled); - if (object.semi_sync_replica_enabled != null) - message.semi_sync_replica_enabled = Boolean(object.semi_sync_replica_enabled); - if (object.semi_sync_primary_status != null) - message.semi_sync_primary_status = Boolean(object.semi_sync_primary_status); - if (object.semi_sync_replica_status != null) - message.semi_sync_replica_status = Boolean(object.semi_sync_replica_status); - if (object.semi_sync_primary_clients != null) - message.semi_sync_primary_clients = object.semi_sync_primary_clients >>> 0; - if (object.semi_sync_primary_timeout != null) - if ($util.Long) - (message.semi_sync_primary_timeout = $util.Long.fromValue(object.semi_sync_primary_timeout)).unsigned = true; - else if (typeof object.semi_sync_primary_timeout === "string") - message.semi_sync_primary_timeout = parseInt(object.semi_sync_primary_timeout, 10); - else if (typeof object.semi_sync_primary_timeout === "number") - message.semi_sync_primary_timeout = object.semi_sync_primary_timeout; - else if (typeof object.semi_sync_primary_timeout === "object") - message.semi_sync_primary_timeout = new $util.LongBits(object.semi_sync_primary_timeout.low >>> 0, object.semi_sync_primary_timeout.high >>> 0).toNumber(true); - if (object.semi_sync_wait_for_replica_count != null) - message.semi_sync_wait_for_replica_count = object.semi_sync_wait_for_replica_count >>> 0; + var message = new $root.replicationdata.PrimaryStatus(); + if (object.position != null) + message.position = String(object.position); + if (object.file_position != null) + message.file_position = String(object.file_position); return message; }; /** - * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. * @function toObject - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @static - * @param {replicationdata.FullStatus} message FullStatus + * @param {replicationdata.PrimaryStatus} message PrimaryStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FullStatus.toObject = function toObject(message, options) { + PrimaryStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.server_id = 0; - object.server_uuid = ""; - object.replication_status = null; - object.primary_status = null; - object.gtid_purged = ""; - object.version = ""; - object.version_comment = ""; - object.read_only = false; - object.gtid_mode = ""; - object.binlog_format = ""; - object.binlog_row_image = ""; - object.log_bin_enabled = false; - object.log_replica_updates = false; - object.semi_sync_primary_enabled = false; - object.semi_sync_replica_enabled = false; - object.semi_sync_primary_status = false; - object.semi_sync_replica_status = false; - object.semi_sync_primary_clients = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.semi_sync_primary_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.semi_sync_primary_timeout = options.longs === String ? "0" : 0; - object.semi_sync_wait_for_replica_count = 0; + object.position = ""; + object.file_position = ""; } - if (message.server_id != null && message.hasOwnProperty("server_id")) - object.server_id = message.server_id; - if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) - object.server_uuid = message.server_uuid; - if (message.replication_status != null && message.hasOwnProperty("replication_status")) - object.replication_status = $root.replicationdata.Status.toObject(message.replication_status, options); - if (message.primary_status != null && message.hasOwnProperty("primary_status")) - object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); - if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) - object.gtid_purged = message.gtid_purged; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.version_comment != null && message.hasOwnProperty("version_comment")) - object.version_comment = message.version_comment; - if (message.read_only != null && message.hasOwnProperty("read_only")) - object.read_only = message.read_only; - if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) - object.gtid_mode = message.gtid_mode; - if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) - object.binlog_format = message.binlog_format; - if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) - object.binlog_row_image = message.binlog_row_image; - if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) - object.log_bin_enabled = message.log_bin_enabled; - if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) - object.log_replica_updates = message.log_replica_updates; - if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) - object.semi_sync_primary_enabled = message.semi_sync_primary_enabled; - if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) - object.semi_sync_replica_enabled = message.semi_sync_replica_enabled; - if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) - object.semi_sync_primary_status = message.semi_sync_primary_status; - if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) - object.semi_sync_replica_status = message.semi_sync_replica_status; - if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) - object.semi_sync_primary_clients = message.semi_sync_primary_clients; - if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) - if (typeof message.semi_sync_primary_timeout === "number") - object.semi_sync_primary_timeout = options.longs === String ? String(message.semi_sync_primary_timeout) : message.semi_sync_primary_timeout; - else - object.semi_sync_primary_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.semi_sync_primary_timeout) : options.longs === Number ? new $util.LongBits(message.semi_sync_primary_timeout.low >>> 0, message.semi_sync_primary_timeout.high >>> 0).toNumber(true) : message.semi_sync_primary_timeout; - if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) - object.semi_sync_wait_for_replica_count = message.semi_sync_wait_for_replica_count; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; + if (message.file_position != null && message.hasOwnProperty("file_position")) + object.file_position = message.file_position; return object; }; /** - * Converts this FullStatus to JSON. + * Converts this PrimaryStatus to JSON. * @function toJSON - * @memberof replicationdata.FullStatus + * @memberof replicationdata.PrimaryStatus * @instance * @returns {Object.} JSON object */ - FullStatus.prototype.toJSON = function toJSON() { + PrimaryStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FullStatus; + return PrimaryStatus; })(); - return replicationdata; -})(); - -$root.vschema = (function() { - - /** - * Namespace vschema. - * @exports vschema - * @namespace - */ - var vschema = {}; - - vschema.RoutingRules = (function() { + replicationdata.FullStatus = (function() { /** - * Properties of a RoutingRules. - * @memberof vschema - * @interface IRoutingRules - * @property {Array.|null} [rules] RoutingRules rules + * Properties of a FullStatus. + * @memberof replicationdata + * @interface IFullStatus + * @property {number|null} [server_id] FullStatus server_id + * @property {string|null} [server_uuid] FullStatus server_uuid + * @property {replicationdata.IStatus|null} [replication_status] FullStatus replication_status + * @property {replicationdata.IPrimaryStatus|null} [primary_status] FullStatus primary_status + * @property {string|null} [gtid_purged] FullStatus gtid_purged + * @property {string|null} [version] FullStatus version + * @property {string|null} [version_comment] FullStatus version_comment + * @property {boolean|null} [read_only] FullStatus read_only + * @property {string|null} [gtid_mode] FullStatus gtid_mode + * @property {string|null} [binlog_format] FullStatus binlog_format + * @property {string|null} [binlog_row_image] FullStatus binlog_row_image + * @property {boolean|null} [log_bin_enabled] FullStatus log_bin_enabled + * @property {boolean|null} [log_replica_updates] FullStatus log_replica_updates + * @property {boolean|null} [semi_sync_primary_enabled] FullStatus semi_sync_primary_enabled + * @property {boolean|null} [semi_sync_replica_enabled] FullStatus semi_sync_replica_enabled + * @property {boolean|null} [semi_sync_primary_status] FullStatus semi_sync_primary_status + * @property {boolean|null} [semi_sync_replica_status] FullStatus semi_sync_replica_status + * @property {number|null} [semi_sync_primary_clients] FullStatus semi_sync_primary_clients + * @property {number|Long|null} [semi_sync_primary_timeout] FullStatus semi_sync_primary_timeout + * @property {number|null} [semi_sync_wait_for_replica_count] FullStatus semi_sync_wait_for_replica_count */ /** - * Constructs a new RoutingRules. - * @memberof vschema - * @classdesc Represents a RoutingRules. - * @implements IRoutingRules + * Constructs a new FullStatus. + * @memberof replicationdata + * @classdesc Represents a FullStatus. + * @implements IFullStatus * @constructor - * @param {vschema.IRoutingRules=} [properties] Properties to set + * @param {replicationdata.IFullStatus=} [properties] Properties to set */ - function RoutingRules(properties) { - this.rules = []; + function FullStatus(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76341,300 +76217,322 @@ $root.vschema = (function() { } /** - * RoutingRules rules. - * @member {Array.} rules - * @memberof vschema.RoutingRules + * FullStatus server_id. + * @member {number} server_id + * @memberof replicationdata.FullStatus * @instance */ - RoutingRules.prototype.rules = $util.emptyArray; + FullStatus.prototype.server_id = 0; /** - * Creates a new RoutingRules instance using the specified properties. - * @function create - * @memberof vschema.RoutingRules - * @static - * @param {vschema.IRoutingRules=} [properties] Properties to set - * @returns {vschema.RoutingRules} RoutingRules instance + * FullStatus server_uuid. + * @member {string} server_uuid + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.create = function create(properties) { - return new RoutingRules(properties); - }; + FullStatus.prototype.server_uuid = ""; /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @function encode - * @memberof vschema.RoutingRules - * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus replication_status. + * @member {replicationdata.IStatus|null|undefined} replication_status + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + FullStatus.prototype.replication_status = null; /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @function encodeDelimited - * @memberof vschema.RoutingRules - * @static - * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FullStatus primary_status. + * @member {replicationdata.IPrimaryStatus|null|undefined} primary_status + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FullStatus.prototype.primary_status = null; /** - * Decodes a RoutingRules message from the specified reader or buffer. - * @function decode - * @memberof vschema.RoutingRules - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRules} RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus gtid_purged. + * @member {string} gtid_purged + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + FullStatus.prototype.gtid_purged = ""; /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vschema.RoutingRules - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRules} RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FullStatus version. + * @member {string} version + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FullStatus.prototype.version = ""; /** - * Verifies a RoutingRules message. - * @function verify - * @memberof vschema.RoutingRules - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FullStatus version_comment. + * @member {string} version_comment + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.vschema.RoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - return null; - }; + FullStatus.prototype.version_comment = ""; /** - * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vschema.RoutingRules - * @static - * @param {Object.} object Plain object - * @returns {vschema.RoutingRules} RoutingRules + * FullStatus read_only. + * @member {boolean} read_only + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRules) - return object; - var message = new $root.vschema.RoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.RoutingRules.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.RoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); - } - } - return message; - }; + FullStatus.prototype.read_only = false; /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.RoutingRules - * @static - * @param {vschema.RoutingRules} message RoutingRules - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FullStatus gtid_mode. + * @member {string} gtid_mode + * @memberof replicationdata.FullStatus + * @instance */ - RoutingRules.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); - } - return object; - }; + FullStatus.prototype.gtid_mode = ""; /** - * Converts this RoutingRules to JSON. - * @function toJSON - * @memberof vschema.RoutingRules + * FullStatus binlog_format. + * @member {string} binlog_format + * @memberof replicationdata.FullStatus * @instance - * @returns {Object.} JSON object */ - RoutingRules.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + FullStatus.prototype.binlog_format = ""; - return RoutingRules; - })(); + /** + * FullStatus binlog_row_image. + * @member {string} binlog_row_image + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.binlog_row_image = ""; - vschema.RoutingRule = (function() { + /** + * FullStatus log_bin_enabled. + * @member {boolean} log_bin_enabled + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.log_bin_enabled = false; /** - * Properties of a RoutingRule. - * @memberof vschema - * @interface IRoutingRule - * @property {string|null} [from_table] RoutingRule from_table - * @property {Array.|null} [to_tables] RoutingRule to_tables + * FullStatus log_replica_updates. + * @member {boolean} log_replica_updates + * @memberof replicationdata.FullStatus + * @instance */ + FullStatus.prototype.log_replica_updates = false; /** - * Constructs a new RoutingRule. - * @memberof vschema - * @classdesc Represents a RoutingRule. - * @implements IRoutingRule - * @constructor - * @param {vschema.IRoutingRule=} [properties] Properties to set + * FullStatus semi_sync_primary_enabled. + * @member {boolean} semi_sync_primary_enabled + * @memberof replicationdata.FullStatus + * @instance */ - function RoutingRule(properties) { - this.to_tables = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FullStatus.prototype.semi_sync_primary_enabled = false; /** - * RoutingRule from_table. - * @member {string} from_table - * @memberof vschema.RoutingRule + * FullStatus semi_sync_replica_enabled. + * @member {boolean} semi_sync_replica_enabled + * @memberof replicationdata.FullStatus * @instance */ - RoutingRule.prototype.from_table = ""; + FullStatus.prototype.semi_sync_replica_enabled = false; /** - * RoutingRule to_tables. - * @member {Array.} to_tables - * @memberof vschema.RoutingRule + * FullStatus semi_sync_primary_status. + * @member {boolean} semi_sync_primary_status + * @memberof replicationdata.FullStatus * @instance */ - RoutingRule.prototype.to_tables = $util.emptyArray; + FullStatus.prototype.semi_sync_primary_status = false; /** - * Creates a new RoutingRule instance using the specified properties. + * FullStatus semi_sync_replica_status. + * @member {boolean} semi_sync_replica_status + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_replica_status = false; + + /** + * FullStatus semi_sync_primary_clients. + * @member {number} semi_sync_primary_clients + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_primary_clients = 0; + + /** + * FullStatus semi_sync_primary_timeout. + * @member {number|Long} semi_sync_primary_timeout + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_primary_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * FullStatus semi_sync_wait_for_replica_count. + * @member {number} semi_sync_wait_for_replica_count + * @memberof replicationdata.FullStatus + * @instance + */ + FullStatus.prototype.semi_sync_wait_for_replica_count = 0; + + /** + * Creates a new FullStatus instance using the specified properties. * @function create - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IRoutingRule=} [properties] Properties to set - * @returns {vschema.RoutingRule} RoutingRule instance + * @param {replicationdata.IFullStatus=} [properties] Properties to set + * @returns {replicationdata.FullStatus} FullStatus instance */ - RoutingRule.create = function create(properties) { - return new RoutingRule(properties); + FullStatus.create = function create(properties) { + return new FullStatus(properties); }; /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encode - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encode = function encode(message, writer) { + FullStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); - if (message.to_tables != null && message.to_tables.length) - for (var i = 0; i < message.to_tables.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); - return writer; - }; + if (message.server_id != null && Object.hasOwnProperty.call(message, "server_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.server_id); + if (message.server_uuid != null && Object.hasOwnProperty.call(message, "server_uuid")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.server_uuid); + if (message.replication_status != null && Object.hasOwnProperty.call(message, "replication_status")) + $root.replicationdata.Status.encode(message.replication_status, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.primary_status != null && Object.hasOwnProperty.call(message, "primary_status")) + $root.replicationdata.PrimaryStatus.encode(message.primary_status, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.gtid_purged != null && Object.hasOwnProperty.call(message, "gtid_purged")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.gtid_purged); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.version); + if (message.version_comment != null && Object.hasOwnProperty.call(message, "version_comment")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.version_comment); + if (message.read_only != null && Object.hasOwnProperty.call(message, "read_only")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.read_only); + if (message.gtid_mode != null && Object.hasOwnProperty.call(message, "gtid_mode")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.gtid_mode); + if (message.binlog_format != null && Object.hasOwnProperty.call(message, "binlog_format")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.binlog_format); + if (message.binlog_row_image != null && Object.hasOwnProperty.call(message, "binlog_row_image")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.binlog_row_image); + if (message.log_bin_enabled != null && Object.hasOwnProperty.call(message, "log_bin_enabled")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.log_bin_enabled); + if (message.log_replica_updates != null && Object.hasOwnProperty.call(message, "log_replica_updates")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.log_replica_updates); + if (message.semi_sync_primary_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_primary_enabled")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.semi_sync_primary_enabled); + if (message.semi_sync_replica_enabled != null && Object.hasOwnProperty.call(message, "semi_sync_replica_enabled")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.semi_sync_replica_enabled); + if (message.semi_sync_primary_status != null && Object.hasOwnProperty.call(message, "semi_sync_primary_status")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.semi_sync_primary_status); + if (message.semi_sync_replica_status != null && Object.hasOwnProperty.call(message, "semi_sync_replica_status")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.semi_sync_replica_status); + if (message.semi_sync_primary_clients != null && Object.hasOwnProperty.call(message, "semi_sync_primary_clients")) + writer.uint32(/* id 18, wireType 0 =*/144).uint32(message.semi_sync_primary_clients); + if (message.semi_sync_primary_timeout != null && Object.hasOwnProperty.call(message, "semi_sync_primary_timeout")) + writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.semi_sync_primary_timeout); + if (message.semi_sync_wait_for_replica_count != null && Object.hasOwnProperty.call(message, "semi_sync_wait_for_replica_count")) + writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.semi_sync_wait_for_replica_count); + return writer; + }; /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. + * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static - * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode + * @param {replicationdata.IFullStatus} message FullStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + FullStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RoutingRule message from the specified reader or buffer. + * Decodes a FullStatus message from the specified reader or buffer. * @function decode - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.RoutingRule} RoutingRule + * @returns {replicationdata.FullStatus} FullStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRule.decode = function decode(reader, length) { + FullStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replicationdata.FullStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.from_table = reader.string(); + message.server_id = reader.uint32(); break; case 2: - if (!(message.to_tables && message.to_tables.length)) - message.to_tables = []; - message.to_tables.push(reader.string()); + message.server_uuid = reader.string(); + break; + case 3: + message.replication_status = $root.replicationdata.Status.decode(reader, reader.uint32()); + break; + case 4: + message.primary_status = $root.replicationdata.PrimaryStatus.decode(reader, reader.uint32()); + break; + case 5: + message.gtid_purged = reader.string(); + break; + case 6: + message.version = reader.string(); + break; + case 7: + message.version_comment = reader.string(); + break; + case 8: + message.read_only = reader.bool(); + break; + case 9: + message.gtid_mode = reader.string(); + break; + case 10: + message.binlog_format = reader.string(); + break; + case 11: + message.binlog_row_image = reader.string(); + break; + case 12: + message.log_bin_enabled = reader.bool(); + break; + case 13: + message.log_replica_updates = reader.bool(); + break; + case 14: + message.semi_sync_primary_enabled = reader.bool(); + break; + case 15: + message.semi_sync_replica_enabled = reader.bool(); + break; + case 16: + message.semi_sync_primary_status = reader.bool(); + break; + case 17: + message.semi_sync_replica_status = reader.bool(); + break; + case 18: + message.semi_sync_primary_clients = reader.uint32(); + break; + case 19: + message.semi_sync_primary_timeout = reader.uint64(); + break; + case 20: + message.semi_sync_wait_for_replica_count = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -76645,133 +76543,297 @@ $root.vschema = (function() { }; /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. + * Decodes a FullStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.RoutingRule} RoutingRule + * @returns {replicationdata.FullStatus} FullStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoutingRule.decodeDelimited = function decodeDelimited(reader) { + FullStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RoutingRule message. + * Verifies a FullStatus message. * @function verify - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoutingRule.verify = function verify(message) { + FullStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_table != null && message.hasOwnProperty("from_table")) - if (!$util.isString(message.from_table)) - return "from_table: string expected"; - if (message.to_tables != null && message.hasOwnProperty("to_tables")) { - if (!Array.isArray(message.to_tables)) - return "to_tables: array expected"; - for (var i = 0; i < message.to_tables.length; ++i) - if (!$util.isString(message.to_tables[i])) - return "to_tables: string[] expected"; + if (message.server_id != null && message.hasOwnProperty("server_id")) + if (!$util.isInteger(message.server_id)) + return "server_id: integer expected"; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + if (!$util.isString(message.server_uuid)) + return "server_uuid: string expected"; + if (message.replication_status != null && message.hasOwnProperty("replication_status")) { + var error = $root.replicationdata.Status.verify(message.replication_status); + if (error) + return "replication_status." + error; + } + if (message.primary_status != null && message.hasOwnProperty("primary_status")) { + var error = $root.replicationdata.PrimaryStatus.verify(message.primary_status); + if (error) + return "primary_status." + error; } + if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) + if (!$util.isString(message.gtid_purged)) + return "gtid_purged: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.version_comment != null && message.hasOwnProperty("version_comment")) + if (!$util.isString(message.version_comment)) + return "version_comment: string expected"; + if (message.read_only != null && message.hasOwnProperty("read_only")) + if (typeof message.read_only !== "boolean") + return "read_only: boolean expected"; + if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) + if (!$util.isString(message.gtid_mode)) + return "gtid_mode: string expected"; + if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) + if (!$util.isString(message.binlog_format)) + return "binlog_format: string expected"; + if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) + if (!$util.isString(message.binlog_row_image)) + return "binlog_row_image: string expected"; + if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) + if (typeof message.log_bin_enabled !== "boolean") + return "log_bin_enabled: boolean expected"; + if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) + if (typeof message.log_replica_updates !== "boolean") + return "log_replica_updates: boolean expected"; + if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) + if (typeof message.semi_sync_primary_enabled !== "boolean") + return "semi_sync_primary_enabled: boolean expected"; + if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) + if (typeof message.semi_sync_replica_enabled !== "boolean") + return "semi_sync_replica_enabled: boolean expected"; + if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) + if (typeof message.semi_sync_primary_status !== "boolean") + return "semi_sync_primary_status: boolean expected"; + if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) + if (typeof message.semi_sync_replica_status !== "boolean") + return "semi_sync_replica_status: boolean expected"; + if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) + if (!$util.isInteger(message.semi_sync_primary_clients)) + return "semi_sync_primary_clients: integer expected"; + if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) + if (!$util.isInteger(message.semi_sync_primary_timeout) && !(message.semi_sync_primary_timeout && $util.isInteger(message.semi_sync_primary_timeout.low) && $util.isInteger(message.semi_sync_primary_timeout.high))) + return "semi_sync_primary_timeout: integer|Long expected"; + if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) + if (!$util.isInteger(message.semi_sync_wait_for_replica_count)) + return "semi_sync_wait_for_replica_count: integer expected"; return null; }; /** - * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @static * @param {Object.} object Plain object - * @returns {vschema.RoutingRule} RoutingRule + * @returns {replicationdata.FullStatus} FullStatus */ - RoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.RoutingRule) + FullStatus.fromObject = function fromObject(object) { + if (object instanceof $root.replicationdata.FullStatus) return object; - var message = new $root.vschema.RoutingRule(); - if (object.from_table != null) - message.from_table = String(object.from_table); - if (object.to_tables) { - if (!Array.isArray(object.to_tables)) - throw TypeError(".vschema.RoutingRule.to_tables: array expected"); - message.to_tables = []; - for (var i = 0; i < object.to_tables.length; ++i) - message.to_tables[i] = String(object.to_tables[i]); + var message = new $root.replicationdata.FullStatus(); + if (object.server_id != null) + message.server_id = object.server_id >>> 0; + if (object.server_uuid != null) + message.server_uuid = String(object.server_uuid); + if (object.replication_status != null) { + if (typeof object.replication_status !== "object") + throw TypeError(".replicationdata.FullStatus.replication_status: object expected"); + message.replication_status = $root.replicationdata.Status.fromObject(object.replication_status); } - return message; - }; - - /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.RoutingRule - * @static - * @param {vschema.RoutingRule} message RoutingRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RoutingRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.to_tables = []; - if (options.defaults) - object.from_table = ""; - if (message.from_table != null && message.hasOwnProperty("from_table")) - object.from_table = message.from_table; - if (message.to_tables && message.to_tables.length) { - object.to_tables = []; - for (var j = 0; j < message.to_tables.length; ++j) - object.to_tables[j] = message.to_tables[j]; + if (object.primary_status != null) { + if (typeof object.primary_status !== "object") + throw TypeError(".replicationdata.FullStatus.primary_status: object expected"); + message.primary_status = $root.replicationdata.PrimaryStatus.fromObject(object.primary_status); + } + if (object.gtid_purged != null) + message.gtid_purged = String(object.gtid_purged); + if (object.version != null) + message.version = String(object.version); + if (object.version_comment != null) + message.version_comment = String(object.version_comment); + if (object.read_only != null) + message.read_only = Boolean(object.read_only); + if (object.gtid_mode != null) + message.gtid_mode = String(object.gtid_mode); + if (object.binlog_format != null) + message.binlog_format = String(object.binlog_format); + if (object.binlog_row_image != null) + message.binlog_row_image = String(object.binlog_row_image); + if (object.log_bin_enabled != null) + message.log_bin_enabled = Boolean(object.log_bin_enabled); + if (object.log_replica_updates != null) + message.log_replica_updates = Boolean(object.log_replica_updates); + if (object.semi_sync_primary_enabled != null) + message.semi_sync_primary_enabled = Boolean(object.semi_sync_primary_enabled); + if (object.semi_sync_replica_enabled != null) + message.semi_sync_replica_enabled = Boolean(object.semi_sync_replica_enabled); + if (object.semi_sync_primary_status != null) + message.semi_sync_primary_status = Boolean(object.semi_sync_primary_status); + if (object.semi_sync_replica_status != null) + message.semi_sync_replica_status = Boolean(object.semi_sync_replica_status); + if (object.semi_sync_primary_clients != null) + message.semi_sync_primary_clients = object.semi_sync_primary_clients >>> 0; + if (object.semi_sync_primary_timeout != null) + if ($util.Long) + (message.semi_sync_primary_timeout = $util.Long.fromValue(object.semi_sync_primary_timeout)).unsigned = true; + else if (typeof object.semi_sync_primary_timeout === "string") + message.semi_sync_primary_timeout = parseInt(object.semi_sync_primary_timeout, 10); + else if (typeof object.semi_sync_primary_timeout === "number") + message.semi_sync_primary_timeout = object.semi_sync_primary_timeout; + else if (typeof object.semi_sync_primary_timeout === "object") + message.semi_sync_primary_timeout = new $util.LongBits(object.semi_sync_primary_timeout.low >>> 0, object.semi_sync_primary_timeout.high >>> 0).toNumber(true); + if (object.semi_sync_wait_for_replica_count != null) + message.semi_sync_wait_for_replica_count = object.semi_sync_wait_for_replica_count >>> 0; + return message; + }; + + /** + * Creates a plain object from a FullStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof replicationdata.FullStatus + * @static + * @param {replicationdata.FullStatus} message FullStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FullStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.server_id = 0; + object.server_uuid = ""; + object.replication_status = null; + object.primary_status = null; + object.gtid_purged = ""; + object.version = ""; + object.version_comment = ""; + object.read_only = false; + object.gtid_mode = ""; + object.binlog_format = ""; + object.binlog_row_image = ""; + object.log_bin_enabled = false; + object.log_replica_updates = false; + object.semi_sync_primary_enabled = false; + object.semi_sync_replica_enabled = false; + object.semi_sync_primary_status = false; + object.semi_sync_replica_status = false; + object.semi_sync_primary_clients = 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.semi_sync_primary_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.semi_sync_primary_timeout = options.longs === String ? "0" : 0; + object.semi_sync_wait_for_replica_count = 0; } + if (message.server_id != null && message.hasOwnProperty("server_id")) + object.server_id = message.server_id; + if (message.server_uuid != null && message.hasOwnProperty("server_uuid")) + object.server_uuid = message.server_uuid; + if (message.replication_status != null && message.hasOwnProperty("replication_status")) + object.replication_status = $root.replicationdata.Status.toObject(message.replication_status, options); + if (message.primary_status != null && message.hasOwnProperty("primary_status")) + object.primary_status = $root.replicationdata.PrimaryStatus.toObject(message.primary_status, options); + if (message.gtid_purged != null && message.hasOwnProperty("gtid_purged")) + object.gtid_purged = message.gtid_purged; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.version_comment != null && message.hasOwnProperty("version_comment")) + object.version_comment = message.version_comment; + if (message.read_only != null && message.hasOwnProperty("read_only")) + object.read_only = message.read_only; + if (message.gtid_mode != null && message.hasOwnProperty("gtid_mode")) + object.gtid_mode = message.gtid_mode; + if (message.binlog_format != null && message.hasOwnProperty("binlog_format")) + object.binlog_format = message.binlog_format; + if (message.binlog_row_image != null && message.hasOwnProperty("binlog_row_image")) + object.binlog_row_image = message.binlog_row_image; + if (message.log_bin_enabled != null && message.hasOwnProperty("log_bin_enabled")) + object.log_bin_enabled = message.log_bin_enabled; + if (message.log_replica_updates != null && message.hasOwnProperty("log_replica_updates")) + object.log_replica_updates = message.log_replica_updates; + if (message.semi_sync_primary_enabled != null && message.hasOwnProperty("semi_sync_primary_enabled")) + object.semi_sync_primary_enabled = message.semi_sync_primary_enabled; + if (message.semi_sync_replica_enabled != null && message.hasOwnProperty("semi_sync_replica_enabled")) + object.semi_sync_replica_enabled = message.semi_sync_replica_enabled; + if (message.semi_sync_primary_status != null && message.hasOwnProperty("semi_sync_primary_status")) + object.semi_sync_primary_status = message.semi_sync_primary_status; + if (message.semi_sync_replica_status != null && message.hasOwnProperty("semi_sync_replica_status")) + object.semi_sync_replica_status = message.semi_sync_replica_status; + if (message.semi_sync_primary_clients != null && message.hasOwnProperty("semi_sync_primary_clients")) + object.semi_sync_primary_clients = message.semi_sync_primary_clients; + if (message.semi_sync_primary_timeout != null && message.hasOwnProperty("semi_sync_primary_timeout")) + if (typeof message.semi_sync_primary_timeout === "number") + object.semi_sync_primary_timeout = options.longs === String ? String(message.semi_sync_primary_timeout) : message.semi_sync_primary_timeout; + else + object.semi_sync_primary_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.semi_sync_primary_timeout) : options.longs === Number ? new $util.LongBits(message.semi_sync_primary_timeout.low >>> 0, message.semi_sync_primary_timeout.high >>> 0).toNumber(true) : message.semi_sync_primary_timeout; + if (message.semi_sync_wait_for_replica_count != null && message.hasOwnProperty("semi_sync_wait_for_replica_count")) + object.semi_sync_wait_for_replica_count = message.semi_sync_wait_for_replica_count; return object; }; /** - * Converts this RoutingRule to JSON. + * Converts this FullStatus to JSON. * @function toJSON - * @memberof vschema.RoutingRule + * @memberof replicationdata.FullStatus * @instance * @returns {Object.} JSON object */ - RoutingRule.prototype.toJSON = function toJSON() { + FullStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RoutingRule; + return FullStatus; })(); - vschema.Keyspace = (function() { + return replicationdata; +})(); + +$root.vschema = (function() { + + /** + * Namespace vschema. + * @exports vschema + * @namespace + */ + var vschema = {}; + + vschema.RoutingRules = (function() { /** - * Properties of a Keyspace. + * Properties of a RoutingRules. * @memberof vschema - * @interface IKeyspace - * @property {boolean|null} [sharded] Keyspace sharded - * @property {Object.|null} [vindexes] Keyspace vindexes - * @property {Object.|null} [tables] Keyspace tables - * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing + * @interface IRoutingRules + * @property {Array.|null} [rules] RoutingRules rules */ /** - * Constructs a new Keyspace. + * Constructs a new RoutingRules. * @memberof vschema - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * @classdesc Represents a RoutingRules. + * @implements IRoutingRules * @constructor - * @param {vschema.IKeyspace=} [properties] Properties to set + * @param {vschema.IRoutingRules=} [properties] Properties to set */ - function Keyspace(properties) { - this.vindexes = {}; - this.tables = {}; + function RoutingRules(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76779,158 +76841,78 @@ $root.vschema = (function() { } /** - * Keyspace sharded. - * @member {boolean} sharded - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.sharded = false; - - /** - * Keyspace vindexes. - * @member {Object.} vindexes - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.vindexes = $util.emptyObject; - - /** - * Keyspace tables. - * @member {Object.} tables - * @memberof vschema.Keyspace - * @instance - */ - Keyspace.prototype.tables = $util.emptyObject; - - /** - * Keyspace require_explicit_routing. - * @member {boolean} require_explicit_routing - * @memberof vschema.Keyspace + * RoutingRules rules. + * @member {Array.} rules + * @memberof vschema.RoutingRules * @instance */ - Keyspace.prototype.require_explicit_routing = false; + RoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new Keyspace instance using the specified properties. + * Creates a new RoutingRules instance using the specified properties. * @function create - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vschema.IKeyspace=} [properties] Properties to set - * @returns {vschema.Keyspace} Keyspace instance + * @param {vschema.IRoutingRules=} [properties] Properties to set + * @returns {vschema.RoutingRules} RoutingRules instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + RoutingRules.create = function create(properties) { + return new RoutingRules(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encode - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vschema.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + RoutingRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); - if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) - for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) - for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.vschema.RoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. + * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vschema.IKeyspace} message Keyspace message or plain object to encode + * @param {vschema.IRoutingRules} message RoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a RoutingRules message from the specified reader or buffer. * @function decode - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decode = function decode(reader, length) { + RoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRules(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sharded = reader.bool(); - break; - case 2: - if (message.vindexes === $util.emptyObject) - message.vindexes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Vindex.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.vindexes[key] = value; - break; - case 3: - if (message.tables === $util.emptyObject) - message.tables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Table.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tables[key] = value; - break; - case 4: - message.require_explicit_routing = reader.bool(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.RoutingRule.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -76941,174 +76923,126 @@ $root.vschema = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a RoutingRules message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { + RoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a RoutingRules message. * @function verify - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Keyspace.verify = function verify(message) { + RoutingRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sharded != null && message.hasOwnProperty("sharded")) - if (typeof message.sharded !== "boolean") - return "sharded: boolean expected"; - if (message.vindexes != null && message.hasOwnProperty("vindexes")) { - if (!$util.isObject(message.vindexes)) - return "vindexes: object expected"; - var key = Object.keys(message.vindexes); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); - if (error) - return "vindexes." + error; - } - } - if (message.tables != null && message.hasOwnProperty("tables")) { - if (!$util.isObject(message.tables)) - return "tables: object expected"; - var key = Object.keys(message.tables); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Table.verify(message.tables[key[i]]); + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.vschema.RoutingRule.verify(message.rules[i]); if (error) - return "tables." + error; + return "rules." + error; } } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - if (typeof message.require_explicit_routing !== "boolean") - return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static * @param {Object.} object Plain object - * @returns {vschema.Keyspace} Keyspace + * @returns {vschema.RoutingRules} RoutingRules */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Keyspace) + RoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRules) return object; - var message = new $root.vschema.Keyspace(); - if (object.sharded != null) - message.sharded = Boolean(object.sharded); - if (object.vindexes) { - if (typeof object.vindexes !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes = {}; - for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { - if (typeof object.vindexes[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.vindexes: object expected"); - message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); - } - } - if (object.tables) { - if (typeof object.tables !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables = {}; - for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { - if (typeof object.tables[keys[i]] !== "object") - throw TypeError(".vschema.Keyspace.tables: object expected"); - message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); + var message = new $root.vschema.RoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.RoutingRules.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.RoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.RoutingRule.fromObject(object.rules[i]); } } - if (object.require_explicit_routing != null) - message.require_explicit_routing = Boolean(object.require_explicit_routing); return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @static - * @param {vschema.Keyspace} message Keyspace + * @param {vschema.RoutingRules} message RoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + RoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.vindexes = {}; - object.tables = {}; - } - if (options.defaults) { - object.sharded = false; - object.require_explicit_routing = false; - } - if (message.sharded != null && message.hasOwnProperty("sharded")) - object.sharded = message.sharded; - var keys2; - if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { - object.vindexes = {}; - for (var j = 0; j < keys2.length; ++j) - object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); - } - if (message.tables && (keys2 = Object.keys(message.tables)).length) { - object.tables = {}; - for (var j = 0; j < keys2.length; ++j) - object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); + if (options.arrays || options.defaults) + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.RoutingRule.toObject(message.rules[j], options); } - if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) - object.require_explicit_routing = message.require_explicit_routing; return object; }; /** - * Converts this Keyspace to JSON. + * Converts this RoutingRules to JSON. * @function toJSON - * @memberof vschema.Keyspace + * @memberof vschema.RoutingRules * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + RoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return RoutingRules; })(); - vschema.Vindex = (function() { + vschema.RoutingRule = (function() { /** - * Properties of a Vindex. + * Properties of a RoutingRule. * @memberof vschema - * @interface IVindex - * @property {string|null} [type] Vindex type - * @property {Object.|null} [params] Vindex params - * @property {string|null} [owner] Vindex owner + * @interface IRoutingRule + * @property {string|null} [from_table] RoutingRule from_table + * @property {Array.|null} [to_tables] RoutingRule to_tables */ /** - * Constructs a new Vindex. + * Constructs a new RoutingRule. * @memberof vschema - * @classdesc Represents a Vindex. - * @implements IVindex + * @classdesc Represents a RoutingRule. + * @implements IRoutingRule * @constructor - * @param {vschema.IVindex=} [properties] Properties to set + * @param {vschema.IRoutingRule=} [properties] Properties to set */ - function Vindex(properties) { - this.params = {}; + function RoutingRule(properties) { + this.to_tables = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77116,121 +77050,91 @@ $root.vschema = (function() { } /** - * Vindex type. - * @member {string} type - * @memberof vschema.Vindex - * @instance - */ - Vindex.prototype.type = ""; - - /** - * Vindex params. - * @member {Object.} params - * @memberof vschema.Vindex + * RoutingRule from_table. + * @member {string} from_table + * @memberof vschema.RoutingRule * @instance */ - Vindex.prototype.params = $util.emptyObject; + RoutingRule.prototype.from_table = ""; /** - * Vindex owner. - * @member {string} owner - * @memberof vschema.Vindex + * RoutingRule to_tables. + * @member {Array.} to_tables + * @memberof vschema.RoutingRule * @instance */ - Vindex.prototype.owner = ""; + RoutingRule.prototype.to_tables = $util.emptyArray; /** - * Creates a new Vindex instance using the specified properties. + * Creates a new RoutingRule instance using the specified properties. * @function create - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static - * @param {vschema.IVindex=} [properties] Properties to set - * @returns {vschema.Vindex} Vindex instance + * @param {vschema.IRoutingRule=} [properties] Properties to set + * @returns {vschema.RoutingRule} RoutingRule instance */ - Vindex.create = function create(properties) { - return new Vindex(properties); + RoutingRule.create = function create(properties) { + return new RoutingRule(properties); }; /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encode - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encode = function encode(message, writer) { + RoutingRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); + if (message.from_table != null && Object.hasOwnProperty.call(message, "from_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_table); + if (message.to_tables != null && message.to_tables.length) + for (var i = 0; i < message.to_tables.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_tables[i]); return writer; }; /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. + * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static - * @param {vschema.IVindex} message Vindex message or plain object to encode + * @param {vschema.IRoutingRule} message RoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vindex.encodeDelimited = function encodeDelimited(message, writer) { + RoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Vindex message from the specified reader or buffer. + * Decodes a RoutingRule message from the specified reader or buffer. * @function decode - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Vindex} Vindex + * @returns {vschema.RoutingRule} RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vindex.decode = function decode(reader, length) { + RoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.RoutingRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.string(); + message.from_table = reader.string(); break; case 2: - if (message.params === $util.emptyObject) - message.params = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.params[key] = value; - break; - case 3: - message.owner = reader.string(); + if (!(message.to_tables && message.to_tables.length)) + message.to_tables = []; + message.to_tables.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -77241,146 +77145,133 @@ $root.vschema = (function() { }; /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. + * Decodes a RoutingRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Vindex} Vindex + * @returns {vschema.RoutingRule} RoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vindex.decodeDelimited = function decodeDelimited(reader) { + RoutingRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Vindex message. + * Verifies a RoutingRule message. * @function verify - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vindex.verify = function verify(message) { + RoutingRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.params != null && message.hasOwnProperty("params")) { - if (!$util.isObject(message.params)) - return "params: object expected"; - var key = Object.keys(message.params); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.params[key[i]])) - return "params: string{k:string} expected"; + if (message.from_table != null && message.hasOwnProperty("from_table")) + if (!$util.isString(message.from_table)) + return "from_table: string expected"; + if (message.to_tables != null && message.hasOwnProperty("to_tables")) { + if (!Array.isArray(message.to_tables)) + return "to_tables: array expected"; + for (var i = 0; i < message.to_tables.length; ++i) + if (!$util.isString(message.to_tables[i])) + return "to_tables: string[] expected"; } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; return null; }; /** - * Creates a Vindex message from a plain object. Also converts values to their respective internal types. + * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static * @param {Object.} object Plain object - * @returns {vschema.Vindex} Vindex + * @returns {vschema.RoutingRule} RoutingRule */ - Vindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Vindex) + RoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.RoutingRule) return object; - var message = new $root.vschema.Vindex(); - if (object.type != null) - message.type = String(object.type); - if (object.params) { - if (typeof object.params !== "object") - throw TypeError(".vschema.Vindex.params: object expected"); - message.params = {}; - for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) - message.params[keys[i]] = String(object.params[keys[i]]); + var message = new $root.vschema.RoutingRule(); + if (object.from_table != null) + message.from_table = String(object.from_table); + if (object.to_tables) { + if (!Array.isArray(object.to_tables)) + throw TypeError(".vschema.RoutingRule.to_tables: array expected"); + message.to_tables = []; + for (var i = 0; i < object.to_tables.length; ++i) + message.to_tables[i] = String(object.to_tables[i]); } - if (object.owner != null) - message.owner = String(object.owner); return message; }; /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. + * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @static - * @param {vschema.Vindex} message Vindex + * @param {vschema.RoutingRule} message RoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vindex.toObject = function toObject(message, options) { + RoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.params = {}; - if (options.defaults) { - object.type = ""; - object.owner = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - var keys2; - if (message.params && (keys2 = Object.keys(message.params)).length) { - object.params = {}; - for (var j = 0; j < keys2.length; ++j) - object.params[keys2[j]] = message.params[keys2[j]]; + if (options.arrays || options.defaults) + object.to_tables = []; + if (options.defaults) + object.from_table = ""; + if (message.from_table != null && message.hasOwnProperty("from_table")) + object.from_table = message.from_table; + if (message.to_tables && message.to_tables.length) { + object.to_tables = []; + for (var j = 0; j < message.to_tables.length; ++j) + object.to_tables[j] = message.to_tables[j]; } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; return object; }; /** - * Converts this Vindex to JSON. + * Converts this RoutingRule to JSON. * @function toJSON - * @memberof vschema.Vindex + * @memberof vschema.RoutingRule * @instance * @returns {Object.} JSON object */ - Vindex.prototype.toJSON = function toJSON() { + RoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Vindex; + return RoutingRule; })(); - vschema.Table = (function() { + vschema.Keyspace = (function() { /** - * Properties of a Table. + * Properties of a Keyspace. * @memberof vschema - * @interface ITable - * @property {string|null} [type] Table type - * @property {Array.|null} [column_vindexes] Table column_vindexes - * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment - * @property {Array.|null} [columns] Table columns - * @property {string|null} [pinned] Table pinned - * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative + * @interface IKeyspace + * @property {boolean|null} [sharded] Keyspace sharded + * @property {Object.|null} [vindexes] Keyspace vindexes + * @property {Object.|null} [tables] Keyspace tables + * @property {boolean|null} [require_explicit_routing] Keyspace require_explicit_routing */ /** - * Constructs a new Table. + * Constructs a new Keyspace. * @memberof vschema - * @classdesc Represents a Table. - * @implements ITable + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vschema.ITable=} [properties] Properties to set + * @param {vschema.IKeyspace=} [properties] Properties to set */ - function Table(properties) { - this.column_vindexes = []; - this.columns = []; + function Keyspace(properties) { + this.vindexes = {}; + this.tables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77388,146 +77279,158 @@ $root.vschema = (function() { } /** - * Table type. - * @member {string} type - * @memberof vschema.Table - * @instance - */ - Table.prototype.type = ""; - - /** - * Table column_vindexes. - * @member {Array.} column_vindexes - * @memberof vschema.Table - * @instance - */ - Table.prototype.column_vindexes = $util.emptyArray; - - /** - * Table auto_increment. - * @member {vschema.IAutoIncrement|null|undefined} auto_increment - * @memberof vschema.Table + * Keyspace sharded. + * @member {boolean} sharded + * @memberof vschema.Keyspace * @instance */ - Table.prototype.auto_increment = null; + Keyspace.prototype.sharded = false; /** - * Table columns. - * @member {Array.} columns - * @memberof vschema.Table + * Keyspace vindexes. + * @member {Object.} vindexes + * @memberof vschema.Keyspace * @instance */ - Table.prototype.columns = $util.emptyArray; + Keyspace.prototype.vindexes = $util.emptyObject; /** - * Table pinned. - * @member {string} pinned - * @memberof vschema.Table + * Keyspace tables. + * @member {Object.} tables + * @memberof vschema.Keyspace * @instance */ - Table.prototype.pinned = ""; + Keyspace.prototype.tables = $util.emptyObject; /** - * Table column_list_authoritative. - * @member {boolean} column_list_authoritative - * @memberof vschema.Table + * Keyspace require_explicit_routing. + * @member {boolean} require_explicit_routing + * @memberof vschema.Keyspace * @instance */ - Table.prototype.column_list_authoritative = false; + Keyspace.prototype.require_explicit_routing = false; /** - * Creates a new Table instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static - * @param {vschema.ITable=} [properties] Properties to set - * @returns {vschema.Table} Table instance + * @param {vschema.IKeyspace=} [properties] Properties to set + * @returns {vschema.Keyspace} Keyspace instance */ - Table.create = function create(properties) { - return new Table(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encode - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static - * @param {vschema.ITable} message Table message or plain object to encode + * @param {vschema.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.column_vindexes != null && message.column_vindexes.length) - for (var i = 0; i < message.column_vindexes.length; ++i) - $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) - $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); - if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); + if (message.sharded != null && Object.hasOwnProperty.call(message, "sharded")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.sharded); + if (message.vindexes != null && Object.hasOwnProperty.call(message, "vindexes")) + for (var keys = Object.keys(message.vindexes), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Vindex.encode(message.vindexes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.tables != null && Object.hasOwnProperty.call(message, "tables")) + for (var keys = Object.keys(message.tables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Table.encode(message.tables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.require_explicit_routing != null && Object.hasOwnProperty.call(message, "require_explicit_routing")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.require_explicit_routing); return writer; }; /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static - * @param {vschema.ITable} message Table message or plain object to encode + * @param {vschema.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Table.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Table message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Table} Table + * @returns {vschema.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Keyspace(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.string(); + message.sharded = reader.bool(); break; case 2: - if (!(message.column_vindexes && message.column_vindexes.length)) - message.column_vindexes = []; - message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + if (message.vindexes === $util.emptyObject) + message.vindexes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Vindex.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.vindexes[key] = value; break; case 3: - message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); + if (message.tables === $util.emptyObject) + message.tables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Table.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tables[key] = value; break; case 4: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); - break; - case 5: - message.pinned = reader.string(); - break; - case 6: - message.column_list_authoritative = reader.bool(); + message.require_explicit_routing = reader.bool(); break; default: reader.skipType(tag & 7); @@ -77538,192 +77441,174 @@ $root.vschema = (function() { }; /** - * Decodes a Table message from the specified reader or buffer, length delimited. + * Decodes a Keyspace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Table} Table + * @returns {vschema.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Table.decodeDelimited = function decodeDelimited(reader) { + Keyspace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Table message. + * Verifies a Keyspace message. * @function verify - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Table.verify = function verify(message) { + Keyspace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { - if (!Array.isArray(message.column_vindexes)) - return "column_vindexes: array expected"; - for (var i = 0; i < message.column_vindexes.length; ++i) { - var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); + if (message.sharded != null && message.hasOwnProperty("sharded")) + if (typeof message.sharded !== "boolean") + return "sharded: boolean expected"; + if (message.vindexes != null && message.hasOwnProperty("vindexes")) { + if (!$util.isObject(message.vindexes)) + return "vindexes: object expected"; + var key = Object.keys(message.vindexes); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Vindex.verify(message.vindexes[key[i]]); if (error) - return "column_vindexes." + error; + return "vindexes." + error; } } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { - var error = $root.vschema.AutoIncrement.verify(message.auto_increment); - if (error) - return "auto_increment." + error; - } - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.vschema.Column.verify(message.columns[i]); + if (message.tables != null && message.hasOwnProperty("tables")) { + if (!$util.isObject(message.tables)) + return "tables: object expected"; + var key = Object.keys(message.tables); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Table.verify(message.tables[key[i]]); if (error) - return "columns." + error; + return "tables." + error; } } - if (message.pinned != null && message.hasOwnProperty("pinned")) - if (!$util.isString(message.pinned)) - return "pinned: string expected"; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - if (typeof message.column_list_authoritative !== "boolean") - return "column_list_authoritative: boolean expected"; + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + if (typeof message.require_explicit_routing !== "boolean") + return "require_explicit_routing: boolean expected"; return null; }; /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static * @param {Object.} object Plain object - * @returns {vschema.Table} Table + * @returns {vschema.Keyspace} Keyspace */ - Table.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Table) + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Keyspace) return object; - var message = new $root.vschema.Table(); - if (object.type != null) - message.type = String(object.type); - if (object.column_vindexes) { - if (!Array.isArray(object.column_vindexes)) - throw TypeError(".vschema.Table.column_vindexes: array expected"); - message.column_vindexes = []; - for (var i = 0; i < object.column_vindexes.length; ++i) { - if (typeof object.column_vindexes[i] !== "object") - throw TypeError(".vschema.Table.column_vindexes: object expected"); - message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); + var message = new $root.vschema.Keyspace(); + if (object.sharded != null) + message.sharded = Boolean(object.sharded); + if (object.vindexes) { + if (typeof object.vindexes !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes = {}; + for (var keys = Object.keys(object.vindexes), i = 0; i < keys.length; ++i) { + if (typeof object.vindexes[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.vindexes: object expected"); + message.vindexes[keys[i]] = $root.vschema.Vindex.fromObject(object.vindexes[keys[i]]); } } - if (object.auto_increment != null) { - if (typeof object.auto_increment !== "object") - throw TypeError(".vschema.Table.auto_increment: object expected"); - message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); - } - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.Table.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) { - if (typeof object.columns[i] !== "object") - throw TypeError(".vschema.Table.columns: object expected"); - message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); + if (object.tables) { + if (typeof object.tables !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables = {}; + for (var keys = Object.keys(object.tables), i = 0; i < keys.length; ++i) { + if (typeof object.tables[keys[i]] !== "object") + throw TypeError(".vschema.Keyspace.tables: object expected"); + message.tables[keys[i]] = $root.vschema.Table.fromObject(object.tables[keys[i]]); } } - if (object.pinned != null) - message.pinned = String(object.pinned); - if (object.column_list_authoritative != null) - message.column_list_authoritative = Boolean(object.column_list_authoritative); + if (object.require_explicit_routing != null) + message.require_explicit_routing = Boolean(object.require_explicit_routing); return message; }; /** - * Creates a plain object from a Table message. Also converts values to other types if specified. + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Table + * @memberof vschema.Keyspace * @static - * @param {vschema.Table} message Table + * @param {vschema.Keyspace} message Keyspace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Table.toObject = function toObject(message, options) { + Keyspace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.column_vindexes = []; - object.columns = []; + if (options.objects || options.defaults) { + object.vindexes = {}; + object.tables = {}; } if (options.defaults) { - object.type = ""; - object.auto_increment = null; - object.pinned = ""; - object.column_list_authoritative = false; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.column_vindexes && message.column_vindexes.length) { - object.column_vindexes = []; - for (var j = 0; j < message.column_vindexes.length; ++j) - object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); + object.sharded = false; + object.require_explicit_routing = false; } - if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) - object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + if (message.sharded != null && message.hasOwnProperty("sharded")) + object.sharded = message.sharded; + var keys2; + if (message.vindexes && (keys2 = Object.keys(message.vindexes)).length) { + object.vindexes = {}; + for (var j = 0; j < keys2.length; ++j) + object.vindexes[keys2[j]] = $root.vschema.Vindex.toObject(message.vindexes[keys2[j]], options); } - if (message.pinned != null && message.hasOwnProperty("pinned")) - object.pinned = message.pinned; - if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) - object.column_list_authoritative = message.column_list_authoritative; + if (message.tables && (keys2 = Object.keys(message.tables)).length) { + object.tables = {}; + for (var j = 0; j < keys2.length; ++j) + object.tables[keys2[j]] = $root.vschema.Table.toObject(message.tables[keys2[j]], options); + } + if (message.require_explicit_routing != null && message.hasOwnProperty("require_explicit_routing")) + object.require_explicit_routing = message.require_explicit_routing; return object; }; /** - * Converts this Table to JSON. + * Converts this Keyspace to JSON. * @function toJSON - * @memberof vschema.Table + * @memberof vschema.Keyspace * @instance * @returns {Object.} JSON object */ - Table.prototype.toJSON = function toJSON() { + Keyspace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Table; + return Keyspace; })(); - vschema.ColumnVindex = (function() { + vschema.Vindex = (function() { /** - * Properties of a ColumnVindex. + * Properties of a Vindex. * @memberof vschema - * @interface IColumnVindex - * @property {string|null} [column] ColumnVindex column - * @property {string|null} [name] ColumnVindex name - * @property {Array.|null} [columns] ColumnVindex columns + * @interface IVindex + * @property {string|null} [type] Vindex type + * @property {Object.|null} [params] Vindex params + * @property {string|null} [owner] Vindex owner */ /** - * Constructs a new ColumnVindex. + * Constructs a new Vindex. * @memberof vschema - * @classdesc Represents a ColumnVindex. - * @implements IColumnVindex + * @classdesc Represents a Vindex. + * @implements IVindex * @constructor - * @param {vschema.IColumnVindex=} [properties] Properties to set + * @param {vschema.IVindex=} [properties] Properties to set */ - function ColumnVindex(properties) { - this.columns = []; + function Vindex(properties) { + this.params = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77731,104 +77616,121 @@ $root.vschema = (function() { } /** - * ColumnVindex column. - * @member {string} column - * @memberof vschema.ColumnVindex + * Vindex type. + * @member {string} type + * @memberof vschema.Vindex * @instance */ - ColumnVindex.prototype.column = ""; + Vindex.prototype.type = ""; /** - * ColumnVindex name. - * @member {string} name - * @memberof vschema.ColumnVindex + * Vindex params. + * @member {Object.} params + * @memberof vschema.Vindex * @instance */ - ColumnVindex.prototype.name = ""; + Vindex.prototype.params = $util.emptyObject; /** - * ColumnVindex columns. - * @member {Array.} columns - * @memberof vschema.ColumnVindex + * Vindex owner. + * @member {string} owner + * @memberof vschema.Vindex * @instance */ - ColumnVindex.prototype.columns = $util.emptyArray; + Vindex.prototype.owner = ""; /** - * Creates a new ColumnVindex instance using the specified properties. + * Creates a new Vindex instance using the specified properties. * @function create - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static - * @param {vschema.IColumnVindex=} [properties] Properties to set - * @returns {vschema.ColumnVindex} ColumnVindex instance + * @param {vschema.IVindex=} [properties] Properties to set + * @returns {vschema.Vindex} Vindex instance */ - ColumnVindex.create = function create(properties) { - return new ColumnVindex(properties); + Vindex.create = function create(properties) { + return new Vindex(properties); }; /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encode - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {vschema.IVindex} message Vindex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnVindex.encode = function encode(message, writer) { + Vindex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + for (var keys = Object.keys(message.params), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.params[keys[i]]).ldelim(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.owner); return writer; }; /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. + * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static - * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode + * @param {vschema.IVindex} message Vindex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { + Vindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ColumnVindex message from the specified reader or buffer. + * Decodes a Vindex message from the specified reader or buffer. * @function decode - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {vschema.Vindex} Vindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnVindex.decode = function decode(reader, length) { + Vindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Vindex(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.column = reader.string(); + message.type = reader.string(); break; case 2: - message.name = reader.string(); + if (message.params === $util.emptyObject) + message.params = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.params[key] = value; break; case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push(reader.string()); + message.owner = reader.string(); break; default: reader.skipType(tag & 7); @@ -77839,138 +77741,146 @@ $root.vschema = (function() { }; /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. + * Decodes a Vindex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {vschema.Vindex} Vindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ColumnVindex.decodeDelimited = function decodeDelimited(reader) { + Vindex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ColumnVindex message. + * Verifies a Vindex message. * @function verify - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ColumnVindex.verify = function verify(message) { + Vindex.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) - if (!$util.isString(message.columns[i])) - return "columns: string[] expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + if (!$util.isObject(message.params)) + return "params: object expected"; + var key = Object.keys(message.params); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.params[key[i]])) + return "params: string{k:string} expected"; } + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; return null; }; /** - * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. + * Creates a Vindex message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static * @param {Object.} object Plain object - * @returns {vschema.ColumnVindex} ColumnVindex + * @returns {vschema.Vindex} Vindex */ - ColumnVindex.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ColumnVindex) + Vindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Vindex) return object; - var message = new $root.vschema.ColumnVindex(); - if (object.column != null) - message.column = String(object.column); - if (object.name != null) - message.name = String(object.name); - if (object.columns) { - if (!Array.isArray(object.columns)) - throw TypeError(".vschema.ColumnVindex.columns: array expected"); - message.columns = []; - for (var i = 0; i < object.columns.length; ++i) - message.columns[i] = String(object.columns[i]); + var message = new $root.vschema.Vindex(); + if (object.type != null) + message.type = String(object.type); + if (object.params) { + if (typeof object.params !== "object") + throw TypeError(".vschema.Vindex.params: object expected"); + message.params = {}; + for (var keys = Object.keys(object.params), i = 0; i < keys.length; ++i) + message.params[keys[i]] = String(object.params[keys[i]]); } + if (object.owner != null) + message.owner = String(object.owner); return message; }; /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. + * Creates a plain object from a Vindex message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @static - * @param {vschema.ColumnVindex} message ColumnVindex + * @param {vschema.Vindex} message Vindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ColumnVindex.toObject = function toObject(message, options) { + Vindex.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.columns = []; + if (options.objects || options.defaults) + object.params = {}; if (options.defaults) { - object.column = ""; - object.name = ""; - } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.columns && message.columns.length) { - object.columns = []; - for (var j = 0; j < message.columns.length; ++j) - object.columns[j] = message.columns[j]; + object.type = ""; + object.owner = ""; } - return object; - }; - - /** - * Converts this ColumnVindex to JSON. + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + var keys2; + if (message.params && (keys2 = Object.keys(message.params)).length) { + object.params = {}; + for (var j = 0; j < keys2.length; ++j) + object.params[keys2[j]] = message.params[keys2[j]]; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + return object; + }; + + /** + * Converts this Vindex to JSON. * @function toJSON - * @memberof vschema.ColumnVindex + * @memberof vschema.Vindex * @instance * @returns {Object.} JSON object */ - ColumnVindex.prototype.toJSON = function toJSON() { + Vindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ColumnVindex; + return Vindex; })(); - vschema.AutoIncrement = (function() { + vschema.Table = (function() { /** - * Properties of an AutoIncrement. + * Properties of a Table. * @memberof vschema - * @interface IAutoIncrement - * @property {string|null} [column] AutoIncrement column - * @property {string|null} [sequence] AutoIncrement sequence + * @interface ITable + * @property {string|null} [type] Table type + * @property {Array.|null} [column_vindexes] Table column_vindexes + * @property {vschema.IAutoIncrement|null} [auto_increment] Table auto_increment + * @property {Array.|null} [columns] Table columns + * @property {string|null} [pinned] Table pinned + * @property {boolean|null} [column_list_authoritative] Table column_list_authoritative */ /** - * Constructs a new AutoIncrement. + * Constructs a new Table. * @memberof vschema - * @classdesc Represents an AutoIncrement. - * @implements IAutoIncrement + * @classdesc Represents a Table. + * @implements ITable * @constructor - * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @param {vschema.ITable=} [properties] Properties to set */ - function AutoIncrement(properties) { + function Table(properties) { + this.column_vindexes = []; + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77978,88 +77888,146 @@ $root.vschema = (function() { } /** - * AutoIncrement column. - * @member {string} column - * @memberof vschema.AutoIncrement + * Table type. + * @member {string} type + * @memberof vschema.Table * @instance */ - AutoIncrement.prototype.column = ""; + Table.prototype.type = ""; /** - * AutoIncrement sequence. - * @member {string} sequence - * @memberof vschema.AutoIncrement + * Table column_vindexes. + * @member {Array.} column_vindexes + * @memberof vschema.Table * @instance */ - AutoIncrement.prototype.sequence = ""; + Table.prototype.column_vindexes = $util.emptyArray; /** - * Creates a new AutoIncrement instance using the specified properties. + * Table auto_increment. + * @member {vschema.IAutoIncrement|null|undefined} auto_increment + * @memberof vschema.Table + * @instance + */ + Table.prototype.auto_increment = null; + + /** + * Table columns. + * @member {Array.} columns + * @memberof vschema.Table + * @instance + */ + Table.prototype.columns = $util.emptyArray; + + /** + * Table pinned. + * @member {string} pinned + * @memberof vschema.Table + * @instance + */ + Table.prototype.pinned = ""; + + /** + * Table column_list_authoritative. + * @member {boolean} column_list_authoritative + * @memberof vschema.Table + * @instance + */ + Table.prototype.column_list_authoritative = false; + + /** + * Creates a new Table instance using the specified properties. * @function create - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static - * @param {vschema.IAutoIncrement=} [properties] Properties to set - * @returns {vschema.AutoIncrement} AutoIncrement instance + * @param {vschema.ITable=} [properties] Properties to set + * @returns {vschema.Table} Table instance */ - AutoIncrement.create = function create(properties) { - return new AutoIncrement(properties); + Table.create = function create(properties) { + return new Table(properties); }; /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encode - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static - * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {vschema.ITable} message Table message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoIncrement.encode = function encode(message, writer) { + Table.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.column != null && Object.hasOwnProperty.call(message, "column")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sequence); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.column_vindexes != null && message.column_vindexes.length) + for (var i = 0; i < message.column_vindexes.length; ++i) + $root.vschema.ColumnVindex.encode(message.column_vindexes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.auto_increment != null && Object.hasOwnProperty.call(message, "auto_increment")) + $root.vschema.AutoIncrement.encode(message.auto_increment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.vschema.Column.encode(message.columns[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pinned != null && Object.hasOwnProperty.call(message, "pinned")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pinned); + if (message.column_list_authoritative != null && Object.hasOwnProperty.call(message, "column_list_authoritative")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.column_list_authoritative); return writer; }; /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. + * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static - * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode + * @param {vschema.ITable} message Table message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { + Table.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoIncrement message from the specified reader or buffer. + * Decodes a Table message from the specified reader or buffer. * @function decode - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {vschema.Table} Table * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoIncrement.decode = function decode(reader, length) { + Table.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Table(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.column = reader.string(); + message.type = reader.string(); break; case 2: - message.sequence = reader.string(); + if (!(message.column_vindexes && message.column_vindexes.length)) + message.column_vindexes = []; + message.column_vindexes.push($root.vschema.ColumnVindex.decode(reader, reader.uint32())); + break; + case 3: + message.auto_increment = $root.vschema.AutoIncrement.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.vschema.Column.decode(reader, reader.uint32())); + break; + case 5: + message.pinned = reader.string(); + break; + case 6: + message.column_list_authoritative = reader.bool(); break; default: reader.skipType(tag & 7); @@ -78070,117 +78038,192 @@ $root.vschema = (function() { }; /** - * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. + * Decodes a Table message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {vschema.Table} Table * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoIncrement.decodeDelimited = function decodeDelimited(reader) { + Table.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoIncrement message. + * Verifies a Table message. * @function verify - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoIncrement.verify = function verify(message) { + Table.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.column != null && message.hasOwnProperty("column")) - if (!$util.isString(message.column)) - return "column: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isString(message.sequence)) - return "sequence: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.column_vindexes != null && message.hasOwnProperty("column_vindexes")) { + if (!Array.isArray(message.column_vindexes)) + return "column_vindexes: array expected"; + for (var i = 0; i < message.column_vindexes.length; ++i) { + var error = $root.vschema.ColumnVindex.verify(message.column_vindexes[i]); + if (error) + return "column_vindexes." + error; + } + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) { + var error = $root.vschema.AutoIncrement.verify(message.auto_increment); + if (error) + return "auto_increment." + error; + } + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.vschema.Column.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + if (!$util.isString(message.pinned)) + return "pinned: string expected"; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + if (typeof message.column_list_authoritative !== "boolean") + return "column_list_authoritative: boolean expected"; return null; }; /** - * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. + * Creates a Table message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @static * @param {Object.} object Plain object - * @returns {vschema.AutoIncrement} AutoIncrement + * @returns {vschema.Table} Table */ - AutoIncrement.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.AutoIncrement) + Table.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Table) return object; - var message = new $root.vschema.AutoIncrement(); - if (object.column != null) - message.column = String(object.column); - if (object.sequence != null) - message.sequence = String(object.sequence); - return message; - }; - - /** - * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. - * @function toObject - * @memberof vschema.AutoIncrement - * @static - * @param {vschema.AutoIncrement} message AutoIncrement - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutoIncrement.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.column = ""; - object.sequence = ""; + var message = new $root.vschema.Table(); + if (object.type != null) + message.type = String(object.type); + if (object.column_vindexes) { + if (!Array.isArray(object.column_vindexes)) + throw TypeError(".vschema.Table.column_vindexes: array expected"); + message.column_vindexes = []; + for (var i = 0; i < object.column_vindexes.length; ++i) { + if (typeof object.column_vindexes[i] !== "object") + throw TypeError(".vschema.Table.column_vindexes: object expected"); + message.column_vindexes[i] = $root.vschema.ColumnVindex.fromObject(object.column_vindexes[i]); + } } - if (message.column != null && message.hasOwnProperty("column")) - object.column = message.column; - if (message.sequence != null && message.hasOwnProperty("sequence")) - object.sequence = message.sequence; + if (object.auto_increment != null) { + if (typeof object.auto_increment !== "object") + throw TypeError(".vschema.Table.auto_increment: object expected"); + message.auto_increment = $root.vschema.AutoIncrement.fromObject(object.auto_increment); + } + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.Table.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) { + if (typeof object.columns[i] !== "object") + throw TypeError(".vschema.Table.columns: object expected"); + message.columns[i] = $root.vschema.Column.fromObject(object.columns[i]); + } + } + if (object.pinned != null) + message.pinned = String(object.pinned); + if (object.column_list_authoritative != null) + message.column_list_authoritative = Boolean(object.column_list_authoritative); + return message; + }; + + /** + * Creates a plain object from a Table message. Also converts values to other types if specified. + * @function toObject + * @memberof vschema.Table + * @static + * @param {vschema.Table} message Table + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Table.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.column_vindexes = []; + object.columns = []; + } + if (options.defaults) { + object.type = ""; + object.auto_increment = null; + object.pinned = ""; + object.column_list_authoritative = false; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.column_vindexes && message.column_vindexes.length) { + object.column_vindexes = []; + for (var j = 0; j < message.column_vindexes.length; ++j) + object.column_vindexes[j] = $root.vschema.ColumnVindex.toObject(message.column_vindexes[j], options); + } + if (message.auto_increment != null && message.hasOwnProperty("auto_increment")) + object.auto_increment = $root.vschema.AutoIncrement.toObject(message.auto_increment, options); + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = $root.vschema.Column.toObject(message.columns[j], options); + } + if (message.pinned != null && message.hasOwnProperty("pinned")) + object.pinned = message.pinned; + if (message.column_list_authoritative != null && message.hasOwnProperty("column_list_authoritative")) + object.column_list_authoritative = message.column_list_authoritative; return object; }; /** - * Converts this AutoIncrement to JSON. + * Converts this Table to JSON. * @function toJSON - * @memberof vschema.AutoIncrement + * @memberof vschema.Table * @instance * @returns {Object.} JSON object */ - AutoIncrement.prototype.toJSON = function toJSON() { + Table.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoIncrement; + return Table; })(); - vschema.Column = (function() { + vschema.ColumnVindex = (function() { /** - * Properties of a Column. + * Properties of a ColumnVindex. * @memberof vschema - * @interface IColumn - * @property {string|null} [name] Column name - * @property {query.Type|null} [type] Column type + * @interface IColumnVindex + * @property {string|null} [column] ColumnVindex column + * @property {string|null} [name] ColumnVindex name + * @property {Array.|null} [columns] ColumnVindex columns */ /** - * Constructs a new Column. + * Constructs a new ColumnVindex. * @memberof vschema - * @classdesc Represents a Column. - * @implements IColumn + * @classdesc Represents a ColumnVindex. + * @implements IColumnVindex * @constructor - * @param {vschema.IColumn=} [properties] Properties to set + * @param {vschema.IColumnVindex=} [properties] Properties to set */ - function Column(properties) { + function ColumnVindex(properties) { + this.columns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78188,88 +78231,104 @@ $root.vschema = (function() { } /** - * Column name. + * ColumnVindex column. + * @member {string} column + * @memberof vschema.ColumnVindex + * @instance + */ + ColumnVindex.prototype.column = ""; + + /** + * ColumnVindex name. * @member {string} name - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @instance */ - Column.prototype.name = ""; + ColumnVindex.prototype.name = ""; /** - * Column type. - * @member {query.Type} type - * @memberof vschema.Column + * ColumnVindex columns. + * @member {Array.} columns + * @memberof vschema.ColumnVindex * @instance */ - Column.prototype.type = 0; + ColumnVindex.prototype.columns = $util.emptyArray; /** - * Creates a new Column instance using the specified properties. + * Creates a new ColumnVindex instance using the specified properties. * @function create - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IColumn=} [properties] Properties to set - * @returns {vschema.Column} Column instance + * @param {vschema.IColumnVindex=} [properties] Properties to set + * @returns {vschema.ColumnVindex} ColumnVindex instance */ - Column.create = function create(properties) { - return new Column(properties); + ColumnVindex.create = function create(properties) { + return new ColumnVindex(properties); }; /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encode - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encode = function encode(message, writer) { + ColumnVindex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.column != null && Object.hasOwnProperty.call(message, "column")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.columns[i]); return writer; }; /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. + * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static - * @param {vschema.IColumn} message Column message or plain object to encode + * @param {vschema.IColumnVindex} message ColumnVindex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Column.encodeDelimited = function encodeDelimited(message, writer) { + ColumnVindex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Column message from the specified reader or buffer. + * Decodes a ColumnVindex message from the specified reader or buffer. * @function decode - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.Column} Column + * @returns {vschema.ColumnVindex} ColumnVindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Column.decode = function decode(reader, length) { + ColumnVindex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ColumnVindex(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.column = reader.string(); break; case 2: - message.type = reader.int32(); + message.name = reader.string(); + break; + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -78280,297 +78339,138 @@ $root.vschema = (function() { }; /** - * Decodes a Column message from the specified reader or buffer, length delimited. + * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.Column} Column + * @returns {vschema.ColumnVindex} ColumnVindex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Column.decodeDelimited = function decodeDelimited(reader) { + ColumnVindex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Column message. + * Verifies a ColumnVindex message. * @function verify - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Column.verify = function verify(message) { + ColumnVindex.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) + if (!$util.isString(message.columns[i])) + return "columns: string[] expected"; + } return null; }; /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. + * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static * @param {Object.} object Plain object - * @returns {vschema.Column} Column + * @returns {vschema.ColumnVindex} ColumnVindex */ - Column.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.Column) + ColumnVindex.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ColumnVindex) return object; - var message = new $root.vschema.Column(); + var message = new $root.vschema.ColumnVindex(); + if (object.column != null) + message.column = String(object.column); if (object.name != null) message.name = String(object.name); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; + if (object.columns) { + if (!Array.isArray(object.columns)) + throw TypeError(".vschema.ColumnVindex.columns: array expected"); + message.columns = []; + for (var i = 0; i < object.columns.length; ++i) + message.columns[i] = String(object.columns[i]); } return message; }; /** - * Creates a plain object from a Column message. Also converts values to other types if specified. + * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @static - * @param {vschema.Column} message Column + * @param {vschema.ColumnVindex} message ColumnVindex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Column.toObject = function toObject(message, options) { + ColumnVindex.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.columns = []; if (options.defaults) { + object.column = ""; object.name = ""; - object.type = options.enums === String ? "NULL_TYPE" : 0; } + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.columns && message.columns.length) { + object.columns = []; + for (var j = 0; j < message.columns.length; ++j) + object.columns[j] = message.columns[j]; + } return object; }; /** - * Converts this Column to JSON. + * Converts this ColumnVindex to JSON. * @function toJSON - * @memberof vschema.Column + * @memberof vschema.ColumnVindex * @instance * @returns {Object.} JSON object */ - Column.prototype.toJSON = function toJSON() { + ColumnVindex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Column; + return ColumnVindex; })(); - vschema.SrvVSchema = (function() { + vschema.AutoIncrement = (function() { /** - * Properties of a SrvVSchema. + * Properties of an AutoIncrement. * @memberof vschema - * @interface ISrvVSchema - * @property {Object.|null} [keyspaces] SrvVSchema keyspaces - * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules + * @interface IAutoIncrement + * @property {string|null} [column] AutoIncrement column + * @property {string|null} [sequence] AutoIncrement sequence */ /** - * Constructs a new SrvVSchema. + * Constructs a new AutoIncrement. * @memberof vschema - * @classdesc Represents a SrvVSchema. - * @implements ISrvVSchema + * @classdesc Represents an AutoIncrement. + * @implements IAutoIncrement * @constructor - * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @param {vschema.IAutoIncrement=} [properties] Properties to set */ - function SrvVSchema(properties) { - this.keyspaces = {}; + function AutoIncrement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78578,123 +78478,88 @@ $root.vschema = (function() { } /** - * SrvVSchema keyspaces. - * @member {Object.} keyspaces - * @memberof vschema.SrvVSchema - * @instance - */ - SrvVSchema.prototype.keyspaces = $util.emptyObject; - - /** - * SrvVSchema routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vschema.SrvVSchema + * AutoIncrement column. + * @member {string} column + * @memberof vschema.AutoIncrement * @instance */ - SrvVSchema.prototype.routing_rules = null; + AutoIncrement.prototype.column = ""; /** - * SrvVSchema shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vschema.SrvVSchema + * AutoIncrement sequence. + * @member {string} sequence + * @memberof vschema.AutoIncrement * @instance */ - SrvVSchema.prototype.shard_routing_rules = null; + AutoIncrement.prototype.sequence = ""; /** - * Creates a new SrvVSchema instance using the specified properties. + * Creates a new AutoIncrement instance using the specified properties. * @function create - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static - * @param {vschema.ISrvVSchema=} [properties] Properties to set - * @returns {vschema.SrvVSchema} SrvVSchema instance + * @param {vschema.IAutoIncrement=} [properties] Properties to set + * @returns {vschema.AutoIncrement} AutoIncrement instance */ - SrvVSchema.create = function create(properties) { - return new SrvVSchema(properties); + AutoIncrement.create = function create(properties) { + return new AutoIncrement(properties); }; /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encode - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static - * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encode = function encode(message, writer) { + AutoIncrement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) - for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) - $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.column != null && Object.hasOwnProperty.call(message, "column")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.column); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sequence); return writer; }; /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. + * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static - * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode + * @param {vschema.IAutoIncrement} message AutoIncrement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { + AutoIncrement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SrvVSchema message from the specified reader or buffer. + * Decodes an AutoIncrement message from the specified reader or buffer. * @function decode - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vschema.AutoIncrement} AutoIncrement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decode = function decode(reader, length) { + AutoIncrement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.AutoIncrement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.keyspaces === $util.emptyObject) - message.keyspaces = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.keyspaces[key] = value; + message.column = reader.string(); break; case 2: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); - break; - case 3: - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.sequence = reader.string(); break; default: reader.skipType(tag & 7); @@ -78705,155 +78570,117 @@ $root.vschema = (function() { }; /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. + * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vschema.AutoIncrement} AutoIncrement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SrvVSchema.decodeDelimited = function decodeDelimited(reader) { + AutoIncrement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SrvVSchema message. + * Verifies an AutoIncrement message. * @function verify - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SrvVSchema.verify = function verify(message) { + AutoIncrement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { - if (!$util.isObject(message.keyspaces)) - return "keyspaces: object expected"; - var key = Object.keys(message.keyspaces); - for (var i = 0; i < key.length; ++i) { - var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); - if (error) - return "keyspaces." + error; - } - } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); - if (error) - return "routing_rules." + error; - } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); - if (error) - return "shard_routing_rules." + error; - } + if (message.column != null && message.hasOwnProperty("column")) + if (!$util.isString(message.column)) + return "column: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isString(message.sequence)) + return "sequence: string expected"; return null; }; /** - * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. + * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static * @param {Object.} object Plain object - * @returns {vschema.SrvVSchema} SrvVSchema + * @returns {vschema.AutoIncrement} AutoIncrement */ - SrvVSchema.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.SrvVSchema) + AutoIncrement.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.AutoIncrement) return object; - var message = new $root.vschema.SrvVSchema(); - if (object.keyspaces) { - if (typeof object.keyspaces !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces = {}; - for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { - if (typeof object.keyspaces[keys[i]] !== "object") - throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); - message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); - } - } - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); - } - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vschema.SrvVSchema.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); - } + var message = new $root.vschema.AutoIncrement(); + if (object.column != null) + message.column = String(object.column); + if (object.sequence != null) + message.sequence = String(object.sequence); return message; }; /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. + * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @static - * @param {vschema.SrvVSchema} message SrvVSchema + * @param {vschema.AutoIncrement} message AutoIncrement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SrvVSchema.toObject = function toObject(message, options) { + AutoIncrement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.keyspaces = {}; if (options.defaults) { - object.routing_rules = null; - object.shard_routing_rules = null; - } - var keys2; - if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { - object.keyspaces = {}; - for (var j = 0; j < keys2.length; ++j) - object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + object.column = ""; + object.sequence = ""; } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.column != null && message.hasOwnProperty("column")) + object.column = message.column; + if (message.sequence != null && message.hasOwnProperty("sequence")) + object.sequence = message.sequence; return object; }; /** - * Converts this SrvVSchema to JSON. + * Converts this AutoIncrement to JSON. * @function toJSON - * @memberof vschema.SrvVSchema + * @memberof vschema.AutoIncrement * @instance * @returns {Object.} JSON object */ - SrvVSchema.prototype.toJSON = function toJSON() { + AutoIncrement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SrvVSchema; + return AutoIncrement; })(); - vschema.ShardRoutingRules = (function() { + vschema.Column = (function() { /** - * Properties of a ShardRoutingRules. + * Properties of a Column. * @memberof vschema - * @interface IShardRoutingRules - * @property {Array.|null} [rules] ShardRoutingRules rules + * @interface IColumn + * @property {string|null} [name] Column name + * @property {query.Type|null} [type] Column type */ /** - * Constructs a new ShardRoutingRules. + * Constructs a new Column. * @memberof vschema - * @classdesc Represents a ShardRoutingRules. - * @implements IShardRoutingRules + * @classdesc Represents a Column. + * @implements IColumn * @constructor - * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @param {vschema.IColumn=} [properties] Properties to set */ - function ShardRoutingRules(properties) { - this.rules = []; + function Column(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78861,78 +78688,88 @@ $root.vschema = (function() { } /** - * ShardRoutingRules rules. - * @member {Array.} rules - * @memberof vschema.ShardRoutingRules + * Column name. + * @member {string} name + * @memberof vschema.Column * @instance */ - ShardRoutingRules.prototype.rules = $util.emptyArray; + Column.prototype.name = ""; /** - * Creates a new ShardRoutingRules instance using the specified properties. + * Column type. + * @member {query.Type} type + * @memberof vschema.Column + * @instance + */ + Column.prototype.type = 0; + + /** + * Creates a new Column instance using the specified properties. * @function create - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static - * @param {vschema.IShardRoutingRules=} [properties] Properties to set - * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance + * @param {vschema.IColumn=} [properties] Properties to set + * @returns {vschema.Column} Column instance */ - ShardRoutingRules.create = function create(properties) { - return new ShardRoutingRules(properties); + Column.create = function create(properties) { + return new Column(properties); }; /** - * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. * @function encode - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode + * @param {vschema.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRules.encode = function encode(message, writer) { + Column.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.vschema.ShardRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); return writer; }; /** - * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. + * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static - * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode + * @param {vschema.IColumn} message Column message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { + Column.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardRoutingRules message from the specified reader or buffer. + * Decodes a Column message from the specified reader or buffer. * @function decode - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @returns {vschema.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardRoutingRules.decode = function decode(reader, length) { + Column.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.Column(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.vschema.ShardRoutingRule.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -78943,126 +78780,297 @@ $root.vschema = (function() { }; /** - * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. + * Decodes a Column message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @returns {vschema.Column} Column * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardRoutingRules.decodeDelimited = function decodeDelimited(reader) { + Column.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardRoutingRules message. + * Verifies a Column message. * @function verify - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardRoutingRules.verify = function verify(message) { + Column.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.vschema.ShardRoutingRule.verify(message.rules[i]); - if (error) - return "rules." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; } - } return null; }; /** - * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. + * Creates a Column message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRules} ShardRoutingRules + * @returns {vschema.Column} Column */ - ShardRoutingRules.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRules) + Column.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.Column) return object; - var message = new $root.vschema.ShardRoutingRules(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".vschema.ShardRoutingRules.rules: object expected"); - message.rules[i] = $root.vschema.ShardRoutingRule.fromObject(object.rules[i]); - } + var message = new $root.vschema.Column(); + if (object.name != null) + message.name = String(object.name); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; } return message; }; /** - * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. + * Creates a plain object from a Column message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @static - * @param {vschema.ShardRoutingRules} message ShardRoutingRules + * @param {vschema.Column} message Column * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardRoutingRules.toObject = function toObject(message, options) { + Column.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); + if (options.defaults) { + object.name = ""; + object.type = options.enums === String ? "NULL_TYPE" : 0; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; return object; }; /** - * Converts this ShardRoutingRules to JSON. + * Converts this Column to JSON. * @function toJSON - * @memberof vschema.ShardRoutingRules + * @memberof vschema.Column * @instance * @returns {Object.} JSON object */ - ShardRoutingRules.prototype.toJSON = function toJSON() { + Column.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShardRoutingRules; + return Column; })(); - vschema.ShardRoutingRule = (function() { + vschema.SrvVSchema = (function() { /** - * Properties of a ShardRoutingRule. + * Properties of a SrvVSchema. * @memberof vschema - * @interface IShardRoutingRule - * @property {string|null} [from_keyspace] ShardRoutingRule from_keyspace - * @property {string|null} [to_keyspace] ShardRoutingRule to_keyspace - * @property {string|null} [shard] ShardRoutingRule shard + * @interface ISrvVSchema + * @property {Object.|null} [keyspaces] SrvVSchema keyspaces + * @property {vschema.IRoutingRules|null} [routing_rules] SrvVSchema routing_rules + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] SrvVSchema shard_routing_rules */ /** - * Constructs a new ShardRoutingRule. + * Constructs a new SrvVSchema. * @memberof vschema - * @classdesc Represents a ShardRoutingRule. - * @implements IShardRoutingRule + * @classdesc Represents a SrvVSchema. + * @implements ISrvVSchema * @constructor - * @param {vschema.IShardRoutingRule=} [properties] Properties to set + * @param {vschema.ISrvVSchema=} [properties] Properties to set */ - function ShardRoutingRule(properties) { + function SrvVSchema(properties) { + this.keyspaces = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79070,101 +79078,123 @@ $root.vschema = (function() { } /** - * ShardRoutingRule from_keyspace. - * @member {string} from_keyspace - * @memberof vschema.ShardRoutingRule + * SrvVSchema keyspaces. + * @member {Object.} keyspaces + * @memberof vschema.SrvVSchema * @instance */ - ShardRoutingRule.prototype.from_keyspace = ""; + SrvVSchema.prototype.keyspaces = $util.emptyObject; /** - * ShardRoutingRule to_keyspace. - * @member {string} to_keyspace - * @memberof vschema.ShardRoutingRule + * SrvVSchema routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vschema.SrvVSchema * @instance */ - ShardRoutingRule.prototype.to_keyspace = ""; + SrvVSchema.prototype.routing_rules = null; /** - * ShardRoutingRule shard. - * @member {string} shard - * @memberof vschema.ShardRoutingRule + * SrvVSchema shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vschema.SrvVSchema * @instance */ - ShardRoutingRule.prototype.shard = ""; + SrvVSchema.prototype.shard_routing_rules = null; /** - * Creates a new ShardRoutingRule instance using the specified properties. + * Creates a new SrvVSchema instance using the specified properties. * @function create - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static - * @param {vschema.IShardRoutingRule=} [properties] Properties to set - * @returns {vschema.ShardRoutingRule} ShardRoutingRule instance + * @param {vschema.ISrvVSchema=} [properties] Properties to set + * @returns {vschema.SrvVSchema} SrvVSchema instance */ - ShardRoutingRule.create = function create(properties) { - return new ShardRoutingRule(properties); + SrvVSchema.create = function create(properties) { + return new SrvVSchema(properties); }; /** - * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. * @function encode - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encode = function encode(message, writer) { + SrvVSchema.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.from_keyspace != null && Object.hasOwnProperty.call(message, "from_keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_keyspace); - if (message.to_keyspace != null && Object.hasOwnProperty.call(message, "to_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.keyspaces != null && Object.hasOwnProperty.call(message, "keyspaces")) + for (var keys = Object.keys(message.keyspaces), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.vschema.Keyspace.encode(message.keyspaces[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) + $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. * @function encodeDelimited - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static - * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode + * @param {vschema.ISrvVSchema} message SrvVSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { + SrvVSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ShardRoutingRule message from the specified reader or buffer. + * Decodes a SrvVSchema message from the specified reader or buffer. * @function decode - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {vschema.SrvVSchema} SrvVSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardRoutingRule.decode = function decode(reader, length) { + SrvVSchema.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.SrvVSchema(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.from_keyspace = reader.string(); + if (message.keyspaces === $util.emptyObject) + message.keyspaces = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.keyspaces[key] = value; break; case 2: - message.to_keyspace = reader.string(); + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); break; case 3: - message.shard = reader.string(); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -79175,138 +79205,155 @@ $root.vschema = (function() { }; /** - * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. + * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {vschema.SrvVSchema} SrvVSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShardRoutingRule.decodeDelimited = function decodeDelimited(reader) { + SrvVSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ShardRoutingRule message. + * Verifies a SrvVSchema message. * @function verify - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShardRoutingRule.verify = function verify(message) { + SrvVSchema.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) - if (!$util.isString(message.from_keyspace)) - return "from_keyspace: string expected"; - if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) - if (!$util.isString(message.to_keyspace)) - return "to_keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; + if (message.keyspaces != null && message.hasOwnProperty("keyspaces")) { + if (!$util.isObject(message.keyspaces)) + return "keyspaces: object expected"; + var key = Object.keys(message.keyspaces); + for (var i = 0; i < key.length; ++i) { + var error = $root.vschema.Keyspace.verify(message.keyspaces[key[i]]); + if (error) + return "keyspaces." + error; + } + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (error) + return "routing_rules." + error; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (error) + return "shard_routing_rules." + error; + } return null; }; /** - * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. + * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static * @param {Object.} object Plain object - * @returns {vschema.ShardRoutingRule} ShardRoutingRule + * @returns {vschema.SrvVSchema} SrvVSchema */ - ShardRoutingRule.fromObject = function fromObject(object) { - if (object instanceof $root.vschema.ShardRoutingRule) + SrvVSchema.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.SrvVSchema) return object; - var message = new $root.vschema.ShardRoutingRule(); - if (object.from_keyspace != null) - message.from_keyspace = String(object.from_keyspace); - if (object.to_keyspace != null) - message.to_keyspace = String(object.to_keyspace); - if (object.shard != null) - message.shard = String(object.shard); + var message = new $root.vschema.SrvVSchema(); + if (object.keyspaces) { + if (typeof object.keyspaces !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces = {}; + for (var keys = Object.keys(object.keyspaces), i = 0; i < keys.length; ++i) { + if (typeof object.keyspaces[keys[i]] !== "object") + throw TypeError(".vschema.SrvVSchema.keyspaces: object expected"); + message.keyspaces[keys[i]] = $root.vschema.Keyspace.fromObject(object.keyspaces[keys[i]]); + } + } + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + } + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vschema.SrvVSchema.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + } return message; }; /** - * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. + * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. * @function toObject - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @static - * @param {vschema.ShardRoutingRule} message ShardRoutingRule + * @param {vschema.SrvVSchema} message SrvVSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShardRoutingRule.toObject = function toObject(message, options) { + SrvVSchema.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.keyspaces = {}; if (options.defaults) { - object.from_keyspace = ""; - object.to_keyspace = ""; - object.shard = ""; + object.routing_rules = null; + object.shard_routing_rules = null; } - if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) - object.from_keyspace = message.from_keyspace; - if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) - object.to_keyspace = message.to_keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + var keys2; + if (message.keyspaces && (keys2 = Object.keys(message.keyspaces)).length) { + object.keyspaces = {}; + for (var j = 0; j < keys2.length; ++j) + object.keyspaces[keys2[j]] = $root.vschema.Keyspace.toObject(message.keyspaces[keys2[j]], options); + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); return object; }; /** - * Converts this ShardRoutingRule to JSON. + * Converts this SrvVSchema to JSON. * @function toJSON - * @memberof vschema.ShardRoutingRule + * @memberof vschema.SrvVSchema * @instance * @returns {Object.} JSON object */ - ShardRoutingRule.prototype.toJSON = function toJSON() { + SrvVSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ShardRoutingRule; + return SrvVSchema; })(); - return vschema; -})(); + vschema.ShardRoutingRules = (function() { -$root.vtctldata = (function() { - - /** - * Namespace vtctldata. - * @exports vtctldata - * @namespace - */ - var vtctldata = {}; - - vtctldata.ExecuteVtctlCommandRequest = (function() { - - /** - * Properties of an ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @interface IExecuteVtctlCommandRequest - * @property {Array.|null} [args] ExecuteVtctlCommandRequest args - * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout - */ + /** + * Properties of a ShardRoutingRules. + * @memberof vschema + * @interface IShardRoutingRules + * @property {Array.|null} [rules] ShardRoutingRules rules + */ /** - * Constructs a new ExecuteVtctlCommandRequest. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandRequest. - * @implements IExecuteVtctlCommandRequest + * Constructs a new ShardRoutingRules. + * @memberof vschema + * @classdesc Represents a ShardRoutingRules. + * @implements IShardRoutingRules * @constructor - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @param {vschema.IShardRoutingRules=} [properties] Properties to set */ - function ExecuteVtctlCommandRequest(properties) { - this.args = []; + function ShardRoutingRules(properties) { + this.rules = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79314,91 +79361,78 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandRequest args. - * @member {Array.} args - * @memberof vtctldata.ExecuteVtctlCommandRequest - * @instance - */ - ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; - - /** - * ExecuteVtctlCommandRequest action_timeout. - * @member {number|Long} action_timeout - * @memberof vtctldata.ExecuteVtctlCommandRequest + * ShardRoutingRules rules. + * @member {Array.} rules + * @memberof vschema.ShardRoutingRules * @instance */ - ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ShardRoutingRules.prototype.rules = $util.emptyArray; /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. + * Creates a new ShardRoutingRules instance using the specified properties. * @function create - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance + * @param {vschema.IShardRoutingRules=} [properties] Properties to set + * @returns {vschema.ShardRoutingRules} ShardRoutingRules instance */ - ExecuteVtctlCommandRequest.create = function create(properties) { - return new ExecuteVtctlCommandRequest(properties); + ShardRoutingRules.create = function create(properties) { + return new ShardRoutingRules(properties); }; /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. * @function encode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encode = function encode(message, writer) { + ShardRoutingRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); - if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.vschema.ShardRoutingRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. + * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode + * @param {vschema.IShardRoutingRules} message ShardRoutingRules message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { + ShardRoutingRules.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. + * Decodes a ShardRoutingRules message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vschema.ShardRoutingRules} ShardRoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.decode = function decode(reader, length) { + ShardRoutingRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRules(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 2: - message.action_timeout = reader.int64(); + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.vschema.ShardRoutingRule.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -79409,142 +79443,126 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. + * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vschema.ShardRoutingRules} ShardRoutingRules * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { + ShardRoutingRules.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandRequest message. + * Verifies a ShardRoutingRules message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandRequest.verify = function verify(message) { + ShardRoutingRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.vschema.ShardRoutingRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) - return "action_timeout: integer|Long expected"; return null; }; /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest + * @returns {vschema.ShardRoutingRules} ShardRoutingRules */ - ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) + ShardRoutingRules.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRules) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); + var message = new $root.vschema.ShardRoutingRules(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".vschema.ShardRoutingRules.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".vschema.ShardRoutingRules.rules: object expected"); + message.rules[i] = $root.vschema.ShardRoutingRule.fromObject(object.rules[i]); + } } - if (object.action_timeout != null) - if ($util.Long) - (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; - else if (typeof object.action_timeout === "string") - message.action_timeout = parseInt(object.action_timeout, 10); - else if (typeof object.action_timeout === "number") - message.action_timeout = object.action_timeout; - else if (typeof object.action_timeout === "object") - message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. + * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @static - * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest + * @param {vschema.ShardRoutingRules} message ShardRoutingRules * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { + ShardRoutingRules.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.args = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.action_timeout = options.longs === String ? "0" : 0; - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + object.rules = []; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.vschema.ShardRoutingRule.toObject(message.rules[j], options); } - if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) - if (typeof message.action_timeout === "number") - object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; - else - object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; return object; }; /** - * Converts this ExecuteVtctlCommandRequest to JSON. + * Converts this ShardRoutingRules to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandRequest + * @memberof vschema.ShardRoutingRules * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { + ShardRoutingRules.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandRequest; + return ShardRoutingRules; })(); - vtctldata.ExecuteVtctlCommandResponse = (function() { + vschema.ShardRoutingRule = (function() { /** - * Properties of an ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @interface IExecuteVtctlCommandResponse - * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event + * Properties of a ShardRoutingRule. + * @memberof vschema + * @interface IShardRoutingRule + * @property {string|null} [from_keyspace] ShardRoutingRule from_keyspace + * @property {string|null} [to_keyspace] ShardRoutingRule to_keyspace + * @property {string|null} [shard] ShardRoutingRule shard */ /** - * Constructs a new ExecuteVtctlCommandResponse. - * @memberof vtctldata - * @classdesc Represents an ExecuteVtctlCommandResponse. - * @implements IExecuteVtctlCommandResponse + * Constructs a new ShardRoutingRule. + * @memberof vschema + * @classdesc Represents a ShardRoutingRule. + * @implements IShardRoutingRule * @constructor - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @param {vschema.IShardRoutingRule=} [properties] Properties to set */ - function ExecuteVtctlCommandResponse(properties) { + function ShardRoutingRule(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79552,75 +79570,101 @@ $root.vtctldata = (function() { } /** - * ExecuteVtctlCommandResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.ExecuteVtctlCommandResponse + * ShardRoutingRule from_keyspace. + * @member {string} from_keyspace + * @memberof vschema.ShardRoutingRule * @instance */ - ExecuteVtctlCommandResponse.prototype.event = null; + ShardRoutingRule.prototype.from_keyspace = ""; /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. - * @function create - * @memberof vtctldata.ExecuteVtctlCommandResponse - * @static - * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance + * ShardRoutingRule to_keyspace. + * @member {string} to_keyspace + * @memberof vschema.ShardRoutingRule + * @instance */ - ExecuteVtctlCommandResponse.create = function create(properties) { - return new ExecuteVtctlCommandResponse(properties); - }; + ShardRoutingRule.prototype.to_keyspace = ""; /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.ExecuteVtctlCommandResponse - * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * ShardRoutingRule shard. + * @member {string} shard + * @memberof vschema.ShardRoutingRule + * @instance + */ + ShardRoutingRule.prototype.shard = ""; + + /** + * Creates a new ShardRoutingRule instance using the specified properties. + * @function create + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule=} [properties] Properties to set + * @returns {vschema.ShardRoutingRule} ShardRoutingRule instance + */ + ShardRoutingRule.create = function create(properties) { + return new ShardRoutingRule(properties); + }; + + /** + * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. + * @function encode + * @memberof vschema.ShardRoutingRule + * @static + * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + ShardRoutingRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.from_keyspace != null && Object.hasOwnProperty.call(message, "from_keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.from_keyspace); + if (message.to_keyspace != null && Object.hasOwnProperty.call(message, "to_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.to_keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); return writer; }; /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static - * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {vschema.IShardRoutingRule} message ShardRoutingRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + ShardRoutingRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * Decodes a ShardRoutingRule message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vschema.ShardRoutingRule} ShardRoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + ShardRoutingRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vschema.ShardRoutingRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.from_keyspace = reader.string(); + break; + case 2: + message.to_keyspace = reader.string(); + break; + case 3: + message.shard = reader.string(); break; default: reader.skipType(tag & 7); @@ -79631,130 +79675,138 @@ $root.vtctldata = (function() { }; /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vschema.ShardRoutingRule} ShardRoutingRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + ShardRoutingRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExecuteVtctlCommandResponse message. + * Verifies a ShardRoutingRule message. * @function verify - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExecuteVtctlCommandResponse.verify = function verify(message) { + ShardRoutingRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; - } + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + if (!$util.isString(message.from_keyspace)) + return "from_keyspace: string expected"; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + if (!$util.isString(message.to_keyspace)) + return "to_keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; return null; }; /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static * @param {Object.} object Plain object - * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @returns {vschema.ShardRoutingRule} ShardRoutingRule */ - ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + ShardRoutingRule.fromObject = function fromObject(object) { + if (object instanceof $root.vschema.ShardRoutingRule) return object; - var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); - } + var message = new $root.vschema.ShardRoutingRule(); + if (object.from_keyspace != null) + message.from_keyspace = String(object.from_keyspace); + if (object.to_keyspace != null) + message.to_keyspace = String(object.to_keyspace); + if (object.shard != null) + message.shard = String(object.shard); return message; }; /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @static - * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {vschema.ShardRoutingRule} message ShardRoutingRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + ShardRoutingRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.event = null; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + if (options.defaults) { + object.from_keyspace = ""; + object.to_keyspace = ""; + object.shard = ""; + } + if (message.from_keyspace != null && message.hasOwnProperty("from_keyspace")) + object.from_keyspace = message.from_keyspace; + if (message.to_keyspace != null && message.hasOwnProperty("to_keyspace")) + object.to_keyspace = message.to_keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; return object; }; /** - * Converts this ExecuteVtctlCommandResponse to JSON. + * Converts this ShardRoutingRule to JSON. * @function toJSON - * @memberof vtctldata.ExecuteVtctlCommandResponse + * @memberof vschema.ShardRoutingRule * @instance * @returns {Object.} JSON object */ - ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + ShardRoutingRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExecuteVtctlCommandResponse; + return ShardRoutingRule; })(); + return vschema; +})(); + +$root.vtctldata = (function() { + /** - * MaterializationIntent enum. - * @name vtctldata.MaterializationIntent - * @enum {number} - * @property {number} CUSTOM=0 CUSTOM value - * @property {number} MOVETABLES=1 MOVETABLES value - * @property {number} CREATELOOKUPINDEX=2 CREATELOOKUPINDEX value + * Namespace vtctldata. + * @exports vtctldata + * @namespace */ - vtctldata.MaterializationIntent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CUSTOM"] = 0; - values[valuesById[1] = "MOVETABLES"] = 1; - values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; - return values; - })(); + var vtctldata = {}; - vtctldata.TableMaterializeSettings = (function() { + vtctldata.ExecuteVtctlCommandRequest = (function() { /** - * Properties of a TableMaterializeSettings. + * Properties of an ExecuteVtctlCommandRequest. * @memberof vtctldata - * @interface ITableMaterializeSettings - * @property {string|null} [target_table] TableMaterializeSettings target_table - * @property {string|null} [source_expression] TableMaterializeSettings source_expression - * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl + * @interface IExecuteVtctlCommandRequest + * @property {Array.|null} [args] ExecuteVtctlCommandRequest args + * @property {number|Long|null} [action_timeout] ExecuteVtctlCommandRequest action_timeout */ /** - * Constructs a new TableMaterializeSettings. + * Constructs a new ExecuteVtctlCommandRequest. * @memberof vtctldata - * @classdesc Represents a TableMaterializeSettings. - * @implements ITableMaterializeSettings + * @classdesc Represents an ExecuteVtctlCommandRequest. + * @implements IExecuteVtctlCommandRequest * @constructor - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set */ - function TableMaterializeSettings(properties) { + function ExecuteVtctlCommandRequest(properties) { + this.args = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79762,101 +79814,91 @@ $root.vtctldata = (function() { } /** - * TableMaterializeSettings target_table. - * @member {string} target_table - * @memberof vtctldata.TableMaterializeSettings - * @instance - */ - TableMaterializeSettings.prototype.target_table = ""; - - /** - * TableMaterializeSettings source_expression. - * @member {string} source_expression - * @memberof vtctldata.TableMaterializeSettings + * ExecuteVtctlCommandRequest args. + * @member {Array.} args + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance */ - TableMaterializeSettings.prototype.source_expression = ""; + ExecuteVtctlCommandRequest.prototype.args = $util.emptyArray; /** - * TableMaterializeSettings create_ddl. - * @member {string} create_ddl - * @memberof vtctldata.TableMaterializeSettings + * ExecuteVtctlCommandRequest action_timeout. + * @member {number|Long} action_timeout + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance */ - TableMaterializeSettings.prototype.create_ddl = ""; + ExecuteVtctlCommandRequest.prototype.action_timeout = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new TableMaterializeSettings instance using the specified properties. + * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. * @function create - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance + * @param {vtctldata.IExecuteVtctlCommandRequest=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest instance */ - TableMaterializeSettings.create = function create(properties) { - return new TableMaterializeSettings(properties); + ExecuteVtctlCommandRequest.create = function create(properties) { + return new ExecuteVtctlCommandRequest(properties); }; /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableMaterializeSettings.encode = function encode(message, writer) { + ExecuteVtctlCommandRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.target_table != null && Object.hasOwnProperty.call(message, "target_table")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.target_table); - if (message.source_expression != null && Object.hasOwnProperty.call(message, "source_expression")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_expression); - if (message.create_ddl != null && Object.hasOwnProperty.call(message, "create_ddl")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.create_ddl); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.args[i]); + if (message.action_timeout != null && Object.hasOwnProperty.call(message, "action_timeout")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.action_timeout); return writer; }; /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. + * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode + * @param {vtctldata.IExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + ExecuteVtctlCommandRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableMaterializeSettings.decode = function decode(reader, length) { + ExecuteVtctlCommandRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.target_table = reader.string(); + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; case 2: - message.source_expression = reader.string(); - break; - case 3: - message.create_ddl = reader.string(); + message.action_timeout = reader.int64(); break; default: reader.skipType(tag & 7); @@ -79867,137 +79909,142 @@ $root.vtctldata = (function() { }; /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + ExecuteVtctlCommandRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TableMaterializeSettings message. + * Verifies an ExecuteVtctlCommandRequest message. * @function verify - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TableMaterializeSettings.verify = function verify(message) { + ExecuteVtctlCommandRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.target_table != null && message.hasOwnProperty("target_table")) - if (!$util.isString(message.target_table)) - return "target_table: string expected"; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - if (!$util.isString(message.source_expression)) - return "source_expression: string expected"; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - if (!$util.isString(message.create_ddl)) - return "create_ddl: string expected"; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (!$util.isInteger(message.action_timeout) && !(message.action_timeout && $util.isInteger(message.action_timeout.low) && $util.isInteger(message.action_timeout.high))) + return "action_timeout: integer|Long expected"; return null; }; /** - * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings + * @returns {vtctldata.ExecuteVtctlCommandRequest} ExecuteVtctlCommandRequest */ - TableMaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.TableMaterializeSettings) + ExecuteVtctlCommandRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandRequest) return object; - var message = new $root.vtctldata.TableMaterializeSettings(); - if (object.target_table != null) - message.target_table = String(object.target_table); - if (object.source_expression != null) - message.source_expression = String(object.source_expression); - if (object.create_ddl != null) - message.create_ddl = String(object.create_ddl); + var message = new $root.vtctldata.ExecuteVtctlCommandRequest(); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".vtctldata.ExecuteVtctlCommandRequest.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); + } + if (object.action_timeout != null) + if ($util.Long) + (message.action_timeout = $util.Long.fromValue(object.action_timeout)).unsigned = false; + else if (typeof object.action_timeout === "string") + message.action_timeout = parseInt(object.action_timeout, 10); + else if (typeof object.action_timeout === "number") + message.action_timeout = object.action_timeout; + else if (typeof object.action_timeout === "object") + message.action_timeout = new $util.LongBits(object.action_timeout.low >>> 0, object.action_timeout.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. + * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @static - * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings + * @param {vtctldata.ExecuteVtctlCommandRequest} message ExecuteVtctlCommandRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TableMaterializeSettings.toObject = function toObject(message, options) { + ExecuteVtctlCommandRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.target_table = ""; - object.source_expression = ""; - object.create_ddl = ""; + if (options.arrays || options.defaults) + object.args = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.action_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.action_timeout = options.longs === String ? "0" : 0; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; } - if (message.target_table != null && message.hasOwnProperty("target_table")) - object.target_table = message.target_table; - if (message.source_expression != null && message.hasOwnProperty("source_expression")) - object.source_expression = message.source_expression; - if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) - object.create_ddl = message.create_ddl; + if (message.action_timeout != null && message.hasOwnProperty("action_timeout")) + if (typeof message.action_timeout === "number") + object.action_timeout = options.longs === String ? String(message.action_timeout) : message.action_timeout; + else + object.action_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.action_timeout) : options.longs === Number ? new $util.LongBits(message.action_timeout.low >>> 0, message.action_timeout.high >>> 0).toNumber() : message.action_timeout; return object; }; /** - * Converts this TableMaterializeSettings to JSON. + * Converts this ExecuteVtctlCommandRequest to JSON. * @function toJSON - * @memberof vtctldata.TableMaterializeSettings + * @memberof vtctldata.ExecuteVtctlCommandRequest * @instance * @returns {Object.} JSON object */ - TableMaterializeSettings.prototype.toJSON = function toJSON() { + ExecuteVtctlCommandRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TableMaterializeSettings; + return ExecuteVtctlCommandRequest; })(); - vtctldata.MaterializeSettings = (function() { + vtctldata.ExecuteVtctlCommandResponse = (function() { /** - * Properties of a MaterializeSettings. + * Properties of an ExecuteVtctlCommandResponse. * @memberof vtctldata - * @interface IMaterializeSettings - * @property {string|null} [workflow] MaterializeSettings workflow - * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace - * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace - * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy - * @property {Array.|null} [table_settings] MaterializeSettings table_settings - * @property {string|null} [cell] MaterializeSettings cell - * @property {string|null} [tablet_types] MaterializeSettings tablet_types - * @property {string|null} [external_cluster] MaterializeSettings external_cluster - * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent - * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone - * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone - * @property {Array.|null} [source_shards] MaterializeSettings source_shards + * @interface IExecuteVtctlCommandResponse + * @property {logutil.IEvent|null} [event] ExecuteVtctlCommandResponse event */ /** - * Constructs a new MaterializeSettings. + * Constructs a new ExecuteVtctlCommandResponse. * @memberof vtctldata - * @classdesc Represents a MaterializeSettings. - * @implements IMaterializeSettings + * @classdesc Represents an ExecuteVtctlCommandResponse. + * @implements IExecuteVtctlCommandResponse * @constructor - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set */ - function MaterializeSettings(properties) { - this.table_settings = []; - this.source_shards = []; + function ExecuteVtctlCommandResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80005,224 +80052,311 @@ $root.vtctldata = (function() { } /** - * MaterializeSettings workflow. - * @member {string} workflow - * @memberof vtctldata.MaterializeSettings + * ExecuteVtctlCommandResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.ExecuteVtctlCommandResponse * @instance */ - MaterializeSettings.prototype.workflow = ""; + ExecuteVtctlCommandResponse.prototype.event = null; /** - * MaterializeSettings source_keyspace. - * @member {string} source_keyspace - * @memberof vtctldata.MaterializeSettings - * @instance + * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. + * @function create + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse=} [properties] Properties to set + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse instance */ - MaterializeSettings.prototype.source_keyspace = ""; + ExecuteVtctlCommandResponse.create = function create(properties) { + return new ExecuteVtctlCommandResponse(properties); + }; /** - * MaterializeSettings target_keyspace. - * @member {string} target_keyspace - * @memberof vtctldata.MaterializeSettings - * @instance + * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.prototype.target_keyspace = ""; + ExecuteVtctlCommandResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * MaterializeSettings stop_after_copy. - * @member {boolean} stop_after_copy - * @memberof vtctldata.MaterializeSettings - * @instance + * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.IExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.prototype.stop_after_copy = false; + ExecuteVtctlCommandResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MaterializeSettings table_settings. - * @member {Array.} table_settings - * @memberof vtctldata.MaterializeSettings - * @instance + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.prototype.table_settings = $util.emptyArray; + ExecuteVtctlCommandResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MaterializeSettings cell. - * @member {string} cell - * @memberof vtctldata.MaterializeSettings - * @instance + * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.prototype.cell = ""; - + ExecuteVtctlCommandResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + /** - * MaterializeSettings tablet_types. - * @member {string} tablet_types - * @memberof vtctldata.MaterializeSettings - * @instance + * Verifies an ExecuteVtctlCommandResponse message. + * @function verify + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeSettings.prototype.tablet_types = ""; + ExecuteVtctlCommandResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; /** - * MaterializeSettings external_cluster. - * @member {string} external_cluster - * @memberof vtctldata.MaterializeSettings - * @instance + * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ExecuteVtctlCommandResponse} ExecuteVtctlCommandResponse */ - MaterializeSettings.prototype.external_cluster = ""; + ExecuteVtctlCommandResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ExecuteVtctlCommandResponse) + return object; + var message = new $root.vtctldata.ExecuteVtctlCommandResponse(); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.ExecuteVtctlCommandResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); + } + return message; + }; /** - * MaterializeSettings materialization_intent. - * @member {vtctldata.MaterializationIntent} materialization_intent - * @memberof vtctldata.MaterializeSettings + * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.ExecuteVtctlCommandResponse + * @static + * @param {vtctldata.ExecuteVtctlCommandResponse} message ExecuteVtctlCommandResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExecuteVtctlCommandResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.event = null; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); + return object; + }; + + /** + * Converts this ExecuteVtctlCommandResponse to JSON. + * @function toJSON + * @memberof vtctldata.ExecuteVtctlCommandResponse * @instance + * @returns {Object.} JSON object */ - MaterializeSettings.prototype.materialization_intent = 0; + ExecuteVtctlCommandResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExecuteVtctlCommandResponse; + })(); + + /** + * MaterializationIntent enum. + * @name vtctldata.MaterializationIntent + * @enum {number} + * @property {number} CUSTOM=0 CUSTOM value + * @property {number} MOVETABLES=1 MOVETABLES value + * @property {number} CREATELOOKUPINDEX=2 CREATELOOKUPINDEX value + */ + vtctldata.MaterializationIntent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CUSTOM"] = 0; + values[valuesById[1] = "MOVETABLES"] = 1; + values[valuesById[2] = "CREATELOOKUPINDEX"] = 2; + return values; + })(); + + vtctldata.TableMaterializeSettings = (function() { /** - * MaterializeSettings source_time_zone. - * @member {string} source_time_zone - * @memberof vtctldata.MaterializeSettings + * Properties of a TableMaterializeSettings. + * @memberof vtctldata + * @interface ITableMaterializeSettings + * @property {string|null} [target_table] TableMaterializeSettings target_table + * @property {string|null} [source_expression] TableMaterializeSettings source_expression + * @property {string|null} [create_ddl] TableMaterializeSettings create_ddl + */ + + /** + * Constructs a new TableMaterializeSettings. + * @memberof vtctldata + * @classdesc Represents a TableMaterializeSettings. + * @implements ITableMaterializeSettings + * @constructor + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + */ + function TableMaterializeSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TableMaterializeSettings target_table. + * @member {string} target_table + * @memberof vtctldata.TableMaterializeSettings * @instance */ - MaterializeSettings.prototype.source_time_zone = ""; + TableMaterializeSettings.prototype.target_table = ""; /** - * MaterializeSettings target_time_zone. - * @member {string} target_time_zone - * @memberof vtctldata.MaterializeSettings + * TableMaterializeSettings source_expression. + * @member {string} source_expression + * @memberof vtctldata.TableMaterializeSettings * @instance */ - MaterializeSettings.prototype.target_time_zone = ""; + TableMaterializeSettings.prototype.source_expression = ""; /** - * MaterializeSettings source_shards. - * @member {Array.} source_shards - * @memberof vtctldata.MaterializeSettings + * TableMaterializeSettings create_ddl. + * @member {string} create_ddl + * @memberof vtctldata.TableMaterializeSettings * @instance */ - MaterializeSettings.prototype.source_shards = $util.emptyArray; + TableMaterializeSettings.prototype.create_ddl = ""; /** - * Creates a new MaterializeSettings instance using the specified properties. + * Creates a new TableMaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set - * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance + * @param {vtctldata.ITableMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings instance */ - MaterializeSettings.create = function create(properties) { - return new MaterializeSettings(properties); + TableMaterializeSettings.create = function create(properties) { + return new TableMaterializeSettings(properties); }; /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encode = function encode(message, writer) { + TableMaterializeSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); - if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); - if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); - if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); - if (message.table_settings != null && message.table_settings.length) - for (var i = 0; i < message.table_settings.length; ++i) - $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); - if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); - if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); - if (message.materialization_intent != null && Object.hasOwnProperty.call(message, "materialization_intent")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.materialization_intent); - if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.source_time_zone); - if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.target_time_zone); - if (message.source_shards != null && message.source_shards.length) - for (var i = 0; i < message.source_shards.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); + if (message.target_table != null && Object.hasOwnProperty.call(message, "target_table")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.target_table); + if (message.source_expression != null && Object.hasOwnProperty.call(message, "source_expression")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_expression); + if (message.create_ddl != null && Object.hasOwnProperty.call(message, "create_ddl")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.create_ddl); return writer; }; /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. + * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode + * @param {vtctldata.ITableMaterializeSettings} message TableMaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { + TableMaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer. + * Decodes a TableMaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.decode = function decode(reader, length) { + TableMaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.TableMaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.workflow = reader.string(); + message.target_table = reader.string(); break; case 2: - message.source_keyspace = reader.string(); + message.source_expression = reader.string(); break; case 3: - message.target_keyspace = reader.string(); - break; - case 4: - message.stop_after_copy = reader.bool(); - break; - case 5: - if (!(message.table_settings && message.table_settings.length)) - message.table_settings = []; - message.table_settings.push($root.vtctldata.TableMaterializeSettings.decode(reader, reader.uint32())); - break; - case 6: - message.cell = reader.string(); - break; - case 7: - message.tablet_types = reader.string(); - break; - case 8: - message.external_cluster = reader.string(); - break; - case 9: - message.materialization_intent = reader.int32(); - break; - case 10: - message.source_time_zone = reader.string(); - break; - case 11: - message.target_time_zone = reader.string(); - break; - case 12: - if (!(message.source_shards && message.source_shards.length)) - message.source_shards = []; - message.source_shards.push(reader.string()); + message.create_ddl = reader.string(); break; default: reader.skipType(tag & 7); @@ -80233,246 +80367,137 @@ $root.vtctldata = (function() { }; /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. + * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaterializeSettings.decodeDelimited = function decodeDelimited(reader) { + TableMaterializeSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaterializeSettings message. + * Verifies a TableMaterializeSettings message. * @function verify - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaterializeSettings.verify = function verify(message) { + TableMaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - if (!$util.isString(message.source_keyspace)) - return "source_keyspace: string expected"; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - if (!$util.isString(message.target_keyspace)) - return "target_keyspace: string expected"; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - if (typeof message.stop_after_copy !== "boolean") - return "stop_after_copy: boolean expected"; - if (message.table_settings != null && message.hasOwnProperty("table_settings")) { - if (!Array.isArray(message.table_settings)) - return "table_settings: array expected"; - for (var i = 0; i < message.table_settings.length; ++i) { - var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); - if (error) - return "table_settings." + error; - } - } - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - if (!$util.isString(message.tablet_types)) - return "tablet_types: string expected"; - if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) - if (!$util.isString(message.external_cluster)) - return "external_cluster: string expected"; - if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) - switch (message.materialization_intent) { - default: - return "materialization_intent: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - if (!$util.isString(message.source_time_zone)) - return "source_time_zone: string expected"; - if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) - if (!$util.isString(message.target_time_zone)) - return "target_time_zone: string expected"; - if (message.source_shards != null && message.hasOwnProperty("source_shards")) { - if (!Array.isArray(message.source_shards)) - return "source_shards: array expected"; - for (var i = 0; i < message.source_shards.length; ++i) - if (!$util.isString(message.source_shards[i])) - return "source_shards: string[] expected"; - } + if (message.target_table != null && message.hasOwnProperty("target_table")) + if (!$util.isString(message.target_table)) + return "target_table: string expected"; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + if (!$util.isString(message.source_expression)) + return "source_expression: string expected"; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + if (!$util.isString(message.create_ddl)) + return "create_ddl: string expected"; return null; }; /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static * @param {Object.} object Plain object - * @returns {vtctldata.MaterializeSettings} MaterializeSettings + * @returns {vtctldata.TableMaterializeSettings} TableMaterializeSettings */ - MaterializeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.MaterializeSettings) + TableMaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.TableMaterializeSettings) return object; - var message = new $root.vtctldata.MaterializeSettings(); - if (object.workflow != null) - message.workflow = String(object.workflow); - if (object.source_keyspace != null) - message.source_keyspace = String(object.source_keyspace); - if (object.target_keyspace != null) - message.target_keyspace = String(object.target_keyspace); - if (object.stop_after_copy != null) - message.stop_after_copy = Boolean(object.stop_after_copy); - if (object.table_settings) { - if (!Array.isArray(object.table_settings)) - throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); - message.table_settings = []; - for (var i = 0; i < object.table_settings.length; ++i) { - if (typeof object.table_settings[i] !== "object") - throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); - message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); - } - } - if (object.cell != null) - message.cell = String(object.cell); - if (object.tablet_types != null) - message.tablet_types = String(object.tablet_types); - if (object.external_cluster != null) - message.external_cluster = String(object.external_cluster); - switch (object.materialization_intent) { - case "CUSTOM": - case 0: - message.materialization_intent = 0; - break; - case "MOVETABLES": - case 1: - message.materialization_intent = 1; - break; - case "CREATELOOKUPINDEX": - case 2: - message.materialization_intent = 2; - break; - } - if (object.source_time_zone != null) - message.source_time_zone = String(object.source_time_zone); - if (object.target_time_zone != null) - message.target_time_zone = String(object.target_time_zone); - if (object.source_shards) { - if (!Array.isArray(object.source_shards)) - throw TypeError(".vtctldata.MaterializeSettings.source_shards: array expected"); - message.source_shards = []; - for (var i = 0; i < object.source_shards.length; ++i) - message.source_shards[i] = String(object.source_shards[i]); - } + var message = new $root.vtctldata.TableMaterializeSettings(); + if (object.target_table != null) + message.target_table = String(object.target_table); + if (object.source_expression != null) + message.source_expression = String(object.source_expression); + if (object.create_ddl != null) + message.create_ddl = String(object.create_ddl); return message; }; /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. + * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @static - * @param {vtctldata.MaterializeSettings} message MaterializeSettings + * @param {vtctldata.TableMaterializeSettings} message TableMaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaterializeSettings.toObject = function toObject(message, options) { + TableMaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.table_settings = []; - object.source_shards = []; - } if (options.defaults) { - object.workflow = ""; - object.source_keyspace = ""; - object.target_keyspace = ""; - object.stop_after_copy = false; - object.cell = ""; - object.tablet_types = ""; - object.external_cluster = ""; - object.materialization_intent = options.enums === String ? "CUSTOM" : 0; - object.source_time_zone = ""; - object.target_time_zone = ""; - } - if (message.workflow != null && message.hasOwnProperty("workflow")) - object.workflow = message.workflow; - if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) - object.source_keyspace = message.source_keyspace; - if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) - object.target_keyspace = message.target_keyspace; - if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) - object.stop_after_copy = message.stop_after_copy; - if (message.table_settings && message.table_settings.length) { - object.table_settings = []; - for (var j = 0; j < message.table_settings.length; ++j) - object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); - } - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; - if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) - object.tablet_types = message.tablet_types; - if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) - object.external_cluster = message.external_cluster; - if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) - object.materialization_intent = options.enums === String ? $root.vtctldata.MaterializationIntent[message.materialization_intent] : message.materialization_intent; - if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) - object.source_time_zone = message.source_time_zone; - if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) - object.target_time_zone = message.target_time_zone; - if (message.source_shards && message.source_shards.length) { - object.source_shards = []; - for (var j = 0; j < message.source_shards.length; ++j) - object.source_shards[j] = message.source_shards[j]; + object.target_table = ""; + object.source_expression = ""; + object.create_ddl = ""; } + if (message.target_table != null && message.hasOwnProperty("target_table")) + object.target_table = message.target_table; + if (message.source_expression != null && message.hasOwnProperty("source_expression")) + object.source_expression = message.source_expression; + if (message.create_ddl != null && message.hasOwnProperty("create_ddl")) + object.create_ddl = message.create_ddl; return object; }; /** - * Converts this MaterializeSettings to JSON. + * Converts this TableMaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.MaterializeSettings + * @memberof vtctldata.TableMaterializeSettings * @instance * @returns {Object.} JSON object */ - MaterializeSettings.prototype.toJSON = function toJSON() { + TableMaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaterializeSettings; + return TableMaterializeSettings; })(); - vtctldata.Keyspace = (function() { + vtctldata.MaterializeSettings = (function() { /** - * Properties of a Keyspace. + * Properties of a MaterializeSettings. * @memberof vtctldata - * @interface IKeyspace - * @property {string|null} [name] Keyspace name - * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace + * @interface IMaterializeSettings + * @property {string|null} [workflow] MaterializeSettings workflow + * @property {string|null} [source_keyspace] MaterializeSettings source_keyspace + * @property {string|null} [target_keyspace] MaterializeSettings target_keyspace + * @property {boolean|null} [stop_after_copy] MaterializeSettings stop_after_copy + * @property {Array.|null} [table_settings] MaterializeSettings table_settings + * @property {string|null} [cell] MaterializeSettings cell + * @property {string|null} [tablet_types] MaterializeSettings tablet_types + * @property {string|null} [external_cluster] MaterializeSettings external_cluster + * @property {vtctldata.MaterializationIntent|null} [materialization_intent] MaterializeSettings materialization_intent + * @property {string|null} [source_time_zone] MaterializeSettings source_time_zone + * @property {string|null} [target_time_zone] MaterializeSettings target_time_zone + * @property {Array.|null} [source_shards] MaterializeSettings source_shards */ /** - * Constructs a new Keyspace. + * Constructs a new MaterializeSettings. * @memberof vtctldata - * @classdesc Represents a Keyspace. - * @implements IKeyspace + * @classdesc Represents a MaterializeSettings. + * @implements IMaterializeSettings * @constructor - * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set */ - function Keyspace(properties) { + function MaterializeSettings(properties) { + this.table_settings = []; + this.source_shards = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80480,88 +80505,224 @@ $root.vtctldata = (function() { } /** - * Keyspace name. - * @member {string} name - * @memberof vtctldata.Keyspace + * MaterializeSettings workflow. + * @member {string} workflow + * @memberof vtctldata.MaterializeSettings * @instance */ - Keyspace.prototype.name = ""; + MaterializeSettings.prototype.workflow = ""; /** - * Keyspace keyspace. - * @member {topodata.IKeyspace|null|undefined} keyspace - * @memberof vtctldata.Keyspace - * @instance - */ - Keyspace.prototype.keyspace = null; + * MaterializeSettings source_keyspace. + * @member {string} source_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_keyspace = ""; /** - * Creates a new Keyspace instance using the specified properties. + * MaterializeSettings target_keyspace. + * @member {string} target_keyspace + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_keyspace = ""; + + /** + * MaterializeSettings stop_after_copy. + * @member {boolean} stop_after_copy + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.stop_after_copy = false; + + /** + * MaterializeSettings table_settings. + * @member {Array.} table_settings + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.table_settings = $util.emptyArray; + + /** + * MaterializeSettings cell. + * @member {string} cell + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.cell = ""; + + /** + * MaterializeSettings tablet_types. + * @member {string} tablet_types + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.tablet_types = ""; + + /** + * MaterializeSettings external_cluster. + * @member {string} external_cluster + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.external_cluster = ""; + + /** + * MaterializeSettings materialization_intent. + * @member {vtctldata.MaterializationIntent} materialization_intent + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.materialization_intent = 0; + + /** + * MaterializeSettings source_time_zone. + * @member {string} source_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_time_zone = ""; + + /** + * MaterializeSettings target_time_zone. + * @member {string} target_time_zone + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.target_time_zone = ""; + + /** + * MaterializeSettings source_shards. + * @member {Array.} source_shards + * @memberof vtctldata.MaterializeSettings + * @instance + */ + MaterializeSettings.prototype.source_shards = $util.emptyArray; + + /** + * Creates a new MaterializeSettings instance using the specified properties. * @function create - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IKeyspace=} [properties] Properties to set - * @returns {vtctldata.Keyspace} Keyspace instance + * @param {vtctldata.IMaterializeSettings=} [properties] Properties to set + * @returns {vtctldata.MaterializeSettings} MaterializeSettings instance */ - Keyspace.create = function create(properties) { - return new Keyspace(properties); + MaterializeSettings.create = function create(properties) { + return new MaterializeSettings(properties); }; /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encode - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encode = function encode(message, writer) { + MaterializeSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workflow != null && Object.hasOwnProperty.call(message, "workflow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.workflow); + if (message.source_keyspace != null && Object.hasOwnProperty.call(message, "source_keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_keyspace); + if (message.target_keyspace != null && Object.hasOwnProperty.call(message, "target_keyspace")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target_keyspace); + if (message.stop_after_copy != null && Object.hasOwnProperty.call(message, "stop_after_copy")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.stop_after_copy); + if (message.table_settings != null && message.table_settings.length) + for (var i = 0; i < message.table_settings.length; ++i) + $root.vtctldata.TableMaterializeSettings.encode(message.table_settings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.cell); + if (message.tablet_types != null && Object.hasOwnProperty.call(message, "tablet_types")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tablet_types); + if (message.external_cluster != null && Object.hasOwnProperty.call(message, "external_cluster")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.external_cluster); + if (message.materialization_intent != null && Object.hasOwnProperty.call(message, "materialization_intent")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.materialization_intent); + if (message.source_time_zone != null && Object.hasOwnProperty.call(message, "source_time_zone")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.source_time_zone); + if (message.target_time_zone != null && Object.hasOwnProperty.call(message, "target_time_zone")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.target_time_zone); + if (message.source_shards != null && message.source_shards.length) + for (var i = 0; i < message.source_shards.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.source_shards[i]); return writer; }; /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. + * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode + * @param {vtctldata.IMaterializeSettings} message MaterializeSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Keyspace.encodeDelimited = function encodeDelimited(message, writer) { + MaterializeSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Keyspace message from the specified reader or buffer. + * Decodes a MaterializeSettings message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vtctldata.MaterializeSettings} MaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decode = function decode(reader, length) { + MaterializeSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.MaterializeSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.workflow = reader.string(); break; case 2: - message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); + message.source_keyspace = reader.string(); + break; + case 3: + message.target_keyspace = reader.string(); + break; + case 4: + message.stop_after_copy = reader.bool(); + break; + case 5: + if (!(message.table_settings && message.table_settings.length)) + message.table_settings = []; + message.table_settings.push($root.vtctldata.TableMaterializeSettings.decode(reader, reader.uint32())); + break; + case 6: + message.cell = reader.string(); + break; + case 7: + message.tablet_types = reader.string(); + break; + case 8: + message.external_cluster = reader.string(); + break; + case 9: + message.materialization_intent = reader.int32(); + break; + case 10: + message.source_time_zone = reader.string(); + break; + case 11: + message.target_time_zone = reader.string(); + break; + case 12: + if (!(message.source_shards && message.source_shards.length)) + message.source_shards = []; + message.source_shards.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -80572,123 +80733,246 @@ $root.vtctldata = (function() { }; /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.Keyspace} Keyspace + * @returns {vtctldata.MaterializeSettings} MaterializeSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Keyspace.decodeDelimited = function decodeDelimited(reader) { + MaterializeSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Keyspace message. + * Verifies a MaterializeSettings message. * @function verify - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Keyspace.verify = function verify(message) { + MaterializeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) { - var error = $root.topodata.Keyspace.verify(message.keyspace); - if (error) - return "keyspace." + error; - } - return null; - }; - - /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.Keyspace - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.Keyspace} Keyspace - */ - Keyspace.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.Keyspace) - return object; - var message = new $root.vtctldata.Keyspace(); - if (object.name != null) - message.name = String(object.name); - if (object.keyspace != null) { - if (typeof object.keyspace !== "object") - throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); - message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + if (!$util.isString(message.source_keyspace)) + return "source_keyspace: string expected"; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + if (!$util.isString(message.target_keyspace)) + return "target_keyspace: string expected"; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + if (typeof message.stop_after_copy !== "boolean") + return "stop_after_copy: boolean expected"; + if (message.table_settings != null && message.hasOwnProperty("table_settings")) { + if (!Array.isArray(message.table_settings)) + return "table_settings: array expected"; + for (var i = 0; i < message.table_settings.length; ++i) { + var error = $root.vtctldata.TableMaterializeSettings.verify(message.table_settings[i]); + if (error) + return "table_settings." + error; + } + } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + if (!$util.isString(message.tablet_types)) + return "tablet_types: string expected"; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + if (!$util.isString(message.external_cluster)) + return "external_cluster: string expected"; + if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) + switch (message.materialization_intent) { + default: + return "materialization_intent: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + if (!$util.isString(message.source_time_zone)) + return "source_time_zone: string expected"; + if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) + if (!$util.isString(message.target_time_zone)) + return "target_time_zone: string expected"; + if (message.source_shards != null && message.hasOwnProperty("source_shards")) { + if (!Array.isArray(message.source_shards)) + return "source_shards: array expected"; + for (var i = 0; i < message.source_shards.length; ++i) + if (!$util.isString(message.source_shards[i])) + return "source_shards: string[] expected"; + } + return null; + }; + + /** + * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.MaterializeSettings + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.MaterializeSettings} MaterializeSettings + */ + MaterializeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.MaterializeSettings) + return object; + var message = new $root.vtctldata.MaterializeSettings(); + if (object.workflow != null) + message.workflow = String(object.workflow); + if (object.source_keyspace != null) + message.source_keyspace = String(object.source_keyspace); + if (object.target_keyspace != null) + message.target_keyspace = String(object.target_keyspace); + if (object.stop_after_copy != null) + message.stop_after_copy = Boolean(object.stop_after_copy); + if (object.table_settings) { + if (!Array.isArray(object.table_settings)) + throw TypeError(".vtctldata.MaterializeSettings.table_settings: array expected"); + message.table_settings = []; + for (var i = 0; i < object.table_settings.length; ++i) { + if (typeof object.table_settings[i] !== "object") + throw TypeError(".vtctldata.MaterializeSettings.table_settings: object expected"); + message.table_settings[i] = $root.vtctldata.TableMaterializeSettings.fromObject(object.table_settings[i]); + } + } + if (object.cell != null) + message.cell = String(object.cell); + if (object.tablet_types != null) + message.tablet_types = String(object.tablet_types); + if (object.external_cluster != null) + message.external_cluster = String(object.external_cluster); + switch (object.materialization_intent) { + case "CUSTOM": + case 0: + message.materialization_intent = 0; + break; + case "MOVETABLES": + case 1: + message.materialization_intent = 1; + break; + case "CREATELOOKUPINDEX": + case 2: + message.materialization_intent = 2; + break; + } + if (object.source_time_zone != null) + message.source_time_zone = String(object.source_time_zone); + if (object.target_time_zone != null) + message.target_time_zone = String(object.target_time_zone); + if (object.source_shards) { + if (!Array.isArray(object.source_shards)) + throw TypeError(".vtctldata.MaterializeSettings.source_shards: array expected"); + message.source_shards = []; + for (var i = 0; i < object.source_shards.length; ++i) + message.source_shards[i] = String(object.source_shards[i]); } return message; }; /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @static - * @param {vtctldata.Keyspace} message Keyspace + * @param {vtctldata.MaterializeSettings} message MaterializeSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Keyspace.toObject = function toObject(message, options) { + MaterializeSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.table_settings = []; + object.source_shards = []; + } if (options.defaults) { - object.name = ""; - object.keyspace = null; + object.workflow = ""; + object.source_keyspace = ""; + object.target_keyspace = ""; + object.stop_after_copy = false; + object.cell = ""; + object.tablet_types = ""; + object.external_cluster = ""; + object.materialization_intent = options.enums === String ? "CUSTOM" : 0; + object.source_time_zone = ""; + object.target_time_zone = ""; + } + if (message.workflow != null && message.hasOwnProperty("workflow")) + object.workflow = message.workflow; + if (message.source_keyspace != null && message.hasOwnProperty("source_keyspace")) + object.source_keyspace = message.source_keyspace; + if (message.target_keyspace != null && message.hasOwnProperty("target_keyspace")) + object.target_keyspace = message.target_keyspace; + if (message.stop_after_copy != null && message.hasOwnProperty("stop_after_copy")) + object.stop_after_copy = message.stop_after_copy; + if (message.table_settings && message.table_settings.length) { + object.table_settings = []; + for (var j = 0; j < message.table_settings.length; ++j) + object.table_settings[j] = $root.vtctldata.TableMaterializeSettings.toObject(message.table_settings[j], options); + } + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + if (message.tablet_types != null && message.hasOwnProperty("tablet_types")) + object.tablet_types = message.tablet_types; + if (message.external_cluster != null && message.hasOwnProperty("external_cluster")) + object.external_cluster = message.external_cluster; + if (message.materialization_intent != null && message.hasOwnProperty("materialization_intent")) + object.materialization_intent = options.enums === String ? $root.vtctldata.MaterializationIntent[message.materialization_intent] : message.materialization_intent; + if (message.source_time_zone != null && message.hasOwnProperty("source_time_zone")) + object.source_time_zone = message.source_time_zone; + if (message.target_time_zone != null && message.hasOwnProperty("target_time_zone")) + object.target_time_zone = message.target_time_zone; + if (message.source_shards && message.source_shards.length) { + object.source_shards = []; + for (var j = 0; j < message.source_shards.length; ++j) + object.source_shards[j] = message.source_shards[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); return object; }; /** - * Converts this Keyspace to JSON. + * Converts this MaterializeSettings to JSON. * @function toJSON - * @memberof vtctldata.Keyspace + * @memberof vtctldata.MaterializeSettings * @instance * @returns {Object.} JSON object */ - Keyspace.prototype.toJSON = function toJSON() { + MaterializeSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Keyspace; + return MaterializeSettings; })(); - vtctldata.Shard = (function() { + vtctldata.Keyspace = (function() { /** - * Properties of a Shard. + * Properties of a Keyspace. * @memberof vtctldata - * @interface IShard - * @property {string|null} [keyspace] Shard keyspace - * @property {string|null} [name] Shard name - * @property {topodata.IShard|null} [shard] Shard shard + * @interface IKeyspace + * @property {string|null} [name] Keyspace name + * @property {topodata.IKeyspace|null} [keyspace] Keyspace keyspace */ /** - * Constructs a new Shard. + * Constructs a new Keyspace. * @memberof vtctldata - * @classdesc Represents a Shard. - * @implements IShard + * @classdesc Represents a Keyspace. + * @implements IKeyspace * @constructor - * @param {vtctldata.IShard=} [properties] Properties to set + * @param {vtctldata.IKeyspace=} [properties] Properties to set */ - function Shard(properties) { + function Keyspace(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80696,101 +80980,317 @@ $root.vtctldata = (function() { } /** - * Shard keyspace. - * @member {string} keyspace - * @memberof vtctldata.Shard - * @instance - */ - Shard.prototype.keyspace = ""; - - /** - * Shard name. + * Keyspace name. * @member {string} name - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @instance */ - Shard.prototype.name = ""; + Keyspace.prototype.name = ""; /** - * Shard shard. - * @member {topodata.IShard|null|undefined} shard - * @memberof vtctldata.Shard + * Keyspace keyspace. + * @member {topodata.IKeyspace|null|undefined} keyspace + * @memberof vtctldata.Keyspace * @instance */ - Shard.prototype.shard = null; + Keyspace.prototype.keyspace = null; /** - * Creates a new Shard instance using the specified properties. + * Creates a new Keyspace instance using the specified properties. * @function create - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.IShard=} [properties] Properties to set - * @returns {vtctldata.Shard} Shard instance + * @param {vtctldata.IKeyspace=} [properties] Properties to set + * @returns {vtctldata.Keyspace} Keyspace instance */ - Shard.create = function create(properties) { - return new Shard(properties); + Keyspace.create = function create(properties) { + return new Keyspace(properties); }; /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encode - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encode = function encode(message, writer) { + Keyspace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + $root.topodata.Keyspace.encode(message.keyspace, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static - * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {vtctldata.IKeyspace} message Keyspace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Shard.encodeDelimited = function encodeDelimited(message, writer) { + Keyspace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Shard message from the specified reader or buffer. + * Decodes a Keyspace message from the specified reader or buffer. * @function decode - * @memberof vtctldata.Shard + * @memberof vtctldata.Keyspace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.Shard} Shard + * @returns {vtctldata.Keyspace} Keyspace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Shard.decode = function decode(reader, length) { + Keyspace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Keyspace(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.name = reader.string(); break; case 2: - message.name = reader.string(); + message.keyspace = $root.topodata.Keyspace.decode(reader, reader.uint32()); break; - case 3: - message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Keyspace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.Keyspace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.Keyspace} Keyspace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Keyspace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Keyspace message. + * @function verify + * @memberof vtctldata.Keyspace + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Keyspace.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) { + var error = $root.topodata.Keyspace.verify(message.keyspace); + if (error) + return "keyspace." + error; + } + return null; + }; + + /** + * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.Keyspace + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.Keyspace} Keyspace + */ + Keyspace.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.Keyspace) + return object; + var message = new $root.vtctldata.Keyspace(); + if (object.name != null) + message.name = String(object.name); + if (object.keyspace != null) { + if (typeof object.keyspace !== "object") + throw TypeError(".vtctldata.Keyspace.keyspace: object expected"); + message.keyspace = $root.topodata.Keyspace.fromObject(object.keyspace); + } + return message; + }; + + /** + * Creates a plain object from a Keyspace message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.Keyspace + * @static + * @param {vtctldata.Keyspace} message Keyspace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Keyspace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.keyspace = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = $root.topodata.Keyspace.toObject(message.keyspace, options); + return object; + }; + + /** + * Converts this Keyspace to JSON. + * @function toJSON + * @memberof vtctldata.Keyspace + * @instance + * @returns {Object.} JSON object + */ + Keyspace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Keyspace; + })(); + + vtctldata.Shard = (function() { + + /** + * Properties of a Shard. + * @memberof vtctldata + * @interface IShard + * @property {string|null} [keyspace] Shard keyspace + * @property {string|null} [name] Shard name + * @property {topodata.IShard|null} [shard] Shard shard + */ + + /** + * Constructs a new Shard. + * @memberof vtctldata + * @classdesc Represents a Shard. + * @implements IShard + * @constructor + * @param {vtctldata.IShard=} [properties] Properties to set + */ + function Shard(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Shard keyspace. + * @member {string} keyspace + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.keyspace = ""; + + /** + * Shard name. + * @member {string} name + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.name = ""; + + /** + * Shard shard. + * @member {topodata.IShard|null|undefined} shard + * @memberof vtctldata.Shard + * @instance + */ + Shard.prototype.shard = null; + + /** + * Creates a new Shard instance using the specified properties. + * @function create + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard=} [properties] Properties to set + * @returns {vtctldata.Shard} Shard instance + */ + Shard.create = function create(properties) { + return new Shard(properties); + }; + + /** + * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @function encode + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Shard.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + $root.topodata.Shard.encode(message.shard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.Shard + * @static + * @param {vtctldata.IShard} message Shard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Shard.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Shard message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.Shard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.Shard} Shard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Shard.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.Shard(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.shard = $root.topodata.Shard.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -82924,45 +83424,421 @@ $root.vtctldata = (function() { return object; }; - /** - * Converts this Log to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.Log - * @instance - * @returns {Object.} JSON object - */ - Log.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Log to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.Log + * @instance + * @returns {Object.} JSON object + */ + Log.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Log; + })(); + + return Stream; + })(); + + return Workflow; + })(); + + vtctldata.AddCellInfoRequest = (function() { + + /** + * Properties of an AddCellInfoRequest. + * @memberof vtctldata + * @interface IAddCellInfoRequest + * @property {string|null} [name] AddCellInfoRequest name + * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info + */ + + /** + * Constructs a new AddCellInfoRequest. + * @memberof vtctldata + * @classdesc Represents an AddCellInfoRequest. + * @implements IAddCellInfoRequest + * @constructor + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + */ + function AddCellInfoRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AddCellInfoRequest name. + * @member {string} name + * @memberof vtctldata.AddCellInfoRequest + * @instance + */ + AddCellInfoRequest.prototype.name = ""; + + /** + * AddCellInfoRequest cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.AddCellInfoRequest + * @instance + */ + AddCellInfoRequest.prototype.cell_info = null; + + /** + * Creates a new AddCellInfoRequest instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance + */ + AddCellInfoRequest.create = function create(properties) { + return new AddCellInfoRequest(properties); + }; + + /** + * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddCellInfoRequest message. + * @function verify + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellInfoRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; + } + return null; + }; + + /** + * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + */ + AddCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoRequest) + return object; + var message = new $root.vtctldata.AddCellInfoRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + } + return message; + }; + + /** + * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellInfoRequest + * @static + * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellInfoRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.cell_info = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + return object; + }; + + /** + * Converts this AddCellInfoRequest to JSON. + * @function toJSON + * @memberof vtctldata.AddCellInfoRequest + * @instance + * @returns {Object.} JSON object + */ + AddCellInfoRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AddCellInfoRequest; + })(); + + vtctldata.AddCellInfoResponse = (function() { + + /** + * Properties of an AddCellInfoResponse. + * @memberof vtctldata + * @interface IAddCellInfoResponse + */ + + /** + * Constructs a new AddCellInfoResponse. + * @memberof vtctldata + * @classdesc Represents an AddCellInfoResponse. + * @implements IAddCellInfoResponse + * @constructor + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + */ + function AddCellInfoResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new AddCellInfoResponse instance using the specified properties. + * @function create + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance + */ + AddCellInfoResponse.create = function create(properties) { + return new AddCellInfoResponse(properties); + }; + + /** + * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @function encode + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * @function decode + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Log; - })(); + /** + * Verifies an AddCellInfoResponse message. + * @function verify + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddCellInfoResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - return Stream; - })(); + /** + * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + */ + AddCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoResponse) + return object; + return new $root.vtctldata.AddCellInfoResponse(); + }; - return Workflow; + /** + * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof vtctldata.AddCellInfoResponse + * @static + * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddCellInfoResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AddCellInfoResponse to JSON. + * @function toJSON + * @memberof vtctldata.AddCellInfoResponse + * @instance + * @returns {Object.} JSON object + */ + AddCellInfoResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AddCellInfoResponse; })(); - vtctldata.AddCellInfoRequest = (function() { + vtctldata.AddCellsAliasRequest = (function() { /** - * Properties of an AddCellInfoRequest. + * Properties of an AddCellsAliasRequest. * @memberof vtctldata - * @interface IAddCellInfoRequest - * @property {string|null} [name] AddCellInfoRequest name - * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info + * @interface IAddCellsAliasRequest + * @property {string|null} [name] AddCellsAliasRequest name + * @property {Array.|null} [cells] AddCellsAliasRequest cells */ /** - * Constructs a new AddCellInfoRequest. + * Constructs a new AddCellsAliasRequest. * @memberof vtctldata - * @classdesc Represents an AddCellInfoRequest. - * @implements IAddCellInfoRequest + * @classdesc Represents an AddCellsAliasRequest. + * @implements IAddCellsAliasRequest * @constructor - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set */ - function AddCellInfoRequest(properties) { + function AddCellsAliasRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82970,80 +83846,81 @@ $root.vtctldata = (function() { } /** - * AddCellInfoRequest name. + * AddCellsAliasRequest name. * @member {string} name - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @instance */ - AddCellInfoRequest.prototype.name = ""; + AddCellsAliasRequest.prototype.name = ""; /** - * AddCellInfoRequest cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.AddCellInfoRequest + * AddCellsAliasRequest cells. + * @member {Array.} cells + * @memberof vtctldata.AddCellsAliasRequest * @instance */ - AddCellInfoRequest.prototype.cell_info = null; + AddCellsAliasRequest.prototype.cells = $util.emptyArray; /** - * Creates a new AddCellInfoRequest instance using the specified properties. + * Creates a new AddCellsAliasRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance */ - AddCellInfoRequest.create = function create(properties) { - return new AddCellInfoRequest(properties); + AddCellsAliasRequest.create = function create(properties) { + return new AddCellsAliasRequest(properties); }; /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encode = function encode(message, writer) { + AddCellsAliasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) - $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); return writer; }; /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoRequest.decode = function decode(reader, length) { + AddCellsAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83051,7 +83928,9 @@ $root.vtctldata = (function() { message.name = reader.string(); break; case 2: - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -83062,120 +83941,127 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { + AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoRequest message. + * Verifies an AddCellsAliasRequest message. * @function verify - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellInfoRequest.verify = function verify(message) { + AddCellsAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } return null; }; /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest */ - AddCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoRequest) + AddCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasRequest) return object; - var message = new $root.vtctldata.AddCellInfoRequest(); + var message = new $root.vtctldata.AddCellsAliasRequest(); if (object.name != null) message.name = String(object.name); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } return message; }; /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest + * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoRequest.toObject = function toObject(message, options) { + AddCellsAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.cells = []; + if (options.defaults) object.name = ""; - object.cell_info = null; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } return object; }; /** - * Converts this AddCellInfoRequest to JSON. + * Converts this AddCellsAliasRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoRequest + * @memberof vtctldata.AddCellsAliasRequest * @instance * @returns {Object.} JSON object */ - AddCellInfoRequest.prototype.toJSON = function toJSON() { + AddCellsAliasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellInfoRequest; + return AddCellsAliasRequest; })(); - vtctldata.AddCellInfoResponse = (function() { + vtctldata.AddCellsAliasResponse = (function() { /** - * Properties of an AddCellInfoResponse. + * Properties of an AddCellsAliasResponse. * @memberof vtctldata - * @interface IAddCellInfoResponse + * @interface IAddCellsAliasResponse */ /** - * Constructs a new AddCellInfoResponse. + * Constructs a new AddCellsAliasResponse. * @memberof vtctldata - * @classdesc Represents an AddCellInfoResponse. - * @implements IAddCellInfoResponse + * @classdesc Represents an AddCellsAliasResponse. + * @implements IAddCellsAliasResponse * @constructor - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set */ - function AddCellInfoResponse(properties) { + function AddCellsAliasResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83183,60 +84069,60 @@ $root.vtctldata = (function() { } /** - * Creates a new AddCellInfoResponse instance using the specified properties. + * Creates a new AddCellsAliasResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance */ - AddCellInfoResponse.create = function create(properties) { - return new AddCellInfoResponse(properties); + AddCellsAliasResponse.create = function create(properties) { + return new AddCellsAliasResponse(properties); }; /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encode = function encode(message, writer) { + AddCellsAliasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoResponse.decode = function decode(reader, length) { + AddCellsAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83249,96 +84135,97 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { + AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellInfoResponse message. + * Verifies an AddCellsAliasResponse message. * @function verify - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellInfoResponse.verify = function verify(message) { + AddCellsAliasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse */ - AddCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoResponse) + AddCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasResponse) return object; - return new $root.vtctldata.AddCellInfoResponse(); + return new $root.vtctldata.AddCellsAliasResponse(); }; /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse + * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellInfoResponse.toObject = function toObject() { + AddCellsAliasResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddCellInfoResponse to JSON. + * Converts this AddCellsAliasResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellInfoResponse + * @memberof vtctldata.AddCellsAliasResponse * @instance * @returns {Object.} JSON object */ - AddCellInfoResponse.prototype.toJSON = function toJSON() { + AddCellsAliasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellInfoResponse; + return AddCellsAliasResponse; })(); - vtctldata.AddCellsAliasRequest = (function() { + vtctldata.ApplyRoutingRulesRequest = (function() { /** - * Properties of an AddCellsAliasRequest. + * Properties of an ApplyRoutingRulesRequest. * @memberof vtctldata - * @interface IAddCellsAliasRequest - * @property {string|null} [name] AddCellsAliasRequest name - * @property {Array.|null} [cells] AddCellsAliasRequest cells + * @interface IApplyRoutingRulesRequest + * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules + * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells */ /** - * Constructs a new AddCellsAliasRequest. + * Constructs a new ApplyRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasRequest. - * @implements IAddCellsAliasRequest + * @classdesc Represents an ApplyRoutingRulesRequest. + * @implements IApplyRoutingRulesRequest * @constructor - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set */ - function AddCellsAliasRequest(properties) { - this.cells = []; + function ApplyRoutingRulesRequest(properties) { + this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83346,91 +84233,104 @@ $root.vtctldata = (function() { } /** - * AddCellsAliasRequest name. - * @member {string} name - * @memberof vtctldata.AddCellsAliasRequest + * ApplyRoutingRulesRequest routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - AddCellsAliasRequest.prototype.name = ""; + ApplyRoutingRulesRequest.prototype.routing_rules = null; /** - * AddCellsAliasRequest cells. - * @member {Array.} cells - * @memberof vtctldata.AddCellsAliasRequest + * ApplyRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - AddCellsAliasRequest.prototype.cells = $util.emptyArray; + ApplyRoutingRulesRequest.prototype.skip_rebuild = false; /** - * Creates a new AddCellsAliasRequest instance using the specified properties. + * ApplyRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyRoutingRulesRequest + * @instance + */ + ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + + /** + * Creates a new ApplyRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance */ - AddCellsAliasRequest.create = function create(properties) { - return new AddCellsAliasRequest(properties); + ApplyRoutingRulesRequest.create = function create(properties) { + return new ApplyRoutingRulesRequest(properties); }; /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encode = function encode(message, writer) { + ApplyRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.rebuild_cells != null && message.rebuild_cells.length) + for (var i = 0; i < message.rebuild_cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); return writer; }; /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decode = function decode(reader, length) { + ApplyRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); break; case 2: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.skip_rebuild = reader.bool(); + break; + case 3: + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -83441,127 +84341,141 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasRequest message. + * Verifies an ApplyRoutingRulesRequest message. * @function verify - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasRequest.verify = function verify(message) { + ApplyRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (error) + return "routing_rules." + error; + } + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { + if (!Array.isArray(message.rebuild_cells)) + return "rebuild_cells: array expected"; + for (var i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; } return null; }; /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest - */ - AddCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasRequest) - return object; - var message = new $root.vtctldata.AddCellsAliasRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + * @memberof vtctldata.ApplyRoutingRulesRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + */ + ApplyRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) + return object; + var message = new $root.vtctldata.ApplyRoutingRulesRequest(); + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + } + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.rebuild_cells) { + if (!Array.isArray(object.rebuild_cells)) + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (var i = 0; i < object.rebuild_cells.length; ++i) + message.rebuild_cells[i] = String(object.rebuild_cells[i]); } return message; }; /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasRequest.toObject = function toObject(message, options) { + ApplyRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.cells = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.rebuild_cells = []; + if (options.defaults) { + object.routing_rules = null; + object.skip_rebuild = false; + } + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (var j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; } return object; }; /** - * Converts this AddCellsAliasRequest to JSON. + * Converts this ApplyRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - AddCellsAliasRequest.prototype.toJSON = function toJSON() { + ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasRequest; + return ApplyRoutingRulesRequest; })(); - vtctldata.AddCellsAliasResponse = (function() { + vtctldata.ApplyRoutingRulesResponse = (function() { /** - * Properties of an AddCellsAliasResponse. + * Properties of an ApplyRoutingRulesResponse. * @memberof vtctldata - * @interface IAddCellsAliasResponse + * @interface IApplyRoutingRulesResponse */ /** - * Constructs a new AddCellsAliasResponse. + * Constructs a new ApplyRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasResponse. - * @implements IAddCellsAliasResponse + * @classdesc Represents an ApplyRoutingRulesResponse. + * @implements IApplyRoutingRulesResponse * @constructor - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set */ - function AddCellsAliasResponse(properties) { + function ApplyRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83569,60 +84483,60 @@ $root.vtctldata = (function() { } /** - * Creates a new AddCellsAliasResponse instance using the specified properties. + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance */ - AddCellsAliasResponse.create = function create(properties) { - return new AddCellsAliasResponse(properties); + ApplyRoutingRulesResponse.create = function create(properties) { + return new ApplyRoutingRulesResponse(properties); }; /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encode = function encode(message, writer) { + ApplyRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decode = function decode(reader, length) { + ApplyRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83635,96 +84549,96 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasResponse message. + * Verifies an ApplyRoutingRulesResponse message. * @function verify - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasResponse.verify = function verify(message) { + ApplyRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse */ - AddCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasResponse) + ApplyRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) return object; - return new $root.vtctldata.AddCellsAliasResponse(); + return new $root.vtctldata.ApplyRoutingRulesResponse(); }; /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasResponse.toObject = function toObject() { + ApplyRoutingRulesResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddCellsAliasResponse to JSON. + * Converts this ApplyRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - AddCellsAliasResponse.prototype.toJSON = function toJSON() { + ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasResponse; + return ApplyRoutingRulesResponse; })(); - vtctldata.ApplyRoutingRulesRequest = (function() { + vtctldata.ApplyShardRoutingRulesRequest = (function() { /** - * Properties of an ApplyRoutingRulesRequest. + * Properties of an ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @interface IApplyRoutingRulesRequest - * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules - * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells + * @interface IApplyShardRoutingRulesRequest + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules + * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells */ /** - * Constructs a new ApplyRoutingRulesRequest. + * Constructs a new ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesRequest. - * @implements IApplyRoutingRulesRequest + * @classdesc Represents an ApplyShardRoutingRulesRequest. + * @implements IApplyShardRoutingRulesRequest * @constructor - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set */ - function ApplyRoutingRulesRequest(properties) { + function ApplyShardRoutingRulesRequest(properties) { this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -83733,55 +84647,55 @@ $root.vtctldata = (function() { } /** - * ApplyRoutingRulesRequest routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vtctldata.ApplyRoutingRulesRequest + * ApplyShardRoutingRulesRequest shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplyRoutingRulesRequest.prototype.routing_rules = null; + ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; /** - * ApplyRoutingRulesRequest skip_rebuild. + * ApplyShardRoutingRulesRequest skip_rebuild. * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; /** - * ApplyRoutingRulesRequest rebuild_cells. + * ApplyShardRoutingRulesRequest rebuild_cells. * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance */ - ApplyRoutingRulesRequest.create = function create(properties) { - return new ApplyRoutingRulesRequest(properties); + ApplyShardRoutingRulesRequest.create = function create(properties) { + return new ApplyShardRoutingRulesRequest(properties); }; /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encode = function encode(message, writer) { + ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) + $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); if (message.rebuild_cells != null && message.rebuild_cells.length) @@ -83791,38 +84705,38 @@ $root.vtctldata = (function() { }; /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decode = function decode(reader, length) { + ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); break; case 2: message.skip_rebuild = reader.bool(); @@ -83841,36 +84755,36 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesRequest message. + * Verifies an ApplyShardRoutingRulesRequest message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesRequest.verify = function verify(message) { + ApplyShardRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); if (error) - return "routing_rules." + error; + return "shard_routing_rules." + error; } if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) if (typeof message.skip_rebuild !== "boolean") @@ -83886,27 +84800,27 @@ $root.vtctldata = (function() { }; /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest */ - ApplyRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) + ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) return object; - var message = new $root.vtctldata.ApplyRoutingRulesRequest(); - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); + var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); } if (object.skip_rebuild != null) message.skip_rebuild = Boolean(object.skip_rebuild); if (object.rebuild_cells) { if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); message.rebuild_cells = []; for (var i = 0; i < object.rebuild_cells.length; ++i) message.rebuild_cells[i] = String(object.rebuild_cells[i]); @@ -83915,26 +84829,26 @@ $root.vtctldata = (function() { }; /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest + * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesRequest.toObject = function toObject(message, options) { + ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.rebuild_cells = []; if (options.defaults) { - object.routing_rules = null; + object.shard_routing_rules = null; object.skip_rebuild = false; } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) object.skip_rebuild = message.skip_rebuild; if (message.rebuild_cells && message.rebuild_cells.length) { @@ -83946,36 +84860,36 @@ $root.vtctldata = (function() { }; /** - * Converts this ApplyRoutingRulesRequest to JSON. + * Converts this ApplyShardRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesRequest; + return ApplyShardRoutingRulesRequest; })(); - vtctldata.ApplyRoutingRulesResponse = (function() { + vtctldata.ApplyShardRoutingRulesResponse = (function() { /** - * Properties of an ApplyRoutingRulesResponse. + * Properties of an ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @interface IApplyRoutingRulesResponse + * @interface IApplyShardRoutingRulesResponse */ /** - * Constructs a new ApplyRoutingRulesResponse. + * Constructs a new ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesResponse. - * @implements IApplyRoutingRulesResponse + * @classdesc Represents an ApplyShardRoutingRulesResponse. + * @implements IApplyShardRoutingRulesResponse * @constructor - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set */ - function ApplyRoutingRulesResponse(properties) { + function ApplyShardRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83983,60 +84897,60 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance */ - ApplyRoutingRulesResponse.create = function create(properties) { - return new ApplyRoutingRulesResponse(properties); + ApplyShardRoutingRulesResponse.create = function create(properties) { + return new ApplyShardRoutingRulesResponse(properties); }; /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encode = function encode(message, writer) { + ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decode = function decode(reader, length) { + ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84049,97 +84963,104 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesResponse message. + * Verifies an ApplyShardRoutingRulesResponse message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesResponse.verify = function verify(message) { + ApplyShardRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse */ - ApplyRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) + ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) return object; - return new $root.vtctldata.ApplyRoutingRulesResponse(); + return new $root.vtctldata.ApplyShardRoutingRulesResponse(); }; /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse + * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesResponse.toObject = function toObject() { + ApplyShardRoutingRulesResponse.toObject = function toObject() { return {}; }; /** - * Converts this ApplyRoutingRulesResponse to JSON. + * Converts this ApplyShardRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesResponse; + return ApplyShardRoutingRulesResponse; })(); - vtctldata.ApplyShardRoutingRulesRequest = (function() { + vtctldata.ApplySchemaRequest = (function() { /** - * Properties of an ApplyShardRoutingRulesRequest. + * Properties of an ApplySchemaRequest. * @memberof vtctldata - * @interface IApplyShardRoutingRulesRequest - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules - * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells + * @interface IApplySchemaRequest + * @property {string|null} [keyspace] ApplySchemaRequest keyspace + * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability + * @property {Array.|null} [sql] ApplySchemaRequest sql + * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy + * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list + * @property {string|null} [migration_context] ApplySchemaRequest migration_context + * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout + * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight + * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id */ /** - * Constructs a new ApplyShardRoutingRulesRequest. + * Constructs a new ApplySchemaRequest. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesRequest. - * @implements IApplyShardRoutingRulesRequest + * @classdesc Represents an ApplySchemaRequest. + * @implements IApplySchemaRequest * @constructor - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set */ - function ApplyShardRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function ApplySchemaRequest(properties) { + this.sql = []; + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84147,104 +85068,185 @@ $root.vtctldata = (function() { } /** - * ApplyShardRoutingRulesRequest shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplySchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; + ApplySchemaRequest.prototype.keyspace = ""; /** - * ApplyShardRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplySchemaRequest allow_long_unavailability. + * @member {boolean} allow_long_unavailability + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; + ApplySchemaRequest.prototype.allow_long_unavailability = false; /** - * ApplyShardRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplySchemaRequest sql. + * @member {Array.} sql + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + ApplySchemaRequest.prototype.sql = $util.emptyArray; /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * ApplySchemaRequest ddl_strategy. + * @member {string} ddl_strategy + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.ddl_strategy = ""; + + /** + * ApplySchemaRequest uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; + + /** + * ApplySchemaRequest migration_context. + * @member {string} migration_context + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.migration_context = ""; + + /** + * ApplySchemaRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.wait_replicas_timeout = null; + + /** + * ApplySchemaRequest skip_preflight. + * @member {boolean} skip_preflight + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.skip_preflight = false; + + /** + * ApplySchemaRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.caller_id = null; + + /** + * Creates a new ApplySchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesRequest - * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance + * @memberof vtctldata.ApplySchemaRequest + * @static + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance */ - ApplyShardRoutingRulesRequest.create = function create(properties) { - return new ApplyShardRoutingRulesRequest(properties); + ApplySchemaRequest.create = function create(properties) { + return new ApplySchemaRequest(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { + ApplySchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) - $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.rebuild_cells != null && message.rebuild_cells.length) - for (var i = 0; i < message.rebuild_cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); + if (message.sql != null && message.sql.length) + for (var i = 0; i < message.sql.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); + if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); + if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * Decodes an ApplySchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { + ApplySchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.skip_rebuild = reader.bool(); + message.allow_long_unavailability = reader.bool(); break; case 3: - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + if (!(message.sql && message.sql.length)) + message.sql = []; + message.sql.push(reader.string()); + break; + case 4: + message.ddl_strategy = reader.string(); + break; + case 5: + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); + break; + case 6: + message.migration_context = reader.string(); + break; + case 7: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + case 8: + message.skip_preflight = reader.bool(); + break; + case 9: + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -84255,141 +85257,209 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesRequest message. + * Verifies an ApplySchemaRequest message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesRequest.verify = function verify(message) { + ApplySchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + if (typeof message.allow_long_unavailability !== "boolean") + return "allow_long_unavailability: boolean expected"; + if (message.sql != null && message.hasOwnProperty("sql")) { + if (!Array.isArray(message.sql)) + return "sql: array expected"; + for (var i = 0; i < message.sql.length; ++i) + if (!$util.isString(message.sql[i])) + return "sql: string[] expected"; + } + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + if (!$util.isString(message.ddl_strategy)) + return "ddl_strategy: string expected"; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + if (!$util.isString(message.migration_context)) + return "migration_context: string expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); if (error) - return "shard_routing_rules." + error; + return "wait_replicas_timeout." + error; } - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { - if (!Array.isArray(message.rebuild_cells)) - return "rebuild_cells: array expected"; - for (var i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + if (typeof message.skip_preflight !== "boolean") + return "skip_preflight: boolean expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; } return null; }; /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest */ - ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) + ApplySchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaRequest) return object; - var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + var message = new $root.vtctldata.ApplySchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.allow_long_unavailability != null) + message.allow_long_unavailability = Boolean(object.allow_long_unavailability); + if (object.sql) { + if (!Array.isArray(object.sql)) + throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); + message.sql = []; + for (var i = 0; i < object.sql.length; ++i) + message.sql[i] = String(object.sql[i]); } - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.rebuild_cells) { - if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (var i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + if (object.ddl_strategy != null) + message.ddl_strategy = String(object.ddl_strategy); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + if (object.migration_context != null) + message.migration_context = String(object.migration_context); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } + if (object.skip_preflight != null) + message.skip_preflight = Boolean(object.skip_preflight); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } return message; }; /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest + * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { + ApplySchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rebuild_cells = []; + if (options.arrays || options.defaults) { + object.sql = []; + object.uuid_list = []; + } if (options.defaults) { - object.shard_routing_rules = null; - object.skip_rebuild = false; + object.keyspace = ""; + object.allow_long_unavailability = false; + object.ddl_strategy = ""; + object.migration_context = ""; + object.wait_replicas_timeout = null; + object.skip_preflight = false; + object.caller_id = null; } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.rebuild_cells && message.rebuild_cells.length) { - object.rebuild_cells = []; - for (var j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + object.allow_long_unavailability = message.allow_long_unavailability; + if (message.sql && message.sql.length) { + object.sql = []; + for (var j = 0; j < message.sql.length; ++j) + object.sql[j] = message.sql[j]; + } + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + object.ddl_strategy = message.ddl_strategy; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; } + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + object.migration_context = message.migration_context; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + object.skip_preflight = message.skip_preflight; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ApplyShardRoutingRulesRequest to JSON. + * Converts this ApplySchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplySchemaRequest * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { + ApplySchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyShardRoutingRulesRequest; + return ApplySchemaRequest; })(); - vtctldata.ApplyShardRoutingRulesResponse = (function() { + vtctldata.ApplySchemaResponse = (function() { /** - * Properties of an ApplyShardRoutingRulesResponse. + * Properties of an ApplySchemaResponse. * @memberof vtctldata - * @interface IApplyShardRoutingRulesResponse + * @interface IApplySchemaResponse + * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list */ /** - * Constructs a new ApplyShardRoutingRulesResponse. + * Constructs a new ApplySchemaResponse. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesResponse. - * @implements IApplyShardRoutingRulesResponse + * @classdesc Represents an ApplySchemaResponse. + * @implements IApplySchemaResponse * @constructor - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set */ - function ApplyShardRoutingRulesResponse(properties) { + function ApplySchemaResponse(properties) { + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84397,63 +85467,79 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * ApplySchemaResponse uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaResponse + * @instance + */ + ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + + /** + * Creates a new ApplySchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance */ - ApplyShardRoutingRulesResponse.create = function create(properties) { - return new ApplyShardRoutingRulesResponse(properties); + ApplySchemaResponse.create = function create(properties) { + return new ApplySchemaResponse(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { + ApplySchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes an ApplySchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { + ApplySchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -84463,104 +85549,125 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesResponse message. + * Verifies an ApplySchemaResponse message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesResponse.verify = function verify(message) { + ApplySchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } return null; }; /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse */ - ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) + ApplySchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaResponse) return object; - return new $root.vtctldata.ApplyShardRoutingRulesResponse(); + var message = new $root.vtctldata.ApplySchemaResponse(); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + return message; }; /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse + * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesResponse.toObject = function toObject() { - return {}; + ApplySchemaResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uuid_list = []; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; + } + return object; }; /** - * Converts this ApplyShardRoutingRulesResponse to JSON. + * Converts this ApplySchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplySchemaResponse * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { + ApplySchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyShardRoutingRulesResponse; + return ApplySchemaResponse; })(); - vtctldata.ApplySchemaRequest = (function() { + vtctldata.ApplyVSchemaRequest = (function() { /** - * Properties of an ApplySchemaRequest. + * Properties of an ApplyVSchemaRequest. * @memberof vtctldata - * @interface IApplySchemaRequest - * @property {string|null} [keyspace] ApplySchemaRequest keyspace - * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability - * @property {Array.|null} [sql] ApplySchemaRequest sql - * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy - * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list - * @property {string|null} [migration_context] ApplySchemaRequest migration_context - * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout - * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight - * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id + * @interface IApplyVSchemaRequest + * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace + * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild + * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run + * @property {Array.|null} [cells] ApplyVSchemaRequest cells + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema + * @property {string|null} [sql] ApplyVSchemaRequest sql */ /** - * Constructs a new ApplySchemaRequest. + * Constructs a new ApplyVSchemaRequest. * @memberof vtctldata - * @classdesc Represents an ApplySchemaRequest. - * @implements IApplySchemaRequest + * @classdesc Represents an ApplyVSchemaRequest. + * @implements IApplyVSchemaRequest * @constructor - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set */ - function ApplySchemaRequest(properties) { - this.sql = []; - this.uuid_list = []; + function ApplyVSchemaRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84568,152 +85675,121 @@ $root.vtctldata = (function() { } /** - * ApplySchemaRequest keyspace. + * ApplyVSchemaRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.keyspace = ""; - - /** - * ApplySchemaRequest allow_long_unavailability. - * @member {boolean} allow_long_unavailability - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.allow_long_unavailability = false; - - /** - * ApplySchemaRequest sql. - * @member {Array.} sql - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.sql = $util.emptyArray; - - /** - * ApplySchemaRequest ddl_strategy. - * @member {string} ddl_strategy - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.ddl_strategy = ""; + ApplyVSchemaRequest.prototype.keyspace = ""; /** - * ApplySchemaRequest uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaRequest + * ApplyVSchemaRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; + ApplyVSchemaRequest.prototype.skip_rebuild = false; /** - * ApplySchemaRequest migration_context. - * @member {string} migration_context - * @memberof vtctldata.ApplySchemaRequest + * ApplyVSchemaRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.migration_context = ""; + ApplyVSchemaRequest.prototype.dry_run = false; /** - * ApplySchemaRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.ApplySchemaRequest + * ApplyVSchemaRequest cells. + * @member {Array.} cells + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.wait_replicas_timeout = null; + ApplyVSchemaRequest.prototype.cells = $util.emptyArray; /** - * ApplySchemaRequest skip_preflight. - * @member {boolean} skip_preflight - * @memberof vtctldata.ApplySchemaRequest + * ApplyVSchemaRequest v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.skip_preflight = false; + ApplyVSchemaRequest.prototype.v_schema = null; /** - * ApplySchemaRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.ApplySchemaRequest + * ApplyVSchemaRequest sql. + * @member {string} sql + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - ApplySchemaRequest.prototype.caller_id = null; + ApplyVSchemaRequest.prototype.sql = ""; /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new ApplyVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance */ - ApplySchemaRequest.create = function create(properties) { - return new ApplySchemaRequest(properties); + ApplyVSchemaRequest.create = function create(properties) { + return new ApplyVSchemaRequest(properties); }; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encode = function encode(message, writer) { + ApplyVSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); - if (message.sql != null && message.sql.length) - for (var i = 0; i < message.sql.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); - if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); - if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); return writer; }; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaRequest.decode = function decode(reader, length) { + ApplyVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84721,32 +85797,21 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.allow_long_unavailability = reader.bool(); + message.skip_rebuild = reader.bool(); break; case 3: - if (!(message.sql && message.sql.length)) - message.sql = []; - message.sql.push(reader.string()); + message.dry_run = reader.bool(); break; case 4: - message.ddl_strategy = reader.string(); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; case 5: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; case 6: - message.migration_context = reader.string(); - break; - case 7: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - case 8: - message.skip_preflight = reader.bool(); - break; - case 9: - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + message.sql = reader.string(); break; default: reader.skipType(tag & 7); @@ -84757,209 +85822,166 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaRequest message. + * Verifies an ApplyVSchemaRequest message. * @function verify - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplySchemaRequest.verify = function verify(message) { + ApplyVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - if (typeof message.allow_long_unavailability !== "boolean") - return "allow_long_unavailability: boolean expected"; - if (message.sql != null && message.hasOwnProperty("sql")) { - if (!Array.isArray(message.sql)) - return "sql: array expected"; - for (var i = 0; i < message.sql.length; ++i) - if (!$util.isString(message.sql[i])) - return "sql: string[] expected"; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - if (!$util.isString(message.ddl_strategy)) - return "ddl_strategy: string expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; - } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - if (!$util.isString(message.migration_context)) - return "migration_context: string expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); - if (error) - return "wait_replicas_timeout." + error; + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - if (typeof message.skip_preflight !== "boolean") - return "skip_preflight: boolean expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.caller_id); + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); if (error) - return "caller_id." + error; + return "v_schema." + error; } + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; return null; }; /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest */ - ApplySchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaRequest) + ApplyVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaRequest) return object; - var message = new $root.vtctldata.ApplySchemaRequest(); + var message = new $root.vtctldata.ApplyVSchemaRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.allow_long_unavailability != null) - message.allow_long_unavailability = Boolean(object.allow_long_unavailability); - if (object.sql) { - if (!Array.isArray(object.sql)) - throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); - message.sql = []; - for (var i = 0; i < object.sql.length; ++i) - message.sql[i] = String(object.sql[i]); - } - if (object.ddl_strategy != null) - message.ddl_strategy = String(object.ddl_strategy); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); - } - if (object.migration_context != null) - message.migration_context = String(object.migration_context); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.skip_preflight != null) - message.skip_preflight = Boolean(object.skip_preflight); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } + if (object.sql != null) + message.sql = String(object.sql); return message; }; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest + * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaRequest.toObject = function toObject(message, options) { + ApplyVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sql = []; - object.uuid_list = []; - } + if (options.arrays || options.defaults) + object.cells = []; if (options.defaults) { object.keyspace = ""; - object.allow_long_unavailability = false; - object.ddl_strategy = ""; - object.migration_context = ""; - object.wait_replicas_timeout = null; - object.skip_preflight = false; - object.caller_id = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - object.allow_long_unavailability = message.allow_long_unavailability; - if (message.sql && message.sql.length) { - object.sql = []; - for (var j = 0; j < message.sql.length; ++j) - object.sql[j] = message.sql[j]; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - object.ddl_strategy = message.ddl_strategy; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; + object.skip_rebuild = false; + object.dry_run = false; + object.v_schema = null; + object.sql = ""; } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - object.migration_context = message.migration_context; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) - object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - object.skip_preflight = message.skip_preflight; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; return object; }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this ApplyVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyVSchemaRequest * @instance * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.toJSON = function toJSON() { + ApplyVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaRequest; + return ApplyVSchemaRequest; })(); - vtctldata.ApplySchemaResponse = (function() { + vtctldata.ApplyVSchemaResponse = (function() { /** - * Properties of an ApplySchemaResponse. + * Properties of an ApplyVSchemaResponse. * @memberof vtctldata - * @interface IApplySchemaResponse - * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list + * @interface IApplyVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema */ /** - * Constructs a new ApplySchemaResponse. + * Constructs a new ApplyVSchemaResponse. * @memberof vtctldata - * @classdesc Represents an ApplySchemaResponse. - * @implements IApplySchemaResponse + * @classdesc Represents an ApplyVSchemaResponse. + * @implements IApplyVSchemaResponse * @constructor - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set */ - function ApplySchemaResponse(properties) { - this.uuid_list = []; + function ApplyVSchemaResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84967,78 +85989,75 @@ $root.vtctldata = (function() { } /** - * ApplySchemaResponse uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaResponse + * ApplyVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaResponse * @instance */ - ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; + ApplyVSchemaResponse.prototype.v_schema = null; /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * Creates a new ApplyVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance */ - ApplySchemaResponse.create = function create(properties) { - return new ApplySchemaResponse(properties); + ApplyVSchemaResponse.create = function create(properties) { + return new ApplyVSchemaResponse(properties); }; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encode = function encode(message, writer) { + ApplyVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decode = function decode(reader, length) { + ApplyVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85049,125 +86068,114 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaResponse message. + * Verifies an ApplyVSchemaResponse message. * @function verify - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplySchemaResponse.verify = function verify(message) { + ApplyVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); + if (error) + return "v_schema." + error; } return null; }; /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse */ - ApplySchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaResponse) + ApplyVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaResponse) return object; - var message = new $root.vtctldata.ApplySchemaResponse(); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); + var message = new $root.vtctldata.ApplyVSchemaResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } return message; }; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse + * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaResponse.toObject = function toObject(message, options) { + ApplyVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uuid_list = []; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; - } + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); return object; }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this ApplyVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyVSchemaResponse * @instance * @returns {Object.} JSON object */ - ApplySchemaResponse.prototype.toJSON = function toJSON() { + ApplyVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaResponse; + return ApplyVSchemaResponse; })(); - vtctldata.ApplyVSchemaRequest = (function() { + vtctldata.BackupRequest = (function() { /** - * Properties of an ApplyVSchemaRequest. + * Properties of a BackupRequest. * @memberof vtctldata - * @interface IApplyVSchemaRequest - * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace - * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild - * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run - * @property {Array.|null} [cells] ApplyVSchemaRequest cells - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema - * @property {string|null} [sql] ApplyVSchemaRequest sql + * @interface IBackupRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias + * @property {boolean|null} [allow_primary] BackupRequest allow_primary + * @property {number|Long|null} [concurrency] BackupRequest concurrency */ /** - * Constructs a new ApplyVSchemaRequest. + * Constructs a new BackupRequest. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaRequest. - * @implements IApplyVSchemaRequest + * @classdesc Represents a BackupRequest. + * @implements IBackupRequest * @constructor - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IBackupRequest=} [properties] Properties to set */ - function ApplyVSchemaRequest(properties) { - this.cells = []; + function BackupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85175,143 +86183,101 @@ $root.vtctldata = (function() { } /** - * ApplyVSchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ApplyVSchemaRequest - * @instance - */ - ApplyVSchemaRequest.prototype.keyspace = ""; - - /** - * ApplyVSchemaRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyVSchemaRequest - * @instance - */ - ApplyVSchemaRequest.prototype.skip_rebuild = false; - - /** - * ApplyVSchemaRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ApplyVSchemaRequest - * @instance - */ - ApplyVSchemaRequest.prototype.dry_run = false; - - /** - * ApplyVSchemaRequest cells. - * @member {Array.} cells - * @memberof vtctldata.ApplyVSchemaRequest + * BackupRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupRequest * @instance */ - ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + BackupRequest.prototype.tablet_alias = null; /** - * ApplyVSchemaRequest v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaRequest + * BackupRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.BackupRequest * @instance */ - ApplyVSchemaRequest.prototype.v_schema = null; + BackupRequest.prototype.allow_primary = false; /** - * ApplyVSchemaRequest sql. - * @member {string} sql - * @memberof vtctldata.ApplyVSchemaRequest + * BackupRequest concurrency. + * @member {number|Long} concurrency + * @memberof vtctldata.BackupRequest * @instance */ - ApplyVSchemaRequest.prototype.sql = ""; + BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. + * Creates a new BackupRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance + * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @returns {vtctldata.BackupRequest} BackupRequest instance */ - ApplyVSchemaRequest.create = function create(properties) { - return new ApplyVSchemaRequest(properties); + BackupRequest.create = function create(properties) { + return new BackupRequest(properties); }; /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encode = function encode(message, writer) { + BackupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); return writer; }; /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * Decodes a BackupRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decode = function decode(reader, length) { + BackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - message.skip_rebuild = reader.bool(); + message.allow_primary = reader.bool(); break; case 3: - message.dry_run = reader.bool(); - break; - case 4: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); - break; - case 5: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); - break; - case 6: - message.sql = reader.string(); + message.concurrency = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -85322,242 +86288,261 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + BackupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaRequest message. + * Verifies a BackupRequest message. * @function verify - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaRequest.verify = function verify(message) { + BackupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; - } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "v_schema." + error; + return "tablet_alias." + error; } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) + return "concurrency: integer|Long expected"; return null; }; /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.BackupRequest} BackupRequest */ - ApplyVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaRequest) + BackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupRequest) return object; - var message = new $root.vtctldata.ApplyVSchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); - } - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + var message = new $root.vtctldata.BackupRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.sql != null) - message.sql = String(object.sql); + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.concurrency != null) + if ($util.Long) + (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; + else if (typeof object.concurrency === "string") + message.concurrency = parseInt(object.concurrency, 10); + else if (typeof object.concurrency === "number") + message.concurrency = object.concurrency; + else if (typeof object.concurrency === "object") + message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest + * @param {vtctldata.BackupRequest} message BackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaRequest.toObject = function toObject(message, options) { + BackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; if (options.defaults) { - object.keyspace = ""; - object.skip_rebuild = false; - object.dry_run = false; - object.v_schema = null; - object.sql = ""; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + object.tablet_alias = null; + object.allow_primary = false; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.concurrency = options.longs === String ? "0" : 0; } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (typeof message.concurrency === "number") + object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; + else + object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this ApplyVSchemaRequest to JSON. + * Converts this BackupRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.BackupRequest * @instance * @returns {Object.} JSON object */ - ApplyVSchemaRequest.prototype.toJSON = function toJSON() { + BackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaRequest; + return BackupRequest; })(); - vtctldata.ApplyVSchemaResponse = (function() { + vtctldata.BackupResponse = (function() { /** - * Properties of an ApplyVSchemaResponse. + * Properties of a BackupResponse. * @memberof vtctldata - * @interface IApplyVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema + * @interface IBackupResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias + * @property {string|null} [keyspace] BackupResponse keyspace + * @property {string|null} [shard] BackupResponse shard + * @property {logutil.IEvent|null} [event] BackupResponse event */ /** - * Constructs a new ApplyVSchemaResponse. + * Constructs a new BackupResponse. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaResponse. - * @implements IApplyVSchemaResponse + * @classdesc Represents a BackupResponse. + * @implements IBackupResponse * @constructor - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + */ + function BackupResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackupResponse tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.tablet_alias = null; + + /** + * BackupResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.BackupResponse + * @instance */ - function ApplyVSchemaResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + BackupResponse.prototype.keyspace = ""; /** - * ApplyVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaResponse + * BackupResponse shard. + * @member {string} shard + * @memberof vtctldata.BackupResponse * @instance */ - ApplyVSchemaResponse.prototype.v_schema = null; + BackupResponse.prototype.shard = ""; /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. + * BackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.event = null; + + /** + * Creates a new BackupResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @returns {vtctldata.BackupResponse} BackupResponse instance */ - ApplyVSchemaResponse.create = function create(properties) { - return new ApplyVSchemaResponse(properties); + BackupResponse.create = function create(properties) { + return new BackupResponse(properties); }; /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encode = function encode(message, writer) { + BackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * Decodes a BackupResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decode = function decode(reader, length) { + BackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + message.keyspace = reader.string(); + break; + case 3: + message.shard = reader.string(); + break; + case 4: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85568,114 +86553,145 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + BackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaResponse message. + * Verifies a BackupResponse message. * @function verify - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaResponse.verify = function verify(message) { + BackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) - return "v_schema." + error; + return "tablet_alias." + error; + } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; } return null; }; /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.BackupResponse} BackupResponse */ - ApplyVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaResponse) + BackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupResponse) return object; - var message = new $root.vtctldata.ApplyVSchemaResponse(); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + var message = new $root.vtctldata.BackupResponse(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.BackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); } return message; }; /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {vtctldata.BackupResponse} message BackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaResponse.toObject = function toObject(message, options) { + BackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (options.defaults) { + object.tablet_alias = null; + object.keyspace = ""; + object.shard = ""; + object.event = null; + } + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); return object; }; /** - * Converts this ApplyVSchemaResponse to JSON. + * Converts this BackupResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.BackupResponse * @instance * @returns {Object.} JSON object */ - ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + BackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaResponse; + return BackupResponse; })(); - vtctldata.BackupRequest = (function() { + vtctldata.BackupShardRequest = (function() { /** - * Properties of a BackupRequest. + * Properties of a BackupShardRequest. * @memberof vtctldata - * @interface IBackupRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias - * @property {boolean|null} [allow_primary] BackupRequest allow_primary - * @property {number|Long|null} [concurrency] BackupRequest concurrency + * @interface IBackupShardRequest + * @property {string|null} [keyspace] BackupShardRequest keyspace + * @property {string|null} [shard] BackupShardRequest shard + * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary + * @property {number|Long|null} [concurrency] BackupShardRequest concurrency */ /** - * Constructs a new BackupRequest. + * Constructs a new BackupShardRequest. * @memberof vtctldata - * @classdesc Represents a BackupRequest. - * @implements IBackupRequest + * @classdesc Represents a BackupShardRequest. + * @implements IBackupShardRequest * @constructor - * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set */ - function BackupRequest(properties) { + function BackupShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85683,100 +86699,113 @@ $root.vtctldata = (function() { } /** - * BackupRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupRequest + * BackupShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.BackupShardRequest * @instance */ - BackupRequest.prototype.tablet_alias = null; + BackupShardRequest.prototype.keyspace = ""; /** - * BackupRequest allow_primary. + * BackupShardRequest shard. + * @member {string} shard + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.shard = ""; + + /** + * BackupShardRequest allow_primary. * @member {boolean} allow_primary - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @instance */ - BackupRequest.prototype.allow_primary = false; + BackupShardRequest.prototype.allow_primary = false; /** - * BackupRequest concurrency. + * BackupShardRequest concurrency. * @member {number|Long} concurrency - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @instance */ - BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new BackupRequest instance using the specified properties. + * Creates a new BackupShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IBackupRequest=} [properties] Properties to set - * @returns {vtctldata.BackupRequest} BackupRequest instance + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance */ - BackupRequest.create = function create(properties) { - return new BackupRequest(properties); + BackupShardRequest.create = function create(properties) { + return new BackupShardRequest(properties); }; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer) { + BackupShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); return writer; }; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes a BackupShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decode = function decode(reader, length) { + BackupShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.allow_primary = reader.bool(); + message.shard = reader.string(); break; case 3: + message.allow_primary = reader.bool(); + break; + case 4: message.concurrency = reader.uint64(); break; default: @@ -85788,37 +86817,38 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decodeDelimited = function decodeDelimited(reader) { + BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupRequest message. + * Verifies a BackupShardRequest message. * @function verify - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupRequest.verify = function verify(message) { + BackupShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) if (typeof message.allow_primary !== "boolean") return "allow_primary: boolean expected"; @@ -85829,22 +86859,21 @@ $root.vtctldata = (function() { }; /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.BackupShardRequest} BackupShardRequest */ - BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupRequest) + BackupShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupShardRequest) return object; - var message = new $root.vtctldata.BackupRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } + var message = new $root.vtctldata.BackupShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); if (object.allow_primary != null) message.allow_primary = Boolean(object.allow_primary); if (object.concurrency != null) @@ -85860,20 +86889,21 @@ $root.vtctldata = (function() { }; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.BackupRequest} message BackupRequest + * @param {vtctldata.BackupShardRequest} message BackupShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options) { + BackupShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.tablet_alias = null; + object.keyspace = ""; + object.shard = ""; object.allow_primary = false; if ($util.Long) { var long = new $util.Long(0, 0, true); @@ -85881,8 +86911,10 @@ $root.vtctldata = (function() { } else object.concurrency = options.longs === String ? "0" : 0; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) object.allow_primary = message.allow_primary; if (message.concurrency != null && message.hasOwnProperty("concurrency")) @@ -85894,40 +86926,40 @@ $root.vtctldata = (function() { }; /** - * Converts this BackupRequest to JSON. + * Converts this BackupShardRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.BackupShardRequest * @instance * @returns {Object.} JSON object */ - BackupRequest.prototype.toJSON = function toJSON() { + BackupShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupRequest; + return BackupShardRequest; })(); - vtctldata.BackupResponse = (function() { + vtctldata.ChangeTabletTagsRequest = (function() { /** - * Properties of a BackupResponse. + * Properties of a ChangeTabletTagsRequest. * @memberof vtctldata - * @interface IBackupResponse - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias - * @property {string|null} [keyspace] BackupResponse keyspace - * @property {string|null} [shard] BackupResponse shard - * @property {logutil.IEvent|null} [event] BackupResponse event + * @interface IChangeTabletTagsRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTagsRequest tablet_alias + * @property {Object.|null} [tags] ChangeTabletTagsRequest tags + * @property {boolean|null} [replace] ChangeTabletTagsRequest replace */ /** - * Constructs a new BackupResponse. + * Constructs a new ChangeTabletTagsRequest. * @memberof vtctldata - * @classdesc Represents a BackupResponse. - * @implements IBackupResponse + * @classdesc Represents a ChangeTabletTagsRequest. + * @implements IChangeTabletTagsRequest * @constructor - * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set */ - function BackupResponse(properties) { + function ChangeTabletTagsRequest(properties) { + this.tags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85935,100 +86967,91 @@ $root.vtctldata = (function() { } /** - * BackupResponse tablet_alias. + * ChangeTabletTagsRequest tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupResponse - * @instance - */ - BackupResponse.prototype.tablet_alias = null; - - /** - * BackupResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.keyspace = ""; + ChangeTabletTagsRequest.prototype.tablet_alias = null; /** - * BackupResponse shard. - * @member {string} shard - * @memberof vtctldata.BackupResponse + * ChangeTabletTagsRequest tags. + * @member {Object.} tags + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.shard = ""; + ChangeTabletTagsRequest.prototype.tags = $util.emptyObject; /** - * BackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.BackupResponse + * ChangeTabletTagsRequest replace. + * @member {boolean} replace + * @memberof vtctldata.ChangeTabletTagsRequest * @instance */ - BackupResponse.prototype.event = null; + ChangeTabletTagsRequest.prototype.replace = false; /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new ChangeTabletTagsRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse=} [properties] Properties to set - * @returns {vtctldata.BackupResponse} BackupResponse instance + * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest instance */ - BackupResponse.create = function create(properties) { - return new BackupResponse(properties); + ChangeTabletTagsRequest.create = function create(properties) { + return new ChangeTabletTagsRequest(properties); }; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer) { + ChangeTabletTagsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); return writer; }; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decode = function decode(reader, length) { + ChangeTabletTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -86036,13 +87059,29 @@ $root.vtctldata = (function() { message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - message.keyspace = reader.string(); + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.tags[key] = value; break; case 3: - message.shard = reader.string(); - break; - case 4: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.replace = reader.bool(); break; default: reader.skipType(tag & 7); @@ -86053,30 +87092,30 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTagsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupResponse message. + * Verifies a ChangeTabletTagsRequest message. * @function verify - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupResponse.verify = function verify(message) { + ChangeTabletTagsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -86084,114 +87123,116 @@ $root.vtctldata = (function() { if (error) return "tablet_alias." + error; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); - if (error) - return "event." + error; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; } + if (message.replace != null && message.hasOwnProperty("replace")) + if (typeof message.replace !== "boolean") + return "replace: boolean expected"; return null; }; /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest */ - BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupResponse) + ChangeTabletTagsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) return object; - var message = new $root.vtctldata.BackupResponse(); + var message = new $root.vtctldata.ChangeTabletTagsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); + throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.BackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); + if (object.tags) { + if (typeof object.tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); + message.tags = {}; + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + message.tags[keys[i]] = String(object.tags[keys[i]]); } + if (object.replace != null) + message.replace = Boolean(object.replace); return message; }; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @static - * @param {vtctldata.BackupResponse} message BackupResponse + * @param {vtctldata.ChangeTabletTagsRequest} message ChangeTabletTagsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options) { + ChangeTabletTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.tags = {}; if (options.defaults) { object.tablet_alias = null; - object.keyspace = ""; - object.shard = ""; - object.event = null; + object.replace = false; } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + var keys2; + if (message.tags && (keys2 = Object.keys(message.tags)).length) { + object.tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.tags[keys2[j]] = message.tags[keys2[j]]; + } + if (message.replace != null && message.hasOwnProperty("replace")) + object.replace = message.replace; return object; }; /** - * Converts this BackupResponse to JSON. + * Converts this ChangeTabletTagsRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ChangeTabletTagsRequest * @instance * @returns {Object.} JSON object */ - BackupResponse.prototype.toJSON = function toJSON() { + ChangeTabletTagsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupResponse; + return ChangeTabletTagsRequest; })(); - vtctldata.BackupShardRequest = (function() { + vtctldata.ChangeTabletTagsResponse = (function() { /** - * Properties of a BackupShardRequest. + * Properties of a ChangeTabletTagsResponse. * @memberof vtctldata - * @interface IBackupShardRequest - * @property {string|null} [keyspace] BackupShardRequest keyspace - * @property {string|null} [shard] BackupShardRequest shard - * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary - * @property {number|Long|null} [concurrency] BackupShardRequest concurrency + * @interface IChangeTabletTagsResponse + * @property {Object.|null} [before_tags] ChangeTabletTagsResponse before_tags + * @property {Object.|null} [after_tags] ChangeTabletTagsResponse after_tags */ /** - * Constructs a new BackupShardRequest. + * Constructs a new ChangeTabletTagsResponse. * @memberof vtctldata - * @classdesc Represents a BackupShardRequest. - * @implements IBackupShardRequest + * @classdesc Represents a ChangeTabletTagsResponse. + * @implements IChangeTabletTagsResponse * @constructor - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set */ - function BackupShardRequest(properties) { + function ChangeTabletTagsResponse(properties) { + this.before_tags = {}; + this.after_tags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86199,114 +87240,128 @@ $root.vtctldata = (function() { } /** - * BackupShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.keyspace = ""; - - /** - * BackupShardRequest shard. - * @member {string} shard - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.shard = ""; - - /** - * BackupShardRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.BackupShardRequest + * ChangeTabletTagsResponse before_tags. + * @member {Object.} before_tags + * @memberof vtctldata.ChangeTabletTagsResponse * @instance */ - BackupShardRequest.prototype.allow_primary = false; + ChangeTabletTagsResponse.prototype.before_tags = $util.emptyObject; /** - * BackupShardRequest concurrency. - * @member {number|Long} concurrency - * @memberof vtctldata.BackupShardRequest + * ChangeTabletTagsResponse after_tags. + * @member {Object.} after_tags + * @memberof vtctldata.ChangeTabletTagsResponse * @instance */ - BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ChangeTabletTagsResponse.prototype.after_tags = $util.emptyObject; /** - * Creates a new BackupShardRequest instance using the specified properties. + * Creates a new ChangeTabletTagsResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set - * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance + * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse instance */ - BackupShardRequest.create = function create(properties) { - return new BackupShardRequest(properties); + ChangeTabletTagsResponse.create = function create(properties) { + return new ChangeTabletTagsResponse(properties); }; /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encode = function encode(message, writer) { + ChangeTabletTagsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); + if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) + for (var keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); + if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) + for (var keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + ChangeTabletTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer. + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decode = function decode(reader, length) { + ChangeTabletTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.before_tags[key] = value; break; case 2: - message.shard = reader.string(); - break; - case 3: - message.allow_primary = reader.bool(); - break; - case 4: - message.concurrency = reader.uint64(); + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.after_tags[key] = value; break; default: reader.skipType(tag & 7); @@ -86317,126 +87372,123 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { + ChangeTabletTagsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupShardRequest message. + * Verifies a ChangeTabletTagsResponse message. * @function verify - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupShardRequest.verify = function verify(message) { + ChangeTabletTagsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) - return "concurrency: integer|Long expected"; + if (message.before_tags != null && message.hasOwnProperty("before_tags")) { + if (!$util.isObject(message.before_tags)) + return "before_tags: object expected"; + var key = Object.keys(message.before_tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.before_tags[key[i]])) + return "before_tags: string{k:string} expected"; + } + if (message.after_tags != null && message.hasOwnProperty("after_tags")) { + if (!$util.isObject(message.after_tags)) + return "after_tags: object expected"; + var key = Object.keys(message.after_tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.after_tags[key[i]])) + return "after_tags: string{k:string} expected"; + } return null; }; /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse */ - BackupShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupShardRequest) + ChangeTabletTagsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) return object; - var message = new $root.vtctldata.BackupShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.concurrency != null) - if ($util.Long) - (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; - else if (typeof object.concurrency === "string") - message.concurrency = parseInt(object.concurrency, 10); - else if (typeof object.concurrency === "number") - message.concurrency = object.concurrency; - else if (typeof object.concurrency === "object") - message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); + var message = new $root.vtctldata.ChangeTabletTagsResponse(); + if (object.before_tags) { + if (typeof object.before_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); + message.before_tags = {}; + for (var keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); + } + if (object.after_tags) { + if (typeof object.after_tags !== "object") + throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); + message.after_tags = {}; + for (var keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); + } return message; }; /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @static - * @param {vtctldata.BackupShardRequest} message BackupShardRequest + * @param {vtctldata.ChangeTabletTagsResponse} message ChangeTabletTagsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupShardRequest.toObject = function toObject(message, options) { + ChangeTabletTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.keyspace = ""; - object.shard = ""; - object.allow_primary = false; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.concurrency = options.longs === String ? "0" : 0; + if (options.objects || options.defaults) { + object.before_tags = {}; + object.after_tags = {}; + } + var keys2; + if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { + object.before_tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; + } + if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { + object.after_tags = {}; + for (var j = 0; j < keys2.length; ++j) + object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (typeof message.concurrency === "number") - object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; - else - object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this BackupShardRequest to JSON. + * Converts this ChangeTabletTagsResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.ChangeTabletTagsResponse * @instance * @returns {Object.} JSON object */ - BackupShardRequest.prototype.toJSON = function toJSON() { + ChangeTabletTagsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupShardRequest; + return ChangeTabletTagsResponse; })(); vtctldata.ChangeTabletTagsRequest = (function() { @@ -86461,7 +87513,7 @@ $root.vtctldata = (function() { function ChangeTabletTagsRequest(properties) { this.tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -86517,7 +87569,7 @@ $root.vtctldata = (function() { if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); @@ -86551,38 +87603,41 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - if (message.tags === $util.emptyObject) - message.tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.tags === $util.emptyObject) + message.tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.tags[key] = value; + break; + } + case 3: { + message.replace = reader.bool(); + break; } - message.tags[key] = value; - break; - case 3: - message.replace = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -86619,15 +87674,15 @@ $root.vtctldata = (function() { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + let error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) return "tablet_alias." + error; } if (message.tags != null && message.hasOwnProperty("tags")) { if (!$util.isObject(message.tags)) return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) + let key = Object.keys(message.tags); + for (let i = 0; i < key.length; ++i) if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } @@ -86648,7 +87703,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) return object; - var message = new $root.vtctldata.ChangeTabletTagsRequest(); + let message = new $root.vtctldata.ChangeTabletTagsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); @@ -86658,7 +87713,7 @@ $root.vtctldata = (function() { if (typeof object.tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); message.tags = {}; - for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } if (object.replace != null) @@ -86678,7 +87733,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; + let object = {}; if (options.objects || options.defaults) object.tags = {}; if (options.defaults) { @@ -86687,10 +87742,10 @@ $root.vtctldata = (function() { } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - var keys2; + let keys2; if (message.tags && (keys2 = Object.keys(message.tags)).length) { object.tags = {}; - for (var j = 0; j < keys2.length; ++j) + for (let j = 0; j < keys2.length; ++j) object.tags[keys2[j]] = message.tags[keys2[j]]; } if (message.replace != null && message.hasOwnProperty("replace")) @@ -86709,6 +87764,21 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeTabletTagsRequest + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTagsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTagsRequest"; + }; + return ChangeTabletTagsRequest; })(); @@ -86734,7 +87804,7 @@ $root.vtctldata = (function() { this.before_tags = {}; this.after_tags = {}; if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -86780,10 +87850,10 @@ $root.vtctldata = (function() { if (!writer) writer = $Writer.create(); if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) - for (var keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) - for (var keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; @@ -86815,54 +87885,56 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; while (reader.pos < end) { - var tag = reader.uint32(); + let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.before_tags === $util.emptyObject) - message.before_tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.before_tags[key] = value; + break; } - message.before_tags[key] = value; - break; - case 2: - if (message.after_tags === $util.emptyObject) - message.after_tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 2: { + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + let end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + let tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.after_tags[key] = value; + break; } - message.after_tags[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -86901,16 +87973,16 @@ $root.vtctldata = (function() { if (message.before_tags != null && message.hasOwnProperty("before_tags")) { if (!$util.isObject(message.before_tags)) return "before_tags: object expected"; - var key = Object.keys(message.before_tags); - for (var i = 0; i < key.length; ++i) + let key = Object.keys(message.before_tags); + for (let i = 0; i < key.length; ++i) if (!$util.isString(message.before_tags[key[i]])) return "before_tags: string{k:string} expected"; } if (message.after_tags != null && message.hasOwnProperty("after_tags")) { if (!$util.isObject(message.after_tags)) return "after_tags: object expected"; - var key = Object.keys(message.after_tags); - for (var i = 0; i < key.length; ++i) + let key = Object.keys(message.after_tags); + for (let i = 0; i < key.length; ++i) if (!$util.isString(message.after_tags[key[i]])) return "after_tags: string{k:string} expected"; } @@ -86928,19 +88000,19 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) return object; - var message = new $root.vtctldata.ChangeTabletTagsResponse(); + let message = new $root.vtctldata.ChangeTabletTagsResponse(); if (object.before_tags) { if (typeof object.before_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); message.before_tags = {}; - for (var keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); } if (object.after_tags) { if (typeof object.after_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); message.after_tags = {}; - for (var keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); } return message; @@ -86958,20 +88030,20 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; + let object = {}; if (options.objects || options.defaults) { object.before_tags = {}; object.after_tags = {}; } - var keys2; + let keys2; if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { object.before_tags = {}; - for (var j = 0; j < keys2.length; ++j) + for (let j = 0; j < keys2.length; ++j) object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; } if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { object.after_tags = {}; - for (var j = 0; j < keys2.length; ++j) + for (let j = 0; j < keys2.length; ++j) object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; } return object; @@ -86988,6 +88060,21 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ChangeTabletTagsResponse + * @function getTypeUrl + * @memberof vtctldata.ChangeTabletTagsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChangeTabletTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/vtctldata.ChangeTabletTagsResponse"; + }; + return ChangeTabletTagsResponse; })(); From d827600eda1b1385056f2ccecd923442b8e17ba0 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 20:42:59 +0200 Subject: [PATCH 7/9] fix test Signed-off-by: Tim Vaillancourt --- go/vt/vtctl/grpcvtctldserver/server_test.go | 202 -------------------- 1 file changed, 202 deletions(-) diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 3e1c0369698..6f4d6f933a0 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -1146,8 +1146,6 @@ func TestChangeTabletTags(t *testing.T) { } for _, tt := range tests { - tt := tt - t.Run(tt.name, func(t *testing.T) { t.Parallel() @@ -1213,206 +1211,6 @@ func TestChangeTabletTags(t *testing.T) { }) } -func TestChangeTabletTags(t *testing.T) { - t.Parallel() - - tests := []struct { - name string - cells []string - tablet *topodatapb.Tablet - req *vtctldatapb.ChangeTabletTagsRequest - expected *vtctldatapb.ChangeTabletTagsResponse - shouldErr bool - }{ - { - name: "success", - cells: []string{"zone1"}, - tablet: &topodatapb.Tablet{ - Alias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Keyspace: "ks", - Shard: "0", - }, - req: &vtctldatapb.ChangeTabletTagsRequest{ - TabletAlias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Tags: map[string]string{ - "test": t.Name(), - }, - }, - expected: &vtctldatapb.ChangeTabletTagsResponse{ - AfterTags: map[string]string{ - "test": t.Name(), - }, - }, - shouldErr: false, - }, - { - name: "success with existing", - cells: []string{"zone1"}, - tablet: &topodatapb.Tablet{ - Alias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Keyspace: "ks", - Shard: "0", - Tags: map[string]string{ - "delete": "me", - "hello": "world!", - }, - }, - req: &vtctldatapb.ChangeTabletTagsRequest{ - TabletAlias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Tags: map[string]string{ - "delete": "", - "test": t.Name(), - }, - }, - expected: &vtctldatapb.ChangeTabletTagsResponse{ - BeforeTags: map[string]string{ - "delete": "me", - "hello": "world!", - }, - AfterTags: map[string]string{ - "hello": "world!", - "test": t.Name(), - }, - }, - shouldErr: false, - }, - { - name: "success with replace", - cells: []string{"zone1"}, - tablet: &topodatapb.Tablet{ - Alias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Keyspace: "ks", - Shard: "0", - Tags: map[string]string{ - "hello": "world!", - }, - }, - req: &vtctldatapb.ChangeTabletTagsRequest{ - TabletAlias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Tags: map[string]string{ - "test": t.Name(), - }, - Replace: true, - }, - expected: &vtctldatapb.ChangeTabletTagsResponse{ - BeforeTags: map[string]string{ - "hello": "world!", - }, - AfterTags: map[string]string{ - "test": t.Name(), - }, - }, - shouldErr: false, - }, - { - name: "tablet not found", - cells: []string{"zone1"}, - tablet: &topodatapb.Tablet{ - Alias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 200, - }, - Keyspace: "ks", - Shard: "0", - }, - req: &vtctldatapb.ChangeTabletTagsRequest{ - TabletAlias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Tags: map[string]string{ - "test": t.Name(), - }, - }, - expected: nil, - shouldErr: true, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - t.Parallel() - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - ts := memorytopo.NewServer(ctx, tt.cells...) - vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ - TopoServer: ts, - }, func(ts *topo.Server) vtctlservicepb.VtctldServer { - return NewVtctldServer(vtenv.NewTestEnv(), ts) - }) - - testutil.AddTablets(ctx, t, ts, &testutil.AddTabletOptions{ - AlsoSetShardPrimary: true, - }, tt.tablet) - - resp, err := vtctld.ChangeTabletTags(ctx, tt.req) - if tt.shouldErr { - assert.Error(t, err) - return - } - assert.NoError(t, err) - utils.MustMatch(t, tt.expected, resp) - - tablet, err := ts.GetTablet(ctx, tt.req.TabletAlias) - assert.NoError(t, err) - utils.MustMatch(t, resp.AfterTags, tablet.Tags) - }) - } - - t.Run("tabletmanager failure", func(t *testing.T) { - t.Parallel() - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - ts := memorytopo.NewServer(ctx, "zone1") - vtctld := testutil.NewVtctldServerWithTabletManagerClient(t, ts, &testutil.TabletManagerClient{ - TopoServer: nil, - }, func(ts *topo.Server) vtctlservicepb.VtctldServer { - return NewVtctldServer(vtenv.NewTestEnv(), ts) - }) - - testutil.AddTablet(ctx, t, ts, &topodatapb.Tablet{ - Alias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Keyspace: "ks", - Shard: "0", - Type: topodatapb.TabletType_REPLICA, - }, nil) - - _, err := vtctld.ChangeTabletTags(ctx, &vtctldatapb.ChangeTabletTagsRequest{ - TabletAlias: &topodatapb.TabletAlias{ - Cell: "zone1", - Uid: 100, - }, - Tags: map[string]string{ - "test": t.Name(), - }, - }) - assert.Error(t, err) - }) -} - func TestChangeTabletType(t *testing.T) { t.Parallel() From f919d2672a4c84b332bef63e567e77df794b01eb Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 20:58:13 +0200 Subject: [PATCH 8/9] `make vtadmin_web_proto_types` Signed-off-by: Tim Vaillancourt --- web/vtadmin/src/proto/vtadmin.d.ts | 39597 --------------------------- web/vtadmin/src/proto/vtadmin.js | 6661 ++--- 2 files changed, 2787 insertions(+), 43471 deletions(-) diff --git a/web/vtadmin/src/proto/vtadmin.d.ts b/web/vtadmin/src/proto/vtadmin.d.ts index fcaab0af166..f15096829ab 100644 --- a/web/vtadmin/src/proto/vtadmin.d.ts +++ b/web/vtadmin/src/proto/vtadmin.d.ts @@ -51150,206 +51150,6 @@ export namespace vtctldata { */ public toJSON(): { [k: string]: any }; } - - /** Properties of a ChangeTagsRequest. */ - interface IChangeTagsRequest { - - /** ChangeTagsRequest tags */ - tags?: ({ [k: string]: string }|null); - - /** ChangeTagsRequest replace */ - replace?: (boolean|null); - } - - /** Represents a ChangeTagsRequest. */ - class ChangeTagsRequest implements IChangeTagsRequest { - - /** - * Constructs a new ChangeTagsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IChangeTagsRequest); - - /** ChangeTagsRequest tags. */ - public tags: { [k: string]: string }; - - /** ChangeTagsRequest replace. */ - public replace: boolean; - - /** - * Creates a new ChangeTagsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTagsRequest instance - */ - public static create(properties?: tabletmanagerdata.IChangeTagsRequest): tabletmanagerdata.ChangeTagsRequest; - - /** - * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. - * @param message ChangeTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. - * @param message ChangeTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.IChangeTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsRequest; - - /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsRequest; - - /** - * Verifies a ChangeTagsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTagsRequest - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsRequest; - - /** - * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTagsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.ChangeTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTagsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTagsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTagsResponse. */ - interface IChangeTagsResponse { - - /** ChangeTagsResponse tags */ - tags?: ({ [k: string]: string }|null); - } - - /** Represents a ChangeTagsResponse. */ - class ChangeTagsResponse implements IChangeTagsResponse { - - /** - * Constructs a new ChangeTagsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: tabletmanagerdata.IChangeTagsResponse); - - /** ChangeTagsResponse tags. */ - public tags: { [k: string]: string }; - - /** - * Creates a new ChangeTagsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTagsResponse instance - */ - public static create(properties?: tabletmanagerdata.IChangeTagsResponse): tabletmanagerdata.ChangeTagsResponse; - - /** - * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. - * @param message ChangeTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. - * @param message ChangeTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tabletmanagerdata.IChangeTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tabletmanagerdata.ChangeTagsResponse; - - /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tabletmanagerdata.ChangeTagsResponse; - - /** - * Verifies a ChangeTagsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTagsResponse - */ - public static fromObject(object: { [k: string]: any }): tabletmanagerdata.ChangeTagsResponse; - - /** - * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTagsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tabletmanagerdata.ChangeTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTagsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTagsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } } /** Namespace binlogdata. */ @@ -54551,39402 +54351,5 @@ export namespace binlogdata { * @returns JSON object */ public toJSON(): { [k: string]: any }; -<<<<<<< HEAD -======= - - /** - * Gets the default type url for VStreamResultsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace query. */ -export namespace query { - - /** Properties of a Target. */ - interface ITarget { - - /** Target keyspace */ - keyspace?: (string|null); - - /** Target shard */ - shard?: (string|null); - - /** Target tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** Target cell */ - cell?: (string|null); - } - - /** Represents a Target. */ - class Target implements ITarget { - - /** - * Constructs a new Target. - * @param [properties] Properties to set - */ - constructor(properties?: query.ITarget); - - /** Target keyspace. */ - public keyspace: string; - - /** Target shard. */ - public shard: string; - - /** Target tablet_type. */ - public tablet_type: topodata.TabletType; - - /** Target cell. */ - public cell: string; - - /** - * Creates a new Target instance using the specified properties. - * @param [properties] Properties to set - * @returns Target instance - */ - public static create(properties?: query.ITarget): query.Target; - - /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. - * @param message Target message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. - * @param message Target message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ITarget, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Target message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Target - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Target; - - /** - * Decodes a Target message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Target - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Target; - - /** - * Verifies a Target message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Target - */ - public static fromObject(object: { [k: string]: any }): query.Target; - - /** - * Creates a plain object from a Target message. Also converts values to other types if specified. - * @param message Target - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Target, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Target to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Target - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VTGateCallerID. */ - interface IVTGateCallerID { - - /** VTGateCallerID username */ - username?: (string|null); - - /** VTGateCallerID groups */ - groups?: (string[]|null); - } - - /** Represents a VTGateCallerID. */ - class VTGateCallerID implements IVTGateCallerID { - - /** - * Constructs a new VTGateCallerID. - * @param [properties] Properties to set - */ - constructor(properties?: query.IVTGateCallerID); - - /** VTGateCallerID username. */ - public username: string; - - /** VTGateCallerID groups. */ - public groups: string[]; - - /** - * Creates a new VTGateCallerID instance using the specified properties. - * @param [properties] Properties to set - * @returns VTGateCallerID instance - */ - public static create(properties?: query.IVTGateCallerID): query.VTGateCallerID; - - /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. - * @param message VTGateCallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. - * @param message VTGateCallerID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IVTGateCallerID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VTGateCallerID message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VTGateCallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.VTGateCallerID; - - /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VTGateCallerID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.VTGateCallerID; - - /** - * Verifies a VTGateCallerID message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VTGateCallerID - */ - public static fromObject(object: { [k: string]: any }): query.VTGateCallerID; - - /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. - * @param message VTGateCallerID - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.VTGateCallerID, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VTGateCallerID to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VTGateCallerID - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EventToken. */ - interface IEventToken { - - /** EventToken timestamp */ - timestamp?: (number|Long|null); - - /** EventToken shard */ - shard?: (string|null); - - /** EventToken position */ - position?: (string|null); - } - - /** Represents an EventToken. */ - class EventToken implements IEventToken { - - /** - * Constructs a new EventToken. - * @param [properties] Properties to set - */ - constructor(properties?: query.IEventToken); - - /** EventToken timestamp. */ - public timestamp: (number|Long); - - /** EventToken shard. */ - public shard: string; - - /** EventToken position. */ - public position: string; - - /** - * Creates a new EventToken instance using the specified properties. - * @param [properties] Properties to set - * @returns EventToken instance - */ - public static create(properties?: query.IEventToken): query.EventToken; - - /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @param message EventToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @param message EventToken message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IEventToken, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventToken message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.EventToken; - - /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.EventToken; - - /** - * Verifies an EventToken message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EventToken - */ - public static fromObject(object: { [k: string]: any }): query.EventToken; - - /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. - * @param message EventToken - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.EventToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EventToken to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EventToken - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** MySqlFlag enum. */ - enum MySqlFlag { - EMPTY = 0, - NOT_NULL_FLAG = 1, - PRI_KEY_FLAG = 2, - UNIQUE_KEY_FLAG = 4, - MULTIPLE_KEY_FLAG = 8, - BLOB_FLAG = 16, - UNSIGNED_FLAG = 32, - ZEROFILL_FLAG = 64, - BINARY_FLAG = 128, - ENUM_FLAG = 256, - AUTO_INCREMENT_FLAG = 512, - TIMESTAMP_FLAG = 1024, - SET_FLAG = 2048, - NO_DEFAULT_VALUE_FLAG = 4096, - ON_UPDATE_NOW_FLAG = 8192, - NUM_FLAG = 32768, - PART_KEY_FLAG = 16384, - GROUP_FLAG = 32768, - UNIQUE_FLAG = 65536, - BINCMP_FLAG = 131072 - } - - /** Flag enum. */ - enum Flag { - NONE = 0, - ISINTEGRAL = 256, - ISUNSIGNED = 512, - ISFLOAT = 1024, - ISQUOTED = 2048, - ISTEXT = 4096, - ISBINARY = 8192 - } - - /** Type enum. */ - enum Type { - NULL_TYPE = 0, - INT8 = 257, - UINT8 = 770, - INT16 = 259, - UINT16 = 772, - INT24 = 261, - UINT24 = 774, - INT32 = 263, - UINT32 = 776, - INT64 = 265, - UINT64 = 778, - FLOAT32 = 1035, - FLOAT64 = 1036, - TIMESTAMP = 2061, - DATE = 2062, - TIME = 2063, - DATETIME = 2064, - YEAR = 785, - DECIMAL = 18, - TEXT = 6163, - BLOB = 10260, - VARCHAR = 6165, - VARBINARY = 10262, - CHAR = 6167, - BINARY = 10264, - BIT = 2073, - ENUM = 2074, - SET = 2075, - TUPLE = 28, - GEOMETRY = 2077, - JSON = 2078, - EXPRESSION = 31, - HEXNUM = 4128, - HEXVAL = 4129, - BITNUM = 4130, - VECTOR = 2083, - RAW = 2084 - } - - /** Properties of a Value. */ - interface IValue { - - /** Value type */ - type?: (query.Type|null); - - /** Value value */ - value?: (Uint8Array|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: query.IValue); - - /** Value type. */ - public type: query.Type; - - /** Value value. */ - public value: Uint8Array; - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: query.IValue): query.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Value; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Value; - - /** - * Verifies a Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Value - */ - public static fromObject(object: { [k: string]: any }): query.Value; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Value to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Value - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BindVariable. */ - interface IBindVariable { - - /** BindVariable type */ - type?: (query.Type|null); - - /** BindVariable value */ - value?: (Uint8Array|null); - - /** BindVariable values */ - values?: (query.IValue[]|null); - } - - /** Represents a BindVariable. */ - class BindVariable implements IBindVariable { - - /** - * Constructs a new BindVariable. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBindVariable); - - /** BindVariable type. */ - public type: query.Type; - - /** BindVariable value. */ - public value: Uint8Array; - - /** BindVariable values. */ - public values: query.IValue[]; - - /** - * Creates a new BindVariable instance using the specified properties. - * @param [properties] Properties to set - * @returns BindVariable instance - */ - public static create(properties?: query.IBindVariable): query.BindVariable; - - /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. - * @param message BindVariable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. - * @param message BindVariable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBindVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindVariable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindVariable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BindVariable; - - /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BindVariable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BindVariable; - - /** - * Verifies a BindVariable message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BindVariable - */ - public static fromObject(object: { [k: string]: any }): query.BindVariable; - - /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. - * @param message BindVariable - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BindVariable, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BindVariable to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BindVariable - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BoundQuery. */ - interface IBoundQuery { - - /** BoundQuery sql */ - sql?: (string|null); - - /** BoundQuery bind_variables */ - bind_variables?: ({ [k: string]: query.IBindVariable }|null); - } - - /** Represents a BoundQuery. */ - class BoundQuery implements IBoundQuery { - - /** - * Constructs a new BoundQuery. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBoundQuery); - - /** BoundQuery sql. */ - public sql: string; - - /** BoundQuery bind_variables. */ - public bind_variables: { [k: string]: query.IBindVariable }; - - /** - * Creates a new BoundQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns BoundQuery instance - */ - public static create(properties?: query.IBoundQuery): query.BoundQuery; - - /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @param message BoundQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @param message BoundQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBoundQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BoundQuery message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BoundQuery; - - /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BoundQuery; - - /** - * Verifies a BoundQuery message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BoundQuery - */ - public static fromObject(object: { [k: string]: any }): query.BoundQuery; - - /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. - * @param message BoundQuery - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BoundQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BoundQuery to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BoundQuery - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteOptions. */ - interface IExecuteOptions { - - /** ExecuteOptions included_fields */ - included_fields?: (query.ExecuteOptions.IncludedFields|null); - - /** ExecuteOptions client_found_rows */ - client_found_rows?: (boolean|null); - - /** ExecuteOptions workload */ - workload?: (query.ExecuteOptions.Workload|null); - - /** ExecuteOptions sql_select_limit */ - sql_select_limit?: (number|Long|null); - - /** ExecuteOptions transaction_isolation */ - transaction_isolation?: (query.ExecuteOptions.TransactionIsolation|null); - - /** ExecuteOptions skip_query_plan_cache */ - skip_query_plan_cache?: (boolean|null); - - /** ExecuteOptions planner_version */ - planner_version?: (query.ExecuteOptions.PlannerVersion|null); - - /** ExecuteOptions has_created_temp_tables */ - has_created_temp_tables?: (boolean|null); - - /** ExecuteOptions consolidator */ - consolidator?: (query.ExecuteOptions.Consolidator|null); - - /** ExecuteOptions transaction_access_mode */ - transaction_access_mode?: (query.ExecuteOptions.TransactionAccessMode[]|null); - - /** ExecuteOptions WorkloadName */ - WorkloadName?: (string|null); - - /** ExecuteOptions priority */ - priority?: (string|null); - - /** ExecuteOptions authoritative_timeout */ - authoritative_timeout?: (number|Long|null); - } - - /** Represents an ExecuteOptions. */ - class ExecuteOptions implements IExecuteOptions { - - /** - * Constructs a new ExecuteOptions. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteOptions); - - /** ExecuteOptions included_fields. */ - public included_fields: query.ExecuteOptions.IncludedFields; - - /** ExecuteOptions client_found_rows. */ - public client_found_rows: boolean; - - /** ExecuteOptions workload. */ - public workload: query.ExecuteOptions.Workload; - - /** ExecuteOptions sql_select_limit. */ - public sql_select_limit: (number|Long); - - /** ExecuteOptions transaction_isolation. */ - public transaction_isolation: query.ExecuteOptions.TransactionIsolation; - - /** ExecuteOptions skip_query_plan_cache. */ - public skip_query_plan_cache: boolean; - - /** ExecuteOptions planner_version. */ - public planner_version: query.ExecuteOptions.PlannerVersion; - - /** ExecuteOptions has_created_temp_tables. */ - public has_created_temp_tables: boolean; - - /** ExecuteOptions consolidator. */ - public consolidator: query.ExecuteOptions.Consolidator; - - /** ExecuteOptions transaction_access_mode. */ - public transaction_access_mode: query.ExecuteOptions.TransactionAccessMode[]; - - /** ExecuteOptions WorkloadName. */ - public WorkloadName: string; - - /** ExecuteOptions priority. */ - public priority: string; - - /** ExecuteOptions authoritative_timeout. */ - public authoritative_timeout?: (number|Long|null); - - /** ExecuteOptions timeout. */ - public timeout?: "authoritative_timeout"; - - /** - * Creates a new ExecuteOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteOptions instance - */ - public static create(properties?: query.IExecuteOptions): query.ExecuteOptions; - - /** - * Encodes the specified ExecuteOptions message. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @param message ExecuteOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteOptions message, length delimited. Does not implicitly {@link query.ExecuteOptions.verify|verify} messages. - * @param message ExecuteOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteOptions; - - /** - * Decodes an ExecuteOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteOptions; - - /** - * Verifies an ExecuteOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteOptions - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteOptions; - - /** - * Creates a plain object from an ExecuteOptions message. Also converts values to other types if specified. - * @param message ExecuteOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ExecuteOptions { - - /** IncludedFields enum. */ - enum IncludedFields { - TYPE_AND_NAME = 0, - TYPE_ONLY = 1, - ALL = 2 - } - - /** Workload enum. */ - enum Workload { - UNSPECIFIED = 0, - OLTP = 1, - OLAP = 2, - DBA = 3 - } - - /** TransactionIsolation enum. */ - enum TransactionIsolation { - DEFAULT = 0, - REPEATABLE_READ = 1, - READ_COMMITTED = 2, - READ_UNCOMMITTED = 3, - SERIALIZABLE = 4, - CONSISTENT_SNAPSHOT_READ_ONLY = 5, - AUTOCOMMIT = 6 - } - - /** PlannerVersion enum. */ - enum PlannerVersion { - DEFAULT_PLANNER = 0, - V3 = 1, - Gen4 = 2, - Gen4Greedy = 3, - Gen4Left2Right = 4, - Gen4WithFallback = 5, - Gen4CompareV3 = 6, - V3Insert = 7 - } - - /** Consolidator enum. */ - enum Consolidator { - CONSOLIDATOR_UNSPECIFIED = 0, - CONSOLIDATOR_DISABLED = 1, - CONSOLIDATOR_ENABLED = 2, - CONSOLIDATOR_ENABLED_REPLICAS = 3 - } - - /** TransactionAccessMode enum. */ - enum TransactionAccessMode { - CONSISTENT_SNAPSHOT = 0, - READ_WRITE = 1, - READ_ONLY = 2 - } - } - - /** Properties of a Field. */ - interface IField { - - /** Field name */ - name?: (string|null); - - /** Field type */ - type?: (query.Type|null); - - /** Field table */ - table?: (string|null); - - /** Field org_table */ - org_table?: (string|null); - - /** Field database */ - database?: (string|null); - - /** Field org_name */ - org_name?: (string|null); - - /** Field column_length */ - column_length?: (number|null); - - /** Field charset */ - charset?: (number|null); - - /** Field decimals */ - decimals?: (number|null); - - /** Field flags */ - flags?: (number|null); - - /** Field column_type */ - column_type?: (string|null); - } - - /** Represents a Field. */ - class Field implements IField { - - /** - * Constructs a new Field. - * @param [properties] Properties to set - */ - constructor(properties?: query.IField); - - /** Field name. */ - public name: string; - - /** Field type. */ - public type: query.Type; - - /** Field table. */ - public table: string; - - /** Field org_table. */ - public org_table: string; - - /** Field database. */ - public database: string; - - /** Field org_name. */ - public org_name: string; - - /** Field column_length. */ - public column_length: number; - - /** Field charset. */ - public charset: number; - - /** Field decimals. */ - public decimals: number; - - /** Field flags. */ - public flags: number; - - /** Field column_type. */ - public column_type: string; - - /** - * Creates a new Field instance using the specified properties. - * @param [properties] Properties to set - * @returns Field instance - */ - public static create(properties?: query.IField): query.Field; - - /** - * Encodes the specified Field message. Does not implicitly {@link query.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link query.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Field message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Field; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Field; - - /** - * Verifies a Field message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Field - */ - public static fromObject(object: { [k: string]: any }): query.Field; - - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @param message Field - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Field to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Field - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Row. */ - interface IRow { - - /** Row lengths */ - lengths?: ((number|Long)[]|null); - - /** Row values */ - values?: (Uint8Array|null); - } - - /** Represents a Row. */ - class Row implements IRow { - - /** - * Constructs a new Row. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRow); - - /** Row lengths. */ - public lengths: (number|Long)[]; - - /** Row values. */ - public values: Uint8Array; - - /** - * Creates a new Row instance using the specified properties. - * @param [properties] Properties to set - * @returns Row instance - */ - public static create(properties?: query.IRow): query.Row; - - /** - * Encodes the specified Row message. Does not implicitly {@link query.Row.verify|verify} messages. - * @param message Row message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Row message, length delimited. Does not implicitly {@link query.Row.verify|verify} messages. - * @param message Row message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Row message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Row - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.Row; - - /** - * Decodes a Row message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Row - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.Row; - - /** - * Verifies a Row message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Row message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Row - */ - public static fromObject(object: { [k: string]: any }): query.Row; - - /** - * Creates a plain object from a Row message. Also converts values to other types if specified. - * @param message Row - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.Row, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Row to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Row - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult fields */ - fields?: (query.IField[]|null); - - /** QueryResult rows_affected */ - rows_affected?: (number|Long|null); - - /** QueryResult insert_id */ - insert_id?: (number|Long|null); - - /** QueryResult rows */ - rows?: (query.IRow[]|null); - - /** QueryResult info */ - info?: (string|null); - - /** QueryResult session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { - - /** - * Constructs a new QueryResult. - * @param [properties] Properties to set - */ - constructor(properties?: query.IQueryResult); - - /** QueryResult fields. */ - public fields: query.IField[]; - - /** QueryResult rows_affected. */ - public rows_affected: (number|Long); - - /** QueryResult insert_id. */ - public insert_id: (number|Long); - - /** QueryResult rows. */ - public rows: query.IRow[]; - - /** QueryResult info. */ - public info: string; - - /** QueryResult session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new QueryResult instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryResult instance - */ - public static create(properties?: query.IQueryResult): query.QueryResult; - - /** - * Encodes the specified QueryResult message. Does not implicitly {@link query.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link query.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryResult; - - /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryResult; - - /** - * Verifies a QueryResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryResult - */ - public static fromObject(object: { [k: string]: any }): query.QueryResult; - - /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a QueryWarning. */ - interface IQueryWarning { - - /** QueryWarning code */ - code?: (number|null); - - /** QueryWarning message */ - message?: (string|null); - } - - /** Represents a QueryWarning. */ - class QueryWarning implements IQueryWarning { - - /** - * Constructs a new QueryWarning. - * @param [properties] Properties to set - */ - constructor(properties?: query.IQueryWarning); - - /** QueryWarning code. */ - public code: number; - - /** QueryWarning message. */ - public message: string; - - /** - * Creates a new QueryWarning instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryWarning instance - */ - public static create(properties?: query.IQueryWarning): query.QueryWarning; - - /** - * Encodes the specified QueryWarning message. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @param message QueryWarning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified QueryWarning message, length delimited. Does not implicitly {@link query.QueryWarning.verify|verify} messages. - * @param message QueryWarning message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IQueryWarning, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryWarning message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.QueryWarning; - - /** - * Decodes a QueryWarning message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryWarning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.QueryWarning; - - /** - * Verifies a QueryWarning message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a QueryWarning message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryWarning - */ - public static fromObject(object: { [k: string]: any }): query.QueryWarning; - - /** - * Creates a plain object from a QueryWarning message. Also converts values to other types if specified. - * @param message QueryWarning - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.QueryWarning, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this QueryWarning to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for QueryWarning - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamEvent. */ - interface IStreamEvent { - - /** StreamEvent statements */ - statements?: (query.StreamEvent.IStatement[]|null); - - /** StreamEvent event_token */ - event_token?: (query.IEventToken|null); - } - - /** Represents a StreamEvent. */ - class StreamEvent implements IStreamEvent { - - /** - * Constructs a new StreamEvent. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamEvent); - - /** StreamEvent statements. */ - public statements: query.StreamEvent.IStatement[]; - - /** StreamEvent event_token. */ - public event_token?: (query.IEventToken|null); - - /** - * Creates a new StreamEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamEvent instance - */ - public static create(properties?: query.IStreamEvent): query.StreamEvent; - - /** - * Encodes the specified StreamEvent message. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @param message StreamEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamEvent message, length delimited. Does not implicitly {@link query.StreamEvent.verify|verify} messages. - * @param message StreamEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent; - - /** - * Decodes a StreamEvent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent; - - /** - * Verifies a StreamEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamEvent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamEvent - */ - public static fromObject(object: { [k: string]: any }): query.StreamEvent; - - /** - * Creates a plain object from a StreamEvent message. Also converts values to other types if specified. - * @param message StreamEvent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamEvent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamEvent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace StreamEvent { - - /** Properties of a Statement. */ - interface IStatement { - - /** Statement category */ - category?: (query.StreamEvent.Statement.Category|null); - - /** Statement table_name */ - table_name?: (string|null); - - /** Statement primary_key_fields */ - primary_key_fields?: (query.IField[]|null); - - /** Statement primary_key_values */ - primary_key_values?: (query.IRow[]|null); - - /** Statement sql */ - sql?: (Uint8Array|null); - } - - /** Represents a Statement. */ - class Statement implements IStatement { - - /** - * Constructs a new Statement. - * @param [properties] Properties to set - */ - constructor(properties?: query.StreamEvent.IStatement); - - /** Statement category. */ - public category: query.StreamEvent.Statement.Category; - - /** Statement table_name. */ - public table_name: string; - - /** Statement primary_key_fields. */ - public primary_key_fields: query.IField[]; - - /** Statement primary_key_values. */ - public primary_key_values: query.IRow[]; - - /** Statement sql. */ - public sql: Uint8Array; - - /** - * Creates a new Statement instance using the specified properties. - * @param [properties] Properties to set - * @returns Statement instance - */ - public static create(properties?: query.StreamEvent.IStatement): query.StreamEvent.Statement; - - /** - * Encodes the specified Statement message. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Statement message, length delimited. Does not implicitly {@link query.StreamEvent.Statement.verify|verify} messages. - * @param message Statement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.StreamEvent.IStatement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Statement message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamEvent.Statement; - - /** - * Decodes a Statement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Statement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamEvent.Statement; - - /** - * Verifies a Statement message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Statement message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Statement - */ - public static fromObject(object: { [k: string]: any }): query.StreamEvent.Statement; - - /** - * Creates a plain object from a Statement message. Also converts values to other types if specified. - * @param message Statement - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamEvent.Statement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Statement to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Statement - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Statement { - - /** Category enum. */ - enum Category { - Error = 0, - DML = 1, - DDL = 2 - } - } - } - - /** Properties of an ExecuteRequest. */ - interface IExecuteRequest { - - /** ExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ExecuteRequest target */ - target?: (query.ITarget|null); - - /** ExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents an ExecuteRequest. */ - class ExecuteRequest implements IExecuteRequest { - - /** - * Constructs a new ExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteRequest); - - /** ExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new ExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteRequest instance - */ - public static create(properties?: query.IExecuteRequest): query.ExecuteRequest; - - /** - * Encodes the specified ExecuteRequest message. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. - * @param message ExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteRequest message, length delimited. Does not implicitly {@link query.ExecuteRequest.verify|verify} messages. - * @param message ExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteRequest; - - /** - * Decodes an ExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteRequest; - - /** - * Verifies an ExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteRequest; - - /** - * Creates a plain object from an ExecuteRequest message. Also converts values to other types if specified. - * @param message ExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteResponse. */ - interface IExecuteResponse { - - /** ExecuteResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteResponse. */ - class ExecuteResponse implements IExecuteResponse { - - /** - * Constructs a new ExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IExecuteResponse); - - /** ExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteResponse instance - */ - public static create(properties?: query.IExecuteResponse): query.ExecuteResponse; - - /** - * Encodes the specified ExecuteResponse message. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @param message ExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteResponse message, length delimited. Does not implicitly {@link query.ExecuteResponse.verify|verify} messages. - * @param message ExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ExecuteResponse; - - /** - * Decodes an ExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ExecuteResponse; - - /** - * Verifies an ExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ExecuteResponse; - - /** - * Creates a plain object from an ExecuteResponse message. Also converts values to other types if specified. - * @param message ExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ResultWithError. */ - interface IResultWithError { - - /** ResultWithError error */ - error?: (vtrpc.IRPCError|null); - - /** ResultWithError result */ - result?: (query.IQueryResult|null); - } - - /** Represents a ResultWithError. */ - class ResultWithError implements IResultWithError { - - /** - * Constructs a new ResultWithError. - * @param [properties] Properties to set - */ - constructor(properties?: query.IResultWithError); - - /** ResultWithError error. */ - public error?: (vtrpc.IRPCError|null); - - /** ResultWithError result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ResultWithError instance using the specified properties. - * @param [properties] Properties to set - * @returns ResultWithError instance - */ - public static create(properties?: query.IResultWithError): query.ResultWithError; - - /** - * Encodes the specified ResultWithError message. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @param message ResultWithError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResultWithError message, length delimited. Does not implicitly {@link query.ResultWithError.verify|verify} messages. - * @param message ResultWithError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IResultWithError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResultWithError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ResultWithError; - - /** - * Decodes a ResultWithError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResultWithError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ResultWithError; - - /** - * Verifies a ResultWithError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResultWithError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResultWithError - */ - public static fromObject(object: { [k: string]: any }): query.ResultWithError; - - /** - * Creates a plain object from a ResultWithError message. Also converts values to other types if specified. - * @param message ResultWithError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ResultWithError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResultWithError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ResultWithError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamExecuteRequest. */ - interface IStreamExecuteRequest { - - /** StreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** StreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** StreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** StreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** StreamExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** StreamExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a StreamExecuteRequest. */ - class StreamExecuteRequest implements IStreamExecuteRequest { - - /** - * Constructs a new StreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamExecuteRequest); - - /** StreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** StreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** StreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** StreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** StreamExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** StreamExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new StreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamExecuteRequest instance - */ - public static create(properties?: query.IStreamExecuteRequest): query.StreamExecuteRequest; - - /** - * Encodes the specified StreamExecuteRequest message. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. - * @param message StreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamExecuteRequest message, length delimited. Does not implicitly {@link query.StreamExecuteRequest.verify|verify} messages. - * @param message StreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteRequest; - - /** - * Decodes a StreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteRequest; - - /** - * Verifies a StreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.StreamExecuteRequest; - - /** - * Creates a plain object from a StreamExecuteRequest message. Also converts values to other types if specified. - * @param message StreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamExecuteResponse. */ - interface IStreamExecuteResponse { - - /** StreamExecuteResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a StreamExecuteResponse. */ - class StreamExecuteResponse implements IStreamExecuteResponse { - - /** - * Constructs a new StreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamExecuteResponse); - - /** StreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new StreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamExecuteResponse instance - */ - public static create(properties?: query.IStreamExecuteResponse): query.StreamExecuteResponse; - - /** - * Encodes the specified StreamExecuteResponse message. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. - * @param message StreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamExecuteResponse message, length delimited. Does not implicitly {@link query.StreamExecuteResponse.verify|verify} messages. - * @param message StreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamExecuteResponse; - - /** - * Decodes a StreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamExecuteResponse; - - /** - * Verifies a StreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.StreamExecuteResponse; - - /** - * Creates a plain object from a StreamExecuteResponse message. Also converts values to other types if specified. - * @param message StreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginRequest. */ - interface IBeginRequest { - - /** BeginRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginRequest target */ - target?: (query.ITarget|null); - - /** BeginRequest options */ - options?: (query.IExecuteOptions|null); - } - - /** Represents a BeginRequest. */ - class BeginRequest implements IBeginRequest { - - /** - * Constructs a new BeginRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginRequest); - - /** BeginRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginRequest target. */ - public target?: (query.ITarget|null); - - /** BeginRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** - * Creates a new BeginRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginRequest instance - */ - public static create(properties?: query.IBeginRequest): query.BeginRequest; - - /** - * Encodes the specified BeginRequest message. Does not implicitly {@link query.BeginRequest.verify|verify} messages. - * @param message BeginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginRequest message, length delimited. Does not implicitly {@link query.BeginRequest.verify|verify} messages. - * @param message BeginRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginRequest; - - /** - * Decodes a BeginRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginRequest; - - /** - * Verifies a BeginRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginRequest; - - /** - * Creates a plain object from a BeginRequest message. Also converts values to other types if specified. - * @param message BeginRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginResponse. */ - interface IBeginResponse { - - /** BeginResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginResponse. */ - class BeginResponse implements IBeginResponse { - - /** - * Constructs a new BeginResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginResponse); - - /** BeginResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginResponse instance - */ - public static create(properties?: query.IBeginResponse): query.BeginResponse; - - /** - * Encodes the specified BeginResponse message. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @param message BeginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginResponse message, length delimited. Does not implicitly {@link query.BeginResponse.verify|verify} messages. - * @param message BeginResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginResponse; - - /** - * Decodes a BeginResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginResponse; - - /** - * Verifies a BeginResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginResponse; - - /** - * Creates a plain object from a BeginResponse message. Also converts values to other types if specified. - * @param message BeginResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitRequest. */ - interface ICommitRequest { - - /** CommitRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitRequest target */ - target?: (query.ITarget|null); - - /** CommitRequest transaction_id */ - transaction_id?: (number|Long|null); - } - - /** Represents a CommitRequest. */ - class CommitRequest implements ICommitRequest { - - /** - * Constructs a new CommitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitRequest); - - /** CommitRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitRequest target. */ - public target?: (query.ITarget|null); - - /** CommitRequest transaction_id. */ - public transaction_id: (number|Long); - - /** - * Creates a new CommitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitRequest instance - */ - public static create(properties?: query.ICommitRequest): query.CommitRequest; - - /** - * Encodes the specified CommitRequest message. Does not implicitly {@link query.CommitRequest.verify|verify} messages. - * @param message CommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitRequest message, length delimited. Does not implicitly {@link query.CommitRequest.verify|verify} messages. - * @param message CommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitRequest; - - /** - * Decodes a CommitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitRequest; - - /** - * Verifies a CommitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitRequest - */ - public static fromObject(object: { [k: string]: any }): query.CommitRequest; - - /** - * Creates a plain object from a CommitRequest message. Also converts values to other types if specified. - * @param message CommitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitResponse. */ - interface ICommitResponse { - - /** CommitResponse reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a CommitResponse. */ - class CommitResponse implements ICommitResponse { - - /** - * Constructs a new CommitResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitResponse); - - /** CommitResponse reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new CommitResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitResponse instance - */ - public static create(properties?: query.ICommitResponse): query.CommitResponse; - - /** - * Encodes the specified CommitResponse message. Does not implicitly {@link query.CommitResponse.verify|verify} messages. - * @param message CommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitResponse message, length delimited. Does not implicitly {@link query.CommitResponse.verify|verify} messages. - * @param message CommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitResponse; - - /** - * Decodes a CommitResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitResponse; - - /** - * Verifies a CommitResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitResponse - */ - public static fromObject(object: { [k: string]: any }): query.CommitResponse; - - /** - * Creates a plain object from a CommitResponse message. Also converts values to other types if specified. - * @param message CommitResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackRequest. */ - interface IRollbackRequest { - - /** RollbackRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackRequest target */ - target?: (query.ITarget|null); - - /** RollbackRequest transaction_id */ - transaction_id?: (number|Long|null); - } - - /** Represents a RollbackRequest. */ - class RollbackRequest implements IRollbackRequest { - - /** - * Constructs a new RollbackRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackRequest); - - /** RollbackRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackRequest target. */ - public target?: (query.ITarget|null); - - /** RollbackRequest transaction_id. */ - public transaction_id: (number|Long); - - /** - * Creates a new RollbackRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackRequest instance - */ - public static create(properties?: query.IRollbackRequest): query.RollbackRequest; - - /** - * Encodes the specified RollbackRequest message. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @param message RollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackRequest message, length delimited. Does not implicitly {@link query.RollbackRequest.verify|verify} messages. - * @param message RollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackRequest; - - /** - * Decodes a RollbackRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackRequest; - - /** - * Verifies a RollbackRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackRequest - */ - public static fromObject(object: { [k: string]: any }): query.RollbackRequest; - - /** - * Creates a plain object from a RollbackRequest message. Also converts values to other types if specified. - * @param message RollbackRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackResponse. */ - interface IRollbackResponse { - - /** RollbackResponse reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a RollbackResponse. */ - class RollbackResponse implements IRollbackResponse { - - /** - * Constructs a new RollbackResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackResponse); - - /** RollbackResponse reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new RollbackResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackResponse instance - */ - public static create(properties?: query.IRollbackResponse): query.RollbackResponse; - - /** - * Encodes the specified RollbackResponse message. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @param message RollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackResponse message, length delimited. Does not implicitly {@link query.RollbackResponse.verify|verify} messages. - * @param message RollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackResponse; - - /** - * Decodes a RollbackResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackResponse; - - /** - * Verifies a RollbackResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackResponse - */ - public static fromObject(object: { [k: string]: any }): query.RollbackResponse; - - /** - * Creates a plain object from a RollbackResponse message. Also converts values to other types if specified. - * @param message RollbackResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PrepareRequest. */ - interface IPrepareRequest { - - /** PrepareRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** PrepareRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** PrepareRequest target */ - target?: (query.ITarget|null); - - /** PrepareRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** PrepareRequest dtid */ - dtid?: (string|null); - } - - /** Represents a PrepareRequest. */ - class PrepareRequest implements IPrepareRequest { - - /** - * Constructs a new PrepareRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IPrepareRequest); - - /** PrepareRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** PrepareRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** PrepareRequest target. */ - public target?: (query.ITarget|null); - - /** PrepareRequest transaction_id. */ - public transaction_id: (number|Long); - - /** PrepareRequest dtid. */ - public dtid: string; - - /** - * Creates a new PrepareRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PrepareRequest instance - */ - public static create(properties?: query.IPrepareRequest): query.PrepareRequest; - - /** - * Encodes the specified PrepareRequest message. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. - * @param message PrepareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrepareRequest message, length delimited. Does not implicitly {@link query.PrepareRequest.verify|verify} messages. - * @param message PrepareRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IPrepareRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrepareRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrepareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareRequest; - - /** - * Decodes a PrepareRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrepareRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareRequest; - - /** - * Verifies a PrepareRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrepareRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrepareRequest - */ - public static fromObject(object: { [k: string]: any }): query.PrepareRequest; - - /** - * Creates a plain object from a PrepareRequest message. Also converts values to other types if specified. - * @param message PrepareRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.PrepareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrepareRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrepareRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PrepareResponse. */ - interface IPrepareResponse { - } - - /** Represents a PrepareResponse. */ - class PrepareResponse implements IPrepareResponse { - - /** - * Constructs a new PrepareResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IPrepareResponse); - - /** - * Creates a new PrepareResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PrepareResponse instance - */ - public static create(properties?: query.IPrepareResponse): query.PrepareResponse; - - /** - * Encodes the specified PrepareResponse message. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. - * @param message PrepareResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrepareResponse message, length delimited. Does not implicitly {@link query.PrepareResponse.verify|verify} messages. - * @param message PrepareResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IPrepareResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrepareResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrepareResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.PrepareResponse; - - /** - * Decodes a PrepareResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrepareResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.PrepareResponse; - - /** - * Verifies a PrepareResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrepareResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrepareResponse - */ - public static fromObject(object: { [k: string]: any }): query.PrepareResponse; - - /** - * Creates a plain object from a PrepareResponse message. Also converts values to other types if specified. - * @param message PrepareResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.PrepareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrepareResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrepareResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitPreparedRequest. */ - interface ICommitPreparedRequest { - - /** CommitPreparedRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitPreparedRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitPreparedRequest target */ - target?: (query.ITarget|null); - - /** CommitPreparedRequest dtid */ - dtid?: (string|null); - } - - /** Represents a CommitPreparedRequest. */ - class CommitPreparedRequest implements ICommitPreparedRequest { - - /** - * Constructs a new CommitPreparedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitPreparedRequest); - - /** CommitPreparedRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CommitPreparedRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CommitPreparedRequest target. */ - public target?: (query.ITarget|null); - - /** CommitPreparedRequest dtid. */ - public dtid: string; - - /** - * Creates a new CommitPreparedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitPreparedRequest instance - */ - public static create(properties?: query.ICommitPreparedRequest): query.CommitPreparedRequest; - - /** - * Encodes the specified CommitPreparedRequest message. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @param message CommitPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitPreparedRequest message, length delimited. Does not implicitly {@link query.CommitPreparedRequest.verify|verify} messages. - * @param message CommitPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedRequest; - - /** - * Decodes a CommitPreparedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedRequest; - - /** - * Verifies a CommitPreparedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitPreparedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitPreparedRequest - */ - public static fromObject(object: { [k: string]: any }): query.CommitPreparedRequest; - - /** - * Creates a plain object from a CommitPreparedRequest message. Also converts values to other types if specified. - * @param message CommitPreparedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitPreparedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitPreparedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CommitPreparedResponse. */ - interface ICommitPreparedResponse { - } - - /** Represents a CommitPreparedResponse. */ - class CommitPreparedResponse implements ICommitPreparedResponse { - - /** - * Constructs a new CommitPreparedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICommitPreparedResponse); - - /** - * Creates a new CommitPreparedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CommitPreparedResponse instance - */ - public static create(properties?: query.ICommitPreparedResponse): query.CommitPreparedResponse; - - /** - * Encodes the specified CommitPreparedResponse message. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. - * @param message CommitPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitPreparedResponse message, length delimited. Does not implicitly {@link query.CommitPreparedResponse.verify|verify} messages. - * @param message CommitPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICommitPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CommitPreparedResponse; - - /** - * Decodes a CommitPreparedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CommitPreparedResponse; - - /** - * Verifies a CommitPreparedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitPreparedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitPreparedResponse - */ - public static fromObject(object: { [k: string]: any }): query.CommitPreparedResponse; - - /** - * Creates a plain object from a CommitPreparedResponse message. Also converts values to other types if specified. - * @param message CommitPreparedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CommitPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitPreparedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CommitPreparedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackPreparedRequest. */ - interface IRollbackPreparedRequest { - - /** RollbackPreparedRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackPreparedRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackPreparedRequest target */ - target?: (query.ITarget|null); - - /** RollbackPreparedRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** RollbackPreparedRequest dtid */ - dtid?: (string|null); - } - - /** Represents a RollbackPreparedRequest. */ - class RollbackPreparedRequest implements IRollbackPreparedRequest { - - /** - * Constructs a new RollbackPreparedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackPreparedRequest); - - /** RollbackPreparedRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** RollbackPreparedRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** RollbackPreparedRequest target. */ - public target?: (query.ITarget|null); - - /** RollbackPreparedRequest transaction_id. */ - public transaction_id: (number|Long); - - /** RollbackPreparedRequest dtid. */ - public dtid: string; - - /** - * Creates a new RollbackPreparedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackPreparedRequest instance - */ - public static create(properties?: query.IRollbackPreparedRequest): query.RollbackPreparedRequest; - - /** - * Encodes the specified RollbackPreparedRequest message. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. - * @param message RollbackPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackPreparedRequest message, length delimited. Does not implicitly {@link query.RollbackPreparedRequest.verify|verify} messages. - * @param message RollbackPreparedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackPreparedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedRequest; - - /** - * Decodes a RollbackPreparedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackPreparedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedRequest; - - /** - * Verifies a RollbackPreparedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackPreparedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackPreparedRequest - */ - public static fromObject(object: { [k: string]: any }): query.RollbackPreparedRequest; - - /** - * Creates a plain object from a RollbackPreparedRequest message. Also converts values to other types if specified. - * @param message RollbackPreparedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackPreparedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackPreparedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackPreparedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RollbackPreparedResponse. */ - interface IRollbackPreparedResponse { - } - - /** Represents a RollbackPreparedResponse. */ - class RollbackPreparedResponse implements IRollbackPreparedResponse { - - /** - * Constructs a new RollbackPreparedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRollbackPreparedResponse); - - /** - * Creates a new RollbackPreparedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RollbackPreparedResponse instance - */ - public static create(properties?: query.IRollbackPreparedResponse): query.RollbackPreparedResponse; - - /** - * Encodes the specified RollbackPreparedResponse message. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. - * @param message RollbackPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RollbackPreparedResponse message, length delimited. Does not implicitly {@link query.RollbackPreparedResponse.verify|verify} messages. - * @param message RollbackPreparedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRollbackPreparedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RollbackPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RollbackPreparedResponse; - - /** - * Decodes a RollbackPreparedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RollbackPreparedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RollbackPreparedResponse; - - /** - * Verifies a RollbackPreparedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RollbackPreparedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RollbackPreparedResponse - */ - public static fromObject(object: { [k: string]: any }): query.RollbackPreparedResponse; - - /** - * Creates a plain object from a RollbackPreparedResponse message. Also converts values to other types if specified. - * @param message RollbackPreparedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RollbackPreparedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RollbackPreparedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RollbackPreparedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateTransactionRequest. */ - interface ICreateTransactionRequest { - - /** CreateTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** CreateTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CreateTransactionRequest target */ - target?: (query.ITarget|null); - - /** CreateTransactionRequest dtid */ - dtid?: (string|null); - - /** CreateTransactionRequest participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a CreateTransactionRequest. */ - class CreateTransactionRequest implements ICreateTransactionRequest { - - /** - * Constructs a new CreateTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICreateTransactionRequest); - - /** CreateTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** CreateTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** CreateTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** CreateTransactionRequest dtid. */ - public dtid: string; - - /** CreateTransactionRequest participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new CreateTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransactionRequest instance - */ - public static create(properties?: query.ICreateTransactionRequest): query.CreateTransactionRequest; - - /** - * Encodes the specified CreateTransactionRequest message. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. - * @param message CreateTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTransactionRequest message, length delimited. Does not implicitly {@link query.CreateTransactionRequest.verify|verify} messages. - * @param message CreateTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICreateTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionRequest; - - /** - * Decodes a CreateTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionRequest; - - /** - * Verifies a CreateTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.CreateTransactionRequest; - - /** - * Creates a plain object from a CreateTransactionRequest message. Also converts values to other types if specified. - * @param message CreateTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CreateTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateTransactionResponse. */ - interface ICreateTransactionResponse { - } - - /** Represents a CreateTransactionResponse. */ - class CreateTransactionResponse implements ICreateTransactionResponse { - - /** - * Constructs a new CreateTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ICreateTransactionResponse); - - /** - * Creates a new CreateTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransactionResponse instance - */ - public static create(properties?: query.ICreateTransactionResponse): query.CreateTransactionResponse; - - /** - * Encodes the specified CreateTransactionResponse message. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. - * @param message CreateTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTransactionResponse message, length delimited. Does not implicitly {@link query.CreateTransactionResponse.verify|verify} messages. - * @param message CreateTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ICreateTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.CreateTransactionResponse; - - /** - * Decodes a CreateTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.CreateTransactionResponse; - - /** - * Verifies a CreateTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.CreateTransactionResponse; - - /** - * Creates a plain object from a CreateTransactionResponse message. Also converts values to other types if specified. - * @param message CreateTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.CreateTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartCommitRequest. */ - interface IStartCommitRequest { - - /** StartCommitRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** StartCommitRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StartCommitRequest target */ - target?: (query.ITarget|null); - - /** StartCommitRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** StartCommitRequest dtid */ - dtid?: (string|null); - } - - /** Represents a StartCommitRequest. */ - class StartCommitRequest implements IStartCommitRequest { - - /** - * Constructs a new StartCommitRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStartCommitRequest); - - /** StartCommitRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** StartCommitRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** StartCommitRequest target. */ - public target?: (query.ITarget|null); - - /** StartCommitRequest transaction_id. */ - public transaction_id: (number|Long); - - /** StartCommitRequest dtid. */ - public dtid: string; - - /** - * Creates a new StartCommitRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StartCommitRequest instance - */ - public static create(properties?: query.IStartCommitRequest): query.StartCommitRequest; - - /** - * Encodes the specified StartCommitRequest message. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. - * @param message StartCommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartCommitRequest message, length delimited. Does not implicitly {@link query.StartCommitRequest.verify|verify} messages. - * @param message StartCommitRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStartCommitRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartCommitRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartCommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitRequest; - - /** - * Decodes a StartCommitRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartCommitRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitRequest; - - /** - * Verifies a StartCommitRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartCommitRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartCommitRequest - */ - public static fromObject(object: { [k: string]: any }): query.StartCommitRequest; - - /** - * Creates a plain object from a StartCommitRequest message. Also converts values to other types if specified. - * @param message StartCommitRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StartCommitRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartCommitRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartCommitRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartCommitResponse. */ - interface IStartCommitResponse { - } - - /** Represents a StartCommitResponse. */ - class StartCommitResponse implements IStartCommitResponse { - - /** - * Constructs a new StartCommitResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStartCommitResponse); - - /** - * Creates a new StartCommitResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StartCommitResponse instance - */ - public static create(properties?: query.IStartCommitResponse): query.StartCommitResponse; - - /** - * Encodes the specified StartCommitResponse message. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. - * @param message StartCommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartCommitResponse message, length delimited. Does not implicitly {@link query.StartCommitResponse.verify|verify} messages. - * @param message StartCommitResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStartCommitResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartCommitResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartCommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StartCommitResponse; - - /** - * Decodes a StartCommitResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartCommitResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StartCommitResponse; - - /** - * Verifies a StartCommitResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartCommitResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartCommitResponse - */ - public static fromObject(object: { [k: string]: any }): query.StartCommitResponse; - - /** - * Creates a plain object from a StartCommitResponse message. Also converts values to other types if specified. - * @param message StartCommitResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StartCommitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartCommitResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartCommitResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetRollbackRequest. */ - interface ISetRollbackRequest { - - /** SetRollbackRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** SetRollbackRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** SetRollbackRequest target */ - target?: (query.ITarget|null); - - /** SetRollbackRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** SetRollbackRequest dtid */ - dtid?: (string|null); - } - - /** Represents a SetRollbackRequest. */ - class SetRollbackRequest implements ISetRollbackRequest { - - /** - * Constructs a new SetRollbackRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.ISetRollbackRequest); - - /** SetRollbackRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** SetRollbackRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** SetRollbackRequest target. */ - public target?: (query.ITarget|null); - - /** SetRollbackRequest transaction_id. */ - public transaction_id: (number|Long); - - /** SetRollbackRequest dtid. */ - public dtid: string; - - /** - * Creates a new SetRollbackRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetRollbackRequest instance - */ - public static create(properties?: query.ISetRollbackRequest): query.SetRollbackRequest; - - /** - * Encodes the specified SetRollbackRequest message. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. - * @param message SetRollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetRollbackRequest message, length delimited. Does not implicitly {@link query.SetRollbackRequest.verify|verify} messages. - * @param message SetRollbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ISetRollbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetRollbackRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetRollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackRequest; - - /** - * Decodes a SetRollbackRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetRollbackRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackRequest; - - /** - * Verifies a SetRollbackRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetRollbackRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetRollbackRequest - */ - public static fromObject(object: { [k: string]: any }): query.SetRollbackRequest; - - /** - * Creates a plain object from a SetRollbackRequest message. Also converts values to other types if specified. - * @param message SetRollbackRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.SetRollbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetRollbackRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetRollbackRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetRollbackResponse. */ - interface ISetRollbackResponse { - } - - /** Represents a SetRollbackResponse. */ - class SetRollbackResponse implements ISetRollbackResponse { - - /** - * Constructs a new SetRollbackResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.ISetRollbackResponse); - - /** - * Creates a new SetRollbackResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetRollbackResponse instance - */ - public static create(properties?: query.ISetRollbackResponse): query.SetRollbackResponse; - - /** - * Encodes the specified SetRollbackResponse message. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. - * @param message SetRollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetRollbackResponse message, length delimited. Does not implicitly {@link query.SetRollbackResponse.verify|verify} messages. - * @param message SetRollbackResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ISetRollbackResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetRollbackResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetRollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.SetRollbackResponse; - - /** - * Decodes a SetRollbackResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetRollbackResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.SetRollbackResponse; - - /** - * Verifies a SetRollbackResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetRollbackResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetRollbackResponse - */ - public static fromObject(object: { [k: string]: any }): query.SetRollbackResponse; - - /** - * Creates a plain object from a SetRollbackResponse message. Also converts values to other types if specified. - * @param message SetRollbackResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.SetRollbackResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetRollbackResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetRollbackResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionRequest. */ - interface IConcludeTransactionRequest { - - /** ConcludeTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ConcludeTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ConcludeTransactionRequest target */ - target?: (query.ITarget|null); - - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); - } - - /** Represents a ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { - - /** - * Constructs a new ConcludeTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IConcludeTransactionRequest); - - /** ConcludeTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ConcludeTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ConcludeTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** ConcludeTransactionRequest dtid. */ - public dtid: string; - - /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance - */ - public static create(properties?: query.IConcludeTransactionRequest): query.ConcludeTransactionRequest; - - /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link query.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionRequest; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionRequest; - - /** - * Verifies a ConcludeTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionRequest; - - /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { - } - - /** Represents a ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { - - /** - * Constructs a new ConcludeTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IConcludeTransactionResponse); - - /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance - */ - public static create(properties?: query.IConcludeTransactionResponse): query.ConcludeTransactionResponse; - - /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link query.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ConcludeTransactionResponse; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ConcludeTransactionResponse; - - /** - * Verifies a ConcludeTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.ConcludeTransactionResponse; - - /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReadTransactionRequest. */ - interface IReadTransactionRequest { - - /** ReadTransactionRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReadTransactionRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReadTransactionRequest target */ - target?: (query.ITarget|null); - - /** ReadTransactionRequest dtid */ - dtid?: (string|null); - } - - /** Represents a ReadTransactionRequest. */ - class ReadTransactionRequest implements IReadTransactionRequest { - - /** - * Constructs a new ReadTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReadTransactionRequest); - - /** ReadTransactionRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReadTransactionRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReadTransactionRequest target. */ - public target?: (query.ITarget|null); - - /** ReadTransactionRequest dtid. */ - public dtid: string; - - /** - * Creates a new ReadTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadTransactionRequest instance - */ - public static create(properties?: query.IReadTransactionRequest): query.ReadTransactionRequest; - - /** - * Encodes the specified ReadTransactionRequest message. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReadTransactionRequest message, length delimited. Does not implicitly {@link query.ReadTransactionRequest.verify|verify} messages. - * @param message ReadTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReadTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionRequest; - - /** - * Decodes a ReadTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionRequest; - - /** - * Verifies a ReadTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReadTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReadTransactionRequest; - - /** - * Creates a plain object from a ReadTransactionRequest message. Also converts values to other types if specified. - * @param message ReadTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReadTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReadTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReadTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReadTransactionResponse. */ - interface IReadTransactionResponse { - - /** ReadTransactionResponse metadata */ - metadata?: (query.ITransactionMetadata|null); - } - - /** Represents a ReadTransactionResponse. */ - class ReadTransactionResponse implements IReadTransactionResponse { - - /** - * Constructs a new ReadTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReadTransactionResponse); - - /** ReadTransactionResponse metadata. */ - public metadata?: (query.ITransactionMetadata|null); - - /** - * Creates a new ReadTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadTransactionResponse instance - */ - public static create(properties?: query.IReadTransactionResponse): query.ReadTransactionResponse; - - /** - * Encodes the specified ReadTransactionResponse message. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReadTransactionResponse message, length delimited. Does not implicitly {@link query.ReadTransactionResponse.verify|verify} messages. - * @param message ReadTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReadTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReadTransactionResponse; - - /** - * Decodes a ReadTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReadTransactionResponse; - - /** - * Verifies a ReadTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReadTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReadTransactionResponse; - - /** - * Creates a plain object from a ReadTransactionResponse message. Also converts values to other types if specified. - * @param message ReadTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReadTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReadTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReadTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UnresolvedTransactionsRequest. */ - interface IUnresolvedTransactionsRequest { - - /** UnresolvedTransactionsRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** UnresolvedTransactionsRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** UnresolvedTransactionsRequest target */ - target?: (query.ITarget|null); - - /** UnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); - } - - /** Represents an UnresolvedTransactionsRequest. */ - class UnresolvedTransactionsRequest implements IUnresolvedTransactionsRequest { - - /** - * Constructs a new UnresolvedTransactionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUnresolvedTransactionsRequest); - - /** UnresolvedTransactionsRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** UnresolvedTransactionsRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** UnresolvedTransactionsRequest target. */ - public target?: (query.ITarget|null); - - /** UnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); - - /** - * Creates a new UnresolvedTransactionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UnresolvedTransactionsRequest instance - */ - public static create(properties?: query.IUnresolvedTransactionsRequest): query.UnresolvedTransactionsRequest; - - /** - * Encodes the specified UnresolvedTransactionsRequest message. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. - * @param message UnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsRequest.verify|verify} messages. - * @param message UnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsRequest; - - /** - * Decodes an UnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsRequest; - - /** - * Verifies an UnresolvedTransactionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnresolvedTransactionsRequest - */ - public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsRequest; - - /** - * Creates a plain object from an UnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message UnresolvedTransactionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnresolvedTransactionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UnresolvedTransactionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UnresolvedTransactionsResponse. */ - interface IUnresolvedTransactionsResponse { - - /** UnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); - } - - /** Represents an UnresolvedTransactionsResponse. */ - class UnresolvedTransactionsResponse implements IUnresolvedTransactionsResponse { - - /** - * Constructs a new UnresolvedTransactionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUnresolvedTransactionsResponse); - - /** UnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; - - /** - * Creates a new UnresolvedTransactionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UnresolvedTransactionsResponse instance - */ - public static create(properties?: query.IUnresolvedTransactionsResponse): query.UnresolvedTransactionsResponse; - - /** - * Encodes the specified UnresolvedTransactionsResponse message. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. - * @param message UnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link query.UnresolvedTransactionsResponse.verify|verify} messages. - * @param message UnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UnresolvedTransactionsResponse; - - /** - * Decodes an UnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UnresolvedTransactionsResponse; - - /** - * Verifies an UnresolvedTransactionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UnresolvedTransactionsResponse - */ - public static fromObject(object: { [k: string]: any }): query.UnresolvedTransactionsResponse; - - /** - * Creates a plain object from an UnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message UnresolvedTransactionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UnresolvedTransactionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UnresolvedTransactionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginExecuteRequest. */ - interface IBeginExecuteRequest { - - /** BeginExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginExecuteRequest target */ - target?: (query.ITarget|null); - - /** BeginExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** BeginExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** BeginExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - - /** BeginExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a BeginExecuteRequest. */ - class BeginExecuteRequest implements IBeginExecuteRequest { - - /** - * Constructs a new BeginExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginExecuteRequest); - - /** BeginExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** BeginExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** BeginExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** BeginExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** BeginExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new BeginExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginExecuteRequest instance - */ - public static create(properties?: query.IBeginExecuteRequest): query.BeginExecuteRequest; - - /** - * Encodes the specified BeginExecuteRequest message. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. - * @param message BeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginExecuteRequest message, length delimited. Does not implicitly {@link query.BeginExecuteRequest.verify|verify} messages. - * @param message BeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteRequest; - - /** - * Decodes a BeginExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteRequest; - - /** - * Verifies a BeginExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginExecuteRequest; - - /** - * Creates a plain object from a BeginExecuteRequest message. Also converts values to other types if specified. - * @param message BeginExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginExecuteResponse. */ - interface IBeginExecuteResponse { - - /** BeginExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** BeginExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** BeginExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginExecuteResponse. */ - class BeginExecuteResponse implements IBeginExecuteResponse { - - /** - * Constructs a new BeginExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginExecuteResponse); - - /** BeginExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** BeginExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** BeginExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginExecuteResponse instance - */ - public static create(properties?: query.IBeginExecuteResponse): query.BeginExecuteResponse; - - /** - * Encodes the specified BeginExecuteResponse message. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. - * @param message BeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginExecuteResponse message, length delimited. Does not implicitly {@link query.BeginExecuteResponse.verify|verify} messages. - * @param message BeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginExecuteResponse; - - /** - * Decodes a BeginExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginExecuteResponse; - - /** - * Verifies a BeginExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginExecuteResponse; - - /** - * Creates a plain object from a BeginExecuteResponse message. Also converts values to other types if specified. - * @param message BeginExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginStreamExecuteRequest. */ - interface IBeginStreamExecuteRequest { - - /** BeginStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** BeginStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** BeginStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** BeginStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** BeginStreamExecuteRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a BeginStreamExecuteRequest. */ - class BeginStreamExecuteRequest implements IBeginStreamExecuteRequest { - - /** - * Constructs a new BeginStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginStreamExecuteRequest); - - /** BeginStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** BeginStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** BeginStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** BeginStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** BeginStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** BeginStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** BeginStreamExecuteRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new BeginStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginStreamExecuteRequest instance - */ - public static create(properties?: query.IBeginStreamExecuteRequest): query.BeginStreamExecuteRequest; - - /** - * Encodes the specified BeginStreamExecuteRequest message. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. - * @param message BeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.BeginStreamExecuteRequest.verify|verify} messages. - * @param message BeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteRequest; - - /** - * Decodes a BeginStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteRequest; - - /** - * Verifies a BeginStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteRequest; - - /** - * Creates a plain object from a BeginStreamExecuteRequest message. Also converts values to other types if specified. - * @param message BeginStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BeginStreamExecuteResponse. */ - interface IBeginStreamExecuteResponse { - - /** BeginStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** BeginStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** BeginStreamExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** BeginStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginStreamExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a BeginStreamExecuteResponse. */ - class BeginStreamExecuteResponse implements IBeginStreamExecuteResponse { - - /** - * Constructs a new BeginStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IBeginStreamExecuteResponse); - - /** BeginStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** BeginStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** BeginStreamExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** BeginStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BeginStreamExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new BeginStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BeginStreamExecuteResponse instance - */ - public static create(properties?: query.IBeginStreamExecuteResponse): query.BeginStreamExecuteResponse; - - /** - * Encodes the specified BeginStreamExecuteResponse message. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. - * @param message BeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.BeginStreamExecuteResponse.verify|verify} messages. - * @param message BeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.BeginStreamExecuteResponse; - - /** - * Decodes a BeginStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.BeginStreamExecuteResponse; - - /** - * Verifies a BeginStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BeginStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.BeginStreamExecuteResponse; - - /** - * Creates a plain object from a BeginStreamExecuteResponse message. Also converts values to other types if specified. - * @param message BeginStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.BeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BeginStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BeginStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageStreamRequest. */ - interface IMessageStreamRequest { - - /** MessageStreamRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageStreamRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageStreamRequest target */ - target?: (query.ITarget|null); - - /** MessageStreamRequest name */ - name?: (string|null); - } - - /** Represents a MessageStreamRequest. */ - class MessageStreamRequest implements IMessageStreamRequest { - - /** - * Constructs a new MessageStreamRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageStreamRequest); - - /** MessageStreamRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageStreamRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageStreamRequest target. */ - public target?: (query.ITarget|null); - - /** MessageStreamRequest name. */ - public name: string; - - /** - * Creates a new MessageStreamRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageStreamRequest instance - */ - public static create(properties?: query.IMessageStreamRequest): query.MessageStreamRequest; - - /** - * Encodes the specified MessageStreamRequest message. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. - * @param message MessageStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageStreamRequest message, length delimited. Does not implicitly {@link query.MessageStreamRequest.verify|verify} messages. - * @param message MessageStreamRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageStreamRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageStreamRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamRequest; - - /** - * Decodes a MessageStreamRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageStreamRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamRequest; - - /** - * Verifies a MessageStreamRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageStreamRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageStreamRequest - */ - public static fromObject(object: { [k: string]: any }): query.MessageStreamRequest; - - /** - * Creates a plain object from a MessageStreamRequest message. Also converts values to other types if specified. - * @param message MessageStreamRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageStreamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageStreamRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageStreamRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageStreamResponse. */ - interface IMessageStreamResponse { - - /** MessageStreamResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a MessageStreamResponse. */ - class MessageStreamResponse implements IMessageStreamResponse { - - /** - * Constructs a new MessageStreamResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageStreamResponse); - - /** MessageStreamResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new MessageStreamResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageStreamResponse instance - */ - public static create(properties?: query.IMessageStreamResponse): query.MessageStreamResponse; - - /** - * Encodes the specified MessageStreamResponse message. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. - * @param message MessageStreamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageStreamResponse message, length delimited. Does not implicitly {@link query.MessageStreamResponse.verify|verify} messages. - * @param message MessageStreamResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageStreamResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageStreamResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageStreamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageStreamResponse; - - /** - * Decodes a MessageStreamResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageStreamResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageStreamResponse; - - /** - * Verifies a MessageStreamResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageStreamResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageStreamResponse - */ - public static fromObject(object: { [k: string]: any }): query.MessageStreamResponse; - - /** - * Creates a plain object from a MessageStreamResponse message. Also converts values to other types if specified. - * @param message MessageStreamResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageStreamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageStreamResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageStreamResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageAckRequest. */ - interface IMessageAckRequest { - - /** MessageAckRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageAckRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageAckRequest target */ - target?: (query.ITarget|null); - - /** MessageAckRequest name */ - name?: (string|null); - - /** MessageAckRequest ids */ - ids?: (query.IValue[]|null); - } - - /** Represents a MessageAckRequest. */ - class MessageAckRequest implements IMessageAckRequest { - - /** - * Constructs a new MessageAckRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageAckRequest); - - /** MessageAckRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** MessageAckRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** MessageAckRequest target. */ - public target?: (query.ITarget|null); - - /** MessageAckRequest name. */ - public name: string; - - /** MessageAckRequest ids. */ - public ids: query.IValue[]; - - /** - * Creates a new MessageAckRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageAckRequest instance - */ - public static create(properties?: query.IMessageAckRequest): query.MessageAckRequest; - - /** - * Encodes the specified MessageAckRequest message. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. - * @param message MessageAckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageAckRequest message, length delimited. Does not implicitly {@link query.MessageAckRequest.verify|verify} messages. - * @param message MessageAckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageAckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageAckRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageAckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckRequest; - - /** - * Decodes a MessageAckRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageAckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckRequest; - - /** - * Verifies a MessageAckRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageAckRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageAckRequest - */ - public static fromObject(object: { [k: string]: any }): query.MessageAckRequest; - - /** - * Creates a plain object from a MessageAckRequest message. Also converts values to other types if specified. - * @param message MessageAckRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageAckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageAckRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageAckRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MessageAckResponse. */ - interface IMessageAckResponse { - - /** MessageAckResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents a MessageAckResponse. */ - class MessageAckResponse implements IMessageAckResponse { - - /** - * Constructs a new MessageAckResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IMessageAckResponse); - - /** MessageAckResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new MessageAckResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageAckResponse instance - */ - public static create(properties?: query.IMessageAckResponse): query.MessageAckResponse; - - /** - * Encodes the specified MessageAckResponse message. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. - * @param message MessageAckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MessageAckResponse message, length delimited. Does not implicitly {@link query.MessageAckResponse.verify|verify} messages. - * @param message MessageAckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IMessageAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageAckResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageAckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.MessageAckResponse; - - /** - * Decodes a MessageAckResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageAckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.MessageAckResponse; - - /** - * Verifies a MessageAckResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MessageAckResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageAckResponse - */ - public static fromObject(object: { [k: string]: any }): query.MessageAckResponse; - - /** - * Creates a plain object from a MessageAckResponse message. Also converts values to other types if specified. - * @param message MessageAckResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.MessageAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MessageAckResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MessageAckResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveExecuteRequest. */ - interface IReserveExecuteRequest { - - /** ReserveExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a ReserveExecuteRequest. */ - class ReserveExecuteRequest implements IReserveExecuteRequest { - - /** - * Constructs a new ReserveExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveExecuteRequest); - - /** ReserveExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new ReserveExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveExecuteRequest instance - */ - public static create(properties?: query.IReserveExecuteRequest): query.ReserveExecuteRequest; - - /** - * Encodes the specified ReserveExecuteRequest message. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. - * @param message ReserveExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveExecuteRequest.verify|verify} messages. - * @param message ReserveExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteRequest; - - /** - * Decodes a ReserveExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteRequest; - - /** - * Verifies a ReserveExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveExecuteRequest; - - /** - * Creates a plain object from a ReserveExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveExecuteResponse. */ - interface IReserveExecuteResponse { - - /** ReserveExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReserveExecuteResponse. */ - class ReserveExecuteResponse implements IReserveExecuteResponse { - - /** - * Constructs a new ReserveExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveExecuteResponse); - - /** ReserveExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReserveExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveExecuteResponse instance - */ - public static create(properties?: query.IReserveExecuteResponse): query.ReserveExecuteResponse; - - /** - * Encodes the specified ReserveExecuteResponse message. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. - * @param message ReserveExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveExecuteResponse.verify|verify} messages. - * @param message ReserveExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveExecuteResponse; - - /** - * Decodes a ReserveExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveExecuteResponse; - - /** - * Verifies a ReserveExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveExecuteResponse; - - /** - * Creates a plain object from a ReserveExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveStreamExecuteRequest. */ - interface IReserveStreamExecuteRequest { - - /** ReserveStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveStreamExecuteRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - } - - /** Represents a ReserveStreamExecuteRequest. */ - class ReserveStreamExecuteRequest implements IReserveStreamExecuteRequest { - - /** - * Constructs a new ReserveStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveStreamExecuteRequest); - - /** ReserveStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveStreamExecuteRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** - * Creates a new ReserveStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveStreamExecuteRequest instance - */ - public static create(properties?: query.IReserveStreamExecuteRequest): query.ReserveStreamExecuteRequest; - - /** - * Encodes the specified ReserveStreamExecuteRequest message. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. - * @param message ReserveStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteRequest.verify|verify} messages. - * @param message ReserveStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteRequest; - - /** - * Decodes a ReserveStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteRequest; - - /** - * Verifies a ReserveStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteRequest; - - /** - * Creates a plain object from a ReserveStreamExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveStreamExecuteResponse. */ - interface IReserveStreamExecuteResponse { - - /** ReserveStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveStreamExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReserveStreamExecuteResponse. */ - class ReserveStreamExecuteResponse implements IReserveStreamExecuteResponse { - - /** - * Constructs a new ReserveStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveStreamExecuteResponse); - - /** ReserveStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveStreamExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReserveStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveStreamExecuteResponse instance - */ - public static create(properties?: query.IReserveStreamExecuteResponse): query.ReserveStreamExecuteResponse; - - /** - * Encodes the specified ReserveStreamExecuteResponse message. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. - * @param message ReserveStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveStreamExecuteResponse.verify|verify} messages. - * @param message ReserveStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveStreamExecuteResponse; - - /** - * Decodes a ReserveStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveStreamExecuteResponse; - - /** - * Verifies a ReserveStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveStreamExecuteResponse; - - /** - * Creates a plain object from a ReserveStreamExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginExecuteRequest. */ - interface IReserveBeginExecuteRequest { - - /** ReserveBeginExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveBeginExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveBeginExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveBeginExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** ReserveBeginExecuteRequest post_begin_queries */ - post_begin_queries?: (string[]|null); - } - - /** Represents a ReserveBeginExecuteRequest. */ - class ReserveBeginExecuteRequest implements IReserveBeginExecuteRequest { - - /** - * Constructs a new ReserveBeginExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginExecuteRequest); - - /** ReserveBeginExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveBeginExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveBeginExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveBeginExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** ReserveBeginExecuteRequest post_begin_queries. */ - public post_begin_queries: string[]; - - /** - * Creates a new ReserveBeginExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginExecuteRequest instance - */ - public static create(properties?: query.IReserveBeginExecuteRequest): query.ReserveBeginExecuteRequest; - - /** - * Encodes the specified ReserveBeginExecuteRequest message. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. - * @param message ReserveBeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteRequest.verify|verify} messages. - * @param message ReserveBeginExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteRequest; - - /** - * Decodes a ReserveBeginExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteRequest; - - /** - * Verifies a ReserveBeginExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteRequest; - - /** - * Creates a plain object from a ReserveBeginExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveBeginExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginExecuteResponse. */ - interface IReserveBeginExecuteResponse { - - /** ReserveBeginExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveBeginExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveBeginExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveBeginExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveBeginExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a ReserveBeginExecuteResponse. */ - class ReserveBeginExecuteResponse implements IReserveBeginExecuteResponse { - - /** - * Constructs a new ReserveBeginExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginExecuteResponse); - - /** ReserveBeginExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveBeginExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveBeginExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveBeginExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveBeginExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new ReserveBeginExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginExecuteResponse instance - */ - public static create(properties?: query.IReserveBeginExecuteResponse): query.ReserveBeginExecuteResponse; - - /** - * Encodes the specified ReserveBeginExecuteResponse message. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. - * @param message ReserveBeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginExecuteResponse.verify|verify} messages. - * @param message ReserveBeginExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginExecuteResponse; - - /** - * Decodes a ReserveBeginExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginExecuteResponse; - - /** - * Verifies a ReserveBeginExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginExecuteResponse; - - /** - * Creates a plain object from a ReserveBeginExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveBeginExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginStreamExecuteRequest. */ - interface IReserveBeginStreamExecuteRequest { - - /** ReserveBeginStreamExecuteRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginStreamExecuteRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginStreamExecuteRequest target */ - target?: (query.ITarget|null); - - /** ReserveBeginStreamExecuteRequest query */ - query?: (query.IBoundQuery|null); - - /** ReserveBeginStreamExecuteRequest options */ - options?: (query.IExecuteOptions|null); - - /** ReserveBeginStreamExecuteRequest pre_queries */ - pre_queries?: (string[]|null); - - /** ReserveBeginStreamExecuteRequest post_begin_queries */ - post_begin_queries?: (string[]|null); - } - - /** Represents a ReserveBeginStreamExecuteRequest. */ - class ReserveBeginStreamExecuteRequest implements IReserveBeginStreamExecuteRequest { - - /** - * Constructs a new ReserveBeginStreamExecuteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginStreamExecuteRequest); - - /** ReserveBeginStreamExecuteRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReserveBeginStreamExecuteRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReserveBeginStreamExecuteRequest target. */ - public target?: (query.ITarget|null); - - /** ReserveBeginStreamExecuteRequest query. */ - public query?: (query.IBoundQuery|null); - - /** ReserveBeginStreamExecuteRequest options. */ - public options?: (query.IExecuteOptions|null); - - /** ReserveBeginStreamExecuteRequest pre_queries. */ - public pre_queries: string[]; - - /** ReserveBeginStreamExecuteRequest post_begin_queries. */ - public post_begin_queries: string[]; - - /** - * Creates a new ReserveBeginStreamExecuteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginStreamExecuteRequest instance - */ - public static create(properties?: query.IReserveBeginStreamExecuteRequest): query.ReserveBeginStreamExecuteRequest; - - /** - * Encodes the specified ReserveBeginStreamExecuteRequest message. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. - * @param message ReserveBeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginStreamExecuteRequest message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteRequest.verify|verify} messages. - * @param message ReserveBeginStreamExecuteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginStreamExecuteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteRequest; - - /** - * Decodes a ReserveBeginStreamExecuteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginStreamExecuteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteRequest; - - /** - * Verifies a ReserveBeginStreamExecuteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginStreamExecuteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginStreamExecuteRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteRequest; - - /** - * Creates a plain object from a ReserveBeginStreamExecuteRequest message. Also converts values to other types if specified. - * @param message ReserveBeginStreamExecuteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginStreamExecuteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginStreamExecuteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginStreamExecuteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReserveBeginStreamExecuteResponse. */ - interface IReserveBeginStreamExecuteResponse { - - /** ReserveBeginStreamExecuteResponse error */ - error?: (vtrpc.IRPCError|null); - - /** ReserveBeginStreamExecuteResponse result */ - result?: (query.IQueryResult|null); - - /** ReserveBeginStreamExecuteResponse transaction_id */ - transaction_id?: (number|Long|null); - - /** ReserveBeginStreamExecuteResponse reserved_id */ - reserved_id?: (number|Long|null); - - /** ReserveBeginStreamExecuteResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginStreamExecuteResponse session_state_changes */ - session_state_changes?: (string|null); - } - - /** Represents a ReserveBeginStreamExecuteResponse. */ - class ReserveBeginStreamExecuteResponse implements IReserveBeginStreamExecuteResponse { - - /** - * Constructs a new ReserveBeginStreamExecuteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReserveBeginStreamExecuteResponse); - - /** ReserveBeginStreamExecuteResponse error. */ - public error?: (vtrpc.IRPCError|null); - - /** ReserveBeginStreamExecuteResponse result. */ - public result?: (query.IQueryResult|null); - - /** ReserveBeginStreamExecuteResponse transaction_id. */ - public transaction_id: (number|Long); - - /** ReserveBeginStreamExecuteResponse reserved_id. */ - public reserved_id: (number|Long); - - /** ReserveBeginStreamExecuteResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ReserveBeginStreamExecuteResponse session_state_changes. */ - public session_state_changes: string; - - /** - * Creates a new ReserveBeginStreamExecuteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReserveBeginStreamExecuteResponse instance - */ - public static create(properties?: query.IReserveBeginStreamExecuteResponse): query.ReserveBeginStreamExecuteResponse; - - /** - * Encodes the specified ReserveBeginStreamExecuteResponse message. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. - * @param message ReserveBeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReserveBeginStreamExecuteResponse message, length delimited. Does not implicitly {@link query.ReserveBeginStreamExecuteResponse.verify|verify} messages. - * @param message ReserveBeginStreamExecuteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReserveBeginStreamExecuteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReserveBeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReserveBeginStreamExecuteResponse; - - /** - * Decodes a ReserveBeginStreamExecuteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReserveBeginStreamExecuteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReserveBeginStreamExecuteResponse; - - /** - * Verifies a ReserveBeginStreamExecuteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReserveBeginStreamExecuteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReserveBeginStreamExecuteResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReserveBeginStreamExecuteResponse; - - /** - * Creates a plain object from a ReserveBeginStreamExecuteResponse message. Also converts values to other types if specified. - * @param message ReserveBeginStreamExecuteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReserveBeginStreamExecuteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReserveBeginStreamExecuteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReserveBeginStreamExecuteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReleaseRequest. */ - interface IReleaseRequest { - - /** ReleaseRequest effective_caller_id */ - effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReleaseRequest immediate_caller_id */ - immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReleaseRequest target */ - target?: (query.ITarget|null); - - /** ReleaseRequest transaction_id */ - transaction_id?: (number|Long|null); - - /** ReleaseRequest reserved_id */ - reserved_id?: (number|Long|null); - } - - /** Represents a ReleaseRequest. */ - class ReleaseRequest implements IReleaseRequest { - - /** - * Constructs a new ReleaseRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReleaseRequest); - - /** ReleaseRequest effective_caller_id. */ - public effective_caller_id?: (vtrpc.ICallerID|null); - - /** ReleaseRequest immediate_caller_id. */ - public immediate_caller_id?: (query.IVTGateCallerID|null); - - /** ReleaseRequest target. */ - public target?: (query.ITarget|null); - - /** ReleaseRequest transaction_id. */ - public transaction_id: (number|Long); - - /** ReleaseRequest reserved_id. */ - public reserved_id: (number|Long); - - /** - * Creates a new ReleaseRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReleaseRequest instance - */ - public static create(properties?: query.IReleaseRequest): query.ReleaseRequest; - - /** - * Encodes the specified ReleaseRequest message. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. - * @param message ReleaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReleaseRequest message, length delimited. Does not implicitly {@link query.ReleaseRequest.verify|verify} messages. - * @param message ReleaseRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReleaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReleaseRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReleaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseRequest; - - /** - * Decodes a ReleaseRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReleaseRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseRequest; - - /** - * Verifies a ReleaseRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReleaseRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReleaseRequest - */ - public static fromObject(object: { [k: string]: any }): query.ReleaseRequest; - - /** - * Creates a plain object from a ReleaseRequest message. Also converts values to other types if specified. - * @param message ReleaseRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReleaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReleaseRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReleaseRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReleaseResponse. */ - interface IReleaseResponse { - } - - /** Represents a ReleaseResponse. */ - class ReleaseResponse implements IReleaseResponse { - - /** - * Constructs a new ReleaseResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IReleaseResponse); - - /** - * Creates a new ReleaseResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReleaseResponse instance - */ - public static create(properties?: query.IReleaseResponse): query.ReleaseResponse; - - /** - * Encodes the specified ReleaseResponse message. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. - * @param message ReleaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReleaseResponse message, length delimited. Does not implicitly {@link query.ReleaseResponse.verify|verify} messages. - * @param message ReleaseResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IReleaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReleaseResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReleaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.ReleaseResponse; - - /** - * Decodes a ReleaseResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReleaseResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.ReleaseResponse; - - /** - * Verifies a ReleaseResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReleaseResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReleaseResponse - */ - public static fromObject(object: { [k: string]: any }): query.ReleaseResponse; - - /** - * Creates a plain object from a ReleaseResponse message. Also converts values to other types if specified. - * @param message ReleaseResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.ReleaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReleaseResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReleaseResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamHealthRequest. */ - interface IStreamHealthRequest { - } - - /** Represents a StreamHealthRequest. */ - class StreamHealthRequest implements IStreamHealthRequest { - - /** - * Constructs a new StreamHealthRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamHealthRequest); - - /** - * Creates a new StreamHealthRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamHealthRequest instance - */ - public static create(properties?: query.IStreamHealthRequest): query.StreamHealthRequest; - - /** - * Encodes the specified StreamHealthRequest message. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. - * @param message StreamHealthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamHealthRequest message, length delimited. Does not implicitly {@link query.StreamHealthRequest.verify|verify} messages. - * @param message StreamHealthRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamHealthRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamHealthRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamHealthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthRequest; - - /** - * Decodes a StreamHealthRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamHealthRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthRequest; - - /** - * Verifies a StreamHealthRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamHealthRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamHealthRequest - */ - public static fromObject(object: { [k: string]: any }): query.StreamHealthRequest; - - /** - * Creates a plain object from a StreamHealthRequest message. Also converts values to other types if specified. - * @param message StreamHealthRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamHealthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamHealthRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamHealthRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RealtimeStats. */ - interface IRealtimeStats { - - /** RealtimeStats health_error */ - health_error?: (string|null); - - /** RealtimeStats replication_lag_seconds */ - replication_lag_seconds?: (number|null); - - /** RealtimeStats binlog_players_count */ - binlog_players_count?: (number|null); - - /** RealtimeStats filtered_replication_lag_seconds */ - filtered_replication_lag_seconds?: (number|Long|null); - - /** RealtimeStats cpu_usage */ - cpu_usage?: (number|null); - - /** RealtimeStats qps */ - qps?: (number|null); - - /** RealtimeStats table_schema_changed */ - table_schema_changed?: (string[]|null); - - /** RealtimeStats view_schema_changed */ - view_schema_changed?: (string[]|null); - - /** RealtimeStats udfs_changed */ - udfs_changed?: (boolean|null); - - /** RealtimeStats tx_unresolved */ - tx_unresolved?: (boolean|null); - } - - /** Represents a RealtimeStats. */ - class RealtimeStats implements IRealtimeStats { - - /** - * Constructs a new RealtimeStats. - * @param [properties] Properties to set - */ - constructor(properties?: query.IRealtimeStats); - - /** RealtimeStats health_error. */ - public health_error: string; - - /** RealtimeStats replication_lag_seconds. */ - public replication_lag_seconds: number; - - /** RealtimeStats binlog_players_count. */ - public binlog_players_count: number; - - /** RealtimeStats filtered_replication_lag_seconds. */ - public filtered_replication_lag_seconds: (number|Long); - - /** RealtimeStats cpu_usage. */ - public cpu_usage: number; - - /** RealtimeStats qps. */ - public qps: number; - - /** RealtimeStats table_schema_changed. */ - public table_schema_changed: string[]; - - /** RealtimeStats view_schema_changed. */ - public view_schema_changed: string[]; - - /** RealtimeStats udfs_changed. */ - public udfs_changed: boolean; - - /** RealtimeStats tx_unresolved. */ - public tx_unresolved: boolean; - - /** - * Creates a new RealtimeStats instance using the specified properties. - * @param [properties] Properties to set - * @returns RealtimeStats instance - */ - public static create(properties?: query.IRealtimeStats): query.RealtimeStats; - - /** - * Encodes the specified RealtimeStats message. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @param message RealtimeStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RealtimeStats message, length delimited. Does not implicitly {@link query.RealtimeStats.verify|verify} messages. - * @param message RealtimeStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IRealtimeStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RealtimeStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RealtimeStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.RealtimeStats; - - /** - * Decodes a RealtimeStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RealtimeStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.RealtimeStats; - - /** - * Verifies a RealtimeStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RealtimeStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RealtimeStats - */ - public static fromObject(object: { [k: string]: any }): query.RealtimeStats; - - /** - * Creates a plain object from a RealtimeStats message. Also converts values to other types if specified. - * @param message RealtimeStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.RealtimeStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RealtimeStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RealtimeStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AggregateStats. */ - interface IAggregateStats { - - /** AggregateStats healthy_tablet_count */ - healthy_tablet_count?: (number|null); - - /** AggregateStats unhealthy_tablet_count */ - unhealthy_tablet_count?: (number|null); - - /** AggregateStats replication_lag_seconds_min */ - replication_lag_seconds_min?: (number|null); - - /** AggregateStats replication_lag_seconds_max */ - replication_lag_seconds_max?: (number|null); - } - - /** Represents an AggregateStats. */ - class AggregateStats implements IAggregateStats { - - /** - * Constructs a new AggregateStats. - * @param [properties] Properties to set - */ - constructor(properties?: query.IAggregateStats); - - /** AggregateStats healthy_tablet_count. */ - public healthy_tablet_count: number; - - /** AggregateStats unhealthy_tablet_count. */ - public unhealthy_tablet_count: number; - - /** AggregateStats replication_lag_seconds_min. */ - public replication_lag_seconds_min: number; - - /** AggregateStats replication_lag_seconds_max. */ - public replication_lag_seconds_max: number; - - /** - * Creates a new AggregateStats instance using the specified properties. - * @param [properties] Properties to set - * @returns AggregateStats instance - */ - public static create(properties?: query.IAggregateStats): query.AggregateStats; - - /** - * Encodes the specified AggregateStats message. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @param message AggregateStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AggregateStats message, length delimited. Does not implicitly {@link query.AggregateStats.verify|verify} messages. - * @param message AggregateStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IAggregateStats, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AggregateStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AggregateStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.AggregateStats; - - /** - * Decodes an AggregateStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AggregateStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.AggregateStats; - - /** - * Verifies an AggregateStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AggregateStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AggregateStats - */ - public static fromObject(object: { [k: string]: any }): query.AggregateStats; - - /** - * Creates a plain object from an AggregateStats message. Also converts values to other types if specified. - * @param message AggregateStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.AggregateStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AggregateStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AggregateStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StreamHealthResponse. */ - interface IStreamHealthResponse { - - /** StreamHealthResponse target */ - target?: (query.ITarget|null); - - /** StreamHealthResponse serving */ - serving?: (boolean|null); - - /** StreamHealthResponse primary_term_start_timestamp */ - primary_term_start_timestamp?: (number|Long|null); - - /** StreamHealthResponse realtime_stats */ - realtime_stats?: (query.IRealtimeStats|null); - - /** StreamHealthResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StreamHealthResponse. */ - class StreamHealthResponse implements IStreamHealthResponse { - - /** - * Constructs a new StreamHealthResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IStreamHealthResponse); - - /** StreamHealthResponse target. */ - public target?: (query.ITarget|null); - - /** StreamHealthResponse serving. */ - public serving: boolean; - - /** StreamHealthResponse primary_term_start_timestamp. */ - public primary_term_start_timestamp: (number|Long); - - /** StreamHealthResponse realtime_stats. */ - public realtime_stats?: (query.IRealtimeStats|null); - - /** StreamHealthResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StreamHealthResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamHealthResponse instance - */ - public static create(properties?: query.IStreamHealthResponse): query.StreamHealthResponse; - - /** - * Encodes the specified StreamHealthResponse message. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. - * @param message StreamHealthResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamHealthResponse message, length delimited. Does not implicitly {@link query.StreamHealthResponse.verify|verify} messages. - * @param message StreamHealthResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IStreamHealthResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamHealthResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamHealthResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.StreamHealthResponse; - - /** - * Decodes a StreamHealthResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamHealthResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.StreamHealthResponse; - - /** - * Verifies a StreamHealthResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StreamHealthResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamHealthResponse - */ - public static fromObject(object: { [k: string]: any }): query.StreamHealthResponse; - - /** - * Creates a plain object from a StreamHealthResponse message. Also converts values to other types if specified. - * @param message StreamHealthResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.StreamHealthResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamHealthResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamHealthResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** TransactionState enum. */ - enum TransactionState { - UNKNOWN = 0, - PREPARE = 1, - ROLLBACK = 2, - COMMIT = 3 - } - - /** Properties of a TransactionMetadata. */ - interface ITransactionMetadata { - - /** TransactionMetadata dtid */ - dtid?: (string|null); - - /** TransactionMetadata state */ - state?: (query.TransactionState|null); - - /** TransactionMetadata time_created */ - time_created?: (number|Long|null); - - /** TransactionMetadata participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a TransactionMetadata. */ - class TransactionMetadata implements ITransactionMetadata { - - /** - * Constructs a new TransactionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: query.ITransactionMetadata); - - /** TransactionMetadata dtid. */ - public dtid: string; - - /** TransactionMetadata state. */ - public state: query.TransactionState; - - /** TransactionMetadata time_created. */ - public time_created: (number|Long); - - /** TransactionMetadata participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new TransactionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TransactionMetadata instance - */ - public static create(properties?: query.ITransactionMetadata): query.TransactionMetadata; - - /** - * Encodes the specified TransactionMetadata message. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. - * @param message TransactionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TransactionMetadata message, length delimited. Does not implicitly {@link query.TransactionMetadata.verify|verify} messages. - * @param message TransactionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.ITransactionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TransactionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransactionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.TransactionMetadata; - - /** - * Decodes a TransactionMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransactionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.TransactionMetadata; - - /** - * Verifies a TransactionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TransactionMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransactionMetadata - */ - public static fromObject(object: { [k: string]: any }): query.TransactionMetadata; - - /** - * Creates a plain object from a TransactionMetadata message. Also converts values to other types if specified. - * @param message TransactionMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.TransactionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TransactionMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TransactionMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** SchemaTableType enum. */ - enum SchemaTableType { - VIEWS = 0, - TABLES = 1, - ALL = 2, - UDFS = 3 - } - - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest target */ - target?: (query.ITarget|null); - - /** GetSchemaRequest table_type */ - table_type?: (query.SchemaTableType|null); - - /** GetSchemaRequest table_names */ - table_names?: (string[]|null); - } - - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { - - /** - * Constructs a new GetSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: query.IGetSchemaRequest); - - /** GetSchemaRequest target. */ - public target?: (query.ITarget|null); - - /** GetSchemaRequest table_type. */ - public table_type: query.SchemaTableType; - - /** GetSchemaRequest table_names. */ - public table_names: string[]; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaRequest instance - */ - public static create(properties?: query.IGetSchemaRequest): query.GetSchemaRequest; - - /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link query.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaRequest; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaRequest; - - /** - * Verifies a GetSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): query.GetSchemaRequest; - - /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a UDFInfo. */ - interface IUDFInfo { - - /** UDFInfo name */ - name?: (string|null); - - /** UDFInfo aggregating */ - aggregating?: (boolean|null); - - /** UDFInfo return_type */ - return_type?: (query.Type|null); - } - - /** Represents a UDFInfo. */ - class UDFInfo implements IUDFInfo { - - /** - * Constructs a new UDFInfo. - * @param [properties] Properties to set - */ - constructor(properties?: query.IUDFInfo); - - /** UDFInfo name. */ - public name: string; - - /** UDFInfo aggregating. */ - public aggregating: boolean; - - /** UDFInfo return_type. */ - public return_type: query.Type; - - /** - * Creates a new UDFInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns UDFInfo instance - */ - public static create(properties?: query.IUDFInfo): query.UDFInfo; - - /** - * Encodes the specified UDFInfo message. Does not implicitly {@link query.UDFInfo.verify|verify} messages. - * @param message UDFInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UDFInfo message, length delimited. Does not implicitly {@link query.UDFInfo.verify|verify} messages. - * @param message UDFInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IUDFInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UDFInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UDFInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.UDFInfo; - - /** - * Decodes a UDFInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UDFInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.UDFInfo; - - /** - * Verifies a UDFInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UDFInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UDFInfo - */ - public static fromObject(object: { [k: string]: any }): query.UDFInfo; - - /** - * Creates a plain object from a UDFInfo message. Also converts values to other types if specified. - * @param message UDFInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.UDFInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UDFInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UDFInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { - - /** GetSchemaResponse udfs */ - udfs?: (query.IUDFInfo[]|null); - - /** GetSchemaResponse table_definition */ - table_definition?: ({ [k: string]: string }|null); - } - - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { - - /** - * Constructs a new GetSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: query.IGetSchemaResponse); - - /** GetSchemaResponse udfs. */ - public udfs: query.IUDFInfo[]; - - /** GetSchemaResponse table_definition. */ - public table_definition: { [k: string]: string }; - - /** - * Creates a new GetSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaResponse instance - */ - public static create(properties?: query.IGetSchemaResponse): query.GetSchemaResponse; - - /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link query.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: query.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): query.GetSchemaResponse; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): query.GetSchemaResponse; - - /** - * Verifies a GetSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): query.GetSchemaResponse; - - /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: query.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace replicationdata. */ -export namespace replicationdata { - - /** Properties of a Status. */ - interface IStatus { - - /** Status position */ - position?: (string|null); - - /** Status replication_lag_seconds */ - replication_lag_seconds?: (number|null); - - /** Status source_host */ - source_host?: (string|null); - - /** Status source_port */ - source_port?: (number|null); - - /** Status connect_retry */ - connect_retry?: (number|null); - - /** Status relay_log_position */ - relay_log_position?: (string|null); - - /** Status file_position */ - file_position?: (string|null); - - /** Status relay_log_source_binlog_equivalent_position */ - relay_log_source_binlog_equivalent_position?: (string|null); - - /** Status source_server_id */ - source_server_id?: (number|null); - - /** Status source_uuid */ - source_uuid?: (string|null); - - /** Status io_state */ - io_state?: (number|null); - - /** Status last_io_error */ - last_io_error?: (string|null); - - /** Status sql_state */ - sql_state?: (number|null); - - /** Status last_sql_error */ - last_sql_error?: (string|null); - - /** Status relay_log_file_position */ - relay_log_file_position?: (string|null); - - /** Status source_user */ - source_user?: (string|null); - - /** Status sql_delay */ - sql_delay?: (number|null); - - /** Status auto_position */ - auto_position?: (boolean|null); - - /** Status using_gtid */ - using_gtid?: (boolean|null); - - /** Status has_replication_filters */ - has_replication_filters?: (boolean|null); - - /** Status ssl_allowed */ - ssl_allowed?: (boolean|null); - - /** Status replication_lag_unknown */ - replication_lag_unknown?: (boolean|null); - } - - /** Represents a Status. */ - class Status implements IStatus { - - /** - * Constructs a new Status. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IStatus); - - /** Status position. */ - public position: string; - - /** Status replication_lag_seconds. */ - public replication_lag_seconds: number; - - /** Status source_host. */ - public source_host: string; - - /** Status source_port. */ - public source_port: number; - - /** Status connect_retry. */ - public connect_retry: number; - - /** Status relay_log_position. */ - public relay_log_position: string; - - /** Status file_position. */ - public file_position: string; - - /** Status relay_log_source_binlog_equivalent_position. */ - public relay_log_source_binlog_equivalent_position: string; - - /** Status source_server_id. */ - public source_server_id: number; - - /** Status source_uuid. */ - public source_uuid: string; - - /** Status io_state. */ - public io_state: number; - - /** Status last_io_error. */ - public last_io_error: string; - - /** Status sql_state. */ - public sql_state: number; - - /** Status last_sql_error. */ - public last_sql_error: string; - - /** Status relay_log_file_position. */ - public relay_log_file_position: string; - - /** Status source_user. */ - public source_user: string; - - /** Status sql_delay. */ - public sql_delay: number; - - /** Status auto_position. */ - public auto_position: boolean; - - /** Status using_gtid. */ - public using_gtid: boolean; - - /** Status has_replication_filters. */ - public has_replication_filters: boolean; - - /** Status ssl_allowed. */ - public ssl_allowed: boolean; - - /** Status replication_lag_unknown. */ - public replication_lag_unknown: boolean; - - /** - * Creates a new Status instance using the specified properties. - * @param [properties] Properties to set - * @returns Status instance - */ - public static create(properties?: replicationdata.IStatus): replicationdata.Status; - - /** - * Encodes the specified Status message. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link replicationdata.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Status message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Status - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Status; - - /** - * Decodes a Status message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Status - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Status; - - /** - * Verifies a Status message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Status - */ - public static fromObject(object: { [k: string]: any }): replicationdata.Status; - - /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @param message Status - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Status to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Status - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Configuration. */ - interface IConfiguration { - - /** Configuration heartbeat_interval */ - heartbeat_interval?: (number|null); - - /** Configuration replica_net_timeout */ - replica_net_timeout?: (number|null); - } - - /** Represents a Configuration. */ - class Configuration implements IConfiguration { - - /** - * Constructs a new Configuration. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IConfiguration); - - /** Configuration heartbeat_interval. */ - public heartbeat_interval: number; - - /** Configuration replica_net_timeout. */ - public replica_net_timeout: number; - - /** - * Creates a new Configuration instance using the specified properties. - * @param [properties] Properties to set - * @returns Configuration instance - */ - public static create(properties?: replicationdata.IConfiguration): replicationdata.Configuration; - - /** - * Encodes the specified Configuration message. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. - * @param message Configuration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Configuration message, length delimited. Does not implicitly {@link replicationdata.Configuration.verify|verify} messages. - * @param message Configuration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Configuration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Configuration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.Configuration; - - /** - * Decodes a Configuration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Configuration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.Configuration; - - /** - * Verifies a Configuration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Configuration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Configuration - */ - public static fromObject(object: { [k: string]: any }): replicationdata.Configuration; - - /** - * Creates a plain object from a Configuration message. Also converts values to other types if specified. - * @param message Configuration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.Configuration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Configuration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Configuration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationStatus. */ - interface IStopReplicationStatus { - - /** StopReplicationStatus before */ - before?: (replicationdata.IStatus|null); - - /** StopReplicationStatus after */ - after?: (replicationdata.IStatus|null); - } - - /** Represents a StopReplicationStatus. */ - class StopReplicationStatus implements IStopReplicationStatus { - - /** - * Constructs a new StopReplicationStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IStopReplicationStatus); - - /** StopReplicationStatus before. */ - public before?: (replicationdata.IStatus|null); - - /** StopReplicationStatus after. */ - public after?: (replicationdata.IStatus|null); - - /** - * Creates a new StopReplicationStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationStatus instance - */ - public static create(properties?: replicationdata.IStopReplicationStatus): replicationdata.StopReplicationStatus; - - /** - * Encodes the specified StopReplicationStatus message. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationStatus message, length delimited. Does not implicitly {@link replicationdata.StopReplicationStatus.verify|verify} messages. - * @param message StopReplicationStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IStopReplicationStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.StopReplicationStatus; - - /** - * Decodes a StopReplicationStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.StopReplicationStatus; - - /** - * Verifies a StopReplicationStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.StopReplicationStatus; - - /** - * Creates a plain object from a StopReplicationStatus message. Also converts values to other types if specified. - * @param message StopReplicationStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.StopReplicationStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** StopReplicationMode enum. */ - enum StopReplicationMode { - IOANDSQLTHREAD = 0, - IOTHREADONLY = 1 - } - - /** Properties of a PrimaryStatus. */ - interface IPrimaryStatus { - - /** PrimaryStatus position */ - position?: (string|null); - - /** PrimaryStatus file_position */ - file_position?: (string|null); - } - - /** Represents a PrimaryStatus. */ - class PrimaryStatus implements IPrimaryStatus { - - /** - * Constructs a new PrimaryStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IPrimaryStatus); - - /** PrimaryStatus position. */ - public position: string; - - /** PrimaryStatus file_position. */ - public file_position: string; - - /** - * Creates a new PrimaryStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PrimaryStatus instance - */ - public static create(properties?: replicationdata.IPrimaryStatus): replicationdata.PrimaryStatus; - - /** - * Encodes the specified PrimaryStatus message. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. - * @param message PrimaryStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PrimaryStatus message, length delimited. Does not implicitly {@link replicationdata.PrimaryStatus.verify|verify} messages. - * @param message PrimaryStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IPrimaryStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PrimaryStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PrimaryStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.PrimaryStatus; - - /** - * Decodes a PrimaryStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PrimaryStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.PrimaryStatus; - - /** - * Verifies a PrimaryStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PrimaryStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PrimaryStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.PrimaryStatus; - - /** - * Creates a plain object from a PrimaryStatus message. Also converts values to other types if specified. - * @param message PrimaryStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.PrimaryStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PrimaryStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PrimaryStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FullStatus. */ - interface IFullStatus { - - /** FullStatus server_id */ - server_id?: (number|null); - - /** FullStatus server_uuid */ - server_uuid?: (string|null); - - /** FullStatus replication_status */ - replication_status?: (replicationdata.IStatus|null); - - /** FullStatus primary_status */ - primary_status?: (replicationdata.IPrimaryStatus|null); - - /** FullStatus gtid_purged */ - gtid_purged?: (string|null); - - /** FullStatus version */ - version?: (string|null); - - /** FullStatus version_comment */ - version_comment?: (string|null); - - /** FullStatus read_only */ - read_only?: (boolean|null); - - /** FullStatus gtid_mode */ - gtid_mode?: (string|null); - - /** FullStatus binlog_format */ - binlog_format?: (string|null); - - /** FullStatus binlog_row_image */ - binlog_row_image?: (string|null); - - /** FullStatus log_bin_enabled */ - log_bin_enabled?: (boolean|null); - - /** FullStatus log_replica_updates */ - log_replica_updates?: (boolean|null); - - /** FullStatus semi_sync_primary_enabled */ - semi_sync_primary_enabled?: (boolean|null); - - /** FullStatus semi_sync_replica_enabled */ - semi_sync_replica_enabled?: (boolean|null); - - /** FullStatus semi_sync_primary_status */ - semi_sync_primary_status?: (boolean|null); - - /** FullStatus semi_sync_replica_status */ - semi_sync_replica_status?: (boolean|null); - - /** FullStatus semi_sync_primary_clients */ - semi_sync_primary_clients?: (number|null); - - /** FullStatus semi_sync_primary_timeout */ - semi_sync_primary_timeout?: (number|Long|null); - - /** FullStatus semi_sync_wait_for_replica_count */ - semi_sync_wait_for_replica_count?: (number|null); - - /** FullStatus super_read_only */ - super_read_only?: (boolean|null); - - /** FullStatus replication_configuration */ - replication_configuration?: (replicationdata.IConfiguration|null); - } - - /** Represents a FullStatus. */ - class FullStatus implements IFullStatus { - - /** - * Constructs a new FullStatus. - * @param [properties] Properties to set - */ - constructor(properties?: replicationdata.IFullStatus); - - /** FullStatus server_id. */ - public server_id: number; - - /** FullStatus server_uuid. */ - public server_uuid: string; - - /** FullStatus replication_status. */ - public replication_status?: (replicationdata.IStatus|null); - - /** FullStatus primary_status. */ - public primary_status?: (replicationdata.IPrimaryStatus|null); - - /** FullStatus gtid_purged. */ - public gtid_purged: string; - - /** FullStatus version. */ - public version: string; - - /** FullStatus version_comment. */ - public version_comment: string; - - /** FullStatus read_only. */ - public read_only: boolean; - - /** FullStatus gtid_mode. */ - public gtid_mode: string; - - /** FullStatus binlog_format. */ - public binlog_format: string; - - /** FullStatus binlog_row_image. */ - public binlog_row_image: string; - - /** FullStatus log_bin_enabled. */ - public log_bin_enabled: boolean; - - /** FullStatus log_replica_updates. */ - public log_replica_updates: boolean; - - /** FullStatus semi_sync_primary_enabled. */ - public semi_sync_primary_enabled: boolean; - - /** FullStatus semi_sync_replica_enabled. */ - public semi_sync_replica_enabled: boolean; - - /** FullStatus semi_sync_primary_status. */ - public semi_sync_primary_status: boolean; - - /** FullStatus semi_sync_replica_status. */ - public semi_sync_replica_status: boolean; - - /** FullStatus semi_sync_primary_clients. */ - public semi_sync_primary_clients: number; - - /** FullStatus semi_sync_primary_timeout. */ - public semi_sync_primary_timeout: (number|Long); - - /** FullStatus semi_sync_wait_for_replica_count. */ - public semi_sync_wait_for_replica_count: number; - - /** FullStatus super_read_only. */ - public super_read_only: boolean; - - /** FullStatus replication_configuration. */ - public replication_configuration?: (replicationdata.IConfiguration|null); - - /** - * Creates a new FullStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns FullStatus instance - */ - public static create(properties?: replicationdata.IFullStatus): replicationdata.FullStatus; - - /** - * Encodes the specified FullStatus message. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. - * @param message FullStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FullStatus message, length delimited. Does not implicitly {@link replicationdata.FullStatus.verify|verify} messages. - * @param message FullStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: replicationdata.IFullStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FullStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replicationdata.FullStatus; - - /** - * Decodes a FullStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replicationdata.FullStatus; - - /** - * Verifies a FullStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FullStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullStatus - */ - public static fromObject(object: { [k: string]: any }): replicationdata.FullStatus; - - /** - * Creates a plain object from a FullStatus message. Also converts values to other types if specified. - * @param message FullStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: replicationdata.FullStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FullStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FullStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace vschema. */ -export namespace vschema { - - /** Properties of a RoutingRules. */ - interface IRoutingRules { - - /** RoutingRules rules */ - rules?: (vschema.IRoutingRule[]|null); - } - - /** Represents a RoutingRules. */ - class RoutingRules implements IRoutingRules { - - /** - * Constructs a new RoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IRoutingRules); - - /** RoutingRules rules. */ - public rules: vschema.IRoutingRule[]; - - /** - * Creates a new RoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns RoutingRules instance - */ - public static create(properties?: vschema.IRoutingRules): vschema.RoutingRules; - - /** - * Encodes the specified RoutingRules message. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RoutingRules message, length delimited. Does not implicitly {@link vschema.RoutingRules.verify|verify} messages. - * @param message RoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRules; - - /** - * Decodes a RoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRules; - - /** - * Verifies a RoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRules; - - /** - * Creates a plain object from a RoutingRules message. Also converts values to other types if specified. - * @param message RoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.RoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RoutingRule. */ - interface IRoutingRule { - - /** RoutingRule from_table */ - from_table?: (string|null); - - /** RoutingRule to_tables */ - to_tables?: (string[]|null); - } - - /** Represents a RoutingRule. */ - class RoutingRule implements IRoutingRule { - - /** - * Constructs a new RoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IRoutingRule); - - /** RoutingRule from_table. */ - public from_table: string; - - /** RoutingRule to_tables. */ - public to_tables: string[]; - - /** - * Creates a new RoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns RoutingRule instance - */ - public static create(properties?: vschema.IRoutingRule): vschema.RoutingRule; - - /** - * Encodes the specified RoutingRule message. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RoutingRule message, length delimited. Does not implicitly {@link vschema.RoutingRule.verify|verify} messages. - * @param message RoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.RoutingRule; - - /** - * Decodes a RoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.RoutingRule; - - /** - * Verifies a RoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.RoutingRule; - - /** - * Creates a plain object from a RoutingRule message. Also converts values to other types if specified. - * @param message RoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.RoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Keyspace. */ - interface IKeyspace { - - /** Keyspace sharded */ - sharded?: (boolean|null); - - /** Keyspace vindexes */ - vindexes?: ({ [k: string]: vschema.IVindex }|null); - - /** Keyspace tables */ - tables?: ({ [k: string]: vschema.ITable }|null); - - /** Keyspace require_explicit_routing */ - require_explicit_routing?: (boolean|null); - - /** Keyspace foreign_key_mode */ - foreign_key_mode?: (vschema.Keyspace.ForeignKeyMode|null); - - /** Keyspace multi_tenant_spec */ - multi_tenant_spec?: (vschema.IMultiTenantSpec|null); - } - - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { - - /** - * Constructs a new Keyspace. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspace); - - /** Keyspace sharded. */ - public sharded: boolean; - - /** Keyspace vindexes. */ - public vindexes: { [k: string]: vschema.IVindex }; - - /** Keyspace tables. */ - public tables: { [k: string]: vschema.ITable }; - - /** Keyspace require_explicit_routing. */ - public require_explicit_routing: boolean; - - /** Keyspace foreign_key_mode. */ - public foreign_key_mode: vschema.Keyspace.ForeignKeyMode; - - /** Keyspace multi_tenant_spec. */ - public multi_tenant_spec?: (vschema.IMultiTenantSpec|null); - - /** - * Creates a new Keyspace instance using the specified properties. - * @param [properties] Properties to set - * @returns Keyspace instance - */ - public static create(properties?: vschema.IKeyspace): vschema.Keyspace; - - /** - * Encodes the specified Keyspace message. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vschema.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Keyspace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Keyspace; - - /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Keyspace; - - /** - * Verifies a Keyspace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Keyspace - */ - public static fromObject(object: { [k: string]: any }): vschema.Keyspace; - - /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @param message Keyspace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Keyspace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Keyspace - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Keyspace { - - /** ForeignKeyMode enum. */ - enum ForeignKeyMode { - unspecified = 0, - disallow = 1, - unmanaged = 2, - managed = 3 - } - } - - /** Properties of a MultiTenantSpec. */ - interface IMultiTenantSpec { - - /** MultiTenantSpec tenant_id_column_name */ - tenant_id_column_name?: (string|null); - - /** MultiTenantSpec tenant_id_column_type */ - tenant_id_column_type?: (query.Type|null); - } - - /** Represents a MultiTenantSpec. */ - class MultiTenantSpec implements IMultiTenantSpec { - - /** - * Constructs a new MultiTenantSpec. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMultiTenantSpec); - - /** MultiTenantSpec tenant_id_column_name. */ - public tenant_id_column_name: string; - - /** MultiTenantSpec tenant_id_column_type. */ - public tenant_id_column_type: query.Type; - - /** - * Creates a new MultiTenantSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MultiTenantSpec instance - */ - public static create(properties?: vschema.IMultiTenantSpec): vschema.MultiTenantSpec; - - /** - * Encodes the specified MultiTenantSpec message. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. - * @param message MultiTenantSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MultiTenantSpec message, length delimited. Does not implicitly {@link vschema.MultiTenantSpec.verify|verify} messages. - * @param message MultiTenantSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMultiTenantSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MultiTenantSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MultiTenantSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MultiTenantSpec; - - /** - * Decodes a MultiTenantSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MultiTenantSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MultiTenantSpec; - - /** - * Verifies a MultiTenantSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MultiTenantSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MultiTenantSpec - */ - public static fromObject(object: { [k: string]: any }): vschema.MultiTenantSpec; - - /** - * Creates a plain object from a MultiTenantSpec message. Also converts values to other types if specified. - * @param message MultiTenantSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MultiTenantSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MultiTenantSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MultiTenantSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Vindex. */ - interface IVindex { - - /** Vindex type */ - type?: (string|null); - - /** Vindex params */ - params?: ({ [k: string]: string }|null); - - /** Vindex owner */ - owner?: (string|null); - } - - /** Represents a Vindex. */ - class Vindex implements IVindex { - - /** - * Constructs a new Vindex. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IVindex); - - /** Vindex type. */ - public type: string; - - /** Vindex params. */ - public params: { [k: string]: string }; - - /** Vindex owner. */ - public owner: string; - - /** - * Creates a new Vindex instance using the specified properties. - * @param [properties] Properties to set - * @returns Vindex instance - */ - public static create(properties?: vschema.IVindex): vschema.Vindex; - - /** - * Encodes the specified Vindex message. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Vindex message, length delimited. Does not implicitly {@link vschema.Vindex.verify|verify} messages. - * @param message Vindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Vindex message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Vindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Vindex; - - /** - * Decodes a Vindex message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Vindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Vindex; - - /** - * Verifies a Vindex message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Vindex message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Vindex - */ - public static fromObject(object: { [k: string]: any }): vschema.Vindex; - - /** - * Creates a plain object from a Vindex message. Also converts values to other types if specified. - * @param message Vindex - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Vindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Vindex to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Vindex - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Table. */ - interface ITable { - - /** Table type */ - type?: (string|null); - - /** Table column_vindexes */ - column_vindexes?: (vschema.IColumnVindex[]|null); - - /** Table auto_increment */ - auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns */ - columns?: (vschema.IColumn[]|null); - - /** Table pinned */ - pinned?: (string|null); - - /** Table column_list_authoritative */ - column_list_authoritative?: (boolean|null); - - /** Table source */ - source?: (string|null); - } - - /** Represents a Table. */ - class Table implements ITable { - - /** - * Constructs a new Table. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.ITable); - - /** Table type. */ - public type: string; - - /** Table column_vindexes. */ - public column_vindexes: vschema.IColumnVindex[]; - - /** Table auto_increment. */ - public auto_increment?: (vschema.IAutoIncrement|null); - - /** Table columns. */ - public columns: vschema.IColumn[]; - - /** Table pinned. */ - public pinned: string; - - /** Table column_list_authoritative. */ - public column_list_authoritative: boolean; - - /** Table source. */ - public source: string; - - /** - * Creates a new Table instance using the specified properties. - * @param [properties] Properties to set - * @returns Table instance - */ - public static create(properties?: vschema.ITable): vschema.Table; - - /** - * Encodes the specified Table message. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Table message, length delimited. Does not implicitly {@link vschema.Table.verify|verify} messages. - * @param message Table message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.ITable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Table message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Table; - - /** - * Decodes a Table message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Table - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Table; - - /** - * Verifies a Table message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Table message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Table - */ - public static fromObject(object: { [k: string]: any }): vschema.Table; - - /** - * Creates a plain object from a Table message. Also converts values to other types if specified. - * @param message Table - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Table, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Table to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Table - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ColumnVindex. */ - interface IColumnVindex { - - /** ColumnVindex column */ - column?: (string|null); - - /** ColumnVindex name */ - name?: (string|null); - - /** ColumnVindex columns */ - columns?: (string[]|null); - } - - /** Represents a ColumnVindex. */ - class ColumnVindex implements IColumnVindex { - - /** - * Constructs a new ColumnVindex. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IColumnVindex); - - /** ColumnVindex column. */ - public column: string; - - /** ColumnVindex name. */ - public name: string; - - /** ColumnVindex columns. */ - public columns: string[]; - - /** - * Creates a new ColumnVindex instance using the specified properties. - * @param [properties] Properties to set - * @returns ColumnVindex instance - */ - public static create(properties?: vschema.IColumnVindex): vschema.ColumnVindex; - - /** - * Encodes the specified ColumnVindex message. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ColumnVindex message, length delimited. Does not implicitly {@link vschema.ColumnVindex.verify|verify} messages. - * @param message ColumnVindex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IColumnVindex, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ColumnVindex message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ColumnVindex; - - /** - * Decodes a ColumnVindex message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ColumnVindex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ColumnVindex; - - /** - * Verifies a ColumnVindex message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ColumnVindex message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ColumnVindex - */ - public static fromObject(object: { [k: string]: any }): vschema.ColumnVindex; - - /** - * Creates a plain object from a ColumnVindex message. Also converts values to other types if specified. - * @param message ColumnVindex - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ColumnVindex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ColumnVindex to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ColumnVindex - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AutoIncrement. */ - interface IAutoIncrement { - - /** AutoIncrement column */ - column?: (string|null); - - /** AutoIncrement sequence */ - sequence?: (string|null); - } - - /** Represents an AutoIncrement. */ - class AutoIncrement implements IAutoIncrement { - - /** - * Constructs a new AutoIncrement. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IAutoIncrement); - - /** AutoIncrement column. */ - public column: string; - - /** AutoIncrement sequence. */ - public sequence: string; - - /** - * Creates a new AutoIncrement instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoIncrement instance - */ - public static create(properties?: vschema.IAutoIncrement): vschema.AutoIncrement; - - /** - * Encodes the specified AutoIncrement message. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AutoIncrement message, length delimited. Does not implicitly {@link vschema.AutoIncrement.verify|verify} messages. - * @param message AutoIncrement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IAutoIncrement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AutoIncrement message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutoIncrement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.AutoIncrement; - - /** - * Decodes an AutoIncrement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoIncrement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.AutoIncrement; - - /** - * Verifies an AutoIncrement message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AutoIncrement message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutoIncrement - */ - public static fromObject(object: { [k: string]: any }): vschema.AutoIncrement; - - /** - * Creates a plain object from an AutoIncrement message. Also converts values to other types if specified. - * @param message AutoIncrement - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.AutoIncrement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AutoIncrement to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AutoIncrement - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Column. */ - interface IColumn { - - /** Column name */ - name?: (string|null); - - /** Column type */ - type?: (query.Type|null); - - /** Column invisible */ - invisible?: (boolean|null); - - /** Column default */ - "default"?: (string|null); - - /** Column collation_name */ - collation_name?: (string|null); - - /** Column size */ - size?: (number|null); - - /** Column scale */ - scale?: (number|null); - - /** Column nullable */ - nullable?: (boolean|null); - - /** Column values */ - values?: (string[]|null); - } - - /** Represents a Column. */ - class Column implements IColumn { - - /** - * Constructs a new Column. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IColumn); - - /** Column name. */ - public name: string; - - /** Column type. */ - public type: query.Type; - - /** Column invisible. */ - public invisible: boolean; - - /** Column default. */ - public default: string; - - /** Column collation_name. */ - public collation_name: string; - - /** Column size. */ - public size: number; - - /** Column scale. */ - public scale: number; - - /** Column nullable. */ - public nullable?: (boolean|null); - - /** Column values. */ - public values: string[]; - - /** Column _nullable. */ - public _nullable?: "nullable"; - - /** - * Creates a new Column instance using the specified properties. - * @param [properties] Properties to set - * @returns Column instance - */ - public static create(properties?: vschema.IColumn): vschema.Column; - - /** - * Encodes the specified Column message. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Column message, length delimited. Does not implicitly {@link vschema.Column.verify|verify} messages. - * @param message Column message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Column message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.Column; - - /** - * Decodes a Column message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Column - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.Column; - - /** - * Verifies a Column message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Column message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Column - */ - public static fromObject(object: { [k: string]: any }): vschema.Column; - - /** - * Creates a plain object from a Column message. Also converts values to other types if specified. - * @param message Column - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.Column, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Column to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Column - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SrvVSchema. */ - interface ISrvVSchema { - - /** SrvVSchema keyspaces */ - keyspaces?: ({ [k: string]: vschema.IKeyspace }|null); - - /** SrvVSchema routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - - /** SrvVSchema shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** SrvVSchema keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** SrvVSchema mirror_rules */ - mirror_rules?: (vschema.IMirrorRules|null); - } - - /** Represents a SrvVSchema. */ - class SrvVSchema implements ISrvVSchema { - - /** - * Constructs a new SrvVSchema. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.ISrvVSchema); - - /** SrvVSchema keyspaces. */ - public keyspaces: { [k: string]: vschema.IKeyspace }; - - /** SrvVSchema routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** SrvVSchema shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** SrvVSchema keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** SrvVSchema mirror_rules. */ - public mirror_rules?: (vschema.IMirrorRules|null); - - /** - * Creates a new SrvVSchema instance using the specified properties. - * @param [properties] Properties to set - * @returns SrvVSchema instance - */ - public static create(properties?: vschema.ISrvVSchema): vschema.SrvVSchema; - - /** - * Encodes the specified SrvVSchema message. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SrvVSchema message, length delimited. Does not implicitly {@link vschema.SrvVSchema.verify|verify} messages. - * @param message SrvVSchema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.ISrvVSchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SrvVSchema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SrvVSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.SrvVSchema; - - /** - * Decodes a SrvVSchema message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SrvVSchema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.SrvVSchema; - - /** - * Verifies a SrvVSchema message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SrvVSchema message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SrvVSchema - */ - public static fromObject(object: { [k: string]: any }): vschema.SrvVSchema; - - /** - * Creates a plain object from a SrvVSchema message. Also converts values to other types if specified. - * @param message SrvVSchema - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.SrvVSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SrvVSchema to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SrvVSchema - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardRoutingRules. */ - interface IShardRoutingRules { - - /** ShardRoutingRules rules */ - rules?: (vschema.IShardRoutingRule[]|null); - } - - /** Represents a ShardRoutingRules. */ - class ShardRoutingRules implements IShardRoutingRules { - - /** - * Constructs a new ShardRoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IShardRoutingRules); - - /** ShardRoutingRules rules. */ - public rules: vschema.IShardRoutingRule[]; - - /** - * Creates a new ShardRoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardRoutingRules instance - */ - public static create(properties?: vschema.IShardRoutingRules): vschema.ShardRoutingRules; - - /** - * Encodes the specified ShardRoutingRules message. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @param message ShardRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardRoutingRules message, length delimited. Does not implicitly {@link vschema.ShardRoutingRules.verify|verify} messages. - * @param message ShardRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IShardRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardRoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRules; - - /** - * Decodes a ShardRoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRules; - - /** - * Verifies a ShardRoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardRoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardRoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRules; - - /** - * Creates a plain object from a ShardRoutingRules message. Also converts values to other types if specified. - * @param message ShardRoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ShardRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardRoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardRoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardRoutingRule. */ - interface IShardRoutingRule { - - /** ShardRoutingRule from_keyspace */ - from_keyspace?: (string|null); - - /** ShardRoutingRule to_keyspace */ - to_keyspace?: (string|null); - - /** ShardRoutingRule shard */ - shard?: (string|null); - } - - /** Represents a ShardRoutingRule. */ - class ShardRoutingRule implements IShardRoutingRule { - - /** - * Constructs a new ShardRoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IShardRoutingRule); - - /** ShardRoutingRule from_keyspace. */ - public from_keyspace: string; - - /** ShardRoutingRule to_keyspace. */ - public to_keyspace: string; - - /** ShardRoutingRule shard. */ - public shard: string; - - /** - * Creates a new ShardRoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardRoutingRule instance - */ - public static create(properties?: vschema.IShardRoutingRule): vschema.ShardRoutingRule; - - /** - * Encodes the specified ShardRoutingRule message. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. - * @param message ShardRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardRoutingRule message, length delimited. Does not implicitly {@link vschema.ShardRoutingRule.verify|verify} messages. - * @param message ShardRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IShardRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardRoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.ShardRoutingRule; - - /** - * Decodes a ShardRoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.ShardRoutingRule; - - /** - * Verifies a ShardRoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardRoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardRoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.ShardRoutingRule; - - /** - * Creates a plain object from a ShardRoutingRule message. Also converts values to other types if specified. - * @param message ShardRoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.ShardRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardRoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardRoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a KeyspaceRoutingRules. */ - interface IKeyspaceRoutingRules { - - /** KeyspaceRoutingRules rules */ - rules?: (vschema.IKeyspaceRoutingRule[]|null); - } - - /** Represents a KeyspaceRoutingRules. */ - class KeyspaceRoutingRules implements IKeyspaceRoutingRules { - - /** - * Constructs a new KeyspaceRoutingRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspaceRoutingRules); - - /** KeyspaceRoutingRules rules. */ - public rules: vschema.IKeyspaceRoutingRule[]; - - /** - * Creates a new KeyspaceRoutingRules instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyspaceRoutingRules instance - */ - public static create(properties?: vschema.IKeyspaceRoutingRules): vschema.KeyspaceRoutingRules; - - /** - * Encodes the specified KeyspaceRoutingRules message. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. - * @param message KeyspaceRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KeyspaceRoutingRules message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRules.verify|verify} messages. - * @param message KeyspaceRoutingRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspaceRoutingRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyspaceRoutingRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyspaceRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRules; - - /** - * Decodes a KeyspaceRoutingRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyspaceRoutingRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRules; - - /** - * Verifies a KeyspaceRoutingRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KeyspaceRoutingRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeyspaceRoutingRules - */ - public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRules; - - /** - * Creates a plain object from a KeyspaceRoutingRules message. Also converts values to other types if specified. - * @param message KeyspaceRoutingRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.KeyspaceRoutingRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KeyspaceRoutingRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for KeyspaceRoutingRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a KeyspaceRoutingRule. */ - interface IKeyspaceRoutingRule { - - /** KeyspaceRoutingRule from_keyspace */ - from_keyspace?: (string|null); - - /** KeyspaceRoutingRule to_keyspace */ - to_keyspace?: (string|null); - } - - /** Represents a KeyspaceRoutingRule. */ - class KeyspaceRoutingRule implements IKeyspaceRoutingRule { - - /** - * Constructs a new KeyspaceRoutingRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IKeyspaceRoutingRule); - - /** KeyspaceRoutingRule from_keyspace. */ - public from_keyspace: string; - - /** KeyspaceRoutingRule to_keyspace. */ - public to_keyspace: string; - - /** - * Creates a new KeyspaceRoutingRule instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyspaceRoutingRule instance - */ - public static create(properties?: vschema.IKeyspaceRoutingRule): vschema.KeyspaceRoutingRule; - - /** - * Encodes the specified KeyspaceRoutingRule message. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. - * @param message KeyspaceRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KeyspaceRoutingRule message, length delimited. Does not implicitly {@link vschema.KeyspaceRoutingRule.verify|verify} messages. - * @param message KeyspaceRoutingRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IKeyspaceRoutingRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyspaceRoutingRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyspaceRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.KeyspaceRoutingRule; - - /** - * Decodes a KeyspaceRoutingRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KeyspaceRoutingRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.KeyspaceRoutingRule; - - /** - * Verifies a KeyspaceRoutingRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KeyspaceRoutingRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeyspaceRoutingRule - */ - public static fromObject(object: { [k: string]: any }): vschema.KeyspaceRoutingRule; - - /** - * Creates a plain object from a KeyspaceRoutingRule message. Also converts values to other types if specified. - * @param message KeyspaceRoutingRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.KeyspaceRoutingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KeyspaceRoutingRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for KeyspaceRoutingRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MirrorRules. */ - interface IMirrorRules { - - /** MirrorRules rules */ - rules?: (vschema.IMirrorRule[]|null); - } - - /** Represents a MirrorRules. */ - class MirrorRules implements IMirrorRules { - - /** - * Constructs a new MirrorRules. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMirrorRules); - - /** MirrorRules rules. */ - public rules: vschema.IMirrorRule[]; - - /** - * Creates a new MirrorRules instance using the specified properties. - * @param [properties] Properties to set - * @returns MirrorRules instance - */ - public static create(properties?: vschema.IMirrorRules): vschema.MirrorRules; - - /** - * Encodes the specified MirrorRules message. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. - * @param message MirrorRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MirrorRules message, length delimited. Does not implicitly {@link vschema.MirrorRules.verify|verify} messages. - * @param message MirrorRules message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMirrorRules, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MirrorRules message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MirrorRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRules; - - /** - * Decodes a MirrorRules message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MirrorRules - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRules; - - /** - * Verifies a MirrorRules message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MirrorRules message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MirrorRules - */ - public static fromObject(object: { [k: string]: any }): vschema.MirrorRules; - - /** - * Creates a plain object from a MirrorRules message. Also converts values to other types if specified. - * @param message MirrorRules - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MirrorRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MirrorRules to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MirrorRules - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MirrorRule. */ - interface IMirrorRule { - - /** MirrorRule from_table */ - from_table?: (string|null); - - /** MirrorRule to_table */ - to_table?: (string|null); - - /** MirrorRule percent */ - percent?: (number|null); - } - - /** Represents a MirrorRule. */ - class MirrorRule implements IMirrorRule { - - /** - * Constructs a new MirrorRule. - * @param [properties] Properties to set - */ - constructor(properties?: vschema.IMirrorRule); - - /** MirrorRule from_table. */ - public from_table: string; - - /** MirrorRule to_table. */ - public to_table: string; - - /** MirrorRule percent. */ - public percent: number; - - /** - * Creates a new MirrorRule instance using the specified properties. - * @param [properties] Properties to set - * @returns MirrorRule instance - */ - public static create(properties?: vschema.IMirrorRule): vschema.MirrorRule; - - /** - * Encodes the specified MirrorRule message. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. - * @param message MirrorRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MirrorRule message, length delimited. Does not implicitly {@link vschema.MirrorRule.verify|verify} messages. - * @param message MirrorRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vschema.IMirrorRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MirrorRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MirrorRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vschema.MirrorRule; - - /** - * Decodes a MirrorRule message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MirrorRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vschema.MirrorRule; - - /** - * Verifies a MirrorRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MirrorRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MirrorRule - */ - public static fromObject(object: { [k: string]: any }): vschema.MirrorRule; - - /** - * Creates a plain object from a MirrorRule message. Also converts values to other types if specified. - * @param message MirrorRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vschema.MirrorRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MirrorRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MirrorRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} - -/** Namespace vtctldata. */ -export namespace vtctldata { - - /** Properties of an ExecuteVtctlCommandRequest. */ - interface IExecuteVtctlCommandRequest { - - /** ExecuteVtctlCommandRequest args */ - args?: (string[]|null); - - /** ExecuteVtctlCommandRequest action_timeout */ - action_timeout?: (number|Long|null); - } - - /** Represents an ExecuteVtctlCommandRequest. */ - class ExecuteVtctlCommandRequest implements IExecuteVtctlCommandRequest { - - /** - * Constructs a new ExecuteVtctlCommandRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteVtctlCommandRequest); - - /** ExecuteVtctlCommandRequest args. */ - public args: string[]; - - /** ExecuteVtctlCommandRequest action_timeout. */ - public action_timeout: (number|Long); - - /** - * Creates a new ExecuteVtctlCommandRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteVtctlCommandRequest instance - */ - public static create(properties?: vtctldata.IExecuteVtctlCommandRequest): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Encodes the specified ExecuteVtctlCommandRequest message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteVtctlCommandRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandRequest.verify|verify} messages. - * @param message ExecuteVtctlCommandRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Decodes an ExecuteVtctlCommandRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Verifies an ExecuteVtctlCommandRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteVtctlCommandRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteVtctlCommandRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandRequest; - - /** - * Creates a plain object from an ExecuteVtctlCommandRequest message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteVtctlCommandRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteVtctlCommandRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteVtctlCommandRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteVtctlCommandResponse. */ - interface IExecuteVtctlCommandResponse { - - /** ExecuteVtctlCommandResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents an ExecuteVtctlCommandResponse. */ - class ExecuteVtctlCommandResponse implements IExecuteVtctlCommandResponse { - - /** - * Constructs a new ExecuteVtctlCommandResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteVtctlCommandResponse); - - /** ExecuteVtctlCommandResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new ExecuteVtctlCommandResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteVtctlCommandResponse instance - */ - public static create(properties?: vtctldata.IExecuteVtctlCommandResponse): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Encodes the specified ExecuteVtctlCommandResponse message. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteVtctlCommandResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteVtctlCommandResponse.verify|verify} messages. - * @param message ExecuteVtctlCommandResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteVtctlCommandResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteVtctlCommandResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Decodes an ExecuteVtctlCommandResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteVtctlCommandResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Verifies an ExecuteVtctlCommandResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteVtctlCommandResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteVtctlCommandResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteVtctlCommandResponse; - - /** - * Creates a plain object from an ExecuteVtctlCommandResponse message. Also converts values to other types if specified. - * @param message ExecuteVtctlCommandResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteVtctlCommandResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteVtctlCommandResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteVtctlCommandResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** MaterializationIntent enum. */ - enum MaterializationIntent { - CUSTOM = 0, - MOVETABLES = 1, - CREATELOOKUPINDEX = 2 - } - - /** Properties of a TableMaterializeSettings. */ - interface ITableMaterializeSettings { - - /** TableMaterializeSettings target_table */ - target_table?: (string|null); - - /** TableMaterializeSettings source_expression */ - source_expression?: (string|null); - - /** TableMaterializeSettings create_ddl */ - create_ddl?: (string|null); - } - - /** Represents a TableMaterializeSettings. */ - class TableMaterializeSettings implements ITableMaterializeSettings { - - /** - * Constructs a new TableMaterializeSettings. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITableMaterializeSettings); - - /** TableMaterializeSettings target_table. */ - public target_table: string; - - /** TableMaterializeSettings source_expression. */ - public source_expression: string; - - /** TableMaterializeSettings create_ddl. */ - public create_ddl: string; - - /** - * Creates a new TableMaterializeSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns TableMaterializeSettings instance - */ - public static create(properties?: vtctldata.ITableMaterializeSettings): vtctldata.TableMaterializeSettings; - - /** - * Encodes the specified TableMaterializeSettings message. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TableMaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.TableMaterializeSettings.verify|verify} messages. - * @param message TableMaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITableMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TableMaterializeSettings; - - /** - * Decodes a TableMaterializeSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TableMaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TableMaterializeSettings; - - /** - * Verifies a TableMaterializeSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TableMaterializeSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TableMaterializeSettings - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TableMaterializeSettings; - - /** - * Creates a plain object from a TableMaterializeSettings message. Also converts values to other types if specified. - * @param message TableMaterializeSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TableMaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TableMaterializeSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TableMaterializeSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeSettings. */ - interface IMaterializeSettings { - - /** MaterializeSettings workflow */ - workflow?: (string|null); - - /** MaterializeSettings source_keyspace */ - source_keyspace?: (string|null); - - /** MaterializeSettings target_keyspace */ - target_keyspace?: (string|null); - - /** MaterializeSettings stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MaterializeSettings table_settings */ - table_settings?: (vtctldata.ITableMaterializeSettings[]|null); - - /** MaterializeSettings cell */ - cell?: (string|null); - - /** MaterializeSettings tablet_types */ - tablet_types?: (string|null); - - /** MaterializeSettings external_cluster */ - external_cluster?: (string|null); - - /** MaterializeSettings materialization_intent */ - materialization_intent?: (vtctldata.MaterializationIntent|null); - - /** MaterializeSettings source_time_zone */ - source_time_zone?: (string|null); - - /** MaterializeSettings target_time_zone */ - target_time_zone?: (string|null); - - /** MaterializeSettings source_shards */ - source_shards?: (string[]|null); - - /** MaterializeSettings on_ddl */ - on_ddl?: (string|null); - - /** MaterializeSettings defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MaterializeSettings tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MaterializeSettings atomic_copy */ - atomic_copy?: (boolean|null); - - /** MaterializeSettings workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** MaterializeSettings reference_tables */ - reference_tables?: (string[]|null); - } - - /** Represents a MaterializeSettings. */ - class MaterializeSettings implements IMaterializeSettings { - - /** - * Constructs a new MaterializeSettings. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeSettings); - - /** MaterializeSettings workflow. */ - public workflow: string; - - /** MaterializeSettings source_keyspace. */ - public source_keyspace: string; - - /** MaterializeSettings target_keyspace. */ - public target_keyspace: string; - - /** MaterializeSettings stop_after_copy. */ - public stop_after_copy: boolean; - - /** MaterializeSettings table_settings. */ - public table_settings: vtctldata.ITableMaterializeSettings[]; - - /** MaterializeSettings cell. */ - public cell: string; - - /** MaterializeSettings tablet_types. */ - public tablet_types: string; - - /** MaterializeSettings external_cluster. */ - public external_cluster: string; - - /** MaterializeSettings materialization_intent. */ - public materialization_intent: vtctldata.MaterializationIntent; - - /** MaterializeSettings source_time_zone. */ - public source_time_zone: string; - - /** MaterializeSettings target_time_zone. */ - public target_time_zone: string; - - /** MaterializeSettings source_shards. */ - public source_shards: string[]; - - /** MaterializeSettings on_ddl. */ - public on_ddl: string; - - /** MaterializeSettings defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MaterializeSettings tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MaterializeSettings atomic_copy. */ - public atomic_copy: boolean; - - /** MaterializeSettings workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** MaterializeSettings reference_tables. */ - public reference_tables: string[]; - - /** - * Creates a new MaterializeSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeSettings instance - */ - public static create(properties?: vtctldata.IMaterializeSettings): vtctldata.MaterializeSettings; - - /** - * Encodes the specified MaterializeSettings message. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeSettings message, length delimited. Does not implicitly {@link vtctldata.MaterializeSettings.verify|verify} messages. - * @param message MaterializeSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeSettings; - - /** - * Decodes a MaterializeSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeSettings; - - /** - * Verifies a MaterializeSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeSettings - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeSettings; - - /** - * Creates a plain object from a MaterializeSettings message. Also converts values to other types if specified. - * @param message MaterializeSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Keyspace. */ - interface IKeyspace { - - /** Keyspace name */ - name?: (string|null); - - /** Keyspace keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a Keyspace. */ - class Keyspace implements IKeyspace { - - /** - * Constructs a new Keyspace. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IKeyspace); - - /** Keyspace name. */ - public name: string; - - /** Keyspace keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new Keyspace instance using the specified properties. - * @param [properties] Properties to set - * @returns Keyspace instance - */ - public static create(properties?: vtctldata.IKeyspace): vtctldata.Keyspace; - - /** - * Encodes the specified Keyspace message. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Keyspace message, length delimited. Does not implicitly {@link vtctldata.Keyspace.verify|verify} messages. - * @param message Keyspace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IKeyspace, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Keyspace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Keyspace; - - /** - * Decodes a Keyspace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Keyspace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Keyspace; - - /** - * Verifies a Keyspace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Keyspace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Keyspace - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Keyspace; - - /** - * Creates a plain object from a Keyspace message. Also converts values to other types if specified. - * @param message Keyspace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Keyspace, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Keyspace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Keyspace - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** QueryOrdering enum. */ - enum QueryOrdering { - NONE = 0, - ASCENDING = 1, - DESCENDING = 2 - } - - /** Properties of a SchemaMigration. */ - interface ISchemaMigration { - - /** SchemaMigration uuid */ - uuid?: (string|null); - - /** SchemaMigration keyspace */ - keyspace?: (string|null); - - /** SchemaMigration shard */ - shard?: (string|null); - - /** SchemaMigration schema */ - schema?: (string|null); - - /** SchemaMigration table */ - table?: (string|null); - - /** SchemaMigration migration_statement */ - migration_statement?: (string|null); - - /** SchemaMigration strategy */ - strategy?: (vtctldata.SchemaMigration.Strategy|null); - - /** SchemaMigration options */ - options?: (string|null); - - /** SchemaMigration added_at */ - added_at?: (vttime.ITime|null); - - /** SchemaMigration requested_at */ - requested_at?: (vttime.ITime|null); - - /** SchemaMigration ready_at */ - ready_at?: (vttime.ITime|null); - - /** SchemaMigration started_at */ - started_at?: (vttime.ITime|null); - - /** SchemaMigration liveness_timestamp */ - liveness_timestamp?: (vttime.ITime|null); - - /** SchemaMigration completed_at */ - completed_at?: (vttime.ITime|null); - - /** SchemaMigration cleaned_up_at */ - cleaned_up_at?: (vttime.ITime|null); - - /** SchemaMigration status */ - status?: (vtctldata.SchemaMigration.Status|null); - - /** SchemaMigration log_path */ - log_path?: (string|null); - - /** SchemaMigration artifacts */ - artifacts?: (string|null); - - /** SchemaMigration retries */ - retries?: (number|Long|null); - - /** SchemaMigration tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** SchemaMigration tablet_failure */ - tablet_failure?: (boolean|null); - - /** SchemaMigration progress */ - progress?: (number|null); - - /** SchemaMigration migration_context */ - migration_context?: (string|null); - - /** SchemaMigration ddl_action */ - ddl_action?: (string|null); - - /** SchemaMigration message */ - message?: (string|null); - - /** SchemaMigration eta_seconds */ - eta_seconds?: (number|Long|null); - - /** SchemaMigration rows_copied */ - rows_copied?: (number|Long|null); - - /** SchemaMigration table_rows */ - table_rows?: (number|Long|null); - - /** SchemaMigration added_unique_keys */ - added_unique_keys?: (number|null); - - /** SchemaMigration removed_unique_keys */ - removed_unique_keys?: (number|null); - - /** SchemaMigration log_file */ - log_file?: (string|null); - - /** SchemaMigration artifact_retention */ - artifact_retention?: (vttime.IDuration|null); - - /** SchemaMigration postpone_completion */ - postpone_completion?: (boolean|null); - - /** SchemaMigration removed_unique_key_names */ - removed_unique_key_names?: (string|null); - - /** SchemaMigration dropped_no_default_column_names */ - dropped_no_default_column_names?: (string|null); - - /** SchemaMigration expanded_column_names */ - expanded_column_names?: (string|null); - - /** SchemaMigration revertible_notes */ - revertible_notes?: (string|null); - - /** SchemaMigration allow_concurrent */ - allow_concurrent?: (boolean|null); - - /** SchemaMigration reverted_uuid */ - reverted_uuid?: (string|null); - - /** SchemaMigration is_view */ - is_view?: (boolean|null); - - /** SchemaMigration ready_to_complete */ - ready_to_complete?: (boolean|null); - - /** SchemaMigration vitess_liveness_indicator */ - vitess_liveness_indicator?: (number|Long|null); - - /** SchemaMigration user_throttle_ratio */ - user_throttle_ratio?: (number|null); - - /** SchemaMigration special_plan */ - special_plan?: (string|null); - - /** SchemaMigration last_throttled_at */ - last_throttled_at?: (vttime.ITime|null); - - /** SchemaMigration component_throttled */ - component_throttled?: (string|null); - - /** SchemaMigration cancelled_at */ - cancelled_at?: (vttime.ITime|null); - - /** SchemaMigration postpone_launch */ - postpone_launch?: (boolean|null); - - /** SchemaMigration stage */ - stage?: (string|null); - - /** SchemaMigration cutover_attempts */ - cutover_attempts?: (number|null); - - /** SchemaMigration is_immediate_operation */ - is_immediate_operation?: (boolean|null); - - /** SchemaMigration reviewed_at */ - reviewed_at?: (vttime.ITime|null); - - /** SchemaMigration ready_to_complete_at */ - ready_to_complete_at?: (vttime.ITime|null); - - /** SchemaMigration removed_foreign_key_names */ - removed_foreign_key_names?: (string|null); - } - - /** Represents a SchemaMigration. */ - class SchemaMigration implements ISchemaMigration { - - /** - * Constructs a new SchemaMigration. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISchemaMigration); - - /** SchemaMigration uuid. */ - public uuid: string; - - /** SchemaMigration keyspace. */ - public keyspace: string; - - /** SchemaMigration shard. */ - public shard: string; - - /** SchemaMigration schema. */ - public schema: string; - - /** SchemaMigration table. */ - public table: string; - - /** SchemaMigration migration_statement. */ - public migration_statement: string; - - /** SchemaMigration strategy. */ - public strategy: vtctldata.SchemaMigration.Strategy; - - /** SchemaMigration options. */ - public options: string; - - /** SchemaMigration added_at. */ - public added_at?: (vttime.ITime|null); - - /** SchemaMigration requested_at. */ - public requested_at?: (vttime.ITime|null); - - /** SchemaMigration ready_at. */ - public ready_at?: (vttime.ITime|null); - - /** SchemaMigration started_at. */ - public started_at?: (vttime.ITime|null); - - /** SchemaMigration liveness_timestamp. */ - public liveness_timestamp?: (vttime.ITime|null); - - /** SchemaMigration completed_at. */ - public completed_at?: (vttime.ITime|null); - - /** SchemaMigration cleaned_up_at. */ - public cleaned_up_at?: (vttime.ITime|null); - - /** SchemaMigration status. */ - public status: vtctldata.SchemaMigration.Status; - - /** SchemaMigration log_path. */ - public log_path: string; - - /** SchemaMigration artifacts. */ - public artifacts: string; - - /** SchemaMigration retries. */ - public retries: (number|Long); - - /** SchemaMigration tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** SchemaMigration tablet_failure. */ - public tablet_failure: boolean; - - /** SchemaMigration progress. */ - public progress: number; - - /** SchemaMigration migration_context. */ - public migration_context: string; - - /** SchemaMigration ddl_action. */ - public ddl_action: string; - - /** SchemaMigration message. */ - public message: string; - - /** SchemaMigration eta_seconds. */ - public eta_seconds: (number|Long); - - /** SchemaMigration rows_copied. */ - public rows_copied: (number|Long); - - /** SchemaMigration table_rows. */ - public table_rows: (number|Long); - - /** SchemaMigration added_unique_keys. */ - public added_unique_keys: number; - - /** SchemaMigration removed_unique_keys. */ - public removed_unique_keys: number; - - /** SchemaMigration log_file. */ - public log_file: string; - - /** SchemaMigration artifact_retention. */ - public artifact_retention?: (vttime.IDuration|null); - - /** SchemaMigration postpone_completion. */ - public postpone_completion: boolean; - - /** SchemaMigration removed_unique_key_names. */ - public removed_unique_key_names: string; - - /** SchemaMigration dropped_no_default_column_names. */ - public dropped_no_default_column_names: string; - - /** SchemaMigration expanded_column_names. */ - public expanded_column_names: string; - - /** SchemaMigration revertible_notes. */ - public revertible_notes: string; - - /** SchemaMigration allow_concurrent. */ - public allow_concurrent: boolean; - - /** SchemaMigration reverted_uuid. */ - public reverted_uuid: string; - - /** SchemaMigration is_view. */ - public is_view: boolean; - - /** SchemaMigration ready_to_complete. */ - public ready_to_complete: boolean; - - /** SchemaMigration vitess_liveness_indicator. */ - public vitess_liveness_indicator: (number|Long); - - /** SchemaMigration user_throttle_ratio. */ - public user_throttle_ratio: number; - - /** SchemaMigration special_plan. */ - public special_plan: string; - - /** SchemaMigration last_throttled_at. */ - public last_throttled_at?: (vttime.ITime|null); - - /** SchemaMigration component_throttled. */ - public component_throttled: string; - - /** SchemaMigration cancelled_at. */ - public cancelled_at?: (vttime.ITime|null); - - /** SchemaMigration postpone_launch. */ - public postpone_launch: boolean; - - /** SchemaMigration stage. */ - public stage: string; - - /** SchemaMigration cutover_attempts. */ - public cutover_attempts: number; - - /** SchemaMigration is_immediate_operation. */ - public is_immediate_operation: boolean; - - /** SchemaMigration reviewed_at. */ - public reviewed_at?: (vttime.ITime|null); - - /** SchemaMigration ready_to_complete_at. */ - public ready_to_complete_at?: (vttime.ITime|null); - - /** SchemaMigration removed_foreign_key_names. */ - public removed_foreign_key_names: string; - - /** - * Creates a new SchemaMigration instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaMigration instance - */ - public static create(properties?: vtctldata.ISchemaMigration): vtctldata.SchemaMigration; - - /** - * Encodes the specified SchemaMigration message. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. - * @param message SchemaMigration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SchemaMigration message, length delimited. Does not implicitly {@link vtctldata.SchemaMigration.verify|verify} messages. - * @param message SchemaMigration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISchemaMigration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaMigration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaMigration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SchemaMigration; - - /** - * Decodes a SchemaMigration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SchemaMigration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SchemaMigration; - - /** - * Verifies a SchemaMigration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SchemaMigration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SchemaMigration - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SchemaMigration; - - /** - * Creates a plain object from a SchemaMigration message. Also converts values to other types if specified. - * @param message SchemaMigration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SchemaMigration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SchemaMigration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SchemaMigration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace SchemaMigration { - - /** Strategy enum. */ - enum Strategy { - VITESS = 0, - ONLINE = 0, - GHOST = 1, - PTOSC = 2, - DIRECT = 3, - MYSQL = 4 - } - - /** Status enum. */ - enum Status { - UNKNOWN = 0, - REQUESTED = 1, - CANCELLED = 2, - QUEUED = 3, - READY = 4, - RUNNING = 5, - COMPLETE = 6, - FAILED = 7 - } - } - - /** Properties of a Shard. */ - interface IShard { - - /** Shard keyspace */ - keyspace?: (string|null); - - /** Shard name */ - name?: (string|null); - - /** Shard shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a Shard. */ - class Shard implements IShard { - - /** - * Constructs a new Shard. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShard); - - /** Shard keyspace. */ - public keyspace: string; - - /** Shard name. */ - public name: string; - - /** Shard shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new Shard instance using the specified properties. - * @param [properties] Properties to set - * @returns Shard instance - */ - public static create(properties?: vtctldata.IShard): vtctldata.Shard; - - /** - * Encodes the specified Shard message. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Shard message, length delimited. Does not implicitly {@link vtctldata.Shard.verify|verify} messages. - * @param message Shard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShard, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Shard message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Shard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Shard; - - /** - * Decodes a Shard message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Shard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Shard; - - /** - * Verifies a Shard message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Shard message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Shard - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Shard; - - /** - * Creates a plain object from a Shard message. Also converts values to other types if specified. - * @param message Shard - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Shard, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Shard to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Shard - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowOptions. */ - interface IWorkflowOptions { - - /** WorkflowOptions tenant_id */ - tenant_id?: (string|null); - - /** WorkflowOptions strip_sharded_auto_increment */ - strip_sharded_auto_increment?: (boolean|null); - - /** WorkflowOptions shards */ - shards?: (string[]|null); - - /** WorkflowOptions config */ - config?: ({ [k: string]: string }|null); - } - - /** Represents a WorkflowOptions. */ - class WorkflowOptions implements IWorkflowOptions { - - /** - * Constructs a new WorkflowOptions. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowOptions); - - /** WorkflowOptions tenant_id. */ - public tenant_id: string; - - /** WorkflowOptions strip_sharded_auto_increment. */ - public strip_sharded_auto_increment: boolean; - - /** WorkflowOptions shards. */ - public shards: string[]; - - /** WorkflowOptions config. */ - public config: { [k: string]: string }; - - /** - * Creates a new WorkflowOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowOptions instance - */ - public static create(properties?: vtctldata.IWorkflowOptions): vtctldata.WorkflowOptions; - - /** - * Encodes the specified WorkflowOptions message. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @param message WorkflowOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowOptions message, length delimited. Does not implicitly {@link vtctldata.WorkflowOptions.verify|verify} messages. - * @param message WorkflowOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowOptions; - - /** - * Decodes a WorkflowOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowOptions; - - /** - * Verifies a WorkflowOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowOptions - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowOptions; - - /** - * Creates a plain object from a WorkflowOptions message. Also converts values to other types if specified. - * @param message WorkflowOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Workflow. */ - interface IWorkflow { - - /** Workflow name */ - name?: (string|null); - - /** Workflow source */ - source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target */ - target?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow max_v_replication_lag */ - max_v_replication_lag?: (number|Long|null); - - /** Workflow shard_streams */ - shard_streams?: ({ [k: string]: vtctldata.Workflow.IShardStream }|null); - - /** Workflow workflow_type */ - workflow_type?: (string|null); - - /** Workflow workflow_sub_type */ - workflow_sub_type?: (string|null); - - /** Workflow max_v_replication_transaction_lag */ - max_v_replication_transaction_lag?: (number|Long|null); - - /** Workflow defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** Workflow options */ - options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a Workflow. */ - class Workflow implements IWorkflow { - - /** - * Constructs a new Workflow. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflow); - - /** Workflow name. */ - public name: string; - - /** Workflow source. */ - public source?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow target. */ - public target?: (vtctldata.Workflow.IReplicationLocation|null); - - /** Workflow max_v_replication_lag. */ - public max_v_replication_lag: (number|Long); - - /** Workflow shard_streams. */ - public shard_streams: { [k: string]: vtctldata.Workflow.IShardStream }; - - /** Workflow workflow_type. */ - public workflow_type: string; - - /** Workflow workflow_sub_type. */ - public workflow_sub_type: string; - - /** Workflow max_v_replication_transaction_lag. */ - public max_v_replication_transaction_lag: (number|Long); - - /** Workflow defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** Workflow options. */ - public options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new Workflow instance using the specified properties. - * @param [properties] Properties to set - * @returns Workflow instance - */ - public static create(properties?: vtctldata.IWorkflow): vtctldata.Workflow; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Workflow message, length delimited. Does not implicitly {@link vtctldata.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow; - - /** - * Decodes a Workflow message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow; - - /** - * Verifies a Workflow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Workflow message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Workflow - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow; - - /** - * Creates a plain object from a Workflow message. Also converts values to other types if specified. - * @param message Workflow - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Workflow to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Workflow - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Workflow { - - /** Properties of a ReplicationLocation. */ - interface IReplicationLocation { - - /** ReplicationLocation keyspace */ - keyspace?: (string|null); - - /** ReplicationLocation shards */ - shards?: (string[]|null); - } - - /** Represents a ReplicationLocation. */ - class ReplicationLocation implements IReplicationLocation { - - /** - * Constructs a new ReplicationLocation. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IReplicationLocation); - - /** ReplicationLocation keyspace. */ - public keyspace: string; - - /** ReplicationLocation shards. */ - public shards: string[]; - - /** - * Creates a new ReplicationLocation instance using the specified properties. - * @param [properties] Properties to set - * @returns ReplicationLocation instance - */ - public static create(properties?: vtctldata.Workflow.IReplicationLocation): vtctldata.Workflow.ReplicationLocation; - - /** - * Encodes the specified ReplicationLocation message. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReplicationLocation message, length delimited. Does not implicitly {@link vtctldata.Workflow.ReplicationLocation.verify|verify} messages. - * @param message ReplicationLocation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IReplicationLocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ReplicationLocation; - - /** - * Decodes a ReplicationLocation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReplicationLocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ReplicationLocation; - - /** - * Verifies a ReplicationLocation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReplicationLocation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReplicationLocation - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ReplicationLocation; - - /** - * Creates a plain object from a ReplicationLocation message. Also converts values to other types if specified. - * @param message ReplicationLocation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ReplicationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReplicationLocation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReplicationLocation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStream. */ - interface IShardStream { - - /** ShardStream streams */ - streams?: (vtctldata.Workflow.IStream[]|null); - - /** ShardStream tablet_controls */ - tablet_controls?: (topodata.Shard.ITabletControl[]|null); - - /** ShardStream is_primary_serving */ - is_primary_serving?: (boolean|null); - } - - /** Represents a ShardStream. */ - class ShardStream implements IShardStream { - - /** - * Constructs a new ShardStream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IShardStream); - - /** ShardStream streams. */ - public streams: vtctldata.Workflow.IStream[]; - - /** ShardStream tablet_controls. */ - public tablet_controls: topodata.Shard.ITabletControl[]; - - /** ShardStream is_primary_serving. */ - public is_primary_serving: boolean; - - /** - * Creates a new ShardStream instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStream instance - */ - public static create(properties?: vtctldata.Workflow.IShardStream): vtctldata.Workflow.ShardStream; - - /** - * Encodes the specified ShardStream message. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStream message, length delimited. Does not implicitly {@link vtctldata.Workflow.ShardStream.verify|verify} messages. - * @param message ShardStream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IShardStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.ShardStream; - - /** - * Decodes a ShardStream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.ShardStream; - - /** - * Verifies a ShardStream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.ShardStream; - - /** - * Creates a plain object from a ShardStream message. Also converts values to other types if specified. - * @param message ShardStream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.ShardStream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStream - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Stream. */ - interface IStream { - - /** Stream id */ - id?: (number|Long|null); - - /** Stream shard */ - shard?: (string|null); - - /** Stream tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** Stream binlog_source */ - binlog_source?: (binlogdata.IBinlogSource|null); - - /** Stream position */ - position?: (string|null); - - /** Stream stop_position */ - stop_position?: (string|null); - - /** Stream state */ - state?: (string|null); - - /** Stream db_name */ - db_name?: (string|null); - - /** Stream transaction_timestamp */ - transaction_timestamp?: (vttime.ITime|null); - - /** Stream time_updated */ - time_updated?: (vttime.ITime|null); - - /** Stream message */ - message?: (string|null); - - /** Stream copy_states */ - copy_states?: (vtctldata.Workflow.Stream.ICopyState[]|null); - - /** Stream logs */ - logs?: (vtctldata.Workflow.Stream.ILog[]|null); - - /** Stream log_fetch_error */ - log_fetch_error?: (string|null); - - /** Stream tags */ - tags?: (string[]|null); - - /** Stream rows_copied */ - rows_copied?: (number|Long|null); - - /** Stream throttler_status */ - throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); - - /** Stream tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** Stream tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** Stream cells */ - cells?: (string[]|null); - } - - /** Represents a Stream. */ - class Stream implements IStream { - - /** - * Constructs a new Stream. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.IStream); - - /** Stream id. */ - public id: (number|Long); - - /** Stream shard. */ - public shard: string; - - /** Stream tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** Stream binlog_source. */ - public binlog_source?: (binlogdata.IBinlogSource|null); - - /** Stream position. */ - public position: string; - - /** Stream stop_position. */ - public stop_position: string; - - /** Stream state. */ - public state: string; - - /** Stream db_name. */ - public db_name: string; - - /** Stream transaction_timestamp. */ - public transaction_timestamp?: (vttime.ITime|null); - - /** Stream time_updated. */ - public time_updated?: (vttime.ITime|null); - - /** Stream message. */ - public message: string; - - /** Stream copy_states. */ - public copy_states: vtctldata.Workflow.Stream.ICopyState[]; - - /** Stream logs. */ - public logs: vtctldata.Workflow.Stream.ILog[]; - - /** Stream log_fetch_error. */ - public log_fetch_error: string; - - /** Stream tags. */ - public tags: string[]; - - /** Stream rows_copied. */ - public rows_copied: (number|Long); - - /** Stream throttler_status. */ - public throttler_status?: (vtctldata.Workflow.Stream.IThrottlerStatus|null); - - /** Stream tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** Stream tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** Stream cells. */ - public cells: string[]; - - /** - * Creates a new Stream instance using the specified properties. - * @param [properties] Properties to set - * @returns Stream instance - */ - public static create(properties?: vtctldata.Workflow.IStream): vtctldata.Workflow.Stream; - - /** - * Encodes the specified Stream message. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Stream message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.verify|verify} messages. - * @param message Stream message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.IStream, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Stream message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream; - - /** - * Decodes a Stream message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Stream - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream; - - /** - * Verifies a Stream message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Stream message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Stream - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream; - - /** - * Creates a plain object from a Stream message. Also converts values to other types if specified. - * @param message Stream - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Stream to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Stream - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Stream { - - /** Properties of a CopyState. */ - interface ICopyState { - - /** CopyState table */ - table?: (string|null); - - /** CopyState last_pk */ - last_pk?: (string|null); - - /** CopyState stream_id */ - stream_id?: (number|Long|null); - } - - /** Represents a CopyState. */ - class CopyState implements ICopyState { - - /** - * Constructs a new CopyState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.ICopyState); - - /** CopyState table. */ - public table: string; - - /** CopyState last_pk. */ - public last_pk: string; - - /** CopyState stream_id. */ - public stream_id: (number|Long); - - /** - * Creates a new CopyState instance using the specified properties. - * @param [properties] Properties to set - * @returns CopyState instance - */ - public static create(properties?: vtctldata.Workflow.Stream.ICopyState): vtctldata.Workflow.Stream.CopyState; - - /** - * Encodes the specified CopyState message. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CopyState message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.CopyState.verify|verify} messages. - * @param message CopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.ICopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CopyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.CopyState; - - /** - * Decodes a CopyState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.CopyState; - - /** - * Verifies a CopyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CopyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CopyState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.CopyState; - - /** - * Creates a plain object from a CopyState message. Also converts values to other types if specified. - * @param message CopyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.CopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CopyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CopyState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Log. */ - interface ILog { - - /** Log id */ - id?: (number|Long|null); - - /** Log stream_id */ - stream_id?: (number|Long|null); - - /** Log type */ - type?: (string|null); - - /** Log state */ - state?: (string|null); - - /** Log created_at */ - created_at?: (vttime.ITime|null); - - /** Log updated_at */ - updated_at?: (vttime.ITime|null); - - /** Log message */ - message?: (string|null); - - /** Log count */ - count?: (number|Long|null); - } - - /** Represents a Log. */ - class Log implements ILog { - - /** - * Constructs a new Log. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.ILog); - - /** Log id. */ - public id: (number|Long); - - /** Log stream_id. */ - public stream_id: (number|Long); - - /** Log type. */ - public type: string; - - /** Log state. */ - public state: string; - - /** Log created_at. */ - public created_at?: (vttime.ITime|null); - - /** Log updated_at. */ - public updated_at?: (vttime.ITime|null); - - /** Log message. */ - public message: string; - - /** Log count. */ - public count: (number|Long); - - /** - * Creates a new Log instance using the specified properties. - * @param [properties] Properties to set - * @returns Log instance - */ - public static create(properties?: vtctldata.Workflow.Stream.ILog): vtctldata.Workflow.Stream.Log; - - /** - * Encodes the specified Log message. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @param message Log message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Log message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.Log.verify|verify} messages. - * @param message Log message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.ILog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Log message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.Log; - - /** - * Decodes a Log message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Log - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.Log; - - /** - * Verifies a Log message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Log message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Log - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.Log; - - /** - * Creates a plain object from a Log message. Also converts values to other types if specified. - * @param message Log - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.Log, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Log to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Log - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ThrottlerStatus. */ - interface IThrottlerStatus { - - /** ThrottlerStatus component_throttled */ - component_throttled?: (string|null); - - /** ThrottlerStatus time_throttled */ - time_throttled?: (vttime.ITime|null); - } - - /** Represents a ThrottlerStatus. */ - class ThrottlerStatus implements IThrottlerStatus { - - /** - * Constructs a new ThrottlerStatus. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.Workflow.Stream.IThrottlerStatus); - - /** ThrottlerStatus component_throttled. */ - public component_throttled: string; - - /** ThrottlerStatus time_throttled. */ - public time_throttled?: (vttime.ITime|null); - - /** - * Creates a new ThrottlerStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns ThrottlerStatus instance - */ - public static create(properties?: vtctldata.Workflow.Stream.IThrottlerStatus): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Encodes the specified ThrottlerStatus message. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @param message ThrottlerStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ThrottlerStatus message, length delimited. Does not implicitly {@link vtctldata.Workflow.Stream.ThrottlerStatus.verify|verify} messages. - * @param message ThrottlerStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.Workflow.Stream.IThrottlerStatus, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Decodes a ThrottlerStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThrottlerStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Verifies a ThrottlerStatus message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ThrottlerStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThrottlerStatus - */ - public static fromObject(object: { [k: string]: any }): vtctldata.Workflow.Stream.ThrottlerStatus; - - /** - * Creates a plain object from a ThrottlerStatus message. Also converts values to other types if specified. - * @param message ThrottlerStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.Workflow.Stream.ThrottlerStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ThrottlerStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ThrottlerStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - - /** Properties of an AddCellInfoRequest. */ - interface IAddCellInfoRequest { - - /** AddCellInfoRequest name */ - name?: (string|null); - - /** AddCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an AddCellInfoRequest. */ - class AddCellInfoRequest implements IAddCellInfoRequest { - - /** - * Constructs a new AddCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellInfoRequest); - - /** AddCellInfoRequest name. */ - public name: string; - - /** AddCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new AddCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellInfoRequest instance - */ - public static create(properties?: vtctldata.IAddCellInfoRequest): vtctldata.AddCellInfoRequest; - - /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @param message AddCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @param message AddCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoRequest; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoRequest; - - /** - * Verifies an AddCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoRequest; - - /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. - * @param message AddCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellInfoResponse. */ - interface IAddCellInfoResponse { - } - - /** Represents an AddCellInfoResponse. */ - class AddCellInfoResponse implements IAddCellInfoResponse { - - /** - * Constructs a new AddCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellInfoResponse); - - /** - * Creates a new AddCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellInfoResponse instance - */ - public static create(properties?: vtctldata.IAddCellInfoResponse): vtctldata.AddCellInfoResponse; - - /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @param message AddCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @param message AddCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellInfoResponse; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellInfoResponse; - - /** - * Verifies an AddCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellInfoResponse; - - /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. - * @param message AddCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellsAliasRequest. */ - interface IAddCellsAliasRequest { - - /** AddCellsAliasRequest name */ - name?: (string|null); - - /** AddCellsAliasRequest cells */ - cells?: (string[]|null); - } - - /** Represents an AddCellsAliasRequest. */ - class AddCellsAliasRequest implements IAddCellsAliasRequest { - - /** - * Constructs a new AddCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellsAliasRequest); - - /** AddCellsAliasRequest name. */ - public name: string; - - /** AddCellsAliasRequest cells. */ - public cells: string[]; - - /** - * Creates a new AddCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IAddCellsAliasRequest): vtctldata.AddCellsAliasRequest; - - /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. - * @param message AddCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. - * @param message AddCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasRequest; - - /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasRequest; - - /** - * Verifies an AddCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasRequest; - - /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. - * @param message AddCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an AddCellsAliasResponse. */ - interface IAddCellsAliasResponse { - } - - /** Represents an AddCellsAliasResponse. */ - class AddCellsAliasResponse implements IAddCellsAliasResponse { - - /** - * Constructs a new AddCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IAddCellsAliasResponse); - - /** - * Creates a new AddCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns AddCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IAddCellsAliasResponse): vtctldata.AddCellsAliasResponse; - - /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. - * @param message AddCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. - * @param message AddCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IAddCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AddCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.AddCellsAliasResponse; - - /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AddCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.AddCellsAliasResponse; - - /** - * Verifies an AddCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AddCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.AddCellsAliasResponse; - - /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. - * @param message AddCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.AddCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AddCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AddCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyKeyspaceRoutingRulesRequest. */ - interface IApplyKeyspaceRoutingRulesRequest { - - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyKeyspaceRoutingRulesRequest. */ - class ApplyKeyspaceRoutingRulesRequest implements IApplyKeyspaceRoutingRulesRequest { - - /** - * Constructs a new ApplyKeyspaceRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest); - - /** ApplyKeyspaceRoutingRulesRequest keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** ApplyKeyspaceRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyKeyspaceRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyKeyspaceRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesRequest): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Decodes an ApplyKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Verifies an ApplyKeyspaceRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyKeyspaceRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyKeyspaceRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyKeyspaceRoutingRulesResponse. */ - interface IApplyKeyspaceRoutingRulesResponse { - - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - } - - /** Represents an ApplyKeyspaceRoutingRulesResponse. */ - class ApplyKeyspaceRoutingRulesResponse implements IApplyKeyspaceRoutingRulesResponse { - - /** - * Constructs a new ApplyKeyspaceRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse); - - /** ApplyKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** - * Creates a new ApplyKeyspaceRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyKeyspaceRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyKeyspaceRoutingRulesResponse): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message ApplyKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Decodes an ApplyKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Verifies an ApplyKeyspaceRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyKeyspaceRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyKeyspaceRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyKeyspaceRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyKeyspaceRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyKeyspaceRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyRoutingRulesRequest. */ - interface IApplyRoutingRulesRequest { - - /** ApplyRoutingRulesRequest routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - - /** ApplyRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyRoutingRulesRequest. */ - class ApplyRoutingRulesRequest implements IApplyRoutingRulesRequest { - - /** - * Constructs a new ApplyRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyRoutingRulesRequest); - - /** ApplyRoutingRulesRequest routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** ApplyRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyRoutingRulesRequest): vtctldata.ApplyRoutingRulesRequest; - - /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. - * @param message ApplyRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. - * @param message ApplyRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesRequest; - - /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesRequest; - - /** - * Verifies an ApplyRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyRoutingRulesResponse. */ - interface IApplyRoutingRulesResponse { - } - - /** Represents an ApplyRoutingRulesResponse. */ - class ApplyRoutingRulesResponse implements IApplyRoutingRulesResponse { - - /** - * Constructs a new ApplyRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyRoutingRulesResponse); - - /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyRoutingRulesResponse): vtctldata.ApplyRoutingRulesResponse; - - /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. - * @param message ApplyRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. - * @param message ApplyRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyRoutingRulesResponse; - - /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyRoutingRulesResponse; - - /** - * Verifies an ApplyRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyShardRoutingRulesRequest. */ - interface IApplyShardRoutingRulesRequest { - - /** ApplyShardRoutingRulesRequest shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** ApplyShardRoutingRulesRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyShardRoutingRulesRequest rebuild_cells */ - rebuild_cells?: (string[]|null); - } - - /** Represents an ApplyShardRoutingRulesRequest. */ - class ApplyShardRoutingRulesRequest implements IApplyShardRoutingRulesRequest { - - /** - * Constructs a new ApplyShardRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesRequest); - - /** ApplyShardRoutingRulesRequest shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** ApplyShardRoutingRulesRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyShardRoutingRulesRequest rebuild_cells. */ - public rebuild_cells: string[]; - - /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesRequest): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @param message ApplyShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. - * @param message ApplyShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Verifies an ApplyShardRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyShardRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesRequest; - - /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyShardRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyShardRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyShardRoutingRulesResponse. */ - interface IApplyShardRoutingRulesResponse { - } - - /** Represents an ApplyShardRoutingRulesResponse. */ - class ApplyShardRoutingRulesResponse implements IApplyShardRoutingRulesResponse { - - /** - * Constructs a new ApplyShardRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyShardRoutingRulesResponse); - - /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyShardRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IApplyShardRoutingRulesResponse): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. - * @param message ApplyShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. - * @param message ApplyShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Verifies an ApplyShardRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyShardRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyShardRoutingRulesResponse; - - /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message ApplyShardRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyShardRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyShardRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplySchemaRequest. */ - interface IApplySchemaRequest { - - /** ApplySchemaRequest keyspace */ - keyspace?: (string|null); - - /** ApplySchemaRequest sql */ - sql?: (string[]|null); - - /** ApplySchemaRequest ddl_strategy */ - ddl_strategy?: (string|null); - - /** ApplySchemaRequest uuid_list */ - uuid_list?: (string[]|null); - - /** ApplySchemaRequest migration_context */ - migration_context?: (string|null); - - /** ApplySchemaRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** ApplySchemaRequest caller_id */ - caller_id?: (vtrpc.ICallerID|null); - - /** ApplySchemaRequest batch_size */ - batch_size?: (number|Long|null); - } - - /** Represents an ApplySchemaRequest. */ - class ApplySchemaRequest implements IApplySchemaRequest { - - /** - * Constructs a new ApplySchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplySchemaRequest); - - /** ApplySchemaRequest keyspace. */ - public keyspace: string; - - /** ApplySchemaRequest sql. */ - public sql: string[]; - - /** ApplySchemaRequest ddl_strategy. */ - public ddl_strategy: string; - - /** ApplySchemaRequest uuid_list. */ - public uuid_list: string[]; - - /** ApplySchemaRequest migration_context. */ - public migration_context: string; - - /** ApplySchemaRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** ApplySchemaRequest caller_id. */ - public caller_id?: (vtrpc.ICallerID|null); - - /** ApplySchemaRequest batch_size. */ - public batch_size: (number|Long); - - /** - * Creates a new ApplySchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplySchemaRequest instance - */ - public static create(properties?: vtctldata.IApplySchemaRequest): vtctldata.ApplySchemaRequest; - - /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. - * @param message ApplySchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplySchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplySchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaRequest; - - /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplySchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaRequest; - - /** - * Verifies an ApplySchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplySchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaRequest; - - /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. - * @param message ApplySchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplySchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplySchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplySchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplySchemaResponse. */ - interface IApplySchemaResponse { - - /** ApplySchemaResponse uuid_list */ - uuid_list?: (string[]|null); - - /** ApplySchemaResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents an ApplySchemaResponse. */ - class ApplySchemaResponse implements IApplySchemaResponse { - - /** - * Constructs a new ApplySchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplySchemaResponse); - - /** ApplySchemaResponse uuid_list. */ - public uuid_list: string[]; - - /** ApplySchemaResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new ApplySchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplySchemaResponse instance - */ - public static create(properties?: vtctldata.IApplySchemaResponse): vtctldata.ApplySchemaResponse; - - /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. - * @param message ApplySchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplySchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplySchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplySchemaResponse; - - /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplySchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplySchemaResponse; - - /** - * Verifies an ApplySchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplySchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplySchemaResponse; - - /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. - * @param message ApplySchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplySchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplySchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplySchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyVSchemaRequest. */ - interface IApplyVSchemaRequest { - - /** ApplyVSchemaRequest keyspace */ - keyspace?: (string|null); - - /** ApplyVSchemaRequest skip_rebuild */ - skip_rebuild?: (boolean|null); - - /** ApplyVSchemaRequest dry_run */ - dry_run?: (boolean|null); - - /** ApplyVSchemaRequest cells */ - cells?: (string[]|null); - - /** ApplyVSchemaRequest v_schema */ - v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaRequest sql */ - sql?: (string|null); - - /** ApplyVSchemaRequest strict */ - strict?: (boolean|null); - } - - /** Represents an ApplyVSchemaRequest. */ - class ApplyVSchemaRequest implements IApplyVSchemaRequest { - - /** - * Constructs a new ApplyVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyVSchemaRequest); - - /** ApplyVSchemaRequest keyspace. */ - public keyspace: string; - - /** ApplyVSchemaRequest skip_rebuild. */ - public skip_rebuild: boolean; - - /** ApplyVSchemaRequest dry_run. */ - public dry_run: boolean; - - /** ApplyVSchemaRequest cells. */ - public cells: string[]; - - /** ApplyVSchemaRequest v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaRequest sql. */ - public sql: string; - - /** ApplyVSchemaRequest strict. */ - public strict: boolean; - - /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyVSchemaRequest instance - */ - public static create(properties?: vtctldata.IApplyVSchemaRequest): vtctldata.ApplyVSchemaRequest; - - /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. - * @param message ApplyVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. - * @param message ApplyVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaRequest; - - /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaRequest; - - /** - * Verifies an ApplyVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaRequest; - - /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. - * @param message ApplyVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ApplyVSchemaResponse. */ - interface IApplyVSchemaResponse { - - /** ApplyVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaResponse unknown_vindex_params */ - unknown_vindex_params?: ({ [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }|null); - } - - /** Represents an ApplyVSchemaResponse. */ - class ApplyVSchemaResponse implements IApplyVSchemaResponse { - - /** - * Constructs a new ApplyVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IApplyVSchemaResponse); - - /** ApplyVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** ApplyVSchemaResponse unknown_vindex_params. */ - public unknown_vindex_params: { [k: string]: vtctldata.ApplyVSchemaResponse.IParamList }; - - /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ApplyVSchemaResponse instance - */ - public static create(properties?: vtctldata.IApplyVSchemaResponse): vtctldata.ApplyVSchemaResponse; - - /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. - * @param message ApplyVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. - * @param message ApplyVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IApplyVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApplyVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse; - - /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ApplyVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse; - - /** - * Verifies an ApplyVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApplyVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse; - - /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. - * @param message ApplyVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ApplyVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ApplyVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ApplyVSchemaResponse { - - /** Properties of a ParamList. */ - interface IParamList { - - /** ParamList params */ - params?: (string[]|null); - } - - /** Represents a ParamList. */ - class ParamList implements IParamList { - - /** - * Constructs a new ParamList. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ApplyVSchemaResponse.IParamList); - - /** ParamList params. */ - public params: string[]; - - /** - * Creates a new ParamList instance using the specified properties. - * @param [properties] Properties to set - * @returns ParamList instance - */ - public static create(properties?: vtctldata.ApplyVSchemaResponse.IParamList): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Encodes the specified ParamList message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @param message ParamList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ParamList message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.ParamList.verify|verify} messages. - * @param message ParamList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ApplyVSchemaResponse.IParamList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParamList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Decodes a ParamList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParamList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Verifies a ParamList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ParamList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParamList - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ApplyVSchemaResponse.ParamList; - - /** - * Creates a plain object from a ParamList message. Also converts values to other types if specified. - * @param message ParamList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ApplyVSchemaResponse.ParamList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ParamList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ParamList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a BackupRequest. */ - interface IBackupRequest { - - /** BackupRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupRequest allow_primary */ - allow_primary?: (boolean|null); - - /** BackupRequest concurrency */ - concurrency?: (number|null); - - /** BackupRequest incremental_from_pos */ - incremental_from_pos?: (string|null); - - /** BackupRequest upgrade_safe */ - upgrade_safe?: (boolean|null); - - /** BackupRequest backup_engine */ - backup_engine?: (string|null); - } - - /** Represents a BackupRequest. */ - class BackupRequest implements IBackupRequest { - - /** - * Constructs a new BackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupRequest); - - /** BackupRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupRequest allow_primary. */ - public allow_primary: boolean; - - /** BackupRequest concurrency. */ - public concurrency: number; - - /** BackupRequest incremental_from_pos. */ - public incremental_from_pos: string; - - /** BackupRequest upgrade_safe. */ - public upgrade_safe: boolean; - - /** BackupRequest backup_engine. */ - public backup_engine?: (string|null); - - /** BackupRequest _backup_engine. */ - public _backup_engine?: "backup_engine"; - - /** - * Creates a new BackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupRequest instance - */ - public static create(properties?: vtctldata.IBackupRequest): vtctldata.BackupRequest; - - /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. - * @param message BackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupRequest; - - /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupRequest; - - /** - * Verifies a BackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupRequest; - - /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. - * @param message BackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BackupResponse. */ - interface IBackupResponse { - - /** BackupResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupResponse keyspace */ - keyspace?: (string|null); - - /** BackupResponse shard */ - shard?: (string|null); - - /** BackupResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents a BackupResponse. */ - class BackupResponse implements IBackupResponse { - - /** - * Constructs a new BackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupResponse); - - /** BackupResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** BackupResponse keyspace. */ - public keyspace: string; - - /** BackupResponse shard. */ - public shard: string; - - /** BackupResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new BackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupResponse instance - */ - public static create(properties?: vtctldata.IBackupResponse): vtctldata.BackupResponse; - - /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. - * @param message BackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupResponse; - - /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupResponse; - - /** - * Verifies a BackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupResponse; - - /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. - * @param message BackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a BackupShardRequest. */ - interface IBackupShardRequest { - - /** BackupShardRequest keyspace */ - keyspace?: (string|null); - - /** BackupShardRequest shard */ - shard?: (string|null); - - /** BackupShardRequest allow_primary */ - allow_primary?: (boolean|null); - - /** BackupShardRequest concurrency */ - concurrency?: (number|null); - - /** BackupShardRequest upgrade_safe */ - upgrade_safe?: (boolean|null); - - /** BackupShardRequest incremental_from_pos */ - incremental_from_pos?: (string|null); - } - - /** Represents a BackupShardRequest. */ - class BackupShardRequest implements IBackupShardRequest { - - /** - * Constructs a new BackupShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IBackupShardRequest); - - /** BackupShardRequest keyspace. */ - public keyspace: string; - - /** BackupShardRequest shard. */ - public shard: string; - - /** BackupShardRequest allow_primary. */ - public allow_primary: boolean; - - /** BackupShardRequest concurrency. */ - public concurrency: number; - - /** BackupShardRequest upgrade_safe. */ - public upgrade_safe: boolean; - - /** BackupShardRequest incremental_from_pos. */ - public incremental_from_pos: string; - - /** - * Creates a new BackupShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BackupShardRequest instance - */ - public static create(properties?: vtctldata.IBackupShardRequest): vtctldata.BackupShardRequest; - - /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. - * @param message BackupShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. - * @param message BackupShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IBackupShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BackupShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BackupShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.BackupShardRequest; - - /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BackupShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.BackupShardRequest; - - /** - * Verifies a BackupShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BackupShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.BackupShardRequest; - - /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. - * @param message BackupShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.BackupShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BackupShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for BackupShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CancelSchemaMigrationRequest. */ - interface ICancelSchemaMigrationRequest { - - /** CancelSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CancelSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CancelSchemaMigrationRequest. */ - class CancelSchemaMigrationRequest implements ICancelSchemaMigrationRequest { - - /** - * Constructs a new CancelSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICancelSchemaMigrationRequest); - - /** CancelSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CancelSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CancelSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICancelSchemaMigrationRequest): vtctldata.CancelSchemaMigrationRequest; - - /** - * Encodes the specified CancelSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @param message CancelSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CancelSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationRequest.verify|verify} messages. - * @param message CancelSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationRequest; - - /** - * Decodes a CancelSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationRequest; - - /** - * Verifies a CancelSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CancelSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationRequest; - - /** - * Creates a plain object from a CancelSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CancelSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CancelSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CancelSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CancelSchemaMigrationResponse. */ - interface ICancelSchemaMigrationResponse { - - /** CancelSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CancelSchemaMigrationResponse. */ - class CancelSchemaMigrationResponse implements ICancelSchemaMigrationResponse { - - /** - * Constructs a new CancelSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICancelSchemaMigrationResponse); - - /** CancelSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CancelSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICancelSchemaMigrationResponse): vtctldata.CancelSchemaMigrationResponse; - - /** - * Encodes the specified CancelSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @param message CancelSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CancelSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CancelSchemaMigrationResponse.verify|verify} messages. - * @param message CancelSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICancelSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CancelSchemaMigrationResponse; - - /** - * Decodes a CancelSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CancelSchemaMigrationResponse; - - /** - * Verifies a CancelSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CancelSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CancelSchemaMigrationResponse; - - /** - * Creates a plain object from a CancelSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CancelSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CancelSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CancelSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CancelSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTagsRequest. */ - interface IChangeTabletTagsRequest { - - /** ChangeTabletTagsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTagsRequest tags */ - tags?: ({ [k: string]: string }|null); - - /** ChangeTabletTagsRequest replace */ - replace?: (boolean|null); - } - - /** Represents a ChangeTabletTagsRequest. */ - class ChangeTabletTagsRequest implements IChangeTabletTagsRequest { - - /** - * Constructs a new ChangeTabletTagsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTagsRequest); - - /** ChangeTabletTagsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTagsRequest tags. */ - public tags: { [k: string]: string }; - - /** ChangeTabletTagsRequest replace. */ - public replace: boolean; - - /** - * Creates a new ChangeTabletTagsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTagsRequest instance - */ - public static create(properties?: vtctldata.IChangeTabletTagsRequest): vtctldata.ChangeTabletTagsRequest; - - /** - * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. - * @param message ChangeTabletTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. - * @param message ChangeTabletTagsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTagsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsRequest; - - /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsRequest; - - /** - * Verifies a ChangeTabletTagsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTagsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsRequest; - - /** - * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTagsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTagsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTagsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTagsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTagsResponse. */ - interface IChangeTabletTagsResponse { - - /** ChangeTabletTagsResponse before_tags */ - before_tags?: ({ [k: string]: string }|null); - - /** ChangeTabletTagsResponse after_tags */ - after_tags?: ({ [k: string]: string }|null); - } - - /** Represents a ChangeTabletTagsResponse. */ - class ChangeTabletTagsResponse implements IChangeTabletTagsResponse { - - /** - * Constructs a new ChangeTabletTagsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTagsResponse); - - /** ChangeTabletTagsResponse before_tags. */ - public before_tags: { [k: string]: string }; - - /** ChangeTabletTagsResponse after_tags. */ - public after_tags: { [k: string]: string }; - - /** - * Creates a new ChangeTabletTagsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTagsResponse instance - */ - public static create(properties?: vtctldata.IChangeTabletTagsResponse): vtctldata.ChangeTabletTagsResponse; - - /** - * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. - * @param message ChangeTabletTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. - * @param message ChangeTabletTagsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTagsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTagsResponse; - - /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTagsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTagsResponse; - - /** - * Verifies a ChangeTabletTagsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTagsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTagsResponse; - - /** - * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTagsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTagsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTagsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTagsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTypeRequest. */ - interface IChangeTabletTypeRequest { - - /** ChangeTabletTypeRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTypeRequest db_type */ - db_type?: (topodata.TabletType|null); - - /** ChangeTabletTypeRequest dry_run */ - dry_run?: (boolean|null); - } - - /** Represents a ChangeTabletTypeRequest. */ - class ChangeTabletTypeRequest implements IChangeTabletTypeRequest { - - /** - * Constructs a new ChangeTabletTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTypeRequest); - - /** ChangeTabletTypeRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ChangeTabletTypeRequest db_type. */ - public db_type: topodata.TabletType; - - /** ChangeTabletTypeRequest dry_run. */ - public dry_run: boolean; - - /** - * Creates a new ChangeTabletTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTypeRequest instance - */ - public static create(properties?: vtctldata.IChangeTabletTypeRequest): vtctldata.ChangeTabletTypeRequest; - - /** - * Encodes the specified ChangeTabletTypeRequest message. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTypeRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeRequest.verify|verify} messages. - * @param message ChangeTabletTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeRequest; - - /** - * Decodes a ChangeTabletTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeRequest; - - /** - * Verifies a ChangeTabletTypeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTypeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeRequest; - - /** - * Creates a plain object from a ChangeTabletTypeRequest message. Also converts values to other types if specified. - * @param message ChangeTabletTypeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ChangeTabletTypeResponse. */ - interface IChangeTabletTypeResponse { - - /** ChangeTabletTypeResponse before_tablet */ - before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet */ - after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run */ - was_dry_run?: (boolean|null); - } - - /** Represents a ChangeTabletTypeResponse. */ - class ChangeTabletTypeResponse implements IChangeTabletTypeResponse { - - /** - * Constructs a new ChangeTabletTypeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IChangeTabletTypeResponse); - - /** ChangeTabletTypeResponse before_tablet. */ - public before_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse after_tablet. */ - public after_tablet?: (topodata.ITablet|null); - - /** ChangeTabletTypeResponse was_dry_run. */ - public was_dry_run: boolean; - - /** - * Creates a new ChangeTabletTypeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ChangeTabletTypeResponse instance - */ - public static create(properties?: vtctldata.IChangeTabletTypeResponse): vtctldata.ChangeTabletTypeResponse; - - /** - * Encodes the specified ChangeTabletTypeResponse message. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ChangeTabletTypeResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTypeResponse.verify|verify} messages. - * @param message ChangeTabletTypeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IChangeTabletTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ChangeTabletTypeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ChangeTabletTypeResponse; - - /** - * Decodes a ChangeTabletTypeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ChangeTabletTypeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ChangeTabletTypeResponse; - - /** - * Verifies a ChangeTabletTypeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ChangeTabletTypeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ChangeTabletTypeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ChangeTabletTypeResponse; - - /** - * Creates a plain object from a ChangeTabletTypeResponse message. Also converts values to other types if specified. - * @param message ChangeTabletTypeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ChangeTabletTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChangeTabletTypeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChangeTabletTypeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CheckThrottlerRequest. */ - interface ICheckThrottlerRequest { - - /** CheckThrottlerRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerRequest app_name */ - app_name?: (string|null); - - /** CheckThrottlerRequest scope */ - scope?: (string|null); - - /** CheckThrottlerRequest skip_request_heartbeats */ - skip_request_heartbeats?: (boolean|null); - - /** CheckThrottlerRequest ok_if_not_exists */ - ok_if_not_exists?: (boolean|null); - } - - /** Represents a CheckThrottlerRequest. */ - class CheckThrottlerRequest implements ICheckThrottlerRequest { - - /** - * Constructs a new CheckThrottlerRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICheckThrottlerRequest); - - /** CheckThrottlerRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerRequest app_name. */ - public app_name: string; - - /** CheckThrottlerRequest scope. */ - public scope: string; - - /** CheckThrottlerRequest skip_request_heartbeats. */ - public skip_request_heartbeats: boolean; - - /** CheckThrottlerRequest ok_if_not_exists. */ - public ok_if_not_exists: boolean; - - /** - * Creates a new CheckThrottlerRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CheckThrottlerRequest instance - */ - public static create(properties?: vtctldata.ICheckThrottlerRequest): vtctldata.CheckThrottlerRequest; - - /** - * Encodes the specified CheckThrottlerRequest message. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CheckThrottlerRequest message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerRequest.verify|verify} messages. - * @param message CheckThrottlerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICheckThrottlerRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerRequest; - - /** - * Decodes a CheckThrottlerRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckThrottlerRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerRequest; - - /** - * Verifies a CheckThrottlerRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CheckThrottlerRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CheckThrottlerRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerRequest; - - /** - * Creates a plain object from a CheckThrottlerRequest message. Also converts values to other types if specified. - * @param message CheckThrottlerRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CheckThrottlerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CheckThrottlerRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CheckThrottlerRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CheckThrottlerResponse. */ - interface ICheckThrottlerResponse { - - /** CheckThrottlerResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerResponse Check */ - Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); - } - - /** Represents a CheckThrottlerResponse. */ - class CheckThrottlerResponse implements ICheckThrottlerResponse { - - /** - * Constructs a new CheckThrottlerResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICheckThrottlerResponse); - - /** CheckThrottlerResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** CheckThrottlerResponse Check. */ - public Check?: (tabletmanagerdata.ICheckThrottlerResponse|null); - - /** - * Creates a new CheckThrottlerResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CheckThrottlerResponse instance - */ - public static create(properties?: vtctldata.ICheckThrottlerResponse): vtctldata.CheckThrottlerResponse; - - /** - * Encodes the specified CheckThrottlerResponse message. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CheckThrottlerResponse message, length delimited. Does not implicitly {@link vtctldata.CheckThrottlerResponse.verify|verify} messages. - * @param message CheckThrottlerResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICheckThrottlerResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CheckThrottlerResponse; - - /** - * Decodes a CheckThrottlerResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CheckThrottlerResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CheckThrottlerResponse; - - /** - * Verifies a CheckThrottlerResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CheckThrottlerResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CheckThrottlerResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CheckThrottlerResponse; - - /** - * Creates a plain object from a CheckThrottlerResponse message. Also converts values to other types if specified. - * @param message CheckThrottlerResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CheckThrottlerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CheckThrottlerResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CheckThrottlerResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CleanupSchemaMigrationRequest. */ - interface ICleanupSchemaMigrationRequest { - - /** CleanupSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CleanupSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CleanupSchemaMigrationRequest. */ - class CleanupSchemaMigrationRequest implements ICleanupSchemaMigrationRequest { - - /** - * Constructs a new CleanupSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationRequest); - - /** CleanupSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CleanupSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CleanupSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CleanupSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationRequest): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Encodes the specified CleanupSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. - * @param message CleanupSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CleanupSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationRequest.verify|verify} messages. - * @param message CleanupSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CleanupSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Decodes a CleanupSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Verifies a CleanupSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CleanupSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CleanupSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationRequest; - - /** - * Creates a plain object from a CleanupSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CleanupSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CleanupSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CleanupSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CleanupSchemaMigrationResponse. */ - interface ICleanupSchemaMigrationResponse { - - /** CleanupSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CleanupSchemaMigrationResponse. */ - class CleanupSchemaMigrationResponse implements ICleanupSchemaMigrationResponse { - - /** - * Constructs a new CleanupSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICleanupSchemaMigrationResponse); - - /** CleanupSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CleanupSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CleanupSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICleanupSchemaMigrationResponse): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Encodes the specified CleanupSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. - * @param message CleanupSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CleanupSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CleanupSchemaMigrationResponse.verify|verify} messages. - * @param message CleanupSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICleanupSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CleanupSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Decodes a CleanupSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CleanupSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Verifies a CleanupSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CleanupSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CleanupSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CleanupSchemaMigrationResponse; - - /** - * Creates a plain object from a CleanupSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CleanupSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CleanupSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CleanupSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CleanupSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CompleteSchemaMigrationRequest. */ - interface ICompleteSchemaMigrationRequest { - - /** CompleteSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** CompleteSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a CompleteSchemaMigrationRequest. */ - class CompleteSchemaMigrationRequest implements ICompleteSchemaMigrationRequest { - - /** - * Constructs a new CompleteSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationRequest); - - /** CompleteSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** CompleteSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new CompleteSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CompleteSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationRequest): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Encodes the specified CompleteSchemaMigrationRequest message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. - * @param message CompleteSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompleteSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationRequest.verify|verify} messages. - * @param message CompleteSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompleteSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Decodes a CompleteSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Verifies a CompleteSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompleteSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompleteSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationRequest; - - /** - * Creates a plain object from a CompleteSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CompleteSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompleteSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CompleteSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CompleteSchemaMigrationResponse. */ - interface ICompleteSchemaMigrationResponse { - - /** CompleteSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a CompleteSchemaMigrationResponse. */ - class CompleteSchemaMigrationResponse implements ICompleteSchemaMigrationResponse { - - /** - * Constructs a new CompleteSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICompleteSchemaMigrationResponse); - - /** CompleteSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new CompleteSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CompleteSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ICompleteSchemaMigrationResponse): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Encodes the specified CompleteSchemaMigrationResponse message. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. - * @param message CompleteSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompleteSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.CompleteSchemaMigrationResponse.verify|verify} messages. - * @param message CompleteSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICompleteSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompleteSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Decodes a CompleteSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompleteSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Verifies a CompleteSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompleteSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompleteSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CompleteSchemaMigrationResponse; - - /** - * Creates a plain object from a CompleteSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message CompleteSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CompleteSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompleteSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CompleteSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateKeyspaceRequest. */ - interface ICreateKeyspaceRequest { - - /** CreateKeyspaceRequest name */ - name?: (string|null); - - /** CreateKeyspaceRequest force */ - force?: (boolean|null); - - /** CreateKeyspaceRequest allow_empty_v_schema */ - allow_empty_v_schema?: (boolean|null); - - /** CreateKeyspaceRequest type */ - type?: (topodata.KeyspaceType|null); - - /** CreateKeyspaceRequest base_keyspace */ - base_keyspace?: (string|null); - - /** CreateKeyspaceRequest snapshot_time */ - snapshot_time?: (vttime.ITime|null); - - /** CreateKeyspaceRequest durability_policy */ - durability_policy?: (string|null); - - /** CreateKeyspaceRequest sidecar_db_name */ - sidecar_db_name?: (string|null); - } - - /** Represents a CreateKeyspaceRequest. */ - class CreateKeyspaceRequest implements ICreateKeyspaceRequest { - - /** - * Constructs a new CreateKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateKeyspaceRequest); - - /** CreateKeyspaceRequest name. */ - public name: string; - - /** CreateKeyspaceRequest force. */ - public force: boolean; - - /** CreateKeyspaceRequest allow_empty_v_schema. */ - public allow_empty_v_schema: boolean; - - /** CreateKeyspaceRequest type. */ - public type: topodata.KeyspaceType; - - /** CreateKeyspaceRequest base_keyspace. */ - public base_keyspace: string; - - /** CreateKeyspaceRequest snapshot_time. */ - public snapshot_time?: (vttime.ITime|null); - - /** CreateKeyspaceRequest durability_policy. */ - public durability_policy: string; - - /** CreateKeyspaceRequest sidecar_db_name. */ - public sidecar_db_name: string; - - /** - * Creates a new CreateKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateKeyspaceRequest instance - */ - public static create(properties?: vtctldata.ICreateKeyspaceRequest): vtctldata.CreateKeyspaceRequest; - - /** - * Encodes the specified CreateKeyspaceRequest message. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceRequest.verify|verify} messages. - * @param message CreateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceRequest; - - /** - * Decodes a CreateKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceRequest; - - /** - * Verifies a CreateKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceRequest; - - /** - * Creates a plain object from a CreateKeyspaceRequest message. Also converts values to other types if specified. - * @param message CreateKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateKeyspaceResponse. */ - interface ICreateKeyspaceResponse { - - /** CreateKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - } - - /** Represents a CreateKeyspaceResponse. */ - class CreateKeyspaceResponse implements ICreateKeyspaceResponse { - - /** - * Constructs a new CreateKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateKeyspaceResponse); - - /** CreateKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** - * Creates a new CreateKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateKeyspaceResponse instance - */ - public static create(properties?: vtctldata.ICreateKeyspaceResponse): vtctldata.CreateKeyspaceResponse; - - /** - * Encodes the specified CreateKeyspaceResponse message. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.CreateKeyspaceResponse.verify|verify} messages. - * @param message CreateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateKeyspaceResponse; - - /** - * Decodes a CreateKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateKeyspaceResponse; - - /** - * Verifies a CreateKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateKeyspaceResponse; - - /** - * Creates a plain object from a CreateKeyspaceResponse message. Also converts values to other types if specified. - * @param message CreateKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateShardRequest. */ - interface ICreateShardRequest { - - /** CreateShardRequest keyspace */ - keyspace?: (string|null); - - /** CreateShardRequest shard_name */ - shard_name?: (string|null); - - /** CreateShardRequest force */ - force?: (boolean|null); - - /** CreateShardRequest include_parent */ - include_parent?: (boolean|null); - } - - /** Represents a CreateShardRequest. */ - class CreateShardRequest implements ICreateShardRequest { - - /** - * Constructs a new CreateShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardRequest); - - /** CreateShardRequest keyspace. */ - public keyspace: string; - - /** CreateShardRequest shard_name. */ - public shard_name: string; - - /** CreateShardRequest force. */ - public force: boolean; - - /** CreateShardRequest include_parent. */ - public include_parent: boolean; - - /** - * Creates a new CreateShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardRequest instance - */ - public static create(properties?: vtctldata.ICreateShardRequest): vtctldata.CreateShardRequest; - - /** - * Encodes the specified CreateShardRequest message. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateShardRequest message, length delimited. Does not implicitly {@link vtctldata.CreateShardRequest.verify|verify} messages. - * @param message CreateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardRequest; - - /** - * Decodes a CreateShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardRequest; - - /** - * Verifies a CreateShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardRequest; - - /** - * Creates a plain object from a CreateShardRequest message. Also converts values to other types if specified. - * @param message CreateShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateShardResponse. */ - interface ICreateShardResponse { - - /** CreateShardResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard */ - shard?: (vtctldata.IShard|null); - - /** CreateShardResponse shard_already_exists */ - shard_already_exists?: (boolean|null); - } - - /** Represents a CreateShardResponse. */ - class CreateShardResponse implements ICreateShardResponse { - - /** - * Constructs a new CreateShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ICreateShardResponse); - - /** CreateShardResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** CreateShardResponse shard. */ - public shard?: (vtctldata.IShard|null); - - /** CreateShardResponse shard_already_exists. */ - public shard_already_exists: boolean; - - /** - * Creates a new CreateShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateShardResponse instance - */ - public static create(properties?: vtctldata.ICreateShardResponse): vtctldata.CreateShardResponse; - - /** - * Encodes the specified CreateShardResponse message. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateShardResponse message, length delimited. Does not implicitly {@link vtctldata.CreateShardResponse.verify|verify} messages. - * @param message CreateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ICreateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.CreateShardResponse; - - /** - * Decodes a CreateShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.CreateShardResponse; - - /** - * Verifies a CreateShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.CreateShardResponse; - - /** - * Creates a plain object from a CreateShardResponse message. Also converts values to other types if specified. - * @param message CreateShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.CreateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellInfoRequest. */ - interface IDeleteCellInfoRequest { - - /** DeleteCellInfoRequest name */ - name?: (string|null); - - /** DeleteCellInfoRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteCellInfoRequest. */ - class DeleteCellInfoRequest implements IDeleteCellInfoRequest { - - /** - * Constructs a new DeleteCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellInfoRequest); - - /** DeleteCellInfoRequest name. */ - public name: string; - - /** DeleteCellInfoRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellInfoRequest instance - */ - public static create(properties?: vtctldata.IDeleteCellInfoRequest): vtctldata.DeleteCellInfoRequest; - - /** - * Encodes the specified DeleteCellInfoRequest message. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. - * @param message DeleteCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoRequest.verify|verify} messages. - * @param message DeleteCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoRequest; - - /** - * Decodes a DeleteCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoRequest; - - /** - * Verifies a DeleteCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoRequest; - - /** - * Creates a plain object from a DeleteCellInfoRequest message. Also converts values to other types if specified. - * @param message DeleteCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellInfoResponse. */ - interface IDeleteCellInfoResponse { - } - - /** Represents a DeleteCellInfoResponse. */ - class DeleteCellInfoResponse implements IDeleteCellInfoResponse { - - /** - * Constructs a new DeleteCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellInfoResponse); - - /** - * Creates a new DeleteCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellInfoResponse instance - */ - public static create(properties?: vtctldata.IDeleteCellInfoResponse): vtctldata.DeleteCellInfoResponse; - - /** - * Encodes the specified DeleteCellInfoResponse message. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. - * @param message DeleteCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellInfoResponse.verify|verify} messages. - * @param message DeleteCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellInfoResponse; - - /** - * Decodes a DeleteCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellInfoResponse; - - /** - * Verifies a DeleteCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellInfoResponse; - - /** - * Creates a plain object from a DeleteCellInfoResponse message. Also converts values to other types if specified. - * @param message DeleteCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellsAliasRequest. */ - interface IDeleteCellsAliasRequest { - - /** DeleteCellsAliasRequest name */ - name?: (string|null); - } - - /** Represents a DeleteCellsAliasRequest. */ - class DeleteCellsAliasRequest implements IDeleteCellsAliasRequest { - - /** - * Constructs a new DeleteCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellsAliasRequest); - - /** DeleteCellsAliasRequest name. */ - public name: string; - - /** - * Creates a new DeleteCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IDeleteCellsAliasRequest): vtctldata.DeleteCellsAliasRequest; - - /** - * Encodes the specified DeleteCellsAliasRequest message. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. - * @param message DeleteCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasRequest.verify|verify} messages. - * @param message DeleteCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasRequest; - - /** - * Decodes a DeleteCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasRequest; - - /** - * Verifies a DeleteCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasRequest; - - /** - * Creates a plain object from a DeleteCellsAliasRequest message. Also converts values to other types if specified. - * @param message DeleteCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteCellsAliasResponse. */ - interface IDeleteCellsAliasResponse { - } - - /** Represents a DeleteCellsAliasResponse. */ - class DeleteCellsAliasResponse implements IDeleteCellsAliasResponse { - - /** - * Constructs a new DeleteCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteCellsAliasResponse); - - /** - * Creates a new DeleteCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IDeleteCellsAliasResponse): vtctldata.DeleteCellsAliasResponse; - - /** - * Encodes the specified DeleteCellsAliasResponse message. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. - * @param message DeleteCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteCellsAliasResponse.verify|verify} messages. - * @param message DeleteCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteCellsAliasResponse; - - /** - * Decodes a DeleteCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteCellsAliasResponse; - - /** - * Verifies a DeleteCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteCellsAliasResponse; - - /** - * Creates a plain object from a DeleteCellsAliasResponse message. Also converts values to other types if specified. - * @param message DeleteCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteKeyspaceRequest. */ - interface IDeleteKeyspaceRequest { - - /** DeleteKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** DeleteKeyspaceRequest recursive */ - recursive?: (boolean|null); - - /** DeleteKeyspaceRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteKeyspaceRequest. */ - class DeleteKeyspaceRequest implements IDeleteKeyspaceRequest { - - /** - * Constructs a new DeleteKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceRequest); - - /** DeleteKeyspaceRequest keyspace. */ - public keyspace: string; - - /** DeleteKeyspaceRequest recursive. */ - public recursive: boolean; - - /** DeleteKeyspaceRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceRequest): vtctldata.DeleteKeyspaceRequest; - - /** - * Encodes the specified DeleteKeyspaceRequest message. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceRequest.verify|verify} messages. - * @param message DeleteKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceRequest; - - /** - * Decodes a DeleteKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceRequest; - - /** - * Verifies a DeleteKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceRequest; - - /** - * Creates a plain object from a DeleteKeyspaceRequest message. Also converts values to other types if specified. - * @param message DeleteKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteKeyspaceResponse. */ - interface IDeleteKeyspaceResponse { - } - - /** Represents a DeleteKeyspaceResponse. */ - class DeleteKeyspaceResponse implements IDeleteKeyspaceResponse { - - /** - * Constructs a new DeleteKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteKeyspaceResponse); - - /** - * Creates a new DeleteKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IDeleteKeyspaceResponse): vtctldata.DeleteKeyspaceResponse; - - /** - * Encodes the specified DeleteKeyspaceResponse message. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteKeyspaceResponse.verify|verify} messages. - * @param message DeleteKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteKeyspaceResponse; - - /** - * Decodes a DeleteKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteKeyspaceResponse; - - /** - * Verifies a DeleteKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteKeyspaceResponse; - - /** - * Creates a plain object from a DeleteKeyspaceResponse message. Also converts values to other types if specified. - * @param message DeleteKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteShardsRequest. */ - interface IDeleteShardsRequest { - - /** DeleteShardsRequest shards */ - shards?: (vtctldata.IShard[]|null); - - /** DeleteShardsRequest recursive */ - recursive?: (boolean|null); - - /** DeleteShardsRequest even_if_serving */ - even_if_serving?: (boolean|null); - - /** DeleteShardsRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteShardsRequest. */ - class DeleteShardsRequest implements IDeleteShardsRequest { - - /** - * Constructs a new DeleteShardsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteShardsRequest); - - /** DeleteShardsRequest shards. */ - public shards: vtctldata.IShard[]; - - /** DeleteShardsRequest recursive. */ - public recursive: boolean; - - /** DeleteShardsRequest even_if_serving. */ - public even_if_serving: boolean; - - /** DeleteShardsRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteShardsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteShardsRequest instance - */ - public static create(properties?: vtctldata.IDeleteShardsRequest): vtctldata.DeleteShardsRequest; - - /** - * Encodes the specified DeleteShardsRequest message. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteShardsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsRequest.verify|verify} messages. - * @param message DeleteShardsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteShardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteShardsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsRequest; - - /** - * Decodes a DeleteShardsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteShardsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsRequest; - - /** - * Verifies a DeleteShardsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteShardsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteShardsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsRequest; - - /** - * Creates a plain object from a DeleteShardsRequest message. Also converts values to other types if specified. - * @param message DeleteShardsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteShardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteShardsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteShardsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteShardsResponse. */ - interface IDeleteShardsResponse { - } - - /** Represents a DeleteShardsResponse. */ - class DeleteShardsResponse implements IDeleteShardsResponse { - - /** - * Constructs a new DeleteShardsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteShardsResponse); - - /** - * Creates a new DeleteShardsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteShardsResponse instance - */ - public static create(properties?: vtctldata.IDeleteShardsResponse): vtctldata.DeleteShardsResponse; - - /** - * Encodes the specified DeleteShardsResponse message. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteShardsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteShardsResponse.verify|verify} messages. - * @param message DeleteShardsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteShardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteShardsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteShardsResponse; - - /** - * Decodes a DeleteShardsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteShardsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteShardsResponse; - - /** - * Verifies a DeleteShardsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteShardsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteShardsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteShardsResponse; - - /** - * Creates a plain object from a DeleteShardsResponse message. Also converts values to other types if specified. - * @param message DeleteShardsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteShardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteShardsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteShardsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteSrvVSchemaRequest. */ - interface IDeleteSrvVSchemaRequest { - - /** DeleteSrvVSchemaRequest cell */ - cell?: (string|null); - } - - /** Represents a DeleteSrvVSchemaRequest. */ - class DeleteSrvVSchemaRequest implements IDeleteSrvVSchemaRequest { - - /** - * Constructs a new DeleteSrvVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaRequest); - - /** DeleteSrvVSchemaRequest cell. */ - public cell: string; - - /** - * Creates a new DeleteSrvVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSrvVSchemaRequest instance - */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaRequest): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Encodes the specified DeleteSrvVSchemaRequest message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. - * @param message DeleteSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaRequest.verify|verify} messages. - * @param message DeleteSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Decodes a DeleteSrvVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Verifies a DeleteSrvVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSrvVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaRequest; - - /** - * Creates a plain object from a DeleteSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteSrvVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteSrvVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteSrvVSchemaResponse. */ - interface IDeleteSrvVSchemaResponse { - } - - /** Represents a DeleteSrvVSchemaResponse. */ - class DeleteSrvVSchemaResponse implements IDeleteSrvVSchemaResponse { - - /** - * Constructs a new DeleteSrvVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteSrvVSchemaResponse); - - /** - * Creates a new DeleteSrvVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSrvVSchemaResponse instance - */ - public static create(properties?: vtctldata.IDeleteSrvVSchemaResponse): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Encodes the specified DeleteSrvVSchemaResponse message. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. - * @param message DeleteSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteSrvVSchemaResponse.verify|verify} messages. - * @param message DeleteSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Decodes a DeleteSrvVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Verifies a DeleteSrvVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSrvVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteSrvVSchemaResponse; - - /** - * Creates a plain object from a DeleteSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message DeleteSrvVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteSrvVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteSrvVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteTabletsRequest. */ - interface IDeleteTabletsRequest { - - /** DeleteTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); - - /** DeleteTabletsRequest allow_primary */ - allow_primary?: (boolean|null); - } - - /** Represents a DeleteTabletsRequest. */ - class DeleteTabletsRequest implements IDeleteTabletsRequest { - - /** - * Constructs a new DeleteTabletsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsRequest); - - /** DeleteTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; - - /** DeleteTabletsRequest allow_primary. */ - public allow_primary: boolean; - - /** - * Creates a new DeleteTabletsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTabletsRequest instance - */ - public static create(properties?: vtctldata.IDeleteTabletsRequest): vtctldata.DeleteTabletsRequest; - - /** - * Encodes the specified DeleteTabletsRequest message. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsRequest.verify|verify} messages. - * @param message DeleteTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsRequest; - - /** - * Decodes a DeleteTabletsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsRequest; - - /** - * Verifies a DeleteTabletsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTabletsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTabletsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsRequest; - - /** - * Creates a plain object from a DeleteTabletsRequest message. Also converts values to other types if specified. - * @param message DeleteTabletsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTabletsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteTabletsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteTabletsResponse. */ - interface IDeleteTabletsResponse { - } - - /** Represents a DeleteTabletsResponse. */ - class DeleteTabletsResponse implements IDeleteTabletsResponse { - - /** - * Constructs a new DeleteTabletsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IDeleteTabletsResponse); - - /** - * Creates a new DeleteTabletsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTabletsResponse instance - */ - public static create(properties?: vtctldata.IDeleteTabletsResponse): vtctldata.DeleteTabletsResponse; - - /** - * Encodes the specified DeleteTabletsResponse message. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.DeleteTabletsResponse.verify|verify} messages. - * @param message DeleteTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IDeleteTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.DeleteTabletsResponse; - - /** - * Decodes a DeleteTabletsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.DeleteTabletsResponse; - - /** - * Verifies a DeleteTabletsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTabletsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTabletsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.DeleteTabletsResponse; - - /** - * Creates a plain object from a DeleteTabletsResponse message. Also converts values to other types if specified. - * @param message DeleteTabletsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.DeleteTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTabletsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteTabletsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EmergencyReparentShardRequest. */ - interface IEmergencyReparentShardRequest { - - /** EmergencyReparentShardRequest keyspace */ - keyspace?: (string|null); - - /** EmergencyReparentShardRequest shard */ - shard?: (string|null); - - /** EmergencyReparentShardRequest new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardRequest ignore_replicas */ - ignore_replicas?: (topodata.ITabletAlias[]|null); - - /** EmergencyReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** EmergencyReparentShardRequest prevent_cross_cell_promotion */ - prevent_cross_cell_promotion?: (boolean|null); - - /** EmergencyReparentShardRequest wait_for_all_tablets */ - wait_for_all_tablets?: (boolean|null); - } - - /** Represents an EmergencyReparentShardRequest. */ - class EmergencyReparentShardRequest implements IEmergencyReparentShardRequest { - - /** - * Constructs a new EmergencyReparentShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IEmergencyReparentShardRequest); - - /** EmergencyReparentShardRequest keyspace. */ - public keyspace: string; - - /** EmergencyReparentShardRequest shard. */ - public shard: string; - - /** EmergencyReparentShardRequest new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardRequest ignore_replicas. */ - public ignore_replicas: topodata.ITabletAlias[]; - - /** EmergencyReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** EmergencyReparentShardRequest prevent_cross_cell_promotion. */ - public prevent_cross_cell_promotion: boolean; - - /** EmergencyReparentShardRequest wait_for_all_tablets. */ - public wait_for_all_tablets: boolean; - - /** - * Creates a new EmergencyReparentShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns EmergencyReparentShardRequest instance - */ - public static create(properties?: vtctldata.IEmergencyReparentShardRequest): vtctldata.EmergencyReparentShardRequest; - - /** - * Encodes the specified EmergencyReparentShardRequest message. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. - * @param message EmergencyReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EmergencyReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardRequest.verify|verify} messages. - * @param message EmergencyReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IEmergencyReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmergencyReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardRequest; - - /** - * Decodes an EmergencyReparentShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardRequest; - - /** - * Verifies an EmergencyReparentShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EmergencyReparentShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmergencyReparentShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardRequest; - - /** - * Creates a plain object from an EmergencyReparentShardRequest message. Also converts values to other types if specified. - * @param message EmergencyReparentShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.EmergencyReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EmergencyReparentShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EmergencyReparentShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EmergencyReparentShardResponse. */ - interface IEmergencyReparentShardResponse { - - /** EmergencyReparentShardResponse keyspace */ - keyspace?: (string|null); - - /** EmergencyReparentShardResponse shard */ - shard?: (string|null); - - /** EmergencyReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents an EmergencyReparentShardResponse. */ - class EmergencyReparentShardResponse implements IEmergencyReparentShardResponse { - - /** - * Constructs a new EmergencyReparentShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IEmergencyReparentShardResponse); - - /** EmergencyReparentShardResponse keyspace. */ - public keyspace: string; - - /** EmergencyReparentShardResponse shard. */ - public shard: string; - - /** EmergencyReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** EmergencyReparentShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new EmergencyReparentShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns EmergencyReparentShardResponse instance - */ - public static create(properties?: vtctldata.IEmergencyReparentShardResponse): vtctldata.EmergencyReparentShardResponse; - - /** - * Encodes the specified EmergencyReparentShardResponse message. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. - * @param message EmergencyReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EmergencyReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.EmergencyReparentShardResponse.verify|verify} messages. - * @param message EmergencyReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IEmergencyReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmergencyReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.EmergencyReparentShardResponse; - - /** - * Decodes an EmergencyReparentShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmergencyReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.EmergencyReparentShardResponse; - - /** - * Verifies an EmergencyReparentShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EmergencyReparentShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmergencyReparentShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.EmergencyReparentShardResponse; - - /** - * Creates a plain object from an EmergencyReparentShardResponse message. Also converts values to other types if specified. - * @param message EmergencyReparentShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.EmergencyReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EmergencyReparentShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EmergencyReparentShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsAppRequest. */ - interface IExecuteFetchAsAppRequest { - - /** ExecuteFetchAsAppRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsAppRequest query */ - query?: (string|null); - - /** ExecuteFetchAsAppRequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteFetchAsAppRequest use_pool */ - use_pool?: (boolean|null); - } - - /** Represents an ExecuteFetchAsAppRequest. */ - class ExecuteFetchAsAppRequest implements IExecuteFetchAsAppRequest { - - /** - * Constructs a new ExecuteFetchAsAppRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsAppRequest); - - /** ExecuteFetchAsAppRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsAppRequest query. */ - public query: string; - - /** ExecuteFetchAsAppRequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteFetchAsAppRequest use_pool. */ - public use_pool: boolean; - - /** - * Creates a new ExecuteFetchAsAppRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsAppRequest instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsAppRequest): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Encodes the specified ExecuteFetchAsAppRequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsAppRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppRequest.verify|verify} messages. - * @param message ExecuteFetchAsAppRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Decodes an ExecuteFetchAsAppRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Verifies an ExecuteFetchAsAppRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsAppRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsAppRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppRequest; - - /** - * Creates a plain object from an ExecuteFetchAsAppRequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsAppRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsAppRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsAppRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsAppResponse. */ - interface IExecuteFetchAsAppResponse { - - /** ExecuteFetchAsAppResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteFetchAsAppResponse. */ - class ExecuteFetchAsAppResponse implements IExecuteFetchAsAppResponse { - - /** - * Constructs a new ExecuteFetchAsAppResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsAppResponse); - - /** ExecuteFetchAsAppResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteFetchAsAppResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsAppResponse instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsAppResponse): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Encodes the specified ExecuteFetchAsAppResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsAppResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsAppResponse.verify|verify} messages. - * @param message ExecuteFetchAsAppResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsAppResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsAppResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Decodes an ExecuteFetchAsAppResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsAppResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Verifies an ExecuteFetchAsAppResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsAppResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsAppResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsAppResponse; - - /** - * Creates a plain object from an ExecuteFetchAsAppResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsAppResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsAppResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsAppResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsAppResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsDBARequest. */ - interface IExecuteFetchAsDBARequest { - - /** ExecuteFetchAsDBARequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsDBARequest query */ - query?: (string|null); - - /** ExecuteFetchAsDBARequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteFetchAsDBARequest disable_binlogs */ - disable_binlogs?: (boolean|null); - - /** ExecuteFetchAsDBARequest reload_schema */ - reload_schema?: (boolean|null); - } - - /** Represents an ExecuteFetchAsDBARequest. */ - class ExecuteFetchAsDBARequest implements IExecuteFetchAsDBARequest { - - /** - * Constructs a new ExecuteFetchAsDBARequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsDBARequest); - - /** ExecuteFetchAsDBARequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteFetchAsDBARequest query. */ - public query: string; - - /** ExecuteFetchAsDBARequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteFetchAsDBARequest disable_binlogs. */ - public disable_binlogs: boolean; - - /** ExecuteFetchAsDBARequest reload_schema. */ - public reload_schema: boolean; - - /** - * Creates a new ExecuteFetchAsDBARequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsDBARequest instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsDBARequest): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Encodes the specified ExecuteFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Decodes an ExecuteFetchAsDBARequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Verifies an ExecuteFetchAsDBARequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsDBARequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBARequest; - - /** - * Creates a plain object from an ExecuteFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBARequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsDBARequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsDBARequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteFetchAsDBAResponse. */ - interface IExecuteFetchAsDBAResponse { - - /** ExecuteFetchAsDBAResponse result */ - result?: (query.IQueryResult|null); - } - - /** Represents an ExecuteFetchAsDBAResponse. */ - class ExecuteFetchAsDBAResponse implements IExecuteFetchAsDBAResponse { - - /** - * Constructs a new ExecuteFetchAsDBAResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteFetchAsDBAResponse); - - /** ExecuteFetchAsDBAResponse result. */ - public result?: (query.IQueryResult|null); - - /** - * Creates a new ExecuteFetchAsDBAResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteFetchAsDBAResponse instance - */ - public static create(properties?: vtctldata.IExecuteFetchAsDBAResponse): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Encodes the specified ExecuteFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Decodes an ExecuteFetchAsDBAResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Verifies an ExecuteFetchAsDBAResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteFetchAsDBAResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteFetchAsDBAResponse; - - /** - * Creates a plain object from an ExecuteFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteFetchAsDBAResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteFetchAsDBAResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteFetchAsDBAResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteHookRequest. */ - interface IExecuteHookRequest { - - /** ExecuteHookRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteHookRequest tablet_hook_request */ - tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); - } - - /** Represents an ExecuteHookRequest. */ - class ExecuteHookRequest implements IExecuteHookRequest { - - /** - * Constructs a new ExecuteHookRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteHookRequest); - - /** ExecuteHookRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteHookRequest tablet_hook_request. */ - public tablet_hook_request?: (tabletmanagerdata.IExecuteHookRequest|null); - - /** - * Creates a new ExecuteHookRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteHookRequest instance - */ - public static create(properties?: vtctldata.IExecuteHookRequest): vtctldata.ExecuteHookRequest; - - /** - * Encodes the specified ExecuteHookRequest message. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteHookRequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookRequest.verify|verify} messages. - * @param message ExecuteHookRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteHookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteHookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookRequest; - - /** - * Decodes an ExecuteHookRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteHookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookRequest; - - /** - * Verifies an ExecuteHookRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteHookRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteHookRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookRequest; - - /** - * Creates a plain object from an ExecuteHookRequest message. Also converts values to other types if specified. - * @param message ExecuteHookRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteHookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteHookRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteHookRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteHookResponse. */ - interface IExecuteHookResponse { - - /** ExecuteHookResponse hook_result */ - hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); - } - - /** Represents an ExecuteHookResponse. */ - class ExecuteHookResponse implements IExecuteHookResponse { - - /** - * Constructs a new ExecuteHookResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteHookResponse); - - /** ExecuteHookResponse hook_result. */ - public hook_result?: (tabletmanagerdata.IExecuteHookResponse|null); - - /** - * Creates a new ExecuteHookResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteHookResponse instance - */ - public static create(properties?: vtctldata.IExecuteHookResponse): vtctldata.ExecuteHookResponse; - - /** - * Encodes the specified ExecuteHookResponse message. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteHookResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteHookResponse.verify|verify} messages. - * @param message ExecuteHookResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteHookResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteHookResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteHookResponse; - - /** - * Decodes an ExecuteHookResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteHookResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteHookResponse; - - /** - * Verifies an ExecuteHookResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteHookResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteHookResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteHookResponse; - - /** - * Creates a plain object from an ExecuteHookResponse message. Also converts values to other types if specified. - * @param message ExecuteHookResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteHookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteHookResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteHookResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteMultiFetchAsDBARequest. */ - interface IExecuteMultiFetchAsDBARequest { - - /** ExecuteMultiFetchAsDBARequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteMultiFetchAsDBARequest sql */ - sql?: (string|null); - - /** ExecuteMultiFetchAsDBARequest max_rows */ - max_rows?: (number|Long|null); - - /** ExecuteMultiFetchAsDBARequest disable_binlogs */ - disable_binlogs?: (boolean|null); - - /** ExecuteMultiFetchAsDBARequest reload_schema */ - reload_schema?: (boolean|null); - } - - /** Represents an ExecuteMultiFetchAsDBARequest. */ - class ExecuteMultiFetchAsDBARequest implements IExecuteMultiFetchAsDBARequest { - - /** - * Constructs a new ExecuteMultiFetchAsDBARequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteMultiFetchAsDBARequest); - - /** ExecuteMultiFetchAsDBARequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** ExecuteMultiFetchAsDBARequest sql. */ - public sql: string; - - /** ExecuteMultiFetchAsDBARequest max_rows. */ - public max_rows: (number|Long); - - /** ExecuteMultiFetchAsDBARequest disable_binlogs. */ - public disable_binlogs: boolean; - - /** ExecuteMultiFetchAsDBARequest reload_schema. */ - public reload_schema: boolean; - - /** - * Creates a new ExecuteMultiFetchAsDBARequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBARequest instance - */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBARequest): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteMultiFetchAsDBARequest message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBARequest.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBARequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBARequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Decodes an ExecuteMultiFetchAsDBARequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBARequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Verifies an ExecuteMultiFetchAsDBARequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteMultiFetchAsDBARequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteMultiFetchAsDBARequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBARequest; - - /** - * Creates a plain object from an ExecuteMultiFetchAsDBARequest message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBARequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteMultiFetchAsDBARequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteMultiFetchAsDBARequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteMultiFetchAsDBARequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExecuteMultiFetchAsDBAResponse. */ - interface IExecuteMultiFetchAsDBAResponse { - - /** ExecuteMultiFetchAsDBAResponse results */ - results?: (query.IQueryResult[]|null); - } - - /** Represents an ExecuteMultiFetchAsDBAResponse. */ - class ExecuteMultiFetchAsDBAResponse implements IExecuteMultiFetchAsDBAResponse { - - /** - * Constructs a new ExecuteMultiFetchAsDBAResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse); - - /** ExecuteMultiFetchAsDBAResponse results. */ - public results: query.IQueryResult[]; - - /** - * Creates a new ExecuteMultiFetchAsDBAResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteMultiFetchAsDBAResponse instance - */ - public static create(properties?: vtctldata.IExecuteMultiFetchAsDBAResponse): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExecuteMultiFetchAsDBAResponse message, length delimited. Does not implicitly {@link vtctldata.ExecuteMultiFetchAsDBAResponse.verify|verify} messages. - * @param message ExecuteMultiFetchAsDBAResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IExecuteMultiFetchAsDBAResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteMultiFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Decodes an ExecuteMultiFetchAsDBAResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExecuteMultiFetchAsDBAResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Verifies an ExecuteMultiFetchAsDBAResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExecuteMultiFetchAsDBAResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExecuteMultiFetchAsDBAResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ExecuteMultiFetchAsDBAResponse; - - /** - * Creates a plain object from an ExecuteMultiFetchAsDBAResponse message. Also converts values to other types if specified. - * @param message ExecuteMultiFetchAsDBAResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ExecuteMultiFetchAsDBAResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExecuteMultiFetchAsDBAResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExecuteMultiFetchAsDBAResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FindAllShardsInKeyspaceRequest. */ - interface IFindAllShardsInKeyspaceRequest { - - /** FindAllShardsInKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a FindAllShardsInKeyspaceRequest. */ - class FindAllShardsInKeyspaceRequest implements IFindAllShardsInKeyspaceRequest { - - /** - * Constructs a new FindAllShardsInKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceRequest); - - /** FindAllShardsInKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new FindAllShardsInKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceRequest): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Encodes the specified FindAllShardsInKeyspaceRequest message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. - * @param message FindAllShardsInKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FindAllShardsInKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceRequest.verify|verify} messages. - * @param message FindAllShardsInKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FindAllShardsInKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Decodes a FindAllShardsInKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Verifies a FindAllShardsInKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FindAllShardsInKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FindAllShardsInKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceRequest; - - /** - * Creates a plain object from a FindAllShardsInKeyspaceRequest message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FindAllShardsInKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FindAllShardsInKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FindAllShardsInKeyspaceResponse. */ - interface IFindAllShardsInKeyspaceResponse { - - /** FindAllShardsInKeyspaceResponse shards */ - shards?: ({ [k: string]: vtctldata.IShard }|null); - } - - /** Represents a FindAllShardsInKeyspaceResponse. */ - class FindAllShardsInKeyspaceResponse implements IFindAllShardsInKeyspaceResponse { - - /** - * Constructs a new FindAllShardsInKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IFindAllShardsInKeyspaceResponse); - - /** FindAllShardsInKeyspaceResponse shards. */ - public shards: { [k: string]: vtctldata.IShard }; - - /** - * Creates a new FindAllShardsInKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FindAllShardsInKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IFindAllShardsInKeyspaceResponse): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Encodes the specified FindAllShardsInKeyspaceResponse message. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. - * @param message FindAllShardsInKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FindAllShardsInKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.FindAllShardsInKeyspaceResponse.verify|verify} messages. - * @param message FindAllShardsInKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IFindAllShardsInKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FindAllShardsInKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Decodes a FindAllShardsInKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FindAllShardsInKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Verifies a FindAllShardsInKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FindAllShardsInKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FindAllShardsInKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.FindAllShardsInKeyspaceResponse; - - /** - * Creates a plain object from a FindAllShardsInKeyspaceResponse message. Also converts values to other types if specified. - * @param message FindAllShardsInKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.FindAllShardsInKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FindAllShardsInKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FindAllShardsInKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ForceCutOverSchemaMigrationRequest. */ - interface IForceCutOverSchemaMigrationRequest { - - /** ForceCutOverSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** ForceCutOverSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a ForceCutOverSchemaMigrationRequest. */ - class ForceCutOverSchemaMigrationRequest implements IForceCutOverSchemaMigrationRequest { - - /** - * Constructs a new ForceCutOverSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationRequest); - - /** ForceCutOverSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** ForceCutOverSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new ForceCutOverSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationRequest): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForceCutOverSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationRequest.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForceCutOverSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Decodes a ForceCutOverSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Verifies a ForceCutOverSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForceCutOverSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForceCutOverSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationRequest; - - /** - * Creates a plain object from a ForceCutOverSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ForceCutOverSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForceCutOverSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ForceCutOverSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ForceCutOverSchemaMigrationResponse. */ - interface IForceCutOverSchemaMigrationResponse { - - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a ForceCutOverSchemaMigrationResponse. */ - class ForceCutOverSchemaMigrationResponse implements IForceCutOverSchemaMigrationResponse { - - /** - * Constructs a new ForceCutOverSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IForceCutOverSchemaMigrationResponse); - - /** ForceCutOverSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new ForceCutOverSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ForceCutOverSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.IForceCutOverSchemaMigrationResponse): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForceCutOverSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.ForceCutOverSchemaMigrationResponse.verify|verify} messages. - * @param message ForceCutOverSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IForceCutOverSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForceCutOverSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Decodes a ForceCutOverSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForceCutOverSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Verifies a ForceCutOverSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForceCutOverSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForceCutOverSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ForceCutOverSchemaMigrationResponse; - - /** - * Creates a plain object from a ForceCutOverSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message ForceCutOverSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ForceCutOverSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForceCutOverSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ForceCutOverSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetBackupsRequest. */ - interface IGetBackupsRequest { - - /** GetBackupsRequest keyspace */ - keyspace?: (string|null); - - /** GetBackupsRequest shard */ - shard?: (string|null); - - /** GetBackupsRequest limit */ - limit?: (number|null); - - /** GetBackupsRequest detailed */ - detailed?: (boolean|null); - - /** GetBackupsRequest detailed_limit */ - detailed_limit?: (number|null); - } - - /** Represents a GetBackupsRequest. */ - class GetBackupsRequest implements IGetBackupsRequest { - - /** - * Constructs a new GetBackupsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetBackupsRequest); - - /** GetBackupsRequest keyspace. */ - public keyspace: string; - - /** GetBackupsRequest shard. */ - public shard: string; - - /** GetBackupsRequest limit. */ - public limit: number; - - /** GetBackupsRequest detailed. */ - public detailed: boolean; - - /** GetBackupsRequest detailed_limit. */ - public detailed_limit: number; - - /** - * Creates a new GetBackupsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetBackupsRequest instance - */ - public static create(properties?: vtctldata.IGetBackupsRequest): vtctldata.GetBackupsRequest; - - /** - * Encodes the specified GetBackupsRequest message. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetBackupsRequest message, length delimited. Does not implicitly {@link vtctldata.GetBackupsRequest.verify|verify} messages. - * @param message GetBackupsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetBackupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetBackupsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetBackupsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsRequest; - - /** - * Decodes a GetBackupsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetBackupsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsRequest; - - /** - * Verifies a GetBackupsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetBackupsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetBackupsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsRequest; - - /** - * Creates a plain object from a GetBackupsRequest message. Also converts values to other types if specified. - * @param message GetBackupsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetBackupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetBackupsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetBackupsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetBackupsResponse. */ - interface IGetBackupsResponse { - - /** GetBackupsResponse backups */ - backups?: (mysqlctl.IBackupInfo[]|null); - } - - /** Represents a GetBackupsResponse. */ - class GetBackupsResponse implements IGetBackupsResponse { - - /** - * Constructs a new GetBackupsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetBackupsResponse); - - /** GetBackupsResponse backups. */ - public backups: mysqlctl.IBackupInfo[]; - - /** - * Creates a new GetBackupsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetBackupsResponse instance - */ - public static create(properties?: vtctldata.IGetBackupsResponse): vtctldata.GetBackupsResponse; - - /** - * Encodes the specified GetBackupsResponse message. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetBackupsResponse message, length delimited. Does not implicitly {@link vtctldata.GetBackupsResponse.verify|verify} messages. - * @param message GetBackupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetBackupsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetBackupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetBackupsResponse; - - /** - * Decodes a GetBackupsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetBackupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetBackupsResponse; - - /** - * Verifies a GetBackupsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetBackupsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetBackupsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetBackupsResponse; - - /** - * Creates a plain object from a GetBackupsResponse message. Also converts values to other types if specified. - * @param message GetBackupsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetBackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetBackupsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetBackupsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoRequest. */ - interface IGetCellInfoRequest { - - /** GetCellInfoRequest cell */ - cell?: (string|null); - } - - /** Represents a GetCellInfoRequest. */ - class GetCellInfoRequest implements IGetCellInfoRequest { - - /** - * Constructs a new GetCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoRequest); - - /** GetCellInfoRequest cell. */ - public cell: string; - - /** - * Creates a new GetCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoRequest instance - */ - public static create(properties?: vtctldata.IGetCellInfoRequest): vtctldata.GetCellInfoRequest; - - /** - * Encodes the specified GetCellInfoRequest message. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoRequest.verify|verify} messages. - * @param message GetCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoRequest; - - /** - * Decodes a GetCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoRequest; - - /** - * Verifies a GetCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoRequest; - - /** - * Creates a plain object from a GetCellInfoRequest message. Also converts values to other types if specified. - * @param message GetCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoResponse. */ - interface IGetCellInfoResponse { - - /** GetCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents a GetCellInfoResponse. */ - class GetCellInfoResponse implements IGetCellInfoResponse { - - /** - * Constructs a new GetCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoResponse); - - /** GetCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new GetCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoResponse instance - */ - public static create(properties?: vtctldata.IGetCellInfoResponse): vtctldata.GetCellInfoResponse; - - /** - * Encodes the specified GetCellInfoResponse message. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoResponse.verify|verify} messages. - * @param message GetCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoResponse; - - /** - * Decodes a GetCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoResponse; - - /** - * Verifies a GetCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoResponse; - - /** - * Creates a plain object from a GetCellInfoResponse message. Also converts values to other types if specified. - * @param message GetCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoNamesRequest. */ - interface IGetCellInfoNamesRequest { - } - - /** Represents a GetCellInfoNamesRequest. */ - class GetCellInfoNamesRequest implements IGetCellInfoNamesRequest { - - /** - * Constructs a new GetCellInfoNamesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoNamesRequest); - - /** - * Creates a new GetCellInfoNamesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoNamesRequest instance - */ - public static create(properties?: vtctldata.IGetCellInfoNamesRequest): vtctldata.GetCellInfoNamesRequest; - - /** - * Encodes the specified GetCellInfoNamesRequest message. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesRequest.verify|verify} messages. - * @param message GetCellInfoNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesRequest; - - /** - * Decodes a GetCellInfoNamesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesRequest; - - /** - * Verifies a GetCellInfoNamesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoNamesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoNamesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesRequest; - - /** - * Creates a plain object from a GetCellInfoNamesRequest message. Also converts values to other types if specified. - * @param message GetCellInfoNamesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoNamesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellInfoNamesResponse. */ - interface IGetCellInfoNamesResponse { - - /** GetCellInfoNamesResponse names */ - names?: (string[]|null); - } - - /** Represents a GetCellInfoNamesResponse. */ - class GetCellInfoNamesResponse implements IGetCellInfoNamesResponse { - - /** - * Constructs a new GetCellInfoNamesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellInfoNamesResponse); - - /** GetCellInfoNamesResponse names. */ - public names: string[]; - - /** - * Creates a new GetCellInfoNamesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellInfoNamesResponse instance - */ - public static create(properties?: vtctldata.IGetCellInfoNamesResponse): vtctldata.GetCellInfoNamesResponse; - - /** - * Encodes the specified GetCellInfoNamesResponse message. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellInfoNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellInfoNamesResponse.verify|verify} messages. - * @param message GetCellInfoNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellInfoNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellInfoNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellInfoNamesResponse; - - /** - * Decodes a GetCellInfoNamesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellInfoNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellInfoNamesResponse; - - /** - * Verifies a GetCellInfoNamesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellInfoNamesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellInfoNamesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellInfoNamesResponse; - - /** - * Creates a plain object from a GetCellInfoNamesResponse message. Also converts values to other types if specified. - * @param message GetCellInfoNamesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellInfoNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellInfoNamesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellInfoNamesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellsAliasesRequest. */ - interface IGetCellsAliasesRequest { - } - - /** Represents a GetCellsAliasesRequest. */ - class GetCellsAliasesRequest implements IGetCellsAliasesRequest { - - /** - * Constructs a new GetCellsAliasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellsAliasesRequest); - - /** - * Creates a new GetCellsAliasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellsAliasesRequest instance - */ - public static create(properties?: vtctldata.IGetCellsAliasesRequest): vtctldata.GetCellsAliasesRequest; - - /** - * Encodes the specified GetCellsAliasesRequest message. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellsAliasesRequest message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesRequest.verify|verify} messages. - * @param message GetCellsAliasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellsAliasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesRequest; - - /** - * Decodes a GetCellsAliasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesRequest; - - /** - * Verifies a GetCellsAliasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellsAliasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellsAliasesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesRequest; - - /** - * Creates a plain object from a GetCellsAliasesRequest message. Also converts values to other types if specified. - * @param message GetCellsAliasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellsAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellsAliasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellsAliasesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetCellsAliasesResponse. */ - interface IGetCellsAliasesResponse { - - /** GetCellsAliasesResponse aliases */ - aliases?: ({ [k: string]: topodata.ICellsAlias }|null); - } - - /** Represents a GetCellsAliasesResponse. */ - class GetCellsAliasesResponse implements IGetCellsAliasesResponse { - - /** - * Constructs a new GetCellsAliasesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetCellsAliasesResponse); - - /** GetCellsAliasesResponse aliases. */ - public aliases: { [k: string]: topodata.ICellsAlias }; - - /** - * Creates a new GetCellsAliasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetCellsAliasesResponse instance - */ - public static create(properties?: vtctldata.IGetCellsAliasesResponse): vtctldata.GetCellsAliasesResponse; - - /** - * Encodes the specified GetCellsAliasesResponse message. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetCellsAliasesResponse message, length delimited. Does not implicitly {@link vtctldata.GetCellsAliasesResponse.verify|verify} messages. - * @param message GetCellsAliasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetCellsAliasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetCellsAliasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetCellsAliasesResponse; - - /** - * Decodes a GetCellsAliasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetCellsAliasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetCellsAliasesResponse; - - /** - * Verifies a GetCellsAliasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetCellsAliasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetCellsAliasesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetCellsAliasesResponse; - - /** - * Creates a plain object from a GetCellsAliasesResponse message. Also converts values to other types if specified. - * @param message GetCellsAliasesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetCellsAliasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetCellsAliasesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetCellsAliasesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFullStatusRequest. */ - interface IGetFullStatusRequest { - - /** GetFullStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetFullStatusRequest. */ - class GetFullStatusRequest implements IGetFullStatusRequest { - - /** - * Constructs a new GetFullStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetFullStatusRequest); - - /** GetFullStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetFullStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFullStatusRequest instance - */ - public static create(properties?: vtctldata.IGetFullStatusRequest): vtctldata.GetFullStatusRequest; - - /** - * Encodes the specified GetFullStatusRequest message. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. - * @param message GetFullStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetFullStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusRequest.verify|verify} messages. - * @param message GetFullStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetFullStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFullStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusRequest; - - /** - * Decodes a GetFullStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFullStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusRequest; - - /** - * Verifies a GetFullStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetFullStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFullStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusRequest; - - /** - * Creates a plain object from a GetFullStatusRequest message. Also converts values to other types if specified. - * @param message GetFullStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetFullStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetFullStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetFullStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFullStatusResponse. */ - interface IGetFullStatusResponse { - - /** GetFullStatusResponse status */ - status?: (replicationdata.IFullStatus|null); - } - - /** Represents a GetFullStatusResponse. */ - class GetFullStatusResponse implements IGetFullStatusResponse { - - /** - * Constructs a new GetFullStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetFullStatusResponse); - - /** GetFullStatusResponse status. */ - public status?: (replicationdata.IFullStatus|null); - - /** - * Creates a new GetFullStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFullStatusResponse instance - */ - public static create(properties?: vtctldata.IGetFullStatusResponse): vtctldata.GetFullStatusResponse; - - /** - * Encodes the specified GetFullStatusResponse message. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. - * @param message GetFullStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetFullStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetFullStatusResponse.verify|verify} messages. - * @param message GetFullStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetFullStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFullStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetFullStatusResponse; - - /** - * Decodes a GetFullStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFullStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetFullStatusResponse; - - /** - * Verifies a GetFullStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetFullStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFullStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetFullStatusResponse; - - /** - * Creates a plain object from a GetFullStatusResponse message. Also converts values to other types if specified. - * @param message GetFullStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetFullStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetFullStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetFullStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspacesRequest. */ - interface IGetKeyspacesRequest { - } - - /** Represents a GetKeyspacesRequest. */ - class GetKeyspacesRequest implements IGetKeyspacesRequest { - - /** - * Constructs a new GetKeyspacesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspacesRequest); - - /** - * Creates a new GetKeyspacesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspacesRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspacesRequest): vtctldata.GetKeyspacesRequest; - - /** - * Encodes the specified GetKeyspacesRequest message. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesRequest.verify|verify} messages. - * @param message GetKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesRequest; - - /** - * Decodes a GetKeyspacesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesRequest; - - /** - * Verifies a GetKeyspacesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspacesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspacesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesRequest; - - /** - * Creates a plain object from a GetKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetKeyspacesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspacesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspacesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspacesResponse. */ - interface IGetKeyspacesResponse { - - /** GetKeyspacesResponse keyspaces */ - keyspaces?: (vtctldata.IKeyspace[]|null); - } - - /** Represents a GetKeyspacesResponse. */ - class GetKeyspacesResponse implements IGetKeyspacesResponse { - - /** - * Constructs a new GetKeyspacesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspacesResponse); - - /** GetKeyspacesResponse keyspaces. */ - public keyspaces: vtctldata.IKeyspace[]; - - /** - * Creates a new GetKeyspacesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspacesResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspacesResponse): vtctldata.GetKeyspacesResponse; - - /** - * Encodes the specified GetKeyspacesResponse message. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspacesResponse.verify|verify} messages. - * @param message GetKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspacesResponse; - - /** - * Decodes a GetKeyspacesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspacesResponse; - - /** - * Verifies a GetKeyspacesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspacesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspacesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspacesResponse; - - /** - * Creates a plain object from a GetKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetKeyspacesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspacesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspacesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRequest. */ - interface IGetKeyspaceRequest { - - /** GetKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a GetKeyspaceRequest. */ - class GetKeyspaceRequest implements IGetKeyspaceRequest { - - /** - * Constructs a new GetKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRequest); - - /** GetKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new GetKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRequest): vtctldata.GetKeyspaceRequest; - - /** - * Encodes the specified GetKeyspaceRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRequest.verify|verify} messages. - * @param message GetKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRequest; - - /** - * Decodes a GetKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRequest; - - /** - * Verifies a GetKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRequest; - - /** - * Creates a plain object from a GetKeyspaceRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceResponse. */ - interface IGetKeyspaceResponse { - - /** GetKeyspaceResponse keyspace */ - keyspace?: (vtctldata.IKeyspace|null); - } - - /** Represents a GetKeyspaceResponse. */ - class GetKeyspaceResponse implements IGetKeyspaceResponse { - - /** - * Constructs a new GetKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceResponse); - - /** GetKeyspaceResponse keyspace. */ - public keyspace?: (vtctldata.IKeyspace|null); - - /** - * Creates a new GetKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspaceResponse): vtctldata.GetKeyspaceResponse; - - /** - * Encodes the specified GetKeyspaceResponse message. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceResponse.verify|verify} messages. - * @param message GetKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceResponse; - - /** - * Decodes a GetKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceResponse; - - /** - * Verifies a GetKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceResponse; - - /** - * Creates a plain object from a GetKeyspaceResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetPermissionsRequest. */ - interface IGetPermissionsRequest { - - /** GetPermissionsRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetPermissionsRequest. */ - class GetPermissionsRequest implements IGetPermissionsRequest { - - /** - * Constructs a new GetPermissionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetPermissionsRequest); - - /** GetPermissionsRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetPermissionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetPermissionsRequest instance - */ - public static create(properties?: vtctldata.IGetPermissionsRequest): vtctldata.GetPermissionsRequest; - - /** - * Encodes the specified GetPermissionsRequest message. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetPermissionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsRequest.verify|verify} messages. - * @param message GetPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsRequest; - - /** - * Decodes a GetPermissionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPermissionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsRequest; - - /** - * Verifies a GetPermissionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetPermissionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetPermissionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsRequest; - - /** - * Creates a plain object from a GetPermissionsRequest message. Also converts values to other types if specified. - * @param message GetPermissionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetPermissionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetPermissionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetPermissionsResponse. */ - interface IGetPermissionsResponse { - - /** GetPermissionsResponse permissions */ - permissions?: (tabletmanagerdata.IPermissions|null); - } - - /** Represents a GetPermissionsResponse. */ - class GetPermissionsResponse implements IGetPermissionsResponse { - - /** - * Constructs a new GetPermissionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetPermissionsResponse); - - /** GetPermissionsResponse permissions. */ - public permissions?: (tabletmanagerdata.IPermissions|null); - - /** - * Creates a new GetPermissionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetPermissionsResponse instance - */ - public static create(properties?: vtctldata.IGetPermissionsResponse): vtctldata.GetPermissionsResponse; - - /** - * Encodes the specified GetPermissionsResponse message. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetPermissionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetPermissionsResponse.verify|verify} messages. - * @param message GetPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetPermissionsResponse; - - /** - * Decodes a GetPermissionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetPermissionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetPermissionsResponse; - - /** - * Verifies a GetPermissionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetPermissionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetPermissionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetPermissionsResponse; - - /** - * Creates a plain object from a GetPermissionsResponse message. Also converts values to other types if specified. - * @param message GetPermissionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetPermissionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetPermissionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRoutingRulesRequest. */ - interface IGetKeyspaceRoutingRulesRequest { - } - - /** Represents a GetKeyspaceRoutingRulesRequest. */ - class GetKeyspaceRoutingRulesRequest implements IGetKeyspaceRoutingRulesRequest { - - /** - * Constructs a new GetKeyspaceRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest); - - /** - * Creates a new GetKeyspaceRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesRequest): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesRequest.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Decodes a GetKeyspaceRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Verifies a GetKeyspaceRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesRequest; - - /** - * Creates a plain object from a GetKeyspaceRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetKeyspaceRoutingRulesResponse. */ - interface IGetKeyspaceRoutingRulesResponse { - - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules */ - keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - } - - /** Represents a GetKeyspaceRoutingRulesResponse. */ - class GetKeyspaceRoutingRulesResponse implements IGetKeyspaceRoutingRulesResponse { - - /** - * Constructs a new GetKeyspaceRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse); - - /** GetKeyspaceRoutingRulesResponse keyspace_routing_rules. */ - public keyspace_routing_rules?: (vschema.IKeyspaceRoutingRules|null); - - /** - * Creates a new GetKeyspaceRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetKeyspaceRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetKeyspaceRoutingRulesResponse): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetKeyspaceRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetKeyspaceRoutingRulesResponse.verify|verify} messages. - * @param message GetKeyspaceRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetKeyspaceRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Decodes a GetKeyspaceRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetKeyspaceRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Verifies a GetKeyspaceRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetKeyspaceRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetKeyspaceRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetKeyspaceRoutingRulesResponse; - - /** - * Creates a plain object from a GetKeyspaceRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetKeyspaceRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetKeyspaceRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetKeyspaceRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetKeyspaceRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetRoutingRulesRequest. */ - interface IGetRoutingRulesRequest { - } - - /** Represents a GetRoutingRulesRequest. */ - class GetRoutingRulesRequest implements IGetRoutingRulesRequest { - - /** - * Constructs a new GetRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetRoutingRulesRequest); - - /** - * Creates a new GetRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetRoutingRulesRequest): vtctldata.GetRoutingRulesRequest; - - /** - * Encodes the specified GetRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. - * @param message GetRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesRequest.verify|verify} messages. - * @param message GetRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesRequest; - - /** - * Decodes a GetRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesRequest; - - /** - * Verifies a GetRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesRequest; - - /** - * Creates a plain object from a GetRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetRoutingRulesResponse. */ - interface IGetRoutingRulesResponse { - - /** GetRoutingRulesResponse routing_rules */ - routing_rules?: (vschema.IRoutingRules|null); - } - - /** Represents a GetRoutingRulesResponse. */ - class GetRoutingRulesResponse implements IGetRoutingRulesResponse { - - /** - * Constructs a new GetRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetRoutingRulesResponse); - - /** GetRoutingRulesResponse routing_rules. */ - public routing_rules?: (vschema.IRoutingRules|null); - - /** - * Creates a new GetRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetRoutingRulesResponse): vtctldata.GetRoutingRulesResponse; - - /** - * Encodes the specified GetRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. - * @param message GetRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetRoutingRulesResponse.verify|verify} messages. - * @param message GetRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetRoutingRulesResponse; - - /** - * Decodes a GetRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetRoutingRulesResponse; - - /** - * Verifies a GetRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetRoutingRulesResponse; - - /** - * Creates a plain object from a GetRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaRequest. */ - interface IGetSchemaRequest { - - /** GetSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables */ - tables?: (string[]|null); - - /** GetSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** GetSchemaRequest include_views */ - include_views?: (boolean|null); - - /** GetSchemaRequest table_names_only */ - table_names_only?: (boolean|null); - - /** GetSchemaRequest table_sizes_only */ - table_sizes_only?: (boolean|null); - - /** GetSchemaRequest table_schema_only */ - table_schema_only?: (boolean|null); - } - - /** Represents a GetSchemaRequest. */ - class GetSchemaRequest implements IGetSchemaRequest { - - /** - * Constructs a new GetSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaRequest); - - /** GetSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** GetSchemaRequest tables. */ - public tables: string[]; - - /** GetSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** GetSchemaRequest include_views. */ - public include_views: boolean; - - /** GetSchemaRequest table_names_only. */ - public table_names_only: boolean; - - /** GetSchemaRequest table_sizes_only. */ - public table_sizes_only: boolean; - - /** GetSchemaRequest table_schema_only. */ - public table_schema_only: boolean; - - /** - * Creates a new GetSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetSchemaRequest): vtctldata.GetSchemaRequest; - - /** - * Encodes the specified GetSchemaRequest message. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaRequest.verify|verify} messages. - * @param message GetSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaRequest; - - /** - * Decodes a GetSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaRequest; - - /** - * Verifies a GetSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaRequest; - - /** - * Creates a plain object from a GetSchemaRequest message. Also converts values to other types if specified. - * @param message GetSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaResponse. */ - interface IGetSchemaResponse { - - /** GetSchemaResponse schema */ - schema?: (tabletmanagerdata.ISchemaDefinition|null); - } - - /** Represents a GetSchemaResponse. */ - class GetSchemaResponse implements IGetSchemaResponse { - - /** - * Constructs a new GetSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaResponse); - - /** GetSchemaResponse schema. */ - public schema?: (tabletmanagerdata.ISchemaDefinition|null); - - /** - * Creates a new GetSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetSchemaResponse): vtctldata.GetSchemaResponse; - - /** - * Encodes the specified GetSchemaResponse message. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaResponse.verify|verify} messages. - * @param message GetSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaResponse; - - /** - * Decodes a GetSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaResponse; - - /** - * Verifies a GetSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaResponse; - - /** - * Creates a plain object from a GetSchemaResponse message. Also converts values to other types if specified. - * @param message GetSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaMigrationsRequest. */ - interface IGetSchemaMigrationsRequest { - - /** GetSchemaMigrationsRequest keyspace */ - keyspace?: (string|null); - - /** GetSchemaMigrationsRequest uuid */ - uuid?: (string|null); - - /** GetSchemaMigrationsRequest migration_context */ - migration_context?: (string|null); - - /** GetSchemaMigrationsRequest status */ - status?: (vtctldata.SchemaMigration.Status|null); - - /** GetSchemaMigrationsRequest recent */ - recent?: (vttime.IDuration|null); - - /** GetSchemaMigrationsRequest order */ - order?: (vtctldata.QueryOrdering|null); - - /** GetSchemaMigrationsRequest limit */ - limit?: (number|Long|null); - - /** GetSchemaMigrationsRequest skip */ - skip?: (number|Long|null); - } - - /** Represents a GetSchemaMigrationsRequest. */ - class GetSchemaMigrationsRequest implements IGetSchemaMigrationsRequest { - - /** - * Constructs a new GetSchemaMigrationsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaMigrationsRequest); - - /** GetSchemaMigrationsRequest keyspace. */ - public keyspace: string; - - /** GetSchemaMigrationsRequest uuid. */ - public uuid: string; - - /** GetSchemaMigrationsRequest migration_context. */ - public migration_context: string; - - /** GetSchemaMigrationsRequest status. */ - public status: vtctldata.SchemaMigration.Status; - - /** GetSchemaMigrationsRequest recent. */ - public recent?: (vttime.IDuration|null); - - /** GetSchemaMigrationsRequest order. */ - public order: vtctldata.QueryOrdering; - - /** GetSchemaMigrationsRequest limit. */ - public limit: (number|Long); - - /** GetSchemaMigrationsRequest skip. */ - public skip: (number|Long); - - /** - * Creates a new GetSchemaMigrationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaMigrationsRequest instance - */ - public static create(properties?: vtctldata.IGetSchemaMigrationsRequest): vtctldata.GetSchemaMigrationsRequest; - - /** - * Encodes the specified GetSchemaMigrationsRequest message. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. - * @param message GetSchemaMigrationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaMigrationsRequest message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsRequest.verify|verify} messages. - * @param message GetSchemaMigrationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaMigrationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsRequest; - - /** - * Decodes a GetSchemaMigrationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsRequest; - - /** - * Verifies a GetSchemaMigrationsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaMigrationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaMigrationsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsRequest; - - /** - * Creates a plain object from a GetSchemaMigrationsRequest message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaMigrationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaMigrationsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaMigrationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSchemaMigrationsResponse. */ - interface IGetSchemaMigrationsResponse { - - /** GetSchemaMigrationsResponse migrations */ - migrations?: (vtctldata.ISchemaMigration[]|null); - } - - /** Represents a GetSchemaMigrationsResponse. */ - class GetSchemaMigrationsResponse implements IGetSchemaMigrationsResponse { - - /** - * Constructs a new GetSchemaMigrationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSchemaMigrationsResponse); - - /** GetSchemaMigrationsResponse migrations. */ - public migrations: vtctldata.ISchemaMigration[]; - - /** - * Creates a new GetSchemaMigrationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSchemaMigrationsResponse instance - */ - public static create(properties?: vtctldata.IGetSchemaMigrationsResponse): vtctldata.GetSchemaMigrationsResponse; - - /** - * Encodes the specified GetSchemaMigrationsResponse message. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. - * @param message GetSchemaMigrationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSchemaMigrationsResponse message, length delimited. Does not implicitly {@link vtctldata.GetSchemaMigrationsResponse.verify|verify} messages. - * @param message GetSchemaMigrationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSchemaMigrationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSchemaMigrationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSchemaMigrationsResponse; - - /** - * Decodes a GetSchemaMigrationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSchemaMigrationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSchemaMigrationsResponse; - - /** - * Verifies a GetSchemaMigrationsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSchemaMigrationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSchemaMigrationsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSchemaMigrationsResponse; - - /** - * Creates a plain object from a GetSchemaMigrationsResponse message. Also converts values to other types if specified. - * @param message GetSchemaMigrationsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSchemaMigrationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSchemaMigrationsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSchemaMigrationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardReplicationRequest. */ - interface IGetShardReplicationRequest { - - /** GetShardReplicationRequest keyspace */ - keyspace?: (string|null); - - /** GetShardReplicationRequest shard */ - shard?: (string|null); - - /** GetShardReplicationRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetShardReplicationRequest. */ - class GetShardReplicationRequest implements IGetShardReplicationRequest { - - /** - * Constructs a new GetShardReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardReplicationRequest); - - /** GetShardReplicationRequest keyspace. */ - public keyspace: string; - - /** GetShardReplicationRequest shard. */ - public shard: string; - - /** GetShardReplicationRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetShardReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardReplicationRequest instance - */ - public static create(properties?: vtctldata.IGetShardReplicationRequest): vtctldata.GetShardReplicationRequest; - - /** - * Encodes the specified GetShardReplicationRequest message. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. - * @param message GetShardReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationRequest.verify|verify} messages. - * @param message GetShardReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationRequest; - - /** - * Decodes a GetShardReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationRequest; - - /** - * Verifies a GetShardReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationRequest; - - /** - * Creates a plain object from a GetShardReplicationRequest message. Also converts values to other types if specified. - * @param message GetShardReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardReplicationResponse. */ - interface IGetShardReplicationResponse { - - /** GetShardReplicationResponse shard_replication_by_cell */ - shard_replication_by_cell?: ({ [k: string]: topodata.IShardReplication }|null); - } - - /** Represents a GetShardReplicationResponse. */ - class GetShardReplicationResponse implements IGetShardReplicationResponse { - - /** - * Constructs a new GetShardReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardReplicationResponse); - - /** GetShardReplicationResponse shard_replication_by_cell. */ - public shard_replication_by_cell: { [k: string]: topodata.IShardReplication }; - - /** - * Creates a new GetShardReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardReplicationResponse instance - */ - public static create(properties?: vtctldata.IGetShardReplicationResponse): vtctldata.GetShardReplicationResponse; - - /** - * Encodes the specified GetShardReplicationResponse message. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. - * @param message GetShardReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardReplicationResponse.verify|verify} messages. - * @param message GetShardReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardReplicationResponse; - - /** - * Decodes a GetShardReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardReplicationResponse; - - /** - * Verifies a GetShardReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardReplicationResponse; - - /** - * Creates a plain object from a GetShardReplicationResponse message. Also converts values to other types if specified. - * @param message GetShardReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRequest. */ - interface IGetShardRequest { - - /** GetShardRequest keyspace */ - keyspace?: (string|null); - - /** GetShardRequest shard_name */ - shard_name?: (string|null); - } - - /** Represents a GetShardRequest. */ - class GetShardRequest implements IGetShardRequest { - - /** - * Constructs a new GetShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRequest); - - /** GetShardRequest keyspace. */ - public keyspace: string; - - /** GetShardRequest shard_name. */ - public shard_name: string; - - /** - * Creates a new GetShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRequest instance - */ - public static create(properties?: vtctldata.IGetShardRequest): vtctldata.GetShardRequest; - - /** - * Encodes the specified GetShardRequest message. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRequest.verify|verify} messages. - * @param message GetShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRequest; - - /** - * Decodes a GetShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRequest; - - /** - * Verifies a GetShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRequest; - - /** - * Creates a plain object from a GetShardRequest message. Also converts values to other types if specified. - * @param message GetShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardResponse. */ - interface IGetShardResponse { - - /** GetShardResponse shard */ - shard?: (vtctldata.IShard|null); - } - - /** Represents a GetShardResponse. */ - class GetShardResponse implements IGetShardResponse { - - /** - * Constructs a new GetShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardResponse); - - /** GetShardResponse shard. */ - public shard?: (vtctldata.IShard|null); - - /** - * Creates a new GetShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardResponse instance - */ - public static create(properties?: vtctldata.IGetShardResponse): vtctldata.GetShardResponse; - - /** - * Encodes the specified GetShardResponse message. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardResponse.verify|verify} messages. - * @param message GetShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardResponse; - - /** - * Decodes a GetShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardResponse; - - /** - * Verifies a GetShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardResponse; - - /** - * Creates a plain object from a GetShardResponse message. Also converts values to other types if specified. - * @param message GetShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRoutingRulesRequest. */ - interface IGetShardRoutingRulesRequest { - } - - /** Represents a GetShardRoutingRulesRequest. */ - class GetShardRoutingRulesRequest implements IGetShardRoutingRulesRequest { - - /** - * Constructs a new GetShardRoutingRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRoutingRulesRequest); - - /** - * Creates a new GetShardRoutingRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRoutingRulesRequest instance - */ - public static create(properties?: vtctldata.IGetShardRoutingRulesRequest): vtctldata.GetShardRoutingRulesRequest; - - /** - * Encodes the specified GetShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. - * @param message GetShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesRequest.verify|verify} messages. - * @param message GetShardRoutingRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesRequest; - - /** - * Decodes a GetShardRoutingRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesRequest; - - /** - * Verifies a GetShardRoutingRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRoutingRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesRequest; - - /** - * Creates a plain object from a GetShardRoutingRulesRequest message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRoutingRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRoutingRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRoutingRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetShardRoutingRulesResponse. */ - interface IGetShardRoutingRulesResponse { - - /** GetShardRoutingRulesResponse shard_routing_rules */ - shard_routing_rules?: (vschema.IShardRoutingRules|null); - } - - /** Represents a GetShardRoutingRulesResponse. */ - class GetShardRoutingRulesResponse implements IGetShardRoutingRulesResponse { - - /** - * Constructs a new GetShardRoutingRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetShardRoutingRulesResponse); - - /** GetShardRoutingRulesResponse shard_routing_rules. */ - public shard_routing_rules?: (vschema.IShardRoutingRules|null); - - /** - * Creates a new GetShardRoutingRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetShardRoutingRulesResponse instance - */ - public static create(properties?: vtctldata.IGetShardRoutingRulesResponse): vtctldata.GetShardRoutingRulesResponse; - - /** - * Encodes the specified GetShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. - * @param message GetShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetShardRoutingRulesResponse.verify|verify} messages. - * @param message GetShardRoutingRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetShardRoutingRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetShardRoutingRulesResponse; - - /** - * Decodes a GetShardRoutingRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetShardRoutingRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetShardRoutingRulesResponse; - - /** - * Verifies a GetShardRoutingRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetShardRoutingRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetShardRoutingRulesResponse; - - /** - * Creates a plain object from a GetShardRoutingRulesResponse message. Also converts values to other types if specified. - * @param message GetShardRoutingRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetShardRoutingRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetShardRoutingRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetShardRoutingRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspaceNamesRequest. */ - interface IGetSrvKeyspaceNamesRequest { - - /** GetSrvKeyspaceNamesRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvKeyspaceNamesRequest. */ - class GetSrvKeyspaceNamesRequest implements IGetSrvKeyspaceNamesRequest { - - /** - * Constructs a new GetSrvKeyspaceNamesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesRequest); - - /** GetSrvKeyspaceNamesRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvKeyspaceNamesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesRequest instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesRequest): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Encodes the specified GetSrvKeyspaceNamesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. - * @param message GetSrvKeyspaceNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspaceNamesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesRequest.verify|verify} messages. - * @param message GetSrvKeyspaceNamesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Decodes a GetSrvKeyspaceNamesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Verifies a GetSrvKeyspaceNamesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspaceNamesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspaceNamesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesRequest; - - /** - * Creates a plain object from a GetSrvKeyspaceNamesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspaceNamesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspaceNamesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspaceNamesResponse. */ - interface IGetSrvKeyspaceNamesResponse { - - /** GetSrvKeyspaceNamesResponse names */ - names?: ({ [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }|null); - } - - /** Represents a GetSrvKeyspaceNamesResponse. */ - class GetSrvKeyspaceNamesResponse implements IGetSrvKeyspaceNamesResponse { - - /** - * Constructs a new GetSrvKeyspaceNamesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspaceNamesResponse); - - /** GetSrvKeyspaceNamesResponse names. */ - public names: { [k: string]: vtctldata.GetSrvKeyspaceNamesResponse.INameList }; - - /** - * Creates a new GetSrvKeyspaceNamesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspaceNamesResponse instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspaceNamesResponse): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Encodes the specified GetSrvKeyspaceNamesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. - * @param message GetSrvKeyspaceNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspaceNamesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.verify|verify} messages. - * @param message GetSrvKeyspaceNamesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspaceNamesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspaceNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Decodes a GetSrvKeyspaceNamesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspaceNamesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Verifies a GetSrvKeyspaceNamesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspaceNamesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspaceNamesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse; - - /** - * Creates a plain object from a GetSrvKeyspaceNamesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspaceNamesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspaceNamesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspaceNamesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace GetSrvKeyspaceNamesResponse { - - /** Properties of a NameList. */ - interface INameList { - - /** NameList names */ - names?: (string[]|null); - } - - /** Represents a NameList. */ - class NameList implements INameList { - - /** - * Constructs a new NameList. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList); - - /** NameList names. */ - public names: string[]; - - /** - * Creates a new NameList instance using the specified properties. - * @param [properties] Properties to set - * @returns NameList instance - */ - public static create(properties?: vtctldata.GetSrvKeyspaceNamesResponse.INameList): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Encodes the specified NameList message. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @param message NameList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NameList message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspaceNamesResponse.NameList.verify|verify} messages. - * @param message NameList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.GetSrvKeyspaceNamesResponse.INameList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NameList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Decodes a NameList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NameList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Verifies a NameList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NameList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NameList - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspaceNamesResponse.NameList; - - /** - * Creates a plain object from a NameList message. Also converts values to other types if specified. - * @param message NameList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspaceNamesResponse.NameList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NameList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NameList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a GetSrvKeyspacesRequest. */ - interface IGetSrvKeyspacesRequest { - - /** GetSrvKeyspacesRequest keyspace */ - keyspace?: (string|null); - - /** GetSrvKeyspacesRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvKeyspacesRequest. */ - class GetSrvKeyspacesRequest implements IGetSrvKeyspacesRequest { - - /** - * Constructs a new GetSrvKeyspacesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspacesRequest); - - /** GetSrvKeyspacesRequest keyspace. */ - public keyspace: string; - - /** GetSrvKeyspacesRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvKeyspacesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspacesRequest instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspacesRequest): vtctldata.GetSrvKeyspacesRequest; - - /** - * Encodes the specified GetSrvKeyspacesRequest message. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. - * @param message GetSrvKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspacesRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesRequest.verify|verify} messages. - * @param message GetSrvKeyspacesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesRequest; - - /** - * Decodes a GetSrvKeyspacesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesRequest; - - /** - * Verifies a GetSrvKeyspacesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspacesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspacesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesRequest; - - /** - * Creates a plain object from a GetSrvKeyspacesRequest message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspacesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspacesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvKeyspacesResponse. */ - interface IGetSrvKeyspacesResponse { - - /** GetSrvKeyspacesResponse srv_keyspaces */ - srv_keyspaces?: ({ [k: string]: topodata.ISrvKeyspace }|null); - } - - /** Represents a GetSrvKeyspacesResponse. */ - class GetSrvKeyspacesResponse implements IGetSrvKeyspacesResponse { - - /** - * Constructs a new GetSrvKeyspacesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvKeyspacesResponse); - - /** GetSrvKeyspacesResponse srv_keyspaces. */ - public srv_keyspaces: { [k: string]: topodata.ISrvKeyspace }; - - /** - * Creates a new GetSrvKeyspacesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvKeyspacesResponse instance - */ - public static create(properties?: vtctldata.IGetSrvKeyspacesResponse): vtctldata.GetSrvKeyspacesResponse; - - /** - * Encodes the specified GetSrvKeyspacesResponse message. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. - * @param message GetSrvKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvKeyspacesResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvKeyspacesResponse.verify|verify} messages. - * @param message GetSrvKeyspacesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvKeyspacesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvKeyspacesResponse; - - /** - * Decodes a GetSrvKeyspacesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvKeyspacesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvKeyspacesResponse; - - /** - * Verifies a GetSrvKeyspacesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvKeyspacesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvKeyspacesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvKeyspacesResponse; - - /** - * Creates a plain object from a GetSrvKeyspacesResponse message. Also converts values to other types if specified. - * @param message GetSrvKeyspacesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvKeyspacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvKeyspacesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvKeyspacesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateThrottlerConfigRequest. */ - interface IUpdateThrottlerConfigRequest { - - /** UpdateThrottlerConfigRequest keyspace */ - keyspace?: (string|null); - - /** UpdateThrottlerConfigRequest enable */ - enable?: (boolean|null); - - /** UpdateThrottlerConfigRequest disable */ - disable?: (boolean|null); - - /** UpdateThrottlerConfigRequest threshold */ - threshold?: (number|null); - - /** UpdateThrottlerConfigRequest custom_query */ - custom_query?: (string|null); - - /** UpdateThrottlerConfigRequest custom_query_set */ - custom_query_set?: (boolean|null); - - /** UpdateThrottlerConfigRequest check_as_check_self */ - check_as_check_self?: (boolean|null); - - /** UpdateThrottlerConfigRequest check_as_check_shard */ - check_as_check_shard?: (boolean|null); - - /** UpdateThrottlerConfigRequest throttled_app */ - throttled_app?: (topodata.IThrottledAppRule|null); - - /** UpdateThrottlerConfigRequest metric_name */ - metric_name?: (string|null); - - /** UpdateThrottlerConfigRequest app_name */ - app_name?: (string|null); - - /** UpdateThrottlerConfigRequest app_checked_metrics */ - app_checked_metrics?: (string[]|null); - } - - /** Represents an UpdateThrottlerConfigRequest. */ - class UpdateThrottlerConfigRequest implements IUpdateThrottlerConfigRequest { - - /** - * Constructs a new UpdateThrottlerConfigRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigRequest); - - /** UpdateThrottlerConfigRequest keyspace. */ - public keyspace: string; - - /** UpdateThrottlerConfigRequest enable. */ - public enable: boolean; - - /** UpdateThrottlerConfigRequest disable. */ - public disable: boolean; - - /** UpdateThrottlerConfigRequest threshold. */ - public threshold: number; - - /** UpdateThrottlerConfigRequest custom_query. */ - public custom_query: string; - - /** UpdateThrottlerConfigRequest custom_query_set. */ - public custom_query_set: boolean; - - /** UpdateThrottlerConfigRequest check_as_check_self. */ - public check_as_check_self: boolean; - - /** UpdateThrottlerConfigRequest check_as_check_shard. */ - public check_as_check_shard: boolean; - - /** UpdateThrottlerConfigRequest throttled_app. */ - public throttled_app?: (topodata.IThrottledAppRule|null); - - /** UpdateThrottlerConfigRequest metric_name. */ - public metric_name: string; - - /** UpdateThrottlerConfigRequest app_name. */ - public app_name: string; - - /** UpdateThrottlerConfigRequest app_checked_metrics. */ - public app_checked_metrics: string[]; - - /** - * Creates a new UpdateThrottlerConfigRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateThrottlerConfigRequest instance - */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigRequest): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Encodes the specified UpdateThrottlerConfigRequest message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. - * @param message UpdateThrottlerConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateThrottlerConfigRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigRequest.verify|verify} messages. - * @param message UpdateThrottlerConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateThrottlerConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Decodes an UpdateThrottlerConfigRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Verifies an UpdateThrottlerConfigRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateThrottlerConfigRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateThrottlerConfigRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigRequest; - - /** - * Creates a plain object from an UpdateThrottlerConfigRequest message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateThrottlerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateThrottlerConfigRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateThrottlerConfigRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateThrottlerConfigResponse. */ - interface IUpdateThrottlerConfigResponse { - } - - /** Represents an UpdateThrottlerConfigResponse. */ - class UpdateThrottlerConfigResponse implements IUpdateThrottlerConfigResponse { - - /** - * Constructs a new UpdateThrottlerConfigResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateThrottlerConfigResponse); - - /** - * Creates a new UpdateThrottlerConfigResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateThrottlerConfigResponse instance - */ - public static create(properties?: vtctldata.IUpdateThrottlerConfigResponse): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Encodes the specified UpdateThrottlerConfigResponse message. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. - * @param message UpdateThrottlerConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateThrottlerConfigResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateThrottlerConfigResponse.verify|verify} messages. - * @param message UpdateThrottlerConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateThrottlerConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateThrottlerConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Decodes an UpdateThrottlerConfigResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateThrottlerConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Verifies an UpdateThrottlerConfigResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateThrottlerConfigResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateThrottlerConfigResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateThrottlerConfigResponse; - - /** - * Creates a plain object from an UpdateThrottlerConfigResponse message. Also converts values to other types if specified. - * @param message UpdateThrottlerConfigResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateThrottlerConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateThrottlerConfigResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateThrottlerConfigResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemaRequest. */ - interface IGetSrvVSchemaRequest { - - /** GetSrvVSchemaRequest cell */ - cell?: (string|null); - } - - /** Represents a GetSrvVSchemaRequest. */ - class GetSrvVSchemaRequest implements IGetSrvVSchemaRequest { - - /** - * Constructs a new GetSrvVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemaRequest); - - /** GetSrvVSchemaRequest cell. */ - public cell: string; - - /** - * Creates a new GetSrvVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemaRequest): vtctldata.GetSrvVSchemaRequest; - - /** - * Encodes the specified GetSrvVSchemaRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaRequest.verify|verify} messages. - * @param message GetSrvVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaRequest; - - /** - * Decodes a GetSrvVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaRequest; - - /** - * Verifies a GetSrvVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaRequest; - - /** - * Creates a plain object from a GetSrvVSchemaRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemaResponse. */ - interface IGetSrvVSchemaResponse { - - /** GetSrvVSchemaResponse srv_v_schema */ - srv_v_schema?: (vschema.ISrvVSchema|null); - } - - /** Represents a GetSrvVSchemaResponse. */ - class GetSrvVSchemaResponse implements IGetSrvVSchemaResponse { - - /** - * Constructs a new GetSrvVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemaResponse); - - /** GetSrvVSchemaResponse srv_v_schema. */ - public srv_v_schema?: (vschema.ISrvVSchema|null); - - /** - * Creates a new GetSrvVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemaResponse): vtctldata.GetSrvVSchemaResponse; - - /** - * Encodes the specified GetSrvVSchemaResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemaResponse.verify|verify} messages. - * @param message GetSrvVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemaResponse; - - /** - * Decodes a GetSrvVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemaResponse; - - /** - * Verifies a GetSrvVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemaResponse; - - /** - * Creates a plain object from a GetSrvVSchemaResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemasRequest. */ - interface IGetSrvVSchemasRequest { - - /** GetSrvVSchemasRequest cells */ - cells?: (string[]|null); - } - - /** Represents a GetSrvVSchemasRequest. */ - class GetSrvVSchemasRequest implements IGetSrvVSchemasRequest { - - /** - * Constructs a new GetSrvVSchemasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemasRequest); - - /** GetSrvVSchemasRequest cells. */ - public cells: string[]; - - /** - * Creates a new GetSrvVSchemasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemasRequest instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemasRequest): vtctldata.GetSrvVSchemasRequest; - - /** - * Encodes the specified GetSrvVSchemasRequest message. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. - * @param message GetSrvVSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemasRequest message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasRequest.verify|verify} messages. - * @param message GetSrvVSchemasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasRequest; - - /** - * Decodes a GetSrvVSchemasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasRequest; - - /** - * Verifies a GetSrvVSchemasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasRequest; - - /** - * Creates a plain object from a GetSrvVSchemasRequest message. Also converts values to other types if specified. - * @param message GetSrvVSchemasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetSrvVSchemasResponse. */ - interface IGetSrvVSchemasResponse { - - /** GetSrvVSchemasResponse srv_v_schemas */ - srv_v_schemas?: ({ [k: string]: vschema.ISrvVSchema }|null); - } - - /** Represents a GetSrvVSchemasResponse. */ - class GetSrvVSchemasResponse implements IGetSrvVSchemasResponse { - - /** - * Constructs a new GetSrvVSchemasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetSrvVSchemasResponse); - - /** GetSrvVSchemasResponse srv_v_schemas. */ - public srv_v_schemas: { [k: string]: vschema.ISrvVSchema }; - - /** - * Creates a new GetSrvVSchemasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSrvVSchemasResponse instance - */ - public static create(properties?: vtctldata.IGetSrvVSchemasResponse): vtctldata.GetSrvVSchemasResponse; - - /** - * Encodes the specified GetSrvVSchemasResponse message. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. - * @param message GetSrvVSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetSrvVSchemasResponse message, length delimited. Does not implicitly {@link vtctldata.GetSrvVSchemasResponse.verify|verify} messages. - * @param message GetSrvVSchemasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetSrvVSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSrvVSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetSrvVSchemasResponse; - - /** - * Decodes a GetSrvVSchemasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSrvVSchemasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetSrvVSchemasResponse; - - /** - * Verifies a GetSrvVSchemasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetSrvVSchemasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSrvVSchemasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetSrvVSchemasResponse; - - /** - * Creates a plain object from a GetSrvVSchemasResponse message. Also converts values to other types if specified. - * @param message GetSrvVSchemasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetSrvVSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetSrvVSchemasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetSrvVSchemasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletRequest. */ - interface IGetTabletRequest { - - /** GetTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetTabletRequest. */ - class GetTabletRequest implements IGetTabletRequest { - - /** - * Constructs a new GetTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletRequest); - - /** GetTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletRequest instance - */ - public static create(properties?: vtctldata.IGetTabletRequest): vtctldata.GetTabletRequest; - - /** - * Encodes the specified GetTabletRequest message. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletRequest.verify|verify} messages. - * @param message GetTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletRequest; - - /** - * Decodes a GetTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletRequest; - - /** - * Verifies a GetTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletRequest; - - /** - * Creates a plain object from a GetTabletRequest message. Also converts values to other types if specified. - * @param message GetTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletResponse. */ - interface IGetTabletResponse { - - /** GetTabletResponse tablet */ - tablet?: (topodata.ITablet|null); - } - - /** Represents a GetTabletResponse. */ - class GetTabletResponse implements IGetTabletResponse { - - /** - * Constructs a new GetTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletResponse); - - /** GetTabletResponse tablet. */ - public tablet?: (topodata.ITablet|null); - - /** - * Creates a new GetTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletResponse instance - */ - public static create(properties?: vtctldata.IGetTabletResponse): vtctldata.GetTabletResponse; - - /** - * Encodes the specified GetTabletResponse message. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletResponse.verify|verify} messages. - * @param message GetTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletResponse; - - /** - * Decodes a GetTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletResponse; - - /** - * Verifies a GetTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletResponse; - - /** - * Creates a plain object from a GetTabletResponse message. Also converts values to other types if specified. - * @param message GetTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletsRequest. */ - interface IGetTabletsRequest { - - /** GetTabletsRequest keyspace */ - keyspace?: (string|null); - - /** GetTabletsRequest shard */ - shard?: (string|null); - - /** GetTabletsRequest cells */ - cells?: (string[]|null); - - /** GetTabletsRequest strict */ - strict?: (boolean|null); - - /** GetTabletsRequest tablet_aliases */ - tablet_aliases?: (topodata.ITabletAlias[]|null); - - /** GetTabletsRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); - } - - /** Represents a GetTabletsRequest. */ - class GetTabletsRequest implements IGetTabletsRequest { - - /** - * Constructs a new GetTabletsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletsRequest); - - /** GetTabletsRequest keyspace. */ - public keyspace: string; - - /** GetTabletsRequest shard. */ - public shard: string; - - /** GetTabletsRequest cells. */ - public cells: string[]; - - /** GetTabletsRequest strict. */ - public strict: boolean; - - /** GetTabletsRequest tablet_aliases. */ - public tablet_aliases: topodata.ITabletAlias[]; - - /** GetTabletsRequest tablet_type. */ - public tablet_type: topodata.TabletType; - - /** - * Creates a new GetTabletsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletsRequest instance - */ - public static create(properties?: vtctldata.IGetTabletsRequest): vtctldata.GetTabletsRequest; - - /** - * Encodes the specified GetTabletsRequest message. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletsRequest message, length delimited. Does not implicitly {@link vtctldata.GetTabletsRequest.verify|verify} messages. - * @param message GetTabletsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsRequest; - - /** - * Decodes a GetTabletsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsRequest; - - /** - * Verifies a GetTabletsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsRequest; - - /** - * Creates a plain object from a GetTabletsRequest message. Also converts values to other types if specified. - * @param message GetTabletsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTabletsResponse. */ - interface IGetTabletsResponse { - - /** GetTabletsResponse tablets */ - tablets?: (topodata.ITablet[]|null); - } - - /** Represents a GetTabletsResponse. */ - class GetTabletsResponse implements IGetTabletsResponse { - - /** - * Constructs a new GetTabletsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTabletsResponse); - - /** GetTabletsResponse tablets. */ - public tablets: topodata.ITablet[]; - - /** - * Creates a new GetTabletsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTabletsResponse instance - */ - public static create(properties?: vtctldata.IGetTabletsResponse): vtctldata.GetTabletsResponse; - - /** - * Encodes the specified GetTabletsResponse message. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTabletsResponse message, length delimited. Does not implicitly {@link vtctldata.GetTabletsResponse.verify|verify} messages. - * @param message GetTabletsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTabletsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTabletsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTabletsResponse; - - /** - * Decodes a GetTabletsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTabletsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTabletsResponse; - - /** - * Verifies a GetTabletsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTabletsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTabletsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTabletsResponse; - - /** - * Creates a plain object from a GetTabletsResponse message. Also converts values to other types if specified. - * @param message GetTabletsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTabletsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTabletsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTabletsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetThrottlerStatusRequest. */ - interface IGetThrottlerStatusRequest { - - /** GetThrottlerStatusRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetThrottlerStatusRequest. */ - class GetThrottlerStatusRequest implements IGetThrottlerStatusRequest { - - /** - * Constructs a new GetThrottlerStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetThrottlerStatusRequest); - - /** GetThrottlerStatusRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetThrottlerStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetThrottlerStatusRequest instance - */ - public static create(properties?: vtctldata.IGetThrottlerStatusRequest): vtctldata.GetThrottlerStatusRequest; - - /** - * Encodes the specified GetThrottlerStatusRequest message. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetThrottlerStatusRequest message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusRequest.verify|verify} messages. - * @param message GetThrottlerStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetThrottlerStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusRequest; - - /** - * Decodes a GetThrottlerStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusRequest; - - /** - * Verifies a GetThrottlerStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetThrottlerStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetThrottlerStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusRequest; - - /** - * Creates a plain object from a GetThrottlerStatusRequest message. Also converts values to other types if specified. - * @param message GetThrottlerStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetThrottlerStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetThrottlerStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetThrottlerStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetThrottlerStatusResponse. */ - interface IGetThrottlerStatusResponse { - - /** GetThrottlerStatusResponse status */ - status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); - } - - /** Represents a GetThrottlerStatusResponse. */ - class GetThrottlerStatusResponse implements IGetThrottlerStatusResponse { - - /** - * Constructs a new GetThrottlerStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetThrottlerStatusResponse); - - /** GetThrottlerStatusResponse status. */ - public status?: (tabletmanagerdata.IGetThrottlerStatusResponse|null); - - /** - * Creates a new GetThrottlerStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetThrottlerStatusResponse instance - */ - public static create(properties?: vtctldata.IGetThrottlerStatusResponse): vtctldata.GetThrottlerStatusResponse; - - /** - * Encodes the specified GetThrottlerStatusResponse message. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetThrottlerStatusResponse message, length delimited. Does not implicitly {@link vtctldata.GetThrottlerStatusResponse.verify|verify} messages. - * @param message GetThrottlerStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetThrottlerStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetThrottlerStatusResponse; - - /** - * Decodes a GetThrottlerStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetThrottlerStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetThrottlerStatusResponse; - - /** - * Verifies a GetThrottlerStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetThrottlerStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetThrottlerStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetThrottlerStatusResponse; - - /** - * Creates a plain object from a GetThrottlerStatusResponse message. Also converts values to other types if specified. - * @param message GetThrottlerStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetThrottlerStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetThrottlerStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetThrottlerStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTopologyPathRequest. */ - interface IGetTopologyPathRequest { - - /** GetTopologyPathRequest path */ - path?: (string|null); - - /** GetTopologyPathRequest version */ - version?: (number|Long|null); - - /** GetTopologyPathRequest as_json */ - as_json?: (boolean|null); - } - - /** Represents a GetTopologyPathRequest. */ - class GetTopologyPathRequest implements IGetTopologyPathRequest { - - /** - * Constructs a new GetTopologyPathRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTopologyPathRequest); - - /** GetTopologyPathRequest path. */ - public path: string; - - /** GetTopologyPathRequest version. */ - public version: (number|Long); - - /** GetTopologyPathRequest as_json. */ - public as_json: boolean; - - /** - * Creates a new GetTopologyPathRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTopologyPathRequest instance - */ - public static create(properties?: vtctldata.IGetTopologyPathRequest): vtctldata.GetTopologyPathRequest; - - /** - * Encodes the specified GetTopologyPathRequest message. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. - * @param message GetTopologyPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTopologyPathRequest message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathRequest.verify|verify} messages. - * @param message GetTopologyPathRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTopologyPathRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTopologyPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathRequest; - - /** - * Decodes a GetTopologyPathRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTopologyPathRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathRequest; - - /** - * Verifies a GetTopologyPathRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTopologyPathRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTopologyPathRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathRequest; - - /** - * Creates a plain object from a GetTopologyPathRequest message. Also converts values to other types if specified. - * @param message GetTopologyPathRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTopologyPathRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTopologyPathRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTopologyPathRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetTopologyPathResponse. */ - interface IGetTopologyPathResponse { - - /** GetTopologyPathResponse cell */ - cell?: (vtctldata.ITopologyCell|null); - } - - /** Represents a GetTopologyPathResponse. */ - class GetTopologyPathResponse implements IGetTopologyPathResponse { - - /** - * Constructs a new GetTopologyPathResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetTopologyPathResponse); - - /** GetTopologyPathResponse cell. */ - public cell?: (vtctldata.ITopologyCell|null); - - /** - * Creates a new GetTopologyPathResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTopologyPathResponse instance - */ - public static create(properties?: vtctldata.IGetTopologyPathResponse): vtctldata.GetTopologyPathResponse; - - /** - * Encodes the specified GetTopologyPathResponse message. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. - * @param message GetTopologyPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTopologyPathResponse message, length delimited. Does not implicitly {@link vtctldata.GetTopologyPathResponse.verify|verify} messages. - * @param message GetTopologyPathResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetTopologyPathResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTopologyPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetTopologyPathResponse; - - /** - * Decodes a GetTopologyPathResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTopologyPathResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetTopologyPathResponse; - - /** - * Verifies a GetTopologyPathResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTopologyPathResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTopologyPathResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetTopologyPathResponse; - - /** - * Creates a plain object from a GetTopologyPathResponse message. Also converts values to other types if specified. - * @param message GetTopologyPathResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetTopologyPathResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTopologyPathResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetTopologyPathResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TopologyCell. */ - interface ITopologyCell { - - /** TopologyCell name */ - name?: (string|null); - - /** TopologyCell path */ - path?: (string|null); - - /** TopologyCell data */ - data?: (string|null); - - /** TopologyCell children */ - children?: (string[]|null); - - /** TopologyCell version */ - version?: (number|Long|null); - } - - /** Represents a TopologyCell. */ - class TopologyCell implements ITopologyCell { - - /** - * Constructs a new TopologyCell. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITopologyCell); - - /** TopologyCell name. */ - public name: string; - - /** TopologyCell path. */ - public path: string; - - /** TopologyCell data. */ - public data: string; - - /** TopologyCell children. */ - public children: string[]; - - /** TopologyCell version. */ - public version: (number|Long); - - /** - * Creates a new TopologyCell instance using the specified properties. - * @param [properties] Properties to set - * @returns TopologyCell instance - */ - public static create(properties?: vtctldata.ITopologyCell): vtctldata.TopologyCell; - - /** - * Encodes the specified TopologyCell message. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. - * @param message TopologyCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TopologyCell message, length delimited. Does not implicitly {@link vtctldata.TopologyCell.verify|verify} messages. - * @param message TopologyCell message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITopologyCell, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TopologyCell message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TopologyCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TopologyCell; - - /** - * Decodes a TopologyCell message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TopologyCell - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TopologyCell; - - /** - * Verifies a TopologyCell message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TopologyCell message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TopologyCell - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TopologyCell; - - /** - * Creates a plain object from a TopologyCell message. Also converts values to other types if specified. - * @param message TopologyCell - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TopologyCell, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TopologyCell to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TopologyCell - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetUnresolvedTransactionsRequest. */ - interface IGetUnresolvedTransactionsRequest { - - /** GetUnresolvedTransactionsRequest keyspace */ - keyspace?: (string|null); - - /** GetUnresolvedTransactionsRequest abandon_age */ - abandon_age?: (number|Long|null); - } - - /** Represents a GetUnresolvedTransactionsRequest. */ - class GetUnresolvedTransactionsRequest implements IGetUnresolvedTransactionsRequest { - - /** - * Constructs a new GetUnresolvedTransactionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsRequest); - - /** GetUnresolvedTransactionsRequest keyspace. */ - public keyspace: string; - - /** GetUnresolvedTransactionsRequest abandon_age. */ - public abandon_age: (number|Long); - - /** - * Creates a new GetUnresolvedTransactionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsRequest instance - */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsRequest): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Encodes the specified GetUnresolvedTransactionsRequest message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetUnresolvedTransactionsRequest message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsRequest.verify|verify} messages. - * @param message GetUnresolvedTransactionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetUnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Decodes a GetUnresolvedTransactionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Verifies a GetUnresolvedTransactionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetUnresolvedTransactionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetUnresolvedTransactionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsRequest; - - /** - * Creates a plain object from a GetUnresolvedTransactionsRequest message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetUnresolvedTransactionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetUnresolvedTransactionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetUnresolvedTransactionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetUnresolvedTransactionsResponse. */ - interface IGetUnresolvedTransactionsResponse { - - /** GetUnresolvedTransactionsResponse transactions */ - transactions?: (query.ITransactionMetadata[]|null); - } - - /** Represents a GetUnresolvedTransactionsResponse. */ - class GetUnresolvedTransactionsResponse implements IGetUnresolvedTransactionsResponse { - - /** - * Constructs a new GetUnresolvedTransactionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetUnresolvedTransactionsResponse); - - /** GetUnresolvedTransactionsResponse transactions. */ - public transactions: query.ITransactionMetadata[]; - - /** - * Creates a new GetUnresolvedTransactionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetUnresolvedTransactionsResponse instance - */ - public static create(properties?: vtctldata.IGetUnresolvedTransactionsResponse): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Encodes the specified GetUnresolvedTransactionsResponse message. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetUnresolvedTransactionsResponse message, length delimited. Does not implicitly {@link vtctldata.GetUnresolvedTransactionsResponse.verify|verify} messages. - * @param message GetUnresolvedTransactionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetUnresolvedTransactionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetUnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Decodes a GetUnresolvedTransactionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetUnresolvedTransactionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Verifies a GetUnresolvedTransactionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetUnresolvedTransactionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetUnresolvedTransactionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetUnresolvedTransactionsResponse; - - /** - * Creates a plain object from a GetUnresolvedTransactionsResponse message. Also converts values to other types if specified. - * @param message GetUnresolvedTransactionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetUnresolvedTransactionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetUnresolvedTransactionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetUnresolvedTransactionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionRequest. */ - interface IConcludeTransactionRequest { - - /** ConcludeTransactionRequest dtid */ - dtid?: (string|null); - - /** ConcludeTransactionRequest participants */ - participants?: (query.ITarget[]|null); - } - - /** Represents a ConcludeTransactionRequest. */ - class ConcludeTransactionRequest implements IConcludeTransactionRequest { - - /** - * Constructs a new ConcludeTransactionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IConcludeTransactionRequest); - - /** ConcludeTransactionRequest dtid. */ - public dtid: string; - - /** ConcludeTransactionRequest participants. */ - public participants: query.ITarget[]; - - /** - * Creates a new ConcludeTransactionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionRequest instance - */ - public static create(properties?: vtctldata.IConcludeTransactionRequest): vtctldata.ConcludeTransactionRequest; - - /** - * Encodes the specified ConcludeTransactionRequest message. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionRequest message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionRequest.verify|verify} messages. - * @param message ConcludeTransactionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IConcludeTransactionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionRequest; - - /** - * Decodes a ConcludeTransactionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionRequest; - - /** - * Verifies a ConcludeTransactionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionRequest; - - /** - * Creates a plain object from a ConcludeTransactionRequest message. Also converts values to other types if specified. - * @param message ConcludeTransactionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ConcludeTransactionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ConcludeTransactionResponse. */ - interface IConcludeTransactionResponse { - } - - /** Represents a ConcludeTransactionResponse. */ - class ConcludeTransactionResponse implements IConcludeTransactionResponse { - - /** - * Constructs a new ConcludeTransactionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IConcludeTransactionResponse); - - /** - * Creates a new ConcludeTransactionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ConcludeTransactionResponse instance - */ - public static create(properties?: vtctldata.IConcludeTransactionResponse): vtctldata.ConcludeTransactionResponse; - - /** - * Encodes the specified ConcludeTransactionResponse message. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConcludeTransactionResponse message, length delimited. Does not implicitly {@link vtctldata.ConcludeTransactionResponse.verify|verify} messages. - * @param message ConcludeTransactionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IConcludeTransactionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ConcludeTransactionResponse; - - /** - * Decodes a ConcludeTransactionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConcludeTransactionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ConcludeTransactionResponse; - - /** - * Verifies a ConcludeTransactionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConcludeTransactionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConcludeTransactionResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ConcludeTransactionResponse; - - /** - * Creates a plain object from a ConcludeTransactionResponse message. Also converts values to other types if specified. - * @param message ConcludeTransactionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ConcludeTransactionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConcludeTransactionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ConcludeTransactionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVSchemaRequest. */ - interface IGetVSchemaRequest { - - /** GetVSchemaRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a GetVSchemaRequest. */ - class GetVSchemaRequest implements IGetVSchemaRequest { - - /** - * Constructs a new GetVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVSchemaRequest); - - /** GetVSchemaRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new GetVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVSchemaRequest instance - */ - public static create(properties?: vtctldata.IGetVSchemaRequest): vtctldata.GetVSchemaRequest; - - /** - * Encodes the specified GetVSchemaRequest message. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaRequest.verify|verify} messages. - * @param message GetVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaRequest; - - /** - * Decodes a GetVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaRequest; - - /** - * Verifies a GetVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaRequest; - - /** - * Creates a plain object from a GetVSchemaRequest message. Also converts values to other types if specified. - * @param message GetVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { - - /** GetVersionRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { - - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVersionRequest); - - /** GetVersionRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionRequest instance - */ - public static create(properties?: vtctldata.IGetVersionRequest): vtctldata.GetVersionRequest; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link vtctldata.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionRequest; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionRequest; - - /** - * Verifies a GetVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVersionRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionRequest; - - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVersionResponse. */ - interface IGetVersionResponse { - - /** GetVersionResponse version */ - version?: (string|null); - } - - /** Represents a GetVersionResponse. */ - class GetVersionResponse implements IGetVersionResponse { - - /** - * Constructs a new GetVersionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVersionResponse); - - /** GetVersionResponse version. */ - public version: string; - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionResponse instance - */ - public static create(properties?: vtctldata.IGetVersionResponse): vtctldata.GetVersionResponse; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVersionResponse message, length delimited. Does not implicitly {@link vtctldata.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVersionResponse; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVersionResponse; - - /** - * Verifies a GetVersionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVersionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVersionResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVersionResponse; - - /** - * Creates a plain object from a GetVersionResponse message. Also converts values to other types if specified. - * @param message GetVersionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVersionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVersionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVersionResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetVSchemaResponse. */ - interface IGetVSchemaResponse { - - /** GetVSchemaResponse v_schema */ - v_schema?: (vschema.IKeyspace|null); - } - - /** Represents a GetVSchemaResponse. */ - class GetVSchemaResponse implements IGetVSchemaResponse { - - /** - * Constructs a new GetVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetVSchemaResponse); - - /** GetVSchemaResponse v_schema. */ - public v_schema?: (vschema.IKeyspace|null); - - /** - * Creates a new GetVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVSchemaResponse instance - */ - public static create(properties?: vtctldata.IGetVSchemaResponse): vtctldata.GetVSchemaResponse; - - /** - * Encodes the specified GetVSchemaResponse message. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.GetVSchemaResponse.verify|verify} messages. - * @param message GetVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetVSchemaResponse; - - /** - * Decodes a GetVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetVSchemaResponse; - - /** - * Verifies a GetVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetVSchemaResponse; - - /** - * Creates a plain object from a GetVSchemaResponse message. Also converts values to other types if specified. - * @param message GetVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetWorkflowsRequest. */ - interface IGetWorkflowsRequest { - - /** GetWorkflowsRequest keyspace */ - keyspace?: (string|null); - - /** GetWorkflowsRequest active_only */ - active_only?: (boolean|null); - - /** GetWorkflowsRequest name_only */ - name_only?: (boolean|null); - - /** GetWorkflowsRequest workflow */ - workflow?: (string|null); - - /** GetWorkflowsRequest include_logs */ - include_logs?: (boolean|null); - - /** GetWorkflowsRequest shards */ - shards?: (string[]|null); - } - - /** Represents a GetWorkflowsRequest. */ - class GetWorkflowsRequest implements IGetWorkflowsRequest { - - /** - * Constructs a new GetWorkflowsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetWorkflowsRequest); - - /** GetWorkflowsRequest keyspace. */ - public keyspace: string; - - /** GetWorkflowsRequest active_only. */ - public active_only: boolean; - - /** GetWorkflowsRequest name_only. */ - public name_only: boolean; - - /** GetWorkflowsRequest workflow. */ - public workflow: string; - - /** GetWorkflowsRequest include_logs. */ - public include_logs: boolean; - - /** GetWorkflowsRequest shards. */ - public shards: string[]; - - /** - * Creates a new GetWorkflowsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWorkflowsRequest instance - */ - public static create(properties?: vtctldata.IGetWorkflowsRequest): vtctldata.GetWorkflowsRequest; - - /** - * Encodes the specified GetWorkflowsRequest message. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. - * @param message GetWorkflowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetWorkflowsRequest message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsRequest.verify|verify} messages. - * @param message GetWorkflowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetWorkflowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsRequest; - - /** - * Decodes a GetWorkflowsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWorkflowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsRequest; - - /** - * Verifies a GetWorkflowsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetWorkflowsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWorkflowsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsRequest; - - /** - * Creates a plain object from a GetWorkflowsRequest message. Also converts values to other types if specified. - * @param message GetWorkflowsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetWorkflowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetWorkflowsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetWorkflowsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetWorkflowsResponse. */ - interface IGetWorkflowsResponse { - - /** GetWorkflowsResponse workflows */ - workflows?: (vtctldata.IWorkflow[]|null); - } - - /** Represents a GetWorkflowsResponse. */ - class GetWorkflowsResponse implements IGetWorkflowsResponse { - - /** - * Constructs a new GetWorkflowsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetWorkflowsResponse); - - /** GetWorkflowsResponse workflows. */ - public workflows: vtctldata.IWorkflow[]; - - /** - * Creates a new GetWorkflowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetWorkflowsResponse instance - */ - public static create(properties?: vtctldata.IGetWorkflowsResponse): vtctldata.GetWorkflowsResponse; - - /** - * Encodes the specified GetWorkflowsResponse message. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. - * @param message GetWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetWorkflowsResponse message, length delimited. Does not implicitly {@link vtctldata.GetWorkflowsResponse.verify|verify} messages. - * @param message GetWorkflowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetWorkflowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetWorkflowsResponse; - - /** - * Decodes a GetWorkflowsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetWorkflowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetWorkflowsResponse; - - /** - * Verifies a GetWorkflowsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetWorkflowsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetWorkflowsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetWorkflowsResponse; - - /** - * Creates a plain object from a GetWorkflowsResponse message. Also converts values to other types if specified. - * @param message GetWorkflowsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetWorkflowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetWorkflowsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetWorkflowsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InitShardPrimaryRequest. */ - interface IInitShardPrimaryRequest { - - /** InitShardPrimaryRequest keyspace */ - keyspace?: (string|null); - - /** InitShardPrimaryRequest shard */ - shard?: (string|null); - - /** InitShardPrimaryRequest primary_elect_tablet_alias */ - primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force */ - force?: (boolean|null); - - /** InitShardPrimaryRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - } - - /** Represents an InitShardPrimaryRequest. */ - class InitShardPrimaryRequest implements IInitShardPrimaryRequest { - - /** - * Constructs a new InitShardPrimaryRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IInitShardPrimaryRequest); - - /** InitShardPrimaryRequest keyspace. */ - public keyspace: string; - - /** InitShardPrimaryRequest shard. */ - public shard: string; - - /** InitShardPrimaryRequest primary_elect_tablet_alias. */ - public primary_elect_tablet_alias?: (topodata.ITabletAlias|null); - - /** InitShardPrimaryRequest force. */ - public force: boolean; - - /** InitShardPrimaryRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** - * Creates a new InitShardPrimaryRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns InitShardPrimaryRequest instance - */ - public static create(properties?: vtctldata.IInitShardPrimaryRequest): vtctldata.InitShardPrimaryRequest; - - /** - * Encodes the specified InitShardPrimaryRequest message. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InitShardPrimaryRequest message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryRequest.verify|verify} messages. - * @param message InitShardPrimaryRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InitShardPrimaryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryRequest; - - /** - * Decodes an InitShardPrimaryRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryRequest; - - /** - * Verifies an InitShardPrimaryRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InitShardPrimaryRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InitShardPrimaryRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryRequest; - - /** - * Creates a plain object from an InitShardPrimaryRequest message. Also converts values to other types if specified. - * @param message InitShardPrimaryRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.InitShardPrimaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InitShardPrimaryRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InitShardPrimaryRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InitShardPrimaryResponse. */ - interface IInitShardPrimaryResponse { - - /** InitShardPrimaryResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents an InitShardPrimaryResponse. */ - class InitShardPrimaryResponse implements IInitShardPrimaryResponse { - - /** - * Constructs a new InitShardPrimaryResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IInitShardPrimaryResponse); - - /** InitShardPrimaryResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new InitShardPrimaryResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns InitShardPrimaryResponse instance - */ - public static create(properties?: vtctldata.IInitShardPrimaryResponse): vtctldata.InitShardPrimaryResponse; - - /** - * Encodes the specified InitShardPrimaryResponse message. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InitShardPrimaryResponse message, length delimited. Does not implicitly {@link vtctldata.InitShardPrimaryResponse.verify|verify} messages. - * @param message InitShardPrimaryResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IInitShardPrimaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InitShardPrimaryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.InitShardPrimaryResponse; - - /** - * Decodes an InitShardPrimaryResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InitShardPrimaryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.InitShardPrimaryResponse; - - /** - * Verifies an InitShardPrimaryResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InitShardPrimaryResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InitShardPrimaryResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.InitShardPrimaryResponse; - - /** - * Creates a plain object from an InitShardPrimaryResponse message. Also converts values to other types if specified. - * @param message InitShardPrimaryResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.InitShardPrimaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InitShardPrimaryResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InitShardPrimaryResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LaunchSchemaMigrationRequest. */ - interface ILaunchSchemaMigrationRequest { - - /** LaunchSchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** LaunchSchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a LaunchSchemaMigrationRequest. */ - class LaunchSchemaMigrationRequest implements ILaunchSchemaMigrationRequest { - - /** - * Constructs a new LaunchSchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationRequest); - - /** LaunchSchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** LaunchSchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new LaunchSchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchSchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationRequest): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Encodes the specified LaunchSchemaMigrationRequest message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. - * @param message LaunchSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LaunchSchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationRequest.verify|verify} messages. - * @param message LaunchSchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Decodes a LaunchSchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Verifies a LaunchSchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LaunchSchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LaunchSchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationRequest; - - /** - * Creates a plain object from a LaunchSchemaMigrationRequest message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LaunchSchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LaunchSchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LaunchSchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LaunchSchemaMigrationResponse. */ - interface ILaunchSchemaMigrationResponse { - - /** LaunchSchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a LaunchSchemaMigrationResponse. */ - class LaunchSchemaMigrationResponse implements ILaunchSchemaMigrationResponse { - - /** - * Constructs a new LaunchSchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILaunchSchemaMigrationResponse); - - /** LaunchSchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new LaunchSchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchSchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.ILaunchSchemaMigrationResponse): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Encodes the specified LaunchSchemaMigrationResponse message. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. - * @param message LaunchSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LaunchSchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.LaunchSchemaMigrationResponse.verify|verify} messages. - * @param message LaunchSchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILaunchSchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Decodes a LaunchSchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LaunchSchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Verifies a LaunchSchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LaunchSchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LaunchSchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LaunchSchemaMigrationResponse; - - /** - * Creates a plain object from a LaunchSchemaMigrationResponse message. Also converts values to other types if specified. - * @param message LaunchSchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LaunchSchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LaunchSchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LaunchSchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexCreateRequest. */ - interface ILookupVindexCreateRequest { - - /** LookupVindexCreateRequest keyspace */ - keyspace?: (string|null); - - /** LookupVindexCreateRequest workflow */ - workflow?: (string|null); - - /** LookupVindexCreateRequest cells */ - cells?: (string[]|null); - - /** LookupVindexCreateRequest vindex */ - vindex?: (vschema.IKeyspace|null); - - /** LookupVindexCreateRequest continue_after_copy_with_owner */ - continue_after_copy_with_owner?: (boolean|null); - - /** LookupVindexCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** LookupVindexCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - } - - /** Represents a LookupVindexCreateRequest. */ - class LookupVindexCreateRequest implements ILookupVindexCreateRequest { - - /** - * Constructs a new LookupVindexCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexCreateRequest); - - /** LookupVindexCreateRequest keyspace. */ - public keyspace: string; - - /** LookupVindexCreateRequest workflow. */ - public workflow: string; - - /** LookupVindexCreateRequest cells. */ - public cells: string[]; - - /** LookupVindexCreateRequest vindex. */ - public vindex?: (vschema.IKeyspace|null); - - /** LookupVindexCreateRequest continue_after_copy_with_owner. */ - public continue_after_copy_with_owner: boolean; - - /** LookupVindexCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** LookupVindexCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** - * Creates a new LookupVindexCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexCreateRequest instance - */ - public static create(properties?: vtctldata.ILookupVindexCreateRequest): vtctldata.LookupVindexCreateRequest; - - /** - * Encodes the specified LookupVindexCreateRequest message. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. - * @param message LookupVindexCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexCreateRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateRequest.verify|verify} messages. - * @param message LookupVindexCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateRequest; - - /** - * Decodes a LookupVindexCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateRequest; - - /** - * Verifies a LookupVindexCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateRequest; - - /** - * Creates a plain object from a LookupVindexCreateRequest message. Also converts values to other types if specified. - * @param message LookupVindexCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexCreateResponse. */ - interface ILookupVindexCreateResponse { - } - - /** Represents a LookupVindexCreateResponse. */ - class LookupVindexCreateResponse implements ILookupVindexCreateResponse { - - /** - * Constructs a new LookupVindexCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexCreateResponse); - - /** - * Creates a new LookupVindexCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexCreateResponse instance - */ - public static create(properties?: vtctldata.ILookupVindexCreateResponse): vtctldata.LookupVindexCreateResponse; - - /** - * Encodes the specified LookupVindexCreateResponse message. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. - * @param message LookupVindexCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexCreateResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexCreateResponse.verify|verify} messages. - * @param message LookupVindexCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexCreateResponse; - - /** - * Decodes a LookupVindexCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexCreateResponse; - - /** - * Verifies a LookupVindexCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexCreateResponse; - - /** - * Creates a plain object from a LookupVindexCreateResponse message. Also converts values to other types if specified. - * @param message LookupVindexCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexExternalizeRequest. */ - interface ILookupVindexExternalizeRequest { - - /** LookupVindexExternalizeRequest keyspace */ - keyspace?: (string|null); - - /** LookupVindexExternalizeRequest name */ - name?: (string|null); - - /** LookupVindexExternalizeRequest table_keyspace */ - table_keyspace?: (string|null); - } - - /** Represents a LookupVindexExternalizeRequest. */ - class LookupVindexExternalizeRequest implements ILookupVindexExternalizeRequest { - - /** - * Constructs a new LookupVindexExternalizeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexExternalizeRequest); - - /** LookupVindexExternalizeRequest keyspace. */ - public keyspace: string; - - /** LookupVindexExternalizeRequest name. */ - public name: string; - - /** LookupVindexExternalizeRequest table_keyspace. */ - public table_keyspace: string; - - /** - * Creates a new LookupVindexExternalizeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexExternalizeRequest instance - */ - public static create(properties?: vtctldata.ILookupVindexExternalizeRequest): vtctldata.LookupVindexExternalizeRequest; - - /** - * Encodes the specified LookupVindexExternalizeRequest message. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. - * @param message LookupVindexExternalizeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexExternalizeRequest message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeRequest.verify|verify} messages. - * @param message LookupVindexExternalizeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexExternalizeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeRequest; - - /** - * Decodes a LookupVindexExternalizeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeRequest; - - /** - * Verifies a LookupVindexExternalizeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexExternalizeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexExternalizeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeRequest; - - /** - * Creates a plain object from a LookupVindexExternalizeRequest message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexExternalizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexExternalizeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexExternalizeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LookupVindexExternalizeResponse. */ - interface ILookupVindexExternalizeResponse { - - /** LookupVindexExternalizeResponse workflow_deleted */ - workflow_deleted?: (boolean|null); - } - - /** Represents a LookupVindexExternalizeResponse. */ - class LookupVindexExternalizeResponse implements ILookupVindexExternalizeResponse { - - /** - * Constructs a new LookupVindexExternalizeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ILookupVindexExternalizeResponse); - - /** LookupVindexExternalizeResponse workflow_deleted. */ - public workflow_deleted: boolean; - - /** - * Creates a new LookupVindexExternalizeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupVindexExternalizeResponse instance - */ - public static create(properties?: vtctldata.ILookupVindexExternalizeResponse): vtctldata.LookupVindexExternalizeResponse; - - /** - * Encodes the specified LookupVindexExternalizeResponse message. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. - * @param message LookupVindexExternalizeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LookupVindexExternalizeResponse message, length delimited. Does not implicitly {@link vtctldata.LookupVindexExternalizeResponse.verify|verify} messages. - * @param message LookupVindexExternalizeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ILookupVindexExternalizeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupVindexExternalizeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.LookupVindexExternalizeResponse; - - /** - * Decodes a LookupVindexExternalizeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupVindexExternalizeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.LookupVindexExternalizeResponse; - - /** - * Verifies a LookupVindexExternalizeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LookupVindexExternalizeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupVindexExternalizeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.LookupVindexExternalizeResponse; - - /** - * Creates a plain object from a LookupVindexExternalizeResponse message. Also converts values to other types if specified. - * @param message LookupVindexExternalizeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.LookupVindexExternalizeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LookupVindexExternalizeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for LookupVindexExternalizeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeCreateRequest. */ - interface IMaterializeCreateRequest { - - /** MaterializeCreateRequest settings */ - settings?: (vtctldata.IMaterializeSettings|null); - } - - /** Represents a MaterializeCreateRequest. */ - class MaterializeCreateRequest implements IMaterializeCreateRequest { - - /** - * Constructs a new MaterializeCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeCreateRequest); - - /** MaterializeCreateRequest settings. */ - public settings?: (vtctldata.IMaterializeSettings|null); - - /** - * Creates a new MaterializeCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeCreateRequest instance - */ - public static create(properties?: vtctldata.IMaterializeCreateRequest): vtctldata.MaterializeCreateRequest; - - /** - * Encodes the specified MaterializeCreateRequest message. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. - * @param message MaterializeCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateRequest.verify|verify} messages. - * @param message MaterializeCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateRequest; - - /** - * Decodes a MaterializeCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateRequest; - - /** - * Verifies a MaterializeCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateRequest; - - /** - * Creates a plain object from a MaterializeCreateRequest message. Also converts values to other types if specified. - * @param message MaterializeCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MaterializeCreateResponse. */ - interface IMaterializeCreateResponse { - } - - /** Represents a MaterializeCreateResponse. */ - class MaterializeCreateResponse implements IMaterializeCreateResponse { - - /** - * Constructs a new MaterializeCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMaterializeCreateResponse); - - /** - * Creates a new MaterializeCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MaterializeCreateResponse instance - */ - public static create(properties?: vtctldata.IMaterializeCreateResponse): vtctldata.MaterializeCreateResponse; - - /** - * Encodes the specified MaterializeCreateResponse message. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. - * @param message MaterializeCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MaterializeCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MaterializeCreateResponse.verify|verify} messages. - * @param message MaterializeCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMaterializeCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MaterializeCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MaterializeCreateResponse; - - /** - * Decodes a MaterializeCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MaterializeCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MaterializeCreateResponse; - - /** - * Verifies a MaterializeCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MaterializeCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MaterializeCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MaterializeCreateResponse; - - /** - * Creates a plain object from a MaterializeCreateResponse message. Also converts values to other types if specified. - * @param message MaterializeCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MaterializeCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MaterializeCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MaterializeCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCreateRequest. */ - interface IMigrateCreateRequest { - - /** MigrateCreateRequest workflow */ - workflow?: (string|null); - - /** MigrateCreateRequest source_keyspace */ - source_keyspace?: (string|null); - - /** MigrateCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MigrateCreateRequest mount_name */ - mount_name?: (string|null); - - /** MigrateCreateRequest cells */ - cells?: (string[]|null); - - /** MigrateCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** MigrateCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MigrateCreateRequest all_tables */ - all_tables?: (boolean|null); - - /** MigrateCreateRequest include_tables */ - include_tables?: (string[]|null); - - /** MigrateCreateRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** MigrateCreateRequest source_time_zone */ - source_time_zone?: (string|null); - - /** MigrateCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** MigrateCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MigrateCreateRequest drop_foreign_keys */ - drop_foreign_keys?: (boolean|null); - - /** MigrateCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MigrateCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** MigrateCreateRequest no_routing_rules */ - no_routing_rules?: (boolean|null); - } - - /** Represents a MigrateCreateRequest. */ - class MigrateCreateRequest implements IMigrateCreateRequest { - - /** - * Constructs a new MigrateCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCreateRequest); - - /** MigrateCreateRequest workflow. */ - public workflow: string; - - /** MigrateCreateRequest source_keyspace. */ - public source_keyspace: string; - - /** MigrateCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** MigrateCreateRequest mount_name. */ - public mount_name: string; - - /** MigrateCreateRequest cells. */ - public cells: string[]; - - /** MigrateCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** MigrateCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MigrateCreateRequest all_tables. */ - public all_tables: boolean; - - /** MigrateCreateRequest include_tables. */ - public include_tables: string[]; - - /** MigrateCreateRequest exclude_tables. */ - public exclude_tables: string[]; - - /** MigrateCreateRequest source_time_zone. */ - public source_time_zone: string; - - /** MigrateCreateRequest on_ddl. */ - public on_ddl: string; - - /** MigrateCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** MigrateCreateRequest drop_foreign_keys. */ - public drop_foreign_keys: boolean; - - /** MigrateCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MigrateCreateRequest auto_start. */ - public auto_start: boolean; - - /** MigrateCreateRequest no_routing_rules. */ - public no_routing_rules: boolean; - - /** - * Creates a new MigrateCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCreateRequest instance - */ - public static create(properties?: vtctldata.IMigrateCreateRequest): vtctldata.MigrateCreateRequest; - - /** - * Encodes the specified MigrateCreateRequest message. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. - * @param message MigrateCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCreateRequest.verify|verify} messages. - * @param message MigrateCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCreateRequest; - - /** - * Decodes a MigrateCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCreateRequest; - - /** - * Verifies a MigrateCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCreateRequest; - - /** - * Creates a plain object from a MigrateCreateRequest message. Also converts values to other types if specified. - * @param message MigrateCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCompleteRequest. */ - interface IMigrateCompleteRequest { - - /** MigrateCompleteRequest workflow */ - workflow?: (string|null); - - /** MigrateCompleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MigrateCompleteRequest keep_data */ - keep_data?: (boolean|null); - - /** MigrateCompleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** MigrateCompleteRequest rename_tables */ - rename_tables?: (boolean|null); - - /** MigrateCompleteRequest dry_run */ - dry_run?: (boolean|null); - } - - /** Represents a MigrateCompleteRequest. */ - class MigrateCompleteRequest implements IMigrateCompleteRequest { - - /** - * Constructs a new MigrateCompleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCompleteRequest); - - /** MigrateCompleteRequest workflow. */ - public workflow: string; - - /** MigrateCompleteRequest target_keyspace. */ - public target_keyspace: string; - - /** MigrateCompleteRequest keep_data. */ - public keep_data: boolean; - - /** MigrateCompleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** MigrateCompleteRequest rename_tables. */ - public rename_tables: boolean; - - /** MigrateCompleteRequest dry_run. */ - public dry_run: boolean; - - /** - * Creates a new MigrateCompleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCompleteRequest instance - */ - public static create(properties?: vtctldata.IMigrateCompleteRequest): vtctldata.MigrateCompleteRequest; - - /** - * Encodes the specified MigrateCompleteRequest message. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. - * @param message MigrateCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteRequest.verify|verify} messages. - * @param message MigrateCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteRequest; - - /** - * Decodes a MigrateCompleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteRequest; - - /** - * Verifies a MigrateCompleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCompleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCompleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteRequest; - - /** - * Creates a plain object from a MigrateCompleteRequest message. Also converts values to other types if specified. - * @param message MigrateCompleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCompleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCompleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateCompleteResponse. */ - interface IMigrateCompleteResponse { - - /** MigrateCompleteResponse summary */ - summary?: (string|null); - - /** MigrateCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a MigrateCompleteResponse. */ - class MigrateCompleteResponse implements IMigrateCompleteResponse { - - /** - * Constructs a new MigrateCompleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMigrateCompleteResponse); - - /** MigrateCompleteResponse summary. */ - public summary: string; - - /** MigrateCompleteResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new MigrateCompleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateCompleteResponse instance - */ - public static create(properties?: vtctldata.IMigrateCompleteResponse): vtctldata.MigrateCompleteResponse; - - /** - * Encodes the specified MigrateCompleteResponse message. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. - * @param message MigrateCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MigrateCompleteResponse.verify|verify} messages. - * @param message MigrateCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMigrateCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MigrateCompleteResponse; - - /** - * Decodes a MigrateCompleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MigrateCompleteResponse; - - /** - * Verifies a MigrateCompleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MigrateCompleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateCompleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MigrateCompleteResponse; - - /** - * Creates a plain object from a MigrateCompleteResponse message. Also converts values to other types if specified. - * @param message MigrateCompleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MigrateCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateCompleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateCompleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountRegisterRequest. */ - interface IMountRegisterRequest { - - /** MountRegisterRequest topo_type */ - topo_type?: (string|null); - - /** MountRegisterRequest topo_server */ - topo_server?: (string|null); - - /** MountRegisterRequest topo_root */ - topo_root?: (string|null); - - /** MountRegisterRequest name */ - name?: (string|null); - } - - /** Represents a MountRegisterRequest. */ - class MountRegisterRequest implements IMountRegisterRequest { - - /** - * Constructs a new MountRegisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountRegisterRequest); - - /** MountRegisterRequest topo_type. */ - public topo_type: string; - - /** MountRegisterRequest topo_server. */ - public topo_server: string; - - /** MountRegisterRequest topo_root. */ - public topo_root: string; - - /** MountRegisterRequest name. */ - public name: string; - - /** - * Creates a new MountRegisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountRegisterRequest instance - */ - public static create(properties?: vtctldata.IMountRegisterRequest): vtctldata.MountRegisterRequest; - - /** - * Encodes the specified MountRegisterRequest message. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. - * @param message MountRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountRegisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountRegisterRequest.verify|verify} messages. - * @param message MountRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountRegisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterRequest; - - /** - * Decodes a MountRegisterRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterRequest; - - /** - * Verifies a MountRegisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountRegisterRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountRegisterRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterRequest; - - /** - * Creates a plain object from a MountRegisterRequest message. Also converts values to other types if specified. - * @param message MountRegisterRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountRegisterRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountRegisterRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountRegisterResponse. */ - interface IMountRegisterResponse { - } - - /** Represents a MountRegisterResponse. */ - class MountRegisterResponse implements IMountRegisterResponse { - - /** - * Constructs a new MountRegisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountRegisterResponse); - - /** - * Creates a new MountRegisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountRegisterResponse instance - */ - public static create(properties?: vtctldata.IMountRegisterResponse): vtctldata.MountRegisterResponse; - - /** - * Encodes the specified MountRegisterResponse message. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. - * @param message MountRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountRegisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountRegisterResponse.verify|verify} messages. - * @param message MountRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountRegisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountRegisterResponse; - - /** - * Decodes a MountRegisterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountRegisterResponse; - - /** - * Verifies a MountRegisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountRegisterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountRegisterResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountRegisterResponse; - - /** - * Creates a plain object from a MountRegisterResponse message. Also converts values to other types if specified. - * @param message MountRegisterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountRegisterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountRegisterResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountUnregisterRequest. */ - interface IMountUnregisterRequest { - - /** MountUnregisterRequest name */ - name?: (string|null); - } - - /** Represents a MountUnregisterRequest. */ - class MountUnregisterRequest implements IMountUnregisterRequest { - - /** - * Constructs a new MountUnregisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountUnregisterRequest); - - /** MountUnregisterRequest name. */ - public name: string; - - /** - * Creates a new MountUnregisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountUnregisterRequest instance - */ - public static create(properties?: vtctldata.IMountUnregisterRequest): vtctldata.MountUnregisterRequest; - - /** - * Encodes the specified MountUnregisterRequest message. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. - * @param message MountUnregisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountUnregisterRequest message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterRequest.verify|verify} messages. - * @param message MountUnregisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountUnregisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountUnregisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterRequest; - - /** - * Decodes a MountUnregisterRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountUnregisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterRequest; - - /** - * Verifies a MountUnregisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountUnregisterRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountUnregisterRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterRequest; - - /** - * Creates a plain object from a MountUnregisterRequest message. Also converts values to other types if specified. - * @param message MountUnregisterRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountUnregisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountUnregisterRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountUnregisterRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountUnregisterResponse. */ - interface IMountUnregisterResponse { - } - - /** Represents a MountUnregisterResponse. */ - class MountUnregisterResponse implements IMountUnregisterResponse { - - /** - * Constructs a new MountUnregisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountUnregisterResponse); - - /** - * Creates a new MountUnregisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountUnregisterResponse instance - */ - public static create(properties?: vtctldata.IMountUnregisterResponse): vtctldata.MountUnregisterResponse; - - /** - * Encodes the specified MountUnregisterResponse message. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. - * @param message MountUnregisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountUnregisterResponse message, length delimited. Does not implicitly {@link vtctldata.MountUnregisterResponse.verify|verify} messages. - * @param message MountUnregisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountUnregisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountUnregisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountUnregisterResponse; - - /** - * Decodes a MountUnregisterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountUnregisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountUnregisterResponse; - - /** - * Verifies a MountUnregisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountUnregisterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountUnregisterResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountUnregisterResponse; - - /** - * Creates a plain object from a MountUnregisterResponse message. Also converts values to other types if specified. - * @param message MountUnregisterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountUnregisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountUnregisterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountUnregisterResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountShowRequest. */ - interface IMountShowRequest { - - /** MountShowRequest name */ - name?: (string|null); - } - - /** Represents a MountShowRequest. */ - class MountShowRequest implements IMountShowRequest { - - /** - * Constructs a new MountShowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountShowRequest); - - /** MountShowRequest name. */ - public name: string; - - /** - * Creates a new MountShowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountShowRequest instance - */ - public static create(properties?: vtctldata.IMountShowRequest): vtctldata.MountShowRequest; - - /** - * Encodes the specified MountShowRequest message. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. - * @param message MountShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountShowRequest message, length delimited. Does not implicitly {@link vtctldata.MountShowRequest.verify|verify} messages. - * @param message MountShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountShowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowRequest; - - /** - * Decodes a MountShowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowRequest; - - /** - * Verifies a MountShowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountShowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountShowRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowRequest; - - /** - * Creates a plain object from a MountShowRequest message. Also converts values to other types if specified. - * @param message MountShowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountShowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountShowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountShowResponse. */ - interface IMountShowResponse { - - /** MountShowResponse topo_type */ - topo_type?: (string|null); - - /** MountShowResponse topo_server */ - topo_server?: (string|null); - - /** MountShowResponse topo_root */ - topo_root?: (string|null); - - /** MountShowResponse name */ - name?: (string|null); - } - - /** Represents a MountShowResponse. */ - class MountShowResponse implements IMountShowResponse { - - /** - * Constructs a new MountShowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountShowResponse); - - /** MountShowResponse topo_type. */ - public topo_type: string; - - /** MountShowResponse topo_server. */ - public topo_server: string; - - /** MountShowResponse topo_root. */ - public topo_root: string; - - /** MountShowResponse name. */ - public name: string; - - /** - * Creates a new MountShowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountShowResponse instance - */ - public static create(properties?: vtctldata.IMountShowResponse): vtctldata.MountShowResponse; - - /** - * Encodes the specified MountShowResponse message. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. - * @param message MountShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountShowResponse message, length delimited. Does not implicitly {@link vtctldata.MountShowResponse.verify|verify} messages. - * @param message MountShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountShowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountShowResponse; - - /** - * Decodes a MountShowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountShowResponse; - - /** - * Verifies a MountShowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountShowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountShowResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountShowResponse; - - /** - * Creates a plain object from a MountShowResponse message. Also converts values to other types if specified. - * @param message MountShowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountShowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountShowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountListRequest. */ - interface IMountListRequest { - } - - /** Represents a MountListRequest. */ - class MountListRequest implements IMountListRequest { - - /** - * Constructs a new MountListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountListRequest); - - /** - * Creates a new MountListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MountListRequest instance - */ - public static create(properties?: vtctldata.IMountListRequest): vtctldata.MountListRequest; - - /** - * Encodes the specified MountListRequest message. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. - * @param message MountListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountListRequest message, length delimited. Does not implicitly {@link vtctldata.MountListRequest.verify|verify} messages. - * @param message MountListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListRequest; - - /** - * Decodes a MountListRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListRequest; - - /** - * Verifies a MountListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountListRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountListRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListRequest; - - /** - * Creates a plain object from a MountListRequest message. Also converts values to other types if specified. - * @param message MountListRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountListRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountListRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MountListResponse. */ - interface IMountListResponse { - - /** MountListResponse names */ - names?: (string[]|null); - } - - /** Represents a MountListResponse. */ - class MountListResponse implements IMountListResponse { - - /** - * Constructs a new MountListResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMountListResponse); - - /** MountListResponse names. */ - public names: string[]; - - /** - * Creates a new MountListResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MountListResponse instance - */ - public static create(properties?: vtctldata.IMountListResponse): vtctldata.MountListResponse; - - /** - * Encodes the specified MountListResponse message. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. - * @param message MountListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MountListResponse message, length delimited. Does not implicitly {@link vtctldata.MountListResponse.verify|verify} messages. - * @param message MountListResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMountListResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MountListResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MountListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MountListResponse; - - /** - * Decodes a MountListResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MountListResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MountListResponse; - - /** - * Verifies a MountListResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MountListResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MountListResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MountListResponse; - - /** - * Creates a plain object from a MountListResponse message. Also converts values to other types if specified. - * @param message MountListResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MountListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MountListResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MountListResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCreateRequest. */ - interface IMoveTablesCreateRequest { - - /** MoveTablesCreateRequest workflow */ - workflow?: (string|null); - - /** MoveTablesCreateRequest source_keyspace */ - source_keyspace?: (string|null); - - /** MoveTablesCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MoveTablesCreateRequest cells */ - cells?: (string[]|null); - - /** MoveTablesCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** MoveTablesCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** MoveTablesCreateRequest source_shards */ - source_shards?: (string[]|null); - - /** MoveTablesCreateRequest all_tables */ - all_tables?: (boolean|null); - - /** MoveTablesCreateRequest include_tables */ - include_tables?: (string[]|null); - - /** MoveTablesCreateRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** MoveTablesCreateRequest external_cluster_name */ - external_cluster_name?: (string|null); - - /** MoveTablesCreateRequest source_time_zone */ - source_time_zone?: (string|null); - - /** MoveTablesCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** MoveTablesCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** MoveTablesCreateRequest drop_foreign_keys */ - drop_foreign_keys?: (boolean|null); - - /** MoveTablesCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** MoveTablesCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** MoveTablesCreateRequest no_routing_rules */ - no_routing_rules?: (boolean|null); - - /** MoveTablesCreateRequest atomic_copy */ - atomic_copy?: (boolean|null); - - /** MoveTablesCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a MoveTablesCreateRequest. */ - class MoveTablesCreateRequest implements IMoveTablesCreateRequest { - - /** - * Constructs a new MoveTablesCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCreateRequest); - - /** MoveTablesCreateRequest workflow. */ - public workflow: string; - - /** MoveTablesCreateRequest source_keyspace. */ - public source_keyspace: string; - - /** MoveTablesCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** MoveTablesCreateRequest cells. */ - public cells: string[]; - - /** MoveTablesCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** MoveTablesCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** MoveTablesCreateRequest source_shards. */ - public source_shards: string[]; - - /** MoveTablesCreateRequest all_tables. */ - public all_tables: boolean; - - /** MoveTablesCreateRequest include_tables. */ - public include_tables: string[]; - - /** MoveTablesCreateRequest exclude_tables. */ - public exclude_tables: string[]; - - /** MoveTablesCreateRequest external_cluster_name. */ - public external_cluster_name: string; - - /** MoveTablesCreateRequest source_time_zone. */ - public source_time_zone: string; - - /** MoveTablesCreateRequest on_ddl. */ - public on_ddl: string; - - /** MoveTablesCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** MoveTablesCreateRequest drop_foreign_keys. */ - public drop_foreign_keys: boolean; - - /** MoveTablesCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** MoveTablesCreateRequest auto_start. */ - public auto_start: boolean; - - /** MoveTablesCreateRequest no_routing_rules. */ - public no_routing_rules: boolean; - - /** MoveTablesCreateRequest atomic_copy. */ - public atomic_copy: boolean; - - /** MoveTablesCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new MoveTablesCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCreateRequest instance - */ - public static create(properties?: vtctldata.IMoveTablesCreateRequest): vtctldata.MoveTablesCreateRequest; - - /** - * Encodes the specified MoveTablesCreateRequest message. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. - * @param message MoveTablesCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCreateRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateRequest.verify|verify} messages. - * @param message MoveTablesCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateRequest; - - /** - * Decodes a MoveTablesCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateRequest; - - /** - * Verifies a MoveTablesCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateRequest; - - /** - * Creates a plain object from a MoveTablesCreateRequest message. Also converts values to other types if specified. - * @param message MoveTablesCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCreateResponse. */ - interface IMoveTablesCreateResponse { - - /** MoveTablesCreateResponse summary */ - summary?: (string|null); - - /** MoveTablesCreateResponse details */ - details?: (vtctldata.MoveTablesCreateResponse.ITabletInfo[]|null); - } - - /** Represents a MoveTablesCreateResponse. */ - class MoveTablesCreateResponse implements IMoveTablesCreateResponse { - - /** - * Constructs a new MoveTablesCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCreateResponse); - - /** MoveTablesCreateResponse summary. */ - public summary: string; - - /** MoveTablesCreateResponse details. */ - public details: vtctldata.MoveTablesCreateResponse.ITabletInfo[]; - - /** - * Creates a new MoveTablesCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCreateResponse instance - */ - public static create(properties?: vtctldata.IMoveTablesCreateResponse): vtctldata.MoveTablesCreateResponse; - - /** - * Encodes the specified MoveTablesCreateResponse message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. - * @param message MoveTablesCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCreateResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.verify|verify} messages. - * @param message MoveTablesCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse; - - /** - * Decodes a MoveTablesCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse; - - /** - * Verifies a MoveTablesCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse; - - /** - * Creates a plain object from a MoveTablesCreateResponse message. Also converts values to other types if specified. - * @param message MoveTablesCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MoveTablesCreateResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo created */ - created?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo created. */ - public created: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.MoveTablesCreateResponse.ITabletInfo): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCreateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.MoveTablesCreateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCreateResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCreateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MoveTablesCompleteRequest. */ - interface IMoveTablesCompleteRequest { - - /** MoveTablesCompleteRequest workflow */ - workflow?: (string|null); - - /** MoveTablesCompleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** MoveTablesCompleteRequest keep_data */ - keep_data?: (boolean|null); - - /** MoveTablesCompleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** MoveTablesCompleteRequest rename_tables */ - rename_tables?: (boolean|null); - - /** MoveTablesCompleteRequest dry_run */ - dry_run?: (boolean|null); - - /** MoveTablesCompleteRequest shards */ - shards?: (string[]|null); - } - - /** Represents a MoveTablesCompleteRequest. */ - class MoveTablesCompleteRequest implements IMoveTablesCompleteRequest { - - /** - * Constructs a new MoveTablesCompleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCompleteRequest); - - /** MoveTablesCompleteRequest workflow. */ - public workflow: string; - - /** MoveTablesCompleteRequest target_keyspace. */ - public target_keyspace: string; - - /** MoveTablesCompleteRequest keep_data. */ - public keep_data: boolean; - - /** MoveTablesCompleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** MoveTablesCompleteRequest rename_tables. */ - public rename_tables: boolean; - - /** MoveTablesCompleteRequest dry_run. */ - public dry_run: boolean; - - /** MoveTablesCompleteRequest shards. */ - public shards: string[]; - - /** - * Creates a new MoveTablesCompleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCompleteRequest instance - */ - public static create(properties?: vtctldata.IMoveTablesCompleteRequest): vtctldata.MoveTablesCompleteRequest; - - /** - * Encodes the specified MoveTablesCompleteRequest message. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. - * @param message MoveTablesCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCompleteRequest message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteRequest.verify|verify} messages. - * @param message MoveTablesCompleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCompleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteRequest; - - /** - * Decodes a MoveTablesCompleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteRequest; - - /** - * Verifies a MoveTablesCompleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCompleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCompleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteRequest; - - /** - * Creates a plain object from a MoveTablesCompleteRequest message. Also converts values to other types if specified. - * @param message MoveTablesCompleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCompleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCompleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCompleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MoveTablesCompleteResponse. */ - interface IMoveTablesCompleteResponse { - - /** MoveTablesCompleteResponse summary */ - summary?: (string|null); - - /** MoveTablesCompleteResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a MoveTablesCompleteResponse. */ - class MoveTablesCompleteResponse implements IMoveTablesCompleteResponse { - - /** - * Constructs a new MoveTablesCompleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IMoveTablesCompleteResponse); - - /** MoveTablesCompleteResponse summary. */ - public summary: string; - - /** MoveTablesCompleteResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new MoveTablesCompleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MoveTablesCompleteResponse instance - */ - public static create(properties?: vtctldata.IMoveTablesCompleteResponse): vtctldata.MoveTablesCompleteResponse; - - /** - * Encodes the specified MoveTablesCompleteResponse message. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. - * @param message MoveTablesCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MoveTablesCompleteResponse message, length delimited. Does not implicitly {@link vtctldata.MoveTablesCompleteResponse.verify|verify} messages. - * @param message MoveTablesCompleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IMoveTablesCompleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MoveTablesCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.MoveTablesCompleteResponse; - - /** - * Decodes a MoveTablesCompleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MoveTablesCompleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.MoveTablesCompleteResponse; - - /** - * Verifies a MoveTablesCompleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MoveTablesCompleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MoveTablesCompleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.MoveTablesCompleteResponse; - - /** - * Creates a plain object from a MoveTablesCompleteResponse message. Also converts values to other types if specified. - * @param message MoveTablesCompleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.MoveTablesCompleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MoveTablesCompleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MoveTablesCompleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PingTabletRequest. */ - interface IPingTabletRequest { - - /** PingTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a PingTabletRequest. */ - class PingTabletRequest implements IPingTabletRequest { - - /** - * Constructs a new PingTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPingTabletRequest); - - /** PingTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new PingTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PingTabletRequest instance - */ - public static create(properties?: vtctldata.IPingTabletRequest): vtctldata.PingTabletRequest; - - /** - * Encodes the specified PingTabletRequest message. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. - * @param message PingTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PingTabletRequest message, length delimited. Does not implicitly {@link vtctldata.PingTabletRequest.verify|verify} messages. - * @param message PingTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPingTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PingTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletRequest; - - /** - * Decodes a PingTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletRequest; - - /** - * Verifies a PingTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PingTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletRequest; - - /** - * Creates a plain object from a PingTabletRequest message. Also converts values to other types if specified. - * @param message PingTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PingTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PingTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PingTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PingTabletResponse. */ - interface IPingTabletResponse { - } - - /** Represents a PingTabletResponse. */ - class PingTabletResponse implements IPingTabletResponse { - - /** - * Constructs a new PingTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPingTabletResponse); - - /** - * Creates a new PingTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PingTabletResponse instance - */ - public static create(properties?: vtctldata.IPingTabletResponse): vtctldata.PingTabletResponse; - - /** - * Encodes the specified PingTabletResponse message. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. - * @param message PingTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PingTabletResponse message, length delimited. Does not implicitly {@link vtctldata.PingTabletResponse.verify|verify} messages. - * @param message PingTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPingTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PingTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PingTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PingTabletResponse; - - /** - * Decodes a PingTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PingTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PingTabletResponse; - - /** - * Verifies a PingTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PingTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PingTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PingTabletResponse; - - /** - * Creates a plain object from a PingTabletResponse message. Also converts values to other types if specified. - * @param message PingTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PingTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PingTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PingTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PlannedReparentShardRequest. */ - interface IPlannedReparentShardRequest { - - /** PlannedReparentShardRequest keyspace */ - keyspace?: (string|null); - - /** PlannedReparentShardRequest shard */ - shard?: (string|null); - - /** PlannedReparentShardRequest new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest avoid_primary */ - avoid_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest wait_replicas_timeout */ - wait_replicas_timeout?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest tolerable_replication_lag */ - tolerable_replication_lag?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest allow_cross_cell_promotion */ - allow_cross_cell_promotion?: (boolean|null); - } - - /** Represents a PlannedReparentShardRequest. */ - class PlannedReparentShardRequest implements IPlannedReparentShardRequest { - - /** - * Constructs a new PlannedReparentShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPlannedReparentShardRequest); - - /** PlannedReparentShardRequest keyspace. */ - public keyspace: string; - - /** PlannedReparentShardRequest shard. */ - public shard: string; - - /** PlannedReparentShardRequest new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest avoid_primary. */ - public avoid_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardRequest wait_replicas_timeout. */ - public wait_replicas_timeout?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest tolerable_replication_lag. */ - public tolerable_replication_lag?: (vttime.IDuration|null); - - /** PlannedReparentShardRequest allow_cross_cell_promotion. */ - public allow_cross_cell_promotion: boolean; - - /** - * Creates a new PlannedReparentShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PlannedReparentShardRequest instance - */ - public static create(properties?: vtctldata.IPlannedReparentShardRequest): vtctldata.PlannedReparentShardRequest; - - /** - * Encodes the specified PlannedReparentShardRequest message. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. - * @param message PlannedReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlannedReparentShardRequest message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardRequest.verify|verify} messages. - * @param message PlannedReparentShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPlannedReparentShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlannedReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardRequest; - - /** - * Decodes a PlannedReparentShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardRequest; - - /** - * Verifies a PlannedReparentShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlannedReparentShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlannedReparentShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardRequest; - - /** - * Creates a plain object from a PlannedReparentShardRequest message. Also converts values to other types if specified. - * @param message PlannedReparentShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PlannedReparentShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlannedReparentShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PlannedReparentShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PlannedReparentShardResponse. */ - interface IPlannedReparentShardResponse { - - /** PlannedReparentShardResponse keyspace */ - keyspace?: (string|null); - - /** PlannedReparentShardResponse shard */ - shard?: (string|null); - - /** PlannedReparentShardResponse promoted_primary */ - promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a PlannedReparentShardResponse. */ - class PlannedReparentShardResponse implements IPlannedReparentShardResponse { - - /** - * Constructs a new PlannedReparentShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IPlannedReparentShardResponse); - - /** PlannedReparentShardResponse keyspace. */ - public keyspace: string; - - /** PlannedReparentShardResponse shard. */ - public shard: string; - - /** PlannedReparentShardResponse promoted_primary. */ - public promoted_primary?: (topodata.ITabletAlias|null); - - /** PlannedReparentShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new PlannedReparentShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PlannedReparentShardResponse instance - */ - public static create(properties?: vtctldata.IPlannedReparentShardResponse): vtctldata.PlannedReparentShardResponse; - - /** - * Encodes the specified PlannedReparentShardResponse message. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. - * @param message PlannedReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlannedReparentShardResponse message, length delimited. Does not implicitly {@link vtctldata.PlannedReparentShardResponse.verify|verify} messages. - * @param message PlannedReparentShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IPlannedReparentShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlannedReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.PlannedReparentShardResponse; - - /** - * Decodes a PlannedReparentShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlannedReparentShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.PlannedReparentShardResponse; - - /** - * Verifies a PlannedReparentShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlannedReparentShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlannedReparentShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.PlannedReparentShardResponse; - - /** - * Creates a plain object from a PlannedReparentShardResponse message. Also converts values to other types if specified. - * @param message PlannedReparentShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.PlannedReparentShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlannedReparentShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PlannedReparentShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildKeyspaceGraphRequest. */ - interface IRebuildKeyspaceGraphRequest { - - /** RebuildKeyspaceGraphRequest keyspace */ - keyspace?: (string|null); - - /** RebuildKeyspaceGraphRequest cells */ - cells?: (string[]|null); - - /** RebuildKeyspaceGraphRequest allow_partial */ - allow_partial?: (boolean|null); - } - - /** Represents a RebuildKeyspaceGraphRequest. */ - class RebuildKeyspaceGraphRequest implements IRebuildKeyspaceGraphRequest { - - /** - * Constructs a new RebuildKeyspaceGraphRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphRequest); - - /** RebuildKeyspaceGraphRequest keyspace. */ - public keyspace: string; - - /** RebuildKeyspaceGraphRequest cells. */ - public cells: string[]; - - /** RebuildKeyspaceGraphRequest allow_partial. */ - public allow_partial: boolean; - - /** - * Creates a new RebuildKeyspaceGraphRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphRequest instance - */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphRequest): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Encodes the specified RebuildKeyspaceGraphRequest message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. - * @param message RebuildKeyspaceGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildKeyspaceGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphRequest.verify|verify} messages. - * @param message RebuildKeyspaceGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildKeyspaceGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Decodes a RebuildKeyspaceGraphRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Verifies a RebuildKeyspaceGraphRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildKeyspaceGraphRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildKeyspaceGraphRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphRequest; - - /** - * Creates a plain object from a RebuildKeyspaceGraphRequest message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildKeyspaceGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildKeyspaceGraphRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildKeyspaceGraphRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildKeyspaceGraphResponse. */ - interface IRebuildKeyspaceGraphResponse { - } - - /** Represents a RebuildKeyspaceGraphResponse. */ - class RebuildKeyspaceGraphResponse implements IRebuildKeyspaceGraphResponse { - - /** - * Constructs a new RebuildKeyspaceGraphResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildKeyspaceGraphResponse); - - /** - * Creates a new RebuildKeyspaceGraphResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildKeyspaceGraphResponse instance - */ - public static create(properties?: vtctldata.IRebuildKeyspaceGraphResponse): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Encodes the specified RebuildKeyspaceGraphResponse message. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. - * @param message RebuildKeyspaceGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildKeyspaceGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildKeyspaceGraphResponse.verify|verify} messages. - * @param message RebuildKeyspaceGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildKeyspaceGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildKeyspaceGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Decodes a RebuildKeyspaceGraphResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildKeyspaceGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Verifies a RebuildKeyspaceGraphResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildKeyspaceGraphResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildKeyspaceGraphResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildKeyspaceGraphResponse; - - /** - * Creates a plain object from a RebuildKeyspaceGraphResponse message. Also converts values to other types if specified. - * @param message RebuildKeyspaceGraphResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildKeyspaceGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildKeyspaceGraphResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildKeyspaceGraphResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildVSchemaGraphRequest. */ - interface IRebuildVSchemaGraphRequest { - - /** RebuildVSchemaGraphRequest cells */ - cells?: (string[]|null); - } - - /** Represents a RebuildVSchemaGraphRequest. */ - class RebuildVSchemaGraphRequest implements IRebuildVSchemaGraphRequest { - - /** - * Constructs a new RebuildVSchemaGraphRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphRequest); - - /** RebuildVSchemaGraphRequest cells. */ - public cells: string[]; - - /** - * Creates a new RebuildVSchemaGraphRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildVSchemaGraphRequest instance - */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphRequest): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Encodes the specified RebuildVSchemaGraphRequest message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. - * @param message RebuildVSchemaGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildVSchemaGraphRequest message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphRequest.verify|verify} messages. - * @param message RebuildVSchemaGraphRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildVSchemaGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Decodes a RebuildVSchemaGraphRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Verifies a RebuildVSchemaGraphRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildVSchemaGraphRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildVSchemaGraphRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphRequest; - - /** - * Creates a plain object from a RebuildVSchemaGraphRequest message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildVSchemaGraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildVSchemaGraphRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildVSchemaGraphRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RebuildVSchemaGraphResponse. */ - interface IRebuildVSchemaGraphResponse { - } - - /** Represents a RebuildVSchemaGraphResponse. */ - class RebuildVSchemaGraphResponse implements IRebuildVSchemaGraphResponse { - - /** - * Constructs a new RebuildVSchemaGraphResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRebuildVSchemaGraphResponse); - - /** - * Creates a new RebuildVSchemaGraphResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RebuildVSchemaGraphResponse instance - */ - public static create(properties?: vtctldata.IRebuildVSchemaGraphResponse): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Encodes the specified RebuildVSchemaGraphResponse message. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. - * @param message RebuildVSchemaGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RebuildVSchemaGraphResponse message, length delimited. Does not implicitly {@link vtctldata.RebuildVSchemaGraphResponse.verify|verify} messages. - * @param message RebuildVSchemaGraphResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRebuildVSchemaGraphResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RebuildVSchemaGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Decodes a RebuildVSchemaGraphResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RebuildVSchemaGraphResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Verifies a RebuildVSchemaGraphResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RebuildVSchemaGraphResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RebuildVSchemaGraphResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RebuildVSchemaGraphResponse; - - /** - * Creates a plain object from a RebuildVSchemaGraphResponse message. Also converts values to other types if specified. - * @param message RebuildVSchemaGraphResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RebuildVSchemaGraphResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RebuildVSchemaGraphResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RebuildVSchemaGraphResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateRequest. */ - interface IRefreshStateRequest { - - /** RefreshStateRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a RefreshStateRequest. */ - class RefreshStateRequest implements IRefreshStateRequest { - - /** - * Constructs a new RefreshStateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateRequest); - - /** RefreshStateRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new RefreshStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateRequest instance - */ - public static create(properties?: vtctldata.IRefreshStateRequest): vtctldata.RefreshStateRequest; - - /** - * Encodes the specified RefreshStateRequest message. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateRequest.verify|verify} messages. - * @param message RefreshStateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateRequest; - - /** - * Decodes a RefreshStateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateRequest; - - /** - * Verifies a RefreshStateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateRequest; - - /** - * Creates a plain object from a RefreshStateRequest message. Also converts values to other types if specified. - * @param message RefreshStateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateResponse. */ - interface IRefreshStateResponse { - } - - /** Represents a RefreshStateResponse. */ - class RefreshStateResponse implements IRefreshStateResponse { - - /** - * Constructs a new RefreshStateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateResponse); - - /** - * Creates a new RefreshStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateResponse instance - */ - public static create(properties?: vtctldata.IRefreshStateResponse): vtctldata.RefreshStateResponse; - - /** - * Encodes the specified RefreshStateResponse message. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateResponse.verify|verify} messages. - * @param message RefreshStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateResponse; - - /** - * Decodes a RefreshStateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateResponse; - - /** - * Verifies a RefreshStateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateResponse; - - /** - * Creates a plain object from a RefreshStateResponse message. Also converts values to other types if specified. - * @param message RefreshStateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateByShardRequest. */ - interface IRefreshStateByShardRequest { - - /** RefreshStateByShardRequest keyspace */ - keyspace?: (string|null); - - /** RefreshStateByShardRequest shard */ - shard?: (string|null); - - /** RefreshStateByShardRequest cells */ - cells?: (string[]|null); - } - - /** Represents a RefreshStateByShardRequest. */ - class RefreshStateByShardRequest implements IRefreshStateByShardRequest { - - /** - * Constructs a new RefreshStateByShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateByShardRequest); - - /** RefreshStateByShardRequest keyspace. */ - public keyspace: string; - - /** RefreshStateByShardRequest shard. */ - public shard: string; - - /** RefreshStateByShardRequest cells. */ - public cells: string[]; - - /** - * Creates a new RefreshStateByShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateByShardRequest instance - */ - public static create(properties?: vtctldata.IRefreshStateByShardRequest): vtctldata.RefreshStateByShardRequest; - - /** - * Encodes the specified RefreshStateByShardRequest message. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. - * @param message RefreshStateByShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateByShardRequest message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardRequest.verify|verify} messages. - * @param message RefreshStateByShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateByShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateByShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardRequest; - - /** - * Decodes a RefreshStateByShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardRequest; - - /** - * Verifies a RefreshStateByShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateByShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateByShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardRequest; - - /** - * Creates a plain object from a RefreshStateByShardRequest message. Also converts values to other types if specified. - * @param message RefreshStateByShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateByShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateByShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateByShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RefreshStateByShardResponse. */ - interface IRefreshStateByShardResponse { - - /** RefreshStateByShardResponse is_partial_refresh */ - is_partial_refresh?: (boolean|null); - - /** RefreshStateByShardResponse partial_refresh_details */ - partial_refresh_details?: (string|null); - } - - /** Represents a RefreshStateByShardResponse. */ - class RefreshStateByShardResponse implements IRefreshStateByShardResponse { - - /** - * Constructs a new RefreshStateByShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRefreshStateByShardResponse); - - /** RefreshStateByShardResponse is_partial_refresh. */ - public is_partial_refresh: boolean; - - /** RefreshStateByShardResponse partial_refresh_details. */ - public partial_refresh_details: string; - - /** - * Creates a new RefreshStateByShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RefreshStateByShardResponse instance - */ - public static create(properties?: vtctldata.IRefreshStateByShardResponse): vtctldata.RefreshStateByShardResponse; - - /** - * Encodes the specified RefreshStateByShardResponse message. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. - * @param message RefreshStateByShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RefreshStateByShardResponse message, length delimited. Does not implicitly {@link vtctldata.RefreshStateByShardResponse.verify|verify} messages. - * @param message RefreshStateByShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRefreshStateByShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RefreshStateByShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RefreshStateByShardResponse; - - /** - * Decodes a RefreshStateByShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RefreshStateByShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RefreshStateByShardResponse; - - /** - * Verifies a RefreshStateByShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RefreshStateByShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RefreshStateByShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RefreshStateByShardResponse; - - /** - * Creates a plain object from a RefreshStateByShardResponse message. Also converts values to other types if specified. - * @param message RefreshStateByShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RefreshStateByShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RefreshStateByShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RefreshStateByShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaRequest. */ - interface IReloadSchemaRequest { - - /** ReloadSchemaRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ReloadSchemaRequest. */ - class ReloadSchemaRequest implements IReloadSchemaRequest { - - /** - * Constructs a new ReloadSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaRequest); - - /** ReloadSchemaRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReloadSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaRequest): vtctldata.ReloadSchemaRequest; - - /** - * Encodes the specified ReloadSchemaRequest message. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaRequest.verify|verify} messages. - * @param message ReloadSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaRequest; - - /** - * Decodes a ReloadSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaRequest; - - /** - * Verifies a ReloadSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaRequest; - - /** - * Creates a plain object from a ReloadSchemaRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaResponse. */ - interface IReloadSchemaResponse { - } - - /** Represents a ReloadSchemaResponse. */ - class ReloadSchemaResponse implements IReloadSchemaResponse { - - /** - * Constructs a new ReloadSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaResponse); - - /** - * Creates a new ReloadSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaResponse): vtctldata.ReloadSchemaResponse; - - /** - * Encodes the specified ReloadSchemaResponse message. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaResponse.verify|verify} messages. - * @param message ReloadSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaResponse; - - /** - * Decodes a ReloadSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaResponse; - - /** - * Verifies a ReloadSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaResponse; - - /** - * Creates a plain object from a ReloadSchemaResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaKeyspaceRequest. */ - interface IReloadSchemaKeyspaceRequest { - - /** ReloadSchemaKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ReloadSchemaKeyspaceRequest wait_position */ - wait_position?: (string|null); - - /** ReloadSchemaKeyspaceRequest include_primary */ - include_primary?: (boolean|null); - - /** ReloadSchemaKeyspaceRequest concurrency */ - concurrency?: (number|null); - } - - /** Represents a ReloadSchemaKeyspaceRequest. */ - class ReloadSchemaKeyspaceRequest implements IReloadSchemaKeyspaceRequest { - - /** - * Constructs a new ReloadSchemaKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaKeyspaceRequest); - - /** ReloadSchemaKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ReloadSchemaKeyspaceRequest wait_position. */ - public wait_position: string; - - /** ReloadSchemaKeyspaceRequest include_primary. */ - public include_primary: boolean; - - /** ReloadSchemaKeyspaceRequest concurrency. */ - public concurrency: number; - - /** - * Creates a new ReloadSchemaKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceRequest): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Encodes the specified ReloadSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. - * @param message ReloadSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceRequest.verify|verify} messages. - * @param message ReloadSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Decodes a ReloadSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Verifies a ReloadSchemaKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceRequest; - - /** - * Creates a plain object from a ReloadSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaKeyspaceResponse. */ - interface IReloadSchemaKeyspaceResponse { - - /** ReloadSchemaKeyspaceResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a ReloadSchemaKeyspaceResponse. */ - class ReloadSchemaKeyspaceResponse implements IReloadSchemaKeyspaceResponse { - - /** - * Constructs a new ReloadSchemaKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaKeyspaceResponse); - - /** ReloadSchemaKeyspaceResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new ReloadSchemaKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaKeyspaceResponse): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Encodes the specified ReloadSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. - * @param message ReloadSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaKeyspaceResponse.verify|verify} messages. - * @param message ReloadSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Decodes a ReloadSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Verifies a ReloadSchemaKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaKeyspaceResponse; - - /** - * Creates a plain object from a ReloadSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaShardRequest. */ - interface IReloadSchemaShardRequest { - - /** ReloadSchemaShardRequest keyspace */ - keyspace?: (string|null); - - /** ReloadSchemaShardRequest shard */ - shard?: (string|null); - - /** ReloadSchemaShardRequest wait_position */ - wait_position?: (string|null); - - /** ReloadSchemaShardRequest include_primary */ - include_primary?: (boolean|null); - - /** ReloadSchemaShardRequest concurrency */ - concurrency?: (number|null); - } - - /** Represents a ReloadSchemaShardRequest. */ - class ReloadSchemaShardRequest implements IReloadSchemaShardRequest { - - /** - * Constructs a new ReloadSchemaShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaShardRequest); - - /** ReloadSchemaShardRequest keyspace. */ - public keyspace: string; - - /** ReloadSchemaShardRequest shard. */ - public shard: string; - - /** ReloadSchemaShardRequest wait_position. */ - public wait_position: string; - - /** ReloadSchemaShardRequest include_primary. */ - public include_primary: boolean; - - /** ReloadSchemaShardRequest concurrency. */ - public concurrency: number; - - /** - * Creates a new ReloadSchemaShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaShardRequest instance - */ - public static create(properties?: vtctldata.IReloadSchemaShardRequest): vtctldata.ReloadSchemaShardRequest; - - /** - * Encodes the specified ReloadSchemaShardRequest message. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. - * @param message ReloadSchemaShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaShardRequest message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardRequest.verify|verify} messages. - * @param message ReloadSchemaShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardRequest; - - /** - * Decodes a ReloadSchemaShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardRequest; - - /** - * Verifies a ReloadSchemaShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardRequest; - - /** - * Creates a plain object from a ReloadSchemaShardRequest message. Also converts values to other types if specified. - * @param message ReloadSchemaShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReloadSchemaShardResponse. */ - interface IReloadSchemaShardResponse { - - /** ReloadSchemaShardResponse events */ - events?: (logutil.IEvent[]|null); - } - - /** Represents a ReloadSchemaShardResponse. */ - class ReloadSchemaShardResponse implements IReloadSchemaShardResponse { - - /** - * Constructs a new ReloadSchemaShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReloadSchemaShardResponse); - - /** ReloadSchemaShardResponse events. */ - public events: logutil.IEvent[]; - - /** - * Creates a new ReloadSchemaShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReloadSchemaShardResponse instance - */ - public static create(properties?: vtctldata.IReloadSchemaShardResponse): vtctldata.ReloadSchemaShardResponse; - - /** - * Encodes the specified ReloadSchemaShardResponse message. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. - * @param message ReloadSchemaShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReloadSchemaShardResponse message, length delimited. Does not implicitly {@link vtctldata.ReloadSchemaShardResponse.verify|verify} messages. - * @param message ReloadSchemaShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReloadSchemaShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReloadSchemaShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReloadSchemaShardResponse; - - /** - * Decodes a ReloadSchemaShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReloadSchemaShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReloadSchemaShardResponse; - - /** - * Verifies a ReloadSchemaShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReloadSchemaShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReloadSchemaShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReloadSchemaShardResponse; - - /** - * Creates a plain object from a ReloadSchemaShardResponse message. Also converts values to other types if specified. - * @param message ReloadSchemaShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReloadSchemaShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReloadSchemaShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReloadSchemaShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveBackupRequest. */ - interface IRemoveBackupRequest { - - /** RemoveBackupRequest keyspace */ - keyspace?: (string|null); - - /** RemoveBackupRequest shard */ - shard?: (string|null); - - /** RemoveBackupRequest name */ - name?: (string|null); - } - - /** Represents a RemoveBackupRequest. */ - class RemoveBackupRequest implements IRemoveBackupRequest { - - /** - * Constructs a new RemoveBackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveBackupRequest); - - /** RemoveBackupRequest keyspace. */ - public keyspace: string; - - /** RemoveBackupRequest shard. */ - public shard: string; - - /** RemoveBackupRequest name. */ - public name: string; - - /** - * Creates a new RemoveBackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveBackupRequest instance - */ - public static create(properties?: vtctldata.IRemoveBackupRequest): vtctldata.RemoveBackupRequest; - - /** - * Encodes the specified RemoveBackupRequest message. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. - * @param message RemoveBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupRequest.verify|verify} messages. - * @param message RemoveBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupRequest; - - /** - * Decodes a RemoveBackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupRequest; - - /** - * Verifies a RemoveBackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveBackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveBackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupRequest; - - /** - * Creates a plain object from a RemoveBackupRequest message. Also converts values to other types if specified. - * @param message RemoveBackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveBackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveBackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveBackupResponse. */ - interface IRemoveBackupResponse { - } - - /** Represents a RemoveBackupResponse. */ - class RemoveBackupResponse implements IRemoveBackupResponse { - - /** - * Constructs a new RemoveBackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveBackupResponse); - - /** - * Creates a new RemoveBackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveBackupResponse instance - */ - public static create(properties?: vtctldata.IRemoveBackupResponse): vtctldata.RemoveBackupResponse; - - /** - * Encodes the specified RemoveBackupResponse message. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. - * @param message RemoveBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveBackupResponse.verify|verify} messages. - * @param message RemoveBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveBackupResponse; - - /** - * Decodes a RemoveBackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveBackupResponse; - - /** - * Verifies a RemoveBackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveBackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveBackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveBackupResponse; - - /** - * Creates a plain object from a RemoveBackupResponse message. Also converts values to other types if specified. - * @param message RemoveBackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveBackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveBackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveKeyspaceCellRequest. */ - interface IRemoveKeyspaceCellRequest { - - /** RemoveKeyspaceCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveKeyspaceCellRequest cell */ - cell?: (string|null); - - /** RemoveKeyspaceCellRequest force */ - force?: (boolean|null); - - /** RemoveKeyspaceCellRequest recursive */ - recursive?: (boolean|null); - } - - /** Represents a RemoveKeyspaceCellRequest. */ - class RemoveKeyspaceCellRequest implements IRemoveKeyspaceCellRequest { - - /** - * Constructs a new RemoveKeyspaceCellRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellRequest); - - /** RemoveKeyspaceCellRequest keyspace. */ - public keyspace: string; - - /** RemoveKeyspaceCellRequest cell. */ - public cell: string; - - /** RemoveKeyspaceCellRequest force. */ - public force: boolean; - - /** RemoveKeyspaceCellRequest recursive. */ - public recursive: boolean; - - /** - * Creates a new RemoveKeyspaceCellRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveKeyspaceCellRequest instance - */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellRequest): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Encodes the specified RemoveKeyspaceCellRequest message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveKeyspaceCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellRequest.verify|verify} messages. - * @param message RemoveKeyspaceCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Decodes a RemoveKeyspaceCellRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Verifies a RemoveKeyspaceCellRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveKeyspaceCellRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveKeyspaceCellRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellRequest; - - /** - * Creates a plain object from a RemoveKeyspaceCellRequest message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveKeyspaceCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveKeyspaceCellRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveKeyspaceCellRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveKeyspaceCellResponse. */ - interface IRemoveKeyspaceCellResponse { - } - - /** Represents a RemoveKeyspaceCellResponse. */ - class RemoveKeyspaceCellResponse implements IRemoveKeyspaceCellResponse { - - /** - * Constructs a new RemoveKeyspaceCellResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveKeyspaceCellResponse); - - /** - * Creates a new RemoveKeyspaceCellResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveKeyspaceCellResponse instance - */ - public static create(properties?: vtctldata.IRemoveKeyspaceCellResponse): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Encodes the specified RemoveKeyspaceCellResponse message. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveKeyspaceCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveKeyspaceCellResponse.verify|verify} messages. - * @param message RemoveKeyspaceCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveKeyspaceCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveKeyspaceCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Decodes a RemoveKeyspaceCellResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveKeyspaceCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Verifies a RemoveKeyspaceCellResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveKeyspaceCellResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveKeyspaceCellResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveKeyspaceCellResponse; - - /** - * Creates a plain object from a RemoveKeyspaceCellResponse message. Also converts values to other types if specified. - * @param message RemoveKeyspaceCellResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveKeyspaceCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveKeyspaceCellResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveKeyspaceCellResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveShardCellRequest. */ - interface IRemoveShardCellRequest { - - /** RemoveShardCellRequest keyspace */ - keyspace?: (string|null); - - /** RemoveShardCellRequest shard_name */ - shard_name?: (string|null); - - /** RemoveShardCellRequest cell */ - cell?: (string|null); - - /** RemoveShardCellRequest force */ - force?: (boolean|null); - - /** RemoveShardCellRequest recursive */ - recursive?: (boolean|null); - } - - /** Represents a RemoveShardCellRequest. */ - class RemoveShardCellRequest implements IRemoveShardCellRequest { - - /** - * Constructs a new RemoveShardCellRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveShardCellRequest); - - /** RemoveShardCellRequest keyspace. */ - public keyspace: string; - - /** RemoveShardCellRequest shard_name. */ - public shard_name: string; - - /** RemoveShardCellRequest cell. */ - public cell: string; - - /** RemoveShardCellRequest force. */ - public force: boolean; - - /** RemoveShardCellRequest recursive. */ - public recursive: boolean; - - /** - * Creates a new RemoveShardCellRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveShardCellRequest instance - */ - public static create(properties?: vtctldata.IRemoveShardCellRequest): vtctldata.RemoveShardCellRequest; - - /** - * Encodes the specified RemoveShardCellRequest message. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveShardCellRequest message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellRequest.verify|verify} messages. - * @param message RemoveShardCellRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellRequest; - - /** - * Decodes a RemoveShardCellRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveShardCellRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellRequest; - - /** - * Verifies a RemoveShardCellRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveShardCellRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveShardCellRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellRequest; - - /** - * Creates a plain object from a RemoveShardCellRequest message. Also converts values to other types if specified. - * @param message RemoveShardCellRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveShardCellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveShardCellRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveShardCellRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RemoveShardCellResponse. */ - interface IRemoveShardCellResponse { - } - - /** Represents a RemoveShardCellResponse. */ - class RemoveShardCellResponse implements IRemoveShardCellResponse { - - /** - * Constructs a new RemoveShardCellResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRemoveShardCellResponse); - - /** - * Creates a new RemoveShardCellResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveShardCellResponse instance - */ - public static create(properties?: vtctldata.IRemoveShardCellResponse): vtctldata.RemoveShardCellResponse; - - /** - * Encodes the specified RemoveShardCellResponse message. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RemoveShardCellResponse message, length delimited. Does not implicitly {@link vtctldata.RemoveShardCellResponse.verify|verify} messages. - * @param message RemoveShardCellResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRemoveShardCellResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveShardCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RemoveShardCellResponse; - - /** - * Decodes a RemoveShardCellResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RemoveShardCellResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RemoveShardCellResponse; - - /** - * Verifies a RemoveShardCellResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RemoveShardCellResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveShardCellResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RemoveShardCellResponse; - - /** - * Creates a plain object from a RemoveShardCellResponse message. Also converts values to other types if specified. - * @param message RemoveShardCellResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RemoveShardCellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RemoveShardCellResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RemoveShardCellResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReparentTabletRequest. */ - interface IReparentTabletRequest { - - /** ReparentTabletRequest tablet */ - tablet?: (topodata.ITabletAlias|null); - } - - /** Represents a ReparentTabletRequest. */ - class ReparentTabletRequest implements IReparentTabletRequest { - - /** - * Constructs a new ReparentTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReparentTabletRequest); - - /** ReparentTabletRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReparentTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReparentTabletRequest instance - */ - public static create(properties?: vtctldata.IReparentTabletRequest): vtctldata.ReparentTabletRequest; - - /** - * Encodes the specified ReparentTabletRequest message. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. - * @param message ReparentTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReparentTabletRequest message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletRequest.verify|verify} messages. - * @param message ReparentTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReparentTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReparentTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletRequest; - - /** - * Decodes a ReparentTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReparentTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletRequest; - - /** - * Verifies a ReparentTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReparentTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReparentTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletRequest; - - /** - * Creates a plain object from a ReparentTabletRequest message. Also converts values to other types if specified. - * @param message ReparentTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReparentTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReparentTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReparentTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReparentTabletResponse. */ - interface IReparentTabletResponse { - - /** ReparentTabletResponse keyspace */ - keyspace?: (string|null); - - /** ReparentTabletResponse shard */ - shard?: (string|null); - - /** ReparentTabletResponse primary */ - primary?: (topodata.ITabletAlias|null); - } - - /** Represents a ReparentTabletResponse. */ - class ReparentTabletResponse implements IReparentTabletResponse { - - /** - * Constructs a new ReparentTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReparentTabletResponse); - - /** ReparentTabletResponse keyspace. */ - public keyspace: string; - - /** ReparentTabletResponse shard. */ - public shard: string; - - /** ReparentTabletResponse primary. */ - public primary?: (topodata.ITabletAlias|null); - - /** - * Creates a new ReparentTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReparentTabletResponse instance - */ - public static create(properties?: vtctldata.IReparentTabletResponse): vtctldata.ReparentTabletResponse; - - /** - * Encodes the specified ReparentTabletResponse message. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. - * @param message ReparentTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReparentTabletResponse message, length delimited. Does not implicitly {@link vtctldata.ReparentTabletResponse.verify|verify} messages. - * @param message ReparentTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReparentTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReparentTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReparentTabletResponse; - - /** - * Decodes a ReparentTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReparentTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReparentTabletResponse; - - /** - * Verifies a ReparentTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReparentTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReparentTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReparentTabletResponse; - - /** - * Creates a plain object from a ReparentTabletResponse message. Also converts values to other types if specified. - * @param message ReparentTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReparentTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReparentTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReparentTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ReshardCreateRequest. */ - interface IReshardCreateRequest { - - /** ReshardCreateRequest workflow */ - workflow?: (string|null); - - /** ReshardCreateRequest keyspace */ - keyspace?: (string|null); - - /** ReshardCreateRequest source_shards */ - source_shards?: (string[]|null); - - /** ReshardCreateRequest target_shards */ - target_shards?: (string[]|null); - - /** ReshardCreateRequest cells */ - cells?: (string[]|null); - - /** ReshardCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** ReshardCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** ReshardCreateRequest skip_schema_copy */ - skip_schema_copy?: (boolean|null); - - /** ReshardCreateRequest on_ddl */ - on_ddl?: (string|null); - - /** ReshardCreateRequest stop_after_copy */ - stop_after_copy?: (boolean|null); - - /** ReshardCreateRequest defer_secondary_keys */ - defer_secondary_keys?: (boolean|null); - - /** ReshardCreateRequest auto_start */ - auto_start?: (boolean|null); - - /** ReshardCreateRequest workflow_options */ - workflow_options?: (vtctldata.IWorkflowOptions|null); - } - - /** Represents a ReshardCreateRequest. */ - class ReshardCreateRequest implements IReshardCreateRequest { - - /** - * Constructs a new ReshardCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IReshardCreateRequest); - - /** ReshardCreateRequest workflow. */ - public workflow: string; - - /** ReshardCreateRequest keyspace. */ - public keyspace: string; - - /** ReshardCreateRequest source_shards. */ - public source_shards: string[]; - - /** ReshardCreateRequest target_shards. */ - public target_shards: string[]; - - /** ReshardCreateRequest cells. */ - public cells: string[]; - - /** ReshardCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** ReshardCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** ReshardCreateRequest skip_schema_copy. */ - public skip_schema_copy: boolean; - - /** ReshardCreateRequest on_ddl. */ - public on_ddl: string; - - /** ReshardCreateRequest stop_after_copy. */ - public stop_after_copy: boolean; - - /** ReshardCreateRequest defer_secondary_keys. */ - public defer_secondary_keys: boolean; - - /** ReshardCreateRequest auto_start. */ - public auto_start: boolean; - - /** ReshardCreateRequest workflow_options. */ - public workflow_options?: (vtctldata.IWorkflowOptions|null); - - /** - * Creates a new ReshardCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ReshardCreateRequest instance - */ - public static create(properties?: vtctldata.IReshardCreateRequest): vtctldata.ReshardCreateRequest; - - /** - * Encodes the specified ReshardCreateRequest message. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. - * @param message ReshardCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ReshardCreateRequest message, length delimited. Does not implicitly {@link vtctldata.ReshardCreateRequest.verify|verify} messages. - * @param message ReshardCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IReshardCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReshardCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ReshardCreateRequest; - - /** - * Decodes a ReshardCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReshardCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ReshardCreateRequest; - - /** - * Verifies a ReshardCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReshardCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReshardCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ReshardCreateRequest; - - /** - * Creates a plain object from a ReshardCreateRequest message. Also converts values to other types if specified. - * @param message ReshardCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ReshardCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ReshardCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ReshardCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RestoreFromBackupRequest. */ - interface IRestoreFromBackupRequest { - - /** RestoreFromBackupRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupRequest backup_time */ - backup_time?: (vttime.ITime|null); - - /** RestoreFromBackupRequest restore_to_pos */ - restore_to_pos?: (string|null); - - /** RestoreFromBackupRequest dry_run */ - dry_run?: (boolean|null); - - /** RestoreFromBackupRequest restore_to_timestamp */ - restore_to_timestamp?: (vttime.ITime|null); - - /** RestoreFromBackupRequest allowed_backup_engines */ - allowed_backup_engines?: (string[]|null); - } - - /** Represents a RestoreFromBackupRequest. */ - class RestoreFromBackupRequest implements IRestoreFromBackupRequest { - - /** - * Constructs a new RestoreFromBackupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRestoreFromBackupRequest); - - /** RestoreFromBackupRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupRequest backup_time. */ - public backup_time?: (vttime.ITime|null); - - /** RestoreFromBackupRequest restore_to_pos. */ - public restore_to_pos: string; - - /** RestoreFromBackupRequest dry_run. */ - public dry_run: boolean; - - /** RestoreFromBackupRequest restore_to_timestamp. */ - public restore_to_timestamp?: (vttime.ITime|null); - - /** RestoreFromBackupRequest allowed_backup_engines. */ - public allowed_backup_engines: string[]; - - /** - * Creates a new RestoreFromBackupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreFromBackupRequest instance - */ - public static create(properties?: vtctldata.IRestoreFromBackupRequest): vtctldata.RestoreFromBackupRequest; - - /** - * Encodes the specified RestoreFromBackupRequest message. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RestoreFromBackupRequest message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupRequest.verify|verify} messages. - * @param message RestoreFromBackupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRestoreFromBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreFromBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupRequest; - - /** - * Decodes a RestoreFromBackupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupRequest; - - /** - * Verifies a RestoreFromBackupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RestoreFromBackupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreFromBackupRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupRequest; - - /** - * Creates a plain object from a RestoreFromBackupRequest message. Also converts values to other types if specified. - * @param message RestoreFromBackupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RestoreFromBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RestoreFromBackupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RestoreFromBackupRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RestoreFromBackupResponse. */ - interface IRestoreFromBackupResponse { - - /** RestoreFromBackupResponse tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupResponse keyspace */ - keyspace?: (string|null); - - /** RestoreFromBackupResponse shard */ - shard?: (string|null); - - /** RestoreFromBackupResponse event */ - event?: (logutil.IEvent|null); - } - - /** Represents a RestoreFromBackupResponse. */ - class RestoreFromBackupResponse implements IRestoreFromBackupResponse { - - /** - * Constructs a new RestoreFromBackupResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRestoreFromBackupResponse); - - /** RestoreFromBackupResponse tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** RestoreFromBackupResponse keyspace. */ - public keyspace: string; - - /** RestoreFromBackupResponse shard. */ - public shard: string; - - /** RestoreFromBackupResponse event. */ - public event?: (logutil.IEvent|null); - - /** - * Creates a new RestoreFromBackupResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreFromBackupResponse instance - */ - public static create(properties?: vtctldata.IRestoreFromBackupResponse): vtctldata.RestoreFromBackupResponse; - - /** - * Encodes the specified RestoreFromBackupResponse message. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RestoreFromBackupResponse message, length delimited. Does not implicitly {@link vtctldata.RestoreFromBackupResponse.verify|verify} messages. - * @param message RestoreFromBackupResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRestoreFromBackupResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreFromBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RestoreFromBackupResponse; - - /** - * Decodes a RestoreFromBackupResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RestoreFromBackupResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RestoreFromBackupResponse; - - /** - * Verifies a RestoreFromBackupResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RestoreFromBackupResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreFromBackupResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RestoreFromBackupResponse; - - /** - * Creates a plain object from a RestoreFromBackupResponse message. Also converts values to other types if specified. - * @param message RestoreFromBackupResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RestoreFromBackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RestoreFromBackupResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RestoreFromBackupResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RetrySchemaMigrationRequest. */ - interface IRetrySchemaMigrationRequest { - - /** RetrySchemaMigrationRequest keyspace */ - keyspace?: (string|null); - - /** RetrySchemaMigrationRequest uuid */ - uuid?: (string|null); - } - - /** Represents a RetrySchemaMigrationRequest. */ - class RetrySchemaMigrationRequest implements IRetrySchemaMigrationRequest { - - /** - * Constructs a new RetrySchemaMigrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRetrySchemaMigrationRequest); - - /** RetrySchemaMigrationRequest keyspace. */ - public keyspace: string; - - /** RetrySchemaMigrationRequest uuid. */ - public uuid: string; - - /** - * Creates a new RetrySchemaMigrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RetrySchemaMigrationRequest instance - */ - public static create(properties?: vtctldata.IRetrySchemaMigrationRequest): vtctldata.RetrySchemaMigrationRequest; - - /** - * Encodes the specified RetrySchemaMigrationRequest message. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. - * @param message RetrySchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RetrySchemaMigrationRequest message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationRequest.verify|verify} messages. - * @param message RetrySchemaMigrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetrySchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationRequest; - - /** - * Decodes a RetrySchemaMigrationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationRequest; - - /** - * Verifies a RetrySchemaMigrationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RetrySchemaMigrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RetrySchemaMigrationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationRequest; - - /** - * Creates a plain object from a RetrySchemaMigrationRequest message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RetrySchemaMigrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RetrySchemaMigrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RetrySchemaMigrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RetrySchemaMigrationResponse. */ - interface IRetrySchemaMigrationResponse { - - /** RetrySchemaMigrationResponse rows_affected_by_shard */ - rows_affected_by_shard?: ({ [k: string]: (number|Long) }|null); - } - - /** Represents a RetrySchemaMigrationResponse. */ - class RetrySchemaMigrationResponse implements IRetrySchemaMigrationResponse { - - /** - * Constructs a new RetrySchemaMigrationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRetrySchemaMigrationResponse); - - /** RetrySchemaMigrationResponse rows_affected_by_shard. */ - public rows_affected_by_shard: { [k: string]: (number|Long) }; - - /** - * Creates a new RetrySchemaMigrationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RetrySchemaMigrationResponse instance - */ - public static create(properties?: vtctldata.IRetrySchemaMigrationResponse): vtctldata.RetrySchemaMigrationResponse; - - /** - * Encodes the specified RetrySchemaMigrationResponse message. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. - * @param message RetrySchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RetrySchemaMigrationResponse message, length delimited. Does not implicitly {@link vtctldata.RetrySchemaMigrationResponse.verify|verify} messages. - * @param message RetrySchemaMigrationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRetrySchemaMigrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetrySchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RetrySchemaMigrationResponse; - - /** - * Decodes a RetrySchemaMigrationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RetrySchemaMigrationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RetrySchemaMigrationResponse; - - /** - * Verifies a RetrySchemaMigrationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RetrySchemaMigrationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RetrySchemaMigrationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RetrySchemaMigrationResponse; - - /** - * Creates a plain object from a RetrySchemaMigrationResponse message. Also converts values to other types if specified. - * @param message RetrySchemaMigrationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RetrySchemaMigrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RetrySchemaMigrationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RetrySchemaMigrationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RunHealthCheckRequest. */ - interface IRunHealthCheckRequest { - - /** RunHealthCheckRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a RunHealthCheckRequest. */ - class RunHealthCheckRequest implements IRunHealthCheckRequest { - - /** - * Constructs a new RunHealthCheckRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRunHealthCheckRequest); - - /** RunHealthCheckRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new RunHealthCheckRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RunHealthCheckRequest instance - */ - public static create(properties?: vtctldata.IRunHealthCheckRequest): vtctldata.RunHealthCheckRequest; - - /** - * Encodes the specified RunHealthCheckRequest message. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RunHealthCheckRequest message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckRequest.verify|verify} messages. - * @param message RunHealthCheckRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRunHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunHealthCheckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckRequest; - - /** - * Decodes a RunHealthCheckRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunHealthCheckRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckRequest; - - /** - * Verifies a RunHealthCheckRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RunHealthCheckRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunHealthCheckRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckRequest; - - /** - * Creates a plain object from a RunHealthCheckRequest message. Also converts values to other types if specified. - * @param message RunHealthCheckRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RunHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RunHealthCheckRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RunHealthCheckRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RunHealthCheckResponse. */ - interface IRunHealthCheckResponse { - } - - /** Represents a RunHealthCheckResponse. */ - class RunHealthCheckResponse implements IRunHealthCheckResponse { - - /** - * Constructs a new RunHealthCheckResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IRunHealthCheckResponse); - - /** - * Creates a new RunHealthCheckResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RunHealthCheckResponse instance - */ - public static create(properties?: vtctldata.IRunHealthCheckResponse): vtctldata.RunHealthCheckResponse; - - /** - * Encodes the specified RunHealthCheckResponse message. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RunHealthCheckResponse message, length delimited. Does not implicitly {@link vtctldata.RunHealthCheckResponse.verify|verify} messages. - * @param message RunHealthCheckResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IRunHealthCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunHealthCheckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.RunHealthCheckResponse; - - /** - * Decodes a RunHealthCheckResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunHealthCheckResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.RunHealthCheckResponse; - - /** - * Verifies a RunHealthCheckResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RunHealthCheckResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunHealthCheckResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.RunHealthCheckResponse; - - /** - * Creates a plain object from a RunHealthCheckResponse message. Also converts values to other types if specified. - * @param message RunHealthCheckResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.RunHealthCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RunHealthCheckResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RunHealthCheckResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceDurabilityPolicyRequest. */ - interface ISetKeyspaceDurabilityPolicyRequest { - - /** SetKeyspaceDurabilityPolicyRequest keyspace */ - keyspace?: (string|null); - - /** SetKeyspaceDurabilityPolicyRequest durability_policy */ - durability_policy?: (string|null); - } - - /** Represents a SetKeyspaceDurabilityPolicyRequest. */ - class SetKeyspaceDurabilityPolicyRequest implements ISetKeyspaceDurabilityPolicyRequest { - - /** - * Constructs a new SetKeyspaceDurabilityPolicyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest); - - /** SetKeyspaceDurabilityPolicyRequest keyspace. */ - public keyspace: string; - - /** SetKeyspaceDurabilityPolicyRequest durability_policy. */ - public durability_policy: string; - - /** - * Creates a new SetKeyspaceDurabilityPolicyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyRequest instance - */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyRequest): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyRequest.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceDurabilityPolicyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Decodes a SetKeyspaceDurabilityPolicyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Verifies a SetKeyspaceDurabilityPolicyRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceDurabilityPolicyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyRequest; - - /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceDurabilityPolicyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceDurabilityPolicyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceDurabilityPolicyResponse. */ - interface ISetKeyspaceDurabilityPolicyResponse { - - /** SetKeyspaceDurabilityPolicyResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a SetKeyspaceDurabilityPolicyResponse. */ - class SetKeyspaceDurabilityPolicyResponse implements ISetKeyspaceDurabilityPolicyResponse { - - /** - * Constructs a new SetKeyspaceDurabilityPolicyResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse); - - /** SetKeyspaceDurabilityPolicyResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new SetKeyspaceDurabilityPolicyResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceDurabilityPolicyResponse instance - */ - public static create(properties?: vtctldata.ISetKeyspaceDurabilityPolicyResponse): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceDurabilityPolicyResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceDurabilityPolicyResponse.verify|verify} messages. - * @param message SetKeyspaceDurabilityPolicyResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceDurabilityPolicyResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceDurabilityPolicyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Decodes a SetKeyspaceDurabilityPolicyResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceDurabilityPolicyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Verifies a SetKeyspaceDurabilityPolicyResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceDurabilityPolicyResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceDurabilityPolicyResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceDurabilityPolicyResponse; - - /** - * Creates a plain object from a SetKeyspaceDurabilityPolicyResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceDurabilityPolicyResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceDurabilityPolicyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceDurabilityPolicyResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceDurabilityPolicyResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceShardingInfoRequest. */ - interface ISetKeyspaceShardingInfoRequest { - - /** SetKeyspaceShardingInfoRequest keyspace */ - keyspace?: (string|null); - - /** SetKeyspaceShardingInfoRequest force */ - force?: (boolean|null); - } - - /** Represents a SetKeyspaceShardingInfoRequest. */ - class SetKeyspaceShardingInfoRequest implements ISetKeyspaceShardingInfoRequest { - - /** - * Constructs a new SetKeyspaceShardingInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoRequest); - - /** SetKeyspaceShardingInfoRequest keyspace. */ - public keyspace: string; - - /** SetKeyspaceShardingInfoRequest force. */ - public force: boolean; - - /** - * Creates a new SetKeyspaceShardingInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoRequest instance - */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoRequest): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Encodes the specified SetKeyspaceShardingInfoRequest message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. - * @param message SetKeyspaceShardingInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceShardingInfoRequest message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoRequest.verify|verify} messages. - * @param message SetKeyspaceShardingInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceShardingInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Decodes a SetKeyspaceShardingInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Verifies a SetKeyspaceShardingInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceShardingInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceShardingInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoRequest; - - /** - * Creates a plain object from a SetKeyspaceShardingInfoRequest message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceShardingInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceShardingInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceShardingInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetKeyspaceShardingInfoResponse. */ - interface ISetKeyspaceShardingInfoResponse { - - /** SetKeyspaceShardingInfoResponse keyspace */ - keyspace?: (topodata.IKeyspace|null); - } - - /** Represents a SetKeyspaceShardingInfoResponse. */ - class SetKeyspaceShardingInfoResponse implements ISetKeyspaceShardingInfoResponse { - - /** - * Constructs a new SetKeyspaceShardingInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetKeyspaceShardingInfoResponse); - - /** SetKeyspaceShardingInfoResponse keyspace. */ - public keyspace?: (topodata.IKeyspace|null); - - /** - * Creates a new SetKeyspaceShardingInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetKeyspaceShardingInfoResponse instance - */ - public static create(properties?: vtctldata.ISetKeyspaceShardingInfoResponse): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Encodes the specified SetKeyspaceShardingInfoResponse message. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. - * @param message SetKeyspaceShardingInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetKeyspaceShardingInfoResponse message, length delimited. Does not implicitly {@link vtctldata.SetKeyspaceShardingInfoResponse.verify|verify} messages. - * @param message SetKeyspaceShardingInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetKeyspaceShardingInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetKeyspaceShardingInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Decodes a SetKeyspaceShardingInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetKeyspaceShardingInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Verifies a SetKeyspaceShardingInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetKeyspaceShardingInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetKeyspaceShardingInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetKeyspaceShardingInfoResponse; - - /** - * Creates a plain object from a SetKeyspaceShardingInfoResponse message. Also converts values to other types if specified. - * @param message SetKeyspaceShardingInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetKeyspaceShardingInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetKeyspaceShardingInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetKeyspaceShardingInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardIsPrimaryServingRequest. */ - interface ISetShardIsPrimaryServingRequest { - - /** SetShardIsPrimaryServingRequest keyspace */ - keyspace?: (string|null); - - /** SetShardIsPrimaryServingRequest shard */ - shard?: (string|null); - - /** SetShardIsPrimaryServingRequest is_serving */ - is_serving?: (boolean|null); - } - - /** Represents a SetShardIsPrimaryServingRequest. */ - class SetShardIsPrimaryServingRequest implements ISetShardIsPrimaryServingRequest { - - /** - * Constructs a new SetShardIsPrimaryServingRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingRequest); - - /** SetShardIsPrimaryServingRequest keyspace. */ - public keyspace: string; - - /** SetShardIsPrimaryServingRequest shard. */ - public shard: string; - - /** SetShardIsPrimaryServingRequest is_serving. */ - public is_serving: boolean; - - /** - * Creates a new SetShardIsPrimaryServingRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingRequest instance - */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingRequest): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Encodes the specified SetShardIsPrimaryServingRequest message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. - * @param message SetShardIsPrimaryServingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardIsPrimaryServingRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingRequest.verify|verify} messages. - * @param message SetShardIsPrimaryServingRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardIsPrimaryServingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Decodes a SetShardIsPrimaryServingRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Verifies a SetShardIsPrimaryServingRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardIsPrimaryServingRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardIsPrimaryServingRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingRequest; - - /** - * Creates a plain object from a SetShardIsPrimaryServingRequest message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardIsPrimaryServingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardIsPrimaryServingRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardIsPrimaryServingRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardIsPrimaryServingResponse. */ - interface ISetShardIsPrimaryServingResponse { - - /** SetShardIsPrimaryServingResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SetShardIsPrimaryServingResponse. */ - class SetShardIsPrimaryServingResponse implements ISetShardIsPrimaryServingResponse { - - /** - * Constructs a new SetShardIsPrimaryServingResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardIsPrimaryServingResponse); - - /** SetShardIsPrimaryServingResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SetShardIsPrimaryServingResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardIsPrimaryServingResponse instance - */ - public static create(properties?: vtctldata.ISetShardIsPrimaryServingResponse): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Encodes the specified SetShardIsPrimaryServingResponse message. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. - * @param message SetShardIsPrimaryServingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardIsPrimaryServingResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardIsPrimaryServingResponse.verify|verify} messages. - * @param message SetShardIsPrimaryServingResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardIsPrimaryServingResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardIsPrimaryServingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Decodes a SetShardIsPrimaryServingResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardIsPrimaryServingResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Verifies a SetShardIsPrimaryServingResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardIsPrimaryServingResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardIsPrimaryServingResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardIsPrimaryServingResponse; - - /** - * Creates a plain object from a SetShardIsPrimaryServingResponse message. Also converts values to other types if specified. - * @param message SetShardIsPrimaryServingResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardIsPrimaryServingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardIsPrimaryServingResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardIsPrimaryServingResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardTabletControlRequest. */ - interface ISetShardTabletControlRequest { - - /** SetShardTabletControlRequest keyspace */ - keyspace?: (string|null); - - /** SetShardTabletControlRequest shard */ - shard?: (string|null); - - /** SetShardTabletControlRequest tablet_type */ - tablet_type?: (topodata.TabletType|null); - - /** SetShardTabletControlRequest cells */ - cells?: (string[]|null); - - /** SetShardTabletControlRequest denied_tables */ - denied_tables?: (string[]|null); - - /** SetShardTabletControlRequest disable_query_service */ - disable_query_service?: (boolean|null); - - /** SetShardTabletControlRequest remove */ - remove?: (boolean|null); - } - - /** Represents a SetShardTabletControlRequest. */ - class SetShardTabletControlRequest implements ISetShardTabletControlRequest { - - /** - * Constructs a new SetShardTabletControlRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardTabletControlRequest); - - /** SetShardTabletControlRequest keyspace. */ - public keyspace: string; - - /** SetShardTabletControlRequest shard. */ - public shard: string; - - /** SetShardTabletControlRequest tablet_type. */ - public tablet_type: topodata.TabletType; - - /** SetShardTabletControlRequest cells. */ - public cells: string[]; - - /** SetShardTabletControlRequest denied_tables. */ - public denied_tables: string[]; - - /** SetShardTabletControlRequest disable_query_service. */ - public disable_query_service: boolean; - - /** SetShardTabletControlRequest remove. */ - public remove: boolean; - - /** - * Creates a new SetShardTabletControlRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardTabletControlRequest instance - */ - public static create(properties?: vtctldata.ISetShardTabletControlRequest): vtctldata.SetShardTabletControlRequest; - - /** - * Encodes the specified SetShardTabletControlRequest message. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. - * @param message SetShardTabletControlRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardTabletControlRequest message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlRequest.verify|verify} messages. - * @param message SetShardTabletControlRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardTabletControlRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardTabletControlRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlRequest; - - /** - * Decodes a SetShardTabletControlRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlRequest; - - /** - * Verifies a SetShardTabletControlRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardTabletControlRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardTabletControlRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlRequest; - - /** - * Creates a plain object from a SetShardTabletControlRequest message. Also converts values to other types if specified. - * @param message SetShardTabletControlRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardTabletControlRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardTabletControlRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardTabletControlRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetShardTabletControlResponse. */ - interface ISetShardTabletControlResponse { - - /** SetShardTabletControlResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SetShardTabletControlResponse. */ - class SetShardTabletControlResponse implements ISetShardTabletControlResponse { - - /** - * Constructs a new SetShardTabletControlResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetShardTabletControlResponse); - - /** SetShardTabletControlResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SetShardTabletControlResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetShardTabletControlResponse instance - */ - public static create(properties?: vtctldata.ISetShardTabletControlResponse): vtctldata.SetShardTabletControlResponse; - - /** - * Encodes the specified SetShardTabletControlResponse message. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. - * @param message SetShardTabletControlResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetShardTabletControlResponse message, length delimited. Does not implicitly {@link vtctldata.SetShardTabletControlResponse.verify|verify} messages. - * @param message SetShardTabletControlResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetShardTabletControlResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetShardTabletControlResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetShardTabletControlResponse; - - /** - * Decodes a SetShardTabletControlResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetShardTabletControlResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetShardTabletControlResponse; - - /** - * Verifies a SetShardTabletControlResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetShardTabletControlResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetShardTabletControlResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetShardTabletControlResponse; - - /** - * Creates a plain object from a SetShardTabletControlResponse message. Also converts values to other types if specified. - * @param message SetShardTabletControlResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetShardTabletControlResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetShardTabletControlResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetShardTabletControlResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetWritableRequest. */ - interface ISetWritableRequest { - - /** SetWritableRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** SetWritableRequest writable */ - writable?: (boolean|null); - } - - /** Represents a SetWritableRequest. */ - class SetWritableRequest implements ISetWritableRequest { - - /** - * Constructs a new SetWritableRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetWritableRequest); - - /** SetWritableRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** SetWritableRequest writable. */ - public writable: boolean; - - /** - * Creates a new SetWritableRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SetWritableRequest instance - */ - public static create(properties?: vtctldata.ISetWritableRequest): vtctldata.SetWritableRequest; - - /** - * Encodes the specified SetWritableRequest message. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. - * @param message SetWritableRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetWritableRequest message, length delimited. Does not implicitly {@link vtctldata.SetWritableRequest.verify|verify} messages. - * @param message SetWritableRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetWritableRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetWritableRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetWritableRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableRequest; - - /** - * Decodes a SetWritableRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetWritableRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableRequest; - - /** - * Verifies a SetWritableRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetWritableRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetWritableRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableRequest; - - /** - * Creates a plain object from a SetWritableRequest message. Also converts values to other types if specified. - * @param message SetWritableRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetWritableRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetWritableRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetWritableRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SetWritableResponse. */ - interface ISetWritableResponse { - } - - /** Represents a SetWritableResponse. */ - class SetWritableResponse implements ISetWritableResponse { - - /** - * Constructs a new SetWritableResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISetWritableResponse); - - /** - * Creates a new SetWritableResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SetWritableResponse instance - */ - public static create(properties?: vtctldata.ISetWritableResponse): vtctldata.SetWritableResponse; - - /** - * Encodes the specified SetWritableResponse message. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. - * @param message SetWritableResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SetWritableResponse message, length delimited. Does not implicitly {@link vtctldata.SetWritableResponse.verify|verify} messages. - * @param message SetWritableResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISetWritableResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SetWritableResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SetWritableResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SetWritableResponse; - - /** - * Decodes a SetWritableResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SetWritableResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SetWritableResponse; - - /** - * Verifies a SetWritableResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SetWritableResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SetWritableResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SetWritableResponse; - - /** - * Creates a plain object from a SetWritableResponse message. Also converts values to other types if specified. - * @param message SetWritableResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SetWritableResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SetWritableResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SetWritableResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationAddRequest. */ - interface IShardReplicationAddRequest { - - /** ShardReplicationAddRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationAddRequest shard */ - shard?: (string|null); - - /** ShardReplicationAddRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ShardReplicationAddRequest. */ - class ShardReplicationAddRequest implements IShardReplicationAddRequest { - - /** - * Constructs a new ShardReplicationAddRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationAddRequest); - - /** ShardReplicationAddRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationAddRequest shard. */ - public shard: string; - - /** ShardReplicationAddRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ShardReplicationAddRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationAddRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationAddRequest): vtctldata.ShardReplicationAddRequest; - - /** - * Encodes the specified ShardReplicationAddRequest message. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. - * @param message ShardReplicationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationAddRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddRequest.verify|verify} messages. - * @param message ShardReplicationAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddRequest; - - /** - * Decodes a ShardReplicationAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddRequest; - - /** - * Verifies a ShardReplicationAddRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationAddRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationAddRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddRequest; - - /** - * Creates a plain object from a ShardReplicationAddRequest message. Also converts values to other types if specified. - * @param message ShardReplicationAddRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationAddRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationAddRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationAddResponse. */ - interface IShardReplicationAddResponse { - } - - /** Represents a ShardReplicationAddResponse. */ - class ShardReplicationAddResponse implements IShardReplicationAddResponse { - - /** - * Constructs a new ShardReplicationAddResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationAddResponse); - - /** - * Creates a new ShardReplicationAddResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationAddResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationAddResponse): vtctldata.ShardReplicationAddResponse; - - /** - * Encodes the specified ShardReplicationAddResponse message. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. - * @param message ShardReplicationAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationAddResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationAddResponse.verify|verify} messages. - * @param message ShardReplicationAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationAddResponse; - - /** - * Decodes a ShardReplicationAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationAddResponse; - - /** - * Verifies a ShardReplicationAddResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationAddResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationAddResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationAddResponse; - - /** - * Creates a plain object from a ShardReplicationAddResponse message. Also converts values to other types if specified. - * @param message ShardReplicationAddResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationAddResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationAddResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationFixRequest. */ - interface IShardReplicationFixRequest { - - /** ShardReplicationFixRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationFixRequest shard */ - shard?: (string|null); - - /** ShardReplicationFixRequest cell */ - cell?: (string|null); - } - - /** Represents a ShardReplicationFixRequest. */ - class ShardReplicationFixRequest implements IShardReplicationFixRequest { - - /** - * Constructs a new ShardReplicationFixRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationFixRequest); - - /** ShardReplicationFixRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationFixRequest shard. */ - public shard: string; - - /** ShardReplicationFixRequest cell. */ - public cell: string; - - /** - * Creates a new ShardReplicationFixRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationFixRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationFixRequest): vtctldata.ShardReplicationFixRequest; - - /** - * Encodes the specified ShardReplicationFixRequest message. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. - * @param message ShardReplicationFixRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationFixRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixRequest.verify|verify} messages. - * @param message ShardReplicationFixRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationFixRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationFixRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixRequest; - - /** - * Decodes a ShardReplicationFixRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixRequest; - - /** - * Verifies a ShardReplicationFixRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationFixRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationFixRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixRequest; - - /** - * Creates a plain object from a ShardReplicationFixRequest message. Also converts values to other types if specified. - * @param message ShardReplicationFixRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationFixRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationFixRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationFixRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationFixResponse. */ - interface IShardReplicationFixResponse { - - /** ShardReplicationFixResponse error */ - error?: (topodata.IShardReplicationError|null); - } - - /** Represents a ShardReplicationFixResponse. */ - class ShardReplicationFixResponse implements IShardReplicationFixResponse { - - /** - * Constructs a new ShardReplicationFixResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationFixResponse); - - /** ShardReplicationFixResponse error. */ - public error?: (topodata.IShardReplicationError|null); - - /** - * Creates a new ShardReplicationFixResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationFixResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationFixResponse): vtctldata.ShardReplicationFixResponse; - - /** - * Encodes the specified ShardReplicationFixResponse message. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. - * @param message ShardReplicationFixResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationFixResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationFixResponse.verify|verify} messages. - * @param message ShardReplicationFixResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationFixResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationFixResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationFixResponse; - - /** - * Decodes a ShardReplicationFixResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationFixResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationFixResponse; - - /** - * Verifies a ShardReplicationFixResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationFixResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationFixResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationFixResponse; - - /** - * Creates a plain object from a ShardReplicationFixResponse message. Also converts values to other types if specified. - * @param message ShardReplicationFixResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationFixResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationFixResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationFixResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationPositionsRequest. */ - interface IShardReplicationPositionsRequest { - - /** ShardReplicationPositionsRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationPositionsRequest shard */ - shard?: (string|null); - } - - /** Represents a ShardReplicationPositionsRequest. */ - class ShardReplicationPositionsRequest implements IShardReplicationPositionsRequest { - - /** - * Constructs a new ShardReplicationPositionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationPositionsRequest); - - /** ShardReplicationPositionsRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationPositionsRequest shard. */ - public shard: string; - - /** - * Creates a new ShardReplicationPositionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationPositionsRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationPositionsRequest): vtctldata.ShardReplicationPositionsRequest; - - /** - * Encodes the specified ShardReplicationPositionsRequest message. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. - * @param message ShardReplicationPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationPositionsRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsRequest.verify|verify} messages. - * @param message ShardReplicationPositionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationPositionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsRequest; - - /** - * Decodes a ShardReplicationPositionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsRequest; - - /** - * Verifies a ShardReplicationPositionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationPositionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationPositionsRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsRequest; - - /** - * Creates a plain object from a ShardReplicationPositionsRequest message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationPositionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationPositionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationPositionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationPositionsResponse. */ - interface IShardReplicationPositionsResponse { - - /** ShardReplicationPositionsResponse replication_statuses */ - replication_statuses?: ({ [k: string]: replicationdata.IStatus }|null); - - /** ShardReplicationPositionsResponse tablet_map */ - tablet_map?: ({ [k: string]: topodata.ITablet }|null); - } - - /** Represents a ShardReplicationPositionsResponse. */ - class ShardReplicationPositionsResponse implements IShardReplicationPositionsResponse { - - /** - * Constructs a new ShardReplicationPositionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationPositionsResponse); - - /** ShardReplicationPositionsResponse replication_statuses. */ - public replication_statuses: { [k: string]: replicationdata.IStatus }; - - /** ShardReplicationPositionsResponse tablet_map. */ - public tablet_map: { [k: string]: topodata.ITablet }; - - /** - * Creates a new ShardReplicationPositionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationPositionsResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationPositionsResponse): vtctldata.ShardReplicationPositionsResponse; - - /** - * Encodes the specified ShardReplicationPositionsResponse message. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. - * @param message ShardReplicationPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationPositionsResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationPositionsResponse.verify|verify} messages. - * @param message ShardReplicationPositionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationPositionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationPositionsResponse; - - /** - * Decodes a ShardReplicationPositionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationPositionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationPositionsResponse; - - /** - * Verifies a ShardReplicationPositionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationPositionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationPositionsResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationPositionsResponse; - - /** - * Creates a plain object from a ShardReplicationPositionsResponse message. Also converts values to other types if specified. - * @param message ShardReplicationPositionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationPositionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationPositionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationPositionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationRemoveRequest. */ - interface IShardReplicationRemoveRequest { - - /** ShardReplicationRemoveRequest keyspace */ - keyspace?: (string|null); - - /** ShardReplicationRemoveRequest shard */ - shard?: (string|null); - - /** ShardReplicationRemoveRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a ShardReplicationRemoveRequest. */ - class ShardReplicationRemoveRequest implements IShardReplicationRemoveRequest { - - /** - * Constructs a new ShardReplicationRemoveRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationRemoveRequest); - - /** ShardReplicationRemoveRequest keyspace. */ - public keyspace: string; - - /** ShardReplicationRemoveRequest shard. */ - public shard: string; - - /** ShardReplicationRemoveRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new ShardReplicationRemoveRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationRemoveRequest instance - */ - public static create(properties?: vtctldata.IShardReplicationRemoveRequest): vtctldata.ShardReplicationRemoveRequest; - - /** - * Encodes the specified ShardReplicationRemoveRequest message. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. - * @param message ShardReplicationRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationRemoveRequest message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveRequest.verify|verify} messages. - * @param message ShardReplicationRemoveRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveRequest; - - /** - * Decodes a ShardReplicationRemoveRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveRequest; - - /** - * Verifies a ShardReplicationRemoveRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationRemoveRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationRemoveRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveRequest; - - /** - * Creates a plain object from a ShardReplicationRemoveRequest message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationRemoveRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationRemoveRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardReplicationRemoveResponse. */ - interface IShardReplicationRemoveResponse { - } - - /** Represents a ShardReplicationRemoveResponse. */ - class ShardReplicationRemoveResponse implements IShardReplicationRemoveResponse { - - /** - * Constructs a new ShardReplicationRemoveResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IShardReplicationRemoveResponse); - - /** - * Creates a new ShardReplicationRemoveResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardReplicationRemoveResponse instance - */ - public static create(properties?: vtctldata.IShardReplicationRemoveResponse): vtctldata.ShardReplicationRemoveResponse; - - /** - * Encodes the specified ShardReplicationRemoveResponse message. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. - * @param message ShardReplicationRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardReplicationRemoveResponse message, length delimited. Does not implicitly {@link vtctldata.ShardReplicationRemoveResponse.verify|verify} messages. - * @param message ShardReplicationRemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IShardReplicationRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardReplicationRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ShardReplicationRemoveResponse; - - /** - * Decodes a ShardReplicationRemoveResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardReplicationRemoveResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ShardReplicationRemoveResponse; - - /** - * Verifies a ShardReplicationRemoveResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardReplicationRemoveResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardReplicationRemoveResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ShardReplicationRemoveResponse; - - /** - * Creates a plain object from a ShardReplicationRemoveResponse message. Also converts values to other types if specified. - * @param message ShardReplicationRemoveResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ShardReplicationRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardReplicationRemoveResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardReplicationRemoveResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SleepTabletRequest. */ - interface ISleepTabletRequest { - - /** SleepTabletRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - - /** SleepTabletRequest duration */ - duration?: (vttime.IDuration|null); - } - - /** Represents a SleepTabletRequest. */ - class SleepTabletRequest implements ISleepTabletRequest { - - /** - * Constructs a new SleepTabletRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISleepTabletRequest); - - /** SleepTabletRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** SleepTabletRequest duration. */ - public duration?: (vttime.IDuration|null); - - /** - * Creates a new SleepTabletRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepTabletRequest instance - */ - public static create(properties?: vtctldata.ISleepTabletRequest): vtctldata.SleepTabletRequest; - - /** - * Encodes the specified SleepTabletRequest message. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. - * @param message SleepTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SleepTabletRequest message, length delimited. Does not implicitly {@link vtctldata.SleepTabletRequest.verify|verify} messages. - * @param message SleepTabletRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISleepTabletRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepTabletRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletRequest; - - /** - * Decodes a SleepTabletRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SleepTabletRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletRequest; - - /** - * Verifies a SleepTabletRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SleepTabletRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SleepTabletRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletRequest; - - /** - * Creates a plain object from a SleepTabletRequest message. Also converts values to other types if specified. - * @param message SleepTabletRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SleepTabletRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SleepTabletRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SleepTabletRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SleepTabletResponse. */ - interface ISleepTabletResponse { - } - - /** Represents a SleepTabletResponse. */ - class SleepTabletResponse implements ISleepTabletResponse { - - /** - * Constructs a new SleepTabletResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISleepTabletResponse); - - /** - * Creates a new SleepTabletResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepTabletResponse instance - */ - public static create(properties?: vtctldata.ISleepTabletResponse): vtctldata.SleepTabletResponse; - - /** - * Encodes the specified SleepTabletResponse message. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. - * @param message SleepTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SleepTabletResponse message, length delimited. Does not implicitly {@link vtctldata.SleepTabletResponse.verify|verify} messages. - * @param message SleepTabletResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISleepTabletResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepTabletResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SleepTabletResponse; - - /** - * Decodes a SleepTabletResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SleepTabletResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SleepTabletResponse; - - /** - * Verifies a SleepTabletResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SleepTabletResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SleepTabletResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SleepTabletResponse; - - /** - * Creates a plain object from a SleepTabletResponse message. Also converts values to other types if specified. - * @param message SleepTabletResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SleepTabletResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SleepTabletResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SleepTabletResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardAddRequest. */ - interface ISourceShardAddRequest { - - /** SourceShardAddRequest keyspace */ - keyspace?: (string|null); - - /** SourceShardAddRequest shard */ - shard?: (string|null); - - /** SourceShardAddRequest uid */ - uid?: (number|null); - - /** SourceShardAddRequest source_keyspace */ - source_keyspace?: (string|null); - - /** SourceShardAddRequest source_shard */ - source_shard?: (string|null); - - /** SourceShardAddRequest key_range */ - key_range?: (topodata.IKeyRange|null); - - /** SourceShardAddRequest tables */ - tables?: (string[]|null); - } - - /** Represents a SourceShardAddRequest. */ - class SourceShardAddRequest implements ISourceShardAddRequest { - - /** - * Constructs a new SourceShardAddRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardAddRequest); - - /** SourceShardAddRequest keyspace. */ - public keyspace: string; - - /** SourceShardAddRequest shard. */ - public shard: string; - - /** SourceShardAddRequest uid. */ - public uid: number; - - /** SourceShardAddRequest source_keyspace. */ - public source_keyspace: string; - - /** SourceShardAddRequest source_shard. */ - public source_shard: string; - - /** SourceShardAddRequest key_range. */ - public key_range?: (topodata.IKeyRange|null); - - /** SourceShardAddRequest tables. */ - public tables: string[]; - - /** - * Creates a new SourceShardAddRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardAddRequest instance - */ - public static create(properties?: vtctldata.ISourceShardAddRequest): vtctldata.SourceShardAddRequest; - - /** - * Encodes the specified SourceShardAddRequest message. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. - * @param message SourceShardAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardAddRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddRequest.verify|verify} messages. - * @param message SourceShardAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddRequest; - - /** - * Decodes a SourceShardAddRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardAddRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddRequest; - - /** - * Verifies a SourceShardAddRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardAddRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardAddRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddRequest; - - /** - * Creates a plain object from a SourceShardAddRequest message. Also converts values to other types if specified. - * @param message SourceShardAddRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardAddRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardAddRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardAddResponse. */ - interface ISourceShardAddResponse { - - /** SourceShardAddResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SourceShardAddResponse. */ - class SourceShardAddResponse implements ISourceShardAddResponse { - - /** - * Constructs a new SourceShardAddResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardAddResponse); - - /** SourceShardAddResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SourceShardAddResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardAddResponse instance - */ - public static create(properties?: vtctldata.ISourceShardAddResponse): vtctldata.SourceShardAddResponse; - - /** - * Encodes the specified SourceShardAddResponse message. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. - * @param message SourceShardAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardAddResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardAddResponse.verify|verify} messages. - * @param message SourceShardAddResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardAddResponse; - - /** - * Decodes a SourceShardAddResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardAddResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardAddResponse; - - /** - * Verifies a SourceShardAddResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardAddResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardAddResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardAddResponse; - - /** - * Creates a plain object from a SourceShardAddResponse message. Also converts values to other types if specified. - * @param message SourceShardAddResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardAddResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardAddResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardDeleteRequest. */ - interface ISourceShardDeleteRequest { - - /** SourceShardDeleteRequest keyspace */ - keyspace?: (string|null); - - /** SourceShardDeleteRequest shard */ - shard?: (string|null); - - /** SourceShardDeleteRequest uid */ - uid?: (number|null); - } - - /** Represents a SourceShardDeleteRequest. */ - class SourceShardDeleteRequest implements ISourceShardDeleteRequest { - - /** - * Constructs a new SourceShardDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardDeleteRequest); - - /** SourceShardDeleteRequest keyspace. */ - public keyspace: string; - - /** SourceShardDeleteRequest shard. */ - public shard: string; - - /** SourceShardDeleteRequest uid. */ - public uid: number; - - /** - * Creates a new SourceShardDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardDeleteRequest instance - */ - public static create(properties?: vtctldata.ISourceShardDeleteRequest): vtctldata.SourceShardDeleteRequest; - - /** - * Encodes the specified SourceShardDeleteRequest message. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. - * @param message SourceShardDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteRequest.verify|verify} messages. - * @param message SourceShardDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteRequest; - - /** - * Decodes a SourceShardDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteRequest; - - /** - * Verifies a SourceShardDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteRequest; - - /** - * Creates a plain object from a SourceShardDeleteRequest message. Also converts values to other types if specified. - * @param message SourceShardDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a SourceShardDeleteResponse. */ - interface ISourceShardDeleteResponse { - - /** SourceShardDeleteResponse shard */ - shard?: (topodata.IShard|null); - } - - /** Represents a SourceShardDeleteResponse. */ - class SourceShardDeleteResponse implements ISourceShardDeleteResponse { - - /** - * Constructs a new SourceShardDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ISourceShardDeleteResponse); - - /** SourceShardDeleteResponse shard. */ - public shard?: (topodata.IShard|null); - - /** - * Creates a new SourceShardDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceShardDeleteResponse instance - */ - public static create(properties?: vtctldata.ISourceShardDeleteResponse): vtctldata.SourceShardDeleteResponse; - - /** - * Encodes the specified SourceShardDeleteResponse message. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. - * @param message SourceShardDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SourceShardDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.SourceShardDeleteResponse.verify|verify} messages. - * @param message SourceShardDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ISourceShardDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceShardDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.SourceShardDeleteResponse; - - /** - * Decodes a SourceShardDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SourceShardDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.SourceShardDeleteResponse; - - /** - * Verifies a SourceShardDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SourceShardDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SourceShardDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.SourceShardDeleteResponse; - - /** - * Creates a plain object from a SourceShardDeleteResponse message. Also converts values to other types if specified. - * @param message SourceShardDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.SourceShardDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SourceShardDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SourceShardDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartReplicationRequest. */ - interface IStartReplicationRequest { - - /** StartReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StartReplicationRequest. */ - class StartReplicationRequest implements IStartReplicationRequest { - - /** - * Constructs a new StartReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStartReplicationRequest); - - /** StartReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StartReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StartReplicationRequest instance - */ - public static create(properties?: vtctldata.IStartReplicationRequest): vtctldata.StartReplicationRequest; - - /** - * Encodes the specified StartReplicationRequest message. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StartReplicationRequest.verify|verify} messages. - * @param message StartReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStartReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationRequest; - - /** - * Decodes a StartReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationRequest; - - /** - * Verifies a StartReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationRequest; - - /** - * Creates a plain object from a StartReplicationRequest message. Also converts values to other types if specified. - * @param message StartReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StartReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StartReplicationResponse. */ - interface IStartReplicationResponse { - } - - /** Represents a StartReplicationResponse. */ - class StartReplicationResponse implements IStartReplicationResponse { - - /** - * Constructs a new StartReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStartReplicationResponse); - - /** - * Creates a new StartReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StartReplicationResponse instance - */ - public static create(properties?: vtctldata.IStartReplicationResponse): vtctldata.StartReplicationResponse; - - /** - * Encodes the specified StartReplicationResponse message. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StartReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StartReplicationResponse.verify|verify} messages. - * @param message StartReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStartReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StartReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StartReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StartReplicationResponse; - - /** - * Decodes a StartReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StartReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StartReplicationResponse; - - /** - * Verifies a StartReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StartReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StartReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StartReplicationResponse; - - /** - * Creates a plain object from a StartReplicationResponse message. Also converts values to other types if specified. - * @param message StartReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StartReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StartReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StartReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationRequest. */ - interface IStopReplicationRequest { - - /** StopReplicationRequest tablet_alias */ - tablet_alias?: (topodata.ITabletAlias|null); - } - - /** Represents a StopReplicationRequest. */ - class StopReplicationRequest implements IStopReplicationRequest { - - /** - * Constructs a new StopReplicationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStopReplicationRequest); - - /** StopReplicationRequest tablet_alias. */ - public tablet_alias?: (topodata.ITabletAlias|null); - - /** - * Creates a new StopReplicationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationRequest instance - */ - public static create(properties?: vtctldata.IStopReplicationRequest): vtctldata.StopReplicationRequest; - - /** - * Encodes the specified StopReplicationRequest message. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationRequest message, length delimited. Does not implicitly {@link vtctldata.StopReplicationRequest.verify|verify} messages. - * @param message StopReplicationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStopReplicationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationRequest; - - /** - * Decodes a StopReplicationRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationRequest; - - /** - * Verifies a StopReplicationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationRequest; - - /** - * Creates a plain object from a StopReplicationRequest message. Also converts values to other types if specified. - * @param message StopReplicationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StopReplicationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a StopReplicationResponse. */ - interface IStopReplicationResponse { - } - - /** Represents a StopReplicationResponse. */ - class StopReplicationResponse implements IStopReplicationResponse { - - /** - * Constructs a new StopReplicationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IStopReplicationResponse); - - /** - * Creates a new StopReplicationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StopReplicationResponse instance - */ - public static create(properties?: vtctldata.IStopReplicationResponse): vtctldata.StopReplicationResponse; - - /** - * Encodes the specified StopReplicationResponse message. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopReplicationResponse message, length delimited. Does not implicitly {@link vtctldata.StopReplicationResponse.verify|verify} messages. - * @param message StopReplicationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IStopReplicationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopReplicationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.StopReplicationResponse; - - /** - * Decodes a StopReplicationResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopReplicationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.StopReplicationResponse; - - /** - * Verifies a StopReplicationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopReplicationResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopReplicationResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.StopReplicationResponse; - - /** - * Creates a plain object from a StopReplicationResponse message. Also converts values to other types if specified. - * @param message StopReplicationResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.StopReplicationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopReplicationResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StopReplicationResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TabletExternallyReparentedRequest. */ - interface ITabletExternallyReparentedRequest { - - /** TabletExternallyReparentedRequest tablet */ - tablet?: (topodata.ITabletAlias|null); - } - - /** Represents a TabletExternallyReparentedRequest. */ - class TabletExternallyReparentedRequest implements ITabletExternallyReparentedRequest { - - /** - * Constructs a new TabletExternallyReparentedRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITabletExternallyReparentedRequest); - - /** TabletExternallyReparentedRequest tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** - * Creates a new TabletExternallyReparentedRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletExternallyReparentedRequest instance - */ - public static create(properties?: vtctldata.ITabletExternallyReparentedRequest): vtctldata.TabletExternallyReparentedRequest; - - /** - * Encodes the specified TabletExternallyReparentedRequest message. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. - * @param message TabletExternallyReparentedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletExternallyReparentedRequest message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedRequest.verify|verify} messages. - * @param message TabletExternallyReparentedRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletExternallyReparentedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedRequest; - - /** - * Decodes a TabletExternallyReparentedRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedRequest; - - /** - * Verifies a TabletExternallyReparentedRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletExternallyReparentedRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletExternallyReparentedRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedRequest; - - /** - * Creates a plain object from a TabletExternallyReparentedRequest message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TabletExternallyReparentedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletExternallyReparentedRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletExternallyReparentedRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TabletExternallyReparentedResponse. */ - interface ITabletExternallyReparentedResponse { - - /** TabletExternallyReparentedResponse keyspace */ - keyspace?: (string|null); - - /** TabletExternallyReparentedResponse shard */ - shard?: (string|null); - - /** TabletExternallyReparentedResponse new_primary */ - new_primary?: (topodata.ITabletAlias|null); - - /** TabletExternallyReparentedResponse old_primary */ - old_primary?: (topodata.ITabletAlias|null); - } - - /** Represents a TabletExternallyReparentedResponse. */ - class TabletExternallyReparentedResponse implements ITabletExternallyReparentedResponse { - - /** - * Constructs a new TabletExternallyReparentedResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.ITabletExternallyReparentedResponse); - - /** TabletExternallyReparentedResponse keyspace. */ - public keyspace: string; - - /** TabletExternallyReparentedResponse shard. */ - public shard: string; - - /** TabletExternallyReparentedResponse new_primary. */ - public new_primary?: (topodata.ITabletAlias|null); - - /** TabletExternallyReparentedResponse old_primary. */ - public old_primary?: (topodata.ITabletAlias|null); - - /** - * Creates a new TabletExternallyReparentedResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletExternallyReparentedResponse instance - */ - public static create(properties?: vtctldata.ITabletExternallyReparentedResponse): vtctldata.TabletExternallyReparentedResponse; - - /** - * Encodes the specified TabletExternallyReparentedResponse message. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. - * @param message TabletExternallyReparentedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletExternallyReparentedResponse message, length delimited. Does not implicitly {@link vtctldata.TabletExternallyReparentedResponse.verify|verify} messages. - * @param message TabletExternallyReparentedResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.ITabletExternallyReparentedResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletExternallyReparentedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.TabletExternallyReparentedResponse; - - /** - * Decodes a TabletExternallyReparentedResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletExternallyReparentedResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.TabletExternallyReparentedResponse; - - /** - * Verifies a TabletExternallyReparentedResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletExternallyReparentedResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletExternallyReparentedResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.TabletExternallyReparentedResponse; - - /** - * Creates a plain object from a TabletExternallyReparentedResponse message. Also converts values to other types if specified. - * @param message TabletExternallyReparentedResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.TabletExternallyReparentedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletExternallyReparentedResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletExternallyReparentedResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellInfoRequest. */ - interface IUpdateCellInfoRequest { - - /** UpdateCellInfoRequest name */ - name?: (string|null); - - /** UpdateCellInfoRequest cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an UpdateCellInfoRequest. */ - class UpdateCellInfoRequest implements IUpdateCellInfoRequest { - - /** - * Constructs a new UpdateCellInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellInfoRequest); - - /** UpdateCellInfoRequest name. */ - public name: string; - - /** UpdateCellInfoRequest cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new UpdateCellInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellInfoRequest instance - */ - public static create(properties?: vtctldata.IUpdateCellInfoRequest): vtctldata.UpdateCellInfoRequest; - - /** - * Encodes the specified UpdateCellInfoRequest message. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. - * @param message UpdateCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoRequest.verify|verify} messages. - * @param message UpdateCellInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoRequest; - - /** - * Decodes an UpdateCellInfoRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoRequest; - - /** - * Verifies an UpdateCellInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellInfoRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoRequest; - - /** - * Creates a plain object from an UpdateCellInfoRequest message. Also converts values to other types if specified. - * @param message UpdateCellInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellInfoResponse. */ - interface IUpdateCellInfoResponse { - - /** UpdateCellInfoResponse name */ - name?: (string|null); - - /** UpdateCellInfoResponse cell_info */ - cell_info?: (topodata.ICellInfo|null); - } - - /** Represents an UpdateCellInfoResponse. */ - class UpdateCellInfoResponse implements IUpdateCellInfoResponse { - - /** - * Constructs a new UpdateCellInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellInfoResponse); - - /** UpdateCellInfoResponse name. */ - public name: string; - - /** UpdateCellInfoResponse cell_info. */ - public cell_info?: (topodata.ICellInfo|null); - - /** - * Creates a new UpdateCellInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellInfoResponse instance - */ - public static create(properties?: vtctldata.IUpdateCellInfoResponse): vtctldata.UpdateCellInfoResponse; - - /** - * Encodes the specified UpdateCellInfoResponse message. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. - * @param message UpdateCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellInfoResponse.verify|verify} messages. - * @param message UpdateCellInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellInfoResponse; - - /** - * Decodes an UpdateCellInfoResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellInfoResponse; - - /** - * Verifies an UpdateCellInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellInfoResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellInfoResponse; - - /** - * Creates a plain object from an UpdateCellInfoResponse message. Also converts values to other types if specified. - * @param message UpdateCellInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellsAliasRequest. */ - interface IUpdateCellsAliasRequest { - - /** UpdateCellsAliasRequest name */ - name?: (string|null); - - /** UpdateCellsAliasRequest cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); - } - - /** Represents an UpdateCellsAliasRequest. */ - class UpdateCellsAliasRequest implements IUpdateCellsAliasRequest { - - /** - * Constructs a new UpdateCellsAliasRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellsAliasRequest); - - /** UpdateCellsAliasRequest name. */ - public name: string; - - /** UpdateCellsAliasRequest cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); - - /** - * Creates a new UpdateCellsAliasRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellsAliasRequest instance - */ - public static create(properties?: vtctldata.IUpdateCellsAliasRequest): vtctldata.UpdateCellsAliasRequest; - - /** - * Encodes the specified UpdateCellsAliasRequest message. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. - * @param message UpdateCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasRequest.verify|verify} messages. - * @param message UpdateCellsAliasRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellsAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasRequest; - - /** - * Decodes an UpdateCellsAliasRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasRequest; - - /** - * Verifies an UpdateCellsAliasRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellsAliasRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellsAliasRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasRequest; - - /** - * Creates a plain object from an UpdateCellsAliasRequest message. Also converts values to other types if specified. - * @param message UpdateCellsAliasRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellsAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellsAliasRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellsAliasRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateCellsAliasResponse. */ - interface IUpdateCellsAliasResponse { - - /** UpdateCellsAliasResponse name */ - name?: (string|null); - - /** UpdateCellsAliasResponse cells_alias */ - cells_alias?: (topodata.ICellsAlias|null); - } - - /** Represents an UpdateCellsAliasResponse. */ - class UpdateCellsAliasResponse implements IUpdateCellsAliasResponse { - - /** - * Constructs a new UpdateCellsAliasResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IUpdateCellsAliasResponse); - - /** UpdateCellsAliasResponse name. */ - public name: string; - - /** UpdateCellsAliasResponse cells_alias. */ - public cells_alias?: (topodata.ICellsAlias|null); - - /** - * Creates a new UpdateCellsAliasResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateCellsAliasResponse instance - */ - public static create(properties?: vtctldata.IUpdateCellsAliasResponse): vtctldata.UpdateCellsAliasResponse; - - /** - * Encodes the specified UpdateCellsAliasResponse message. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. - * @param message UpdateCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.UpdateCellsAliasResponse.verify|verify} messages. - * @param message UpdateCellsAliasResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IUpdateCellsAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.UpdateCellsAliasResponse; - - /** - * Decodes an UpdateCellsAliasResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateCellsAliasResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.UpdateCellsAliasResponse; - - /** - * Verifies an UpdateCellsAliasResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateCellsAliasResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateCellsAliasResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.UpdateCellsAliasResponse; - - /** - * Creates a plain object from an UpdateCellsAliasResponse message. Also converts values to other types if specified. - * @param message UpdateCellsAliasResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.UpdateCellsAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateCellsAliasResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateCellsAliasResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateRequest. */ - interface IValidateRequest { - - /** ValidateRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateRequest. */ - class ValidateRequest implements IValidateRequest { - - /** - * Constructs a new ValidateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateRequest); - - /** ValidateRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateRequest instance - */ - public static create(properties?: vtctldata.IValidateRequest): vtctldata.ValidateRequest; - - /** - * Encodes the specified ValidateRequest message. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. - * @param message ValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateRequest.verify|verify} messages. - * @param message ValidateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateRequest; - - /** - * Decodes a ValidateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateRequest; - - /** - * Verifies a ValidateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateRequest; - - /** - * Creates a plain object from a ValidateRequest message. Also converts values to other types if specified. - * @param message ValidateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateResponse. */ - interface IValidateResponse { - - /** ValidateResponse results */ - results?: (string[]|null); - - /** ValidateResponse results_by_keyspace */ - results_by_keyspace?: ({ [k: string]: vtctldata.IValidateKeyspaceResponse }|null); - } - - /** Represents a ValidateResponse. */ - class ValidateResponse implements IValidateResponse { - - /** - * Constructs a new ValidateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateResponse); - - /** ValidateResponse results. */ - public results: string[]; - - /** ValidateResponse results_by_keyspace. */ - public results_by_keyspace: { [k: string]: vtctldata.IValidateKeyspaceResponse }; - - /** - * Creates a new ValidateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateResponse instance - */ - public static create(properties?: vtctldata.IValidateResponse): vtctldata.ValidateResponse; - - /** - * Encodes the specified ValidateResponse message. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. - * @param message ValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateResponse.verify|verify} messages. - * @param message ValidateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateResponse; - - /** - * Decodes a ValidateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateResponse; - - /** - * Verifies a ValidateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateResponse; - - /** - * Creates a plain object from a ValidateResponse message. Also converts values to other types if specified. - * @param message ValidateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateKeyspaceRequest. */ - interface IValidateKeyspaceRequest { - - /** ValidateKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ValidateKeyspaceRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateKeyspaceRequest. */ - class ValidateKeyspaceRequest implements IValidateKeyspaceRequest { - - /** - * Constructs a new ValidateKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateKeyspaceRequest); - - /** ValidateKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ValidateKeyspaceRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateKeyspaceRequest): vtctldata.ValidateKeyspaceRequest; - - /** - * Encodes the specified ValidateKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. - * @param message ValidateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceRequest.verify|verify} messages. - * @param message ValidateKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceRequest; - - /** - * Decodes a ValidateKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceRequest; - - /** - * Verifies a ValidateKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceRequest; - - /** - * Creates a plain object from a ValidateKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateKeyspaceResponse. */ - interface IValidateKeyspaceResponse { - - /** ValidateKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateKeyspaceResponse. */ - class ValidateKeyspaceResponse implements IValidateKeyspaceResponse { - - /** - * Constructs a new ValidateKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateKeyspaceResponse); - - /** ValidateKeyspaceResponse results. */ - public results: string[]; - - /** ValidateKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateKeyspaceResponse): vtctldata.ValidateKeyspaceResponse; - - /** - * Encodes the specified ValidateKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. - * @param message ValidateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateKeyspaceResponse.verify|verify} messages. - * @param message ValidateKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateKeyspaceResponse; - - /** - * Decodes a ValidateKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateKeyspaceResponse; - - /** - * Verifies a ValidateKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateKeyspaceResponse; - - /** - * Creates a plain object from a ValidateKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateSchemaKeyspaceRequest. */ - interface IValidateSchemaKeyspaceRequest { - - /** ValidateSchemaKeyspaceRequest keyspace */ - keyspace?: (string|null); - - /** ValidateSchemaKeyspaceRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** ValidateSchemaKeyspaceRequest include_views */ - include_views?: (boolean|null); - - /** ValidateSchemaKeyspaceRequest skip_no_primary */ - skip_no_primary?: (boolean|null); - - /** ValidateSchemaKeyspaceRequest include_vschema */ - include_vschema?: (boolean|null); - } - - /** Represents a ValidateSchemaKeyspaceRequest. */ - class ValidateSchemaKeyspaceRequest implements IValidateSchemaKeyspaceRequest { - - /** - * Constructs a new ValidateSchemaKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateSchemaKeyspaceRequest); - - /** ValidateSchemaKeyspaceRequest keyspace. */ - public keyspace: string; - - /** ValidateSchemaKeyspaceRequest exclude_tables. */ - public exclude_tables: string[]; - - /** ValidateSchemaKeyspaceRequest include_views. */ - public include_views: boolean; - - /** ValidateSchemaKeyspaceRequest skip_no_primary. */ - public skip_no_primary: boolean; - - /** ValidateSchemaKeyspaceRequest include_vschema. */ - public include_vschema: boolean; - - /** - * Creates a new ValidateSchemaKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceRequest): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Encodes the specified ValidateSchemaKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. - * @param message ValidateSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateSchemaKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceRequest.verify|verify} messages. - * @param message ValidateSchemaKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Decodes a ValidateSchemaKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Verifies a ValidateSchemaKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateSchemaKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateSchemaKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceRequest; - - /** - * Creates a plain object from a ValidateSchemaKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateSchemaKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateSchemaKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateSchemaKeyspaceResponse. */ - interface IValidateSchemaKeyspaceResponse { - - /** ValidateSchemaKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateSchemaKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateSchemaKeyspaceResponse. */ - class ValidateSchemaKeyspaceResponse implements IValidateSchemaKeyspaceResponse { - - /** - * Constructs a new ValidateSchemaKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateSchemaKeyspaceResponse); - - /** ValidateSchemaKeyspaceResponse results. */ - public results: string[]; - - /** ValidateSchemaKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateSchemaKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateSchemaKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateSchemaKeyspaceResponse): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Encodes the specified ValidateSchemaKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. - * @param message ValidateSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateSchemaKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateSchemaKeyspaceResponse.verify|verify} messages. - * @param message ValidateSchemaKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateSchemaKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Decodes a ValidateSchemaKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateSchemaKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Verifies a ValidateSchemaKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateSchemaKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateSchemaKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateSchemaKeyspaceResponse; - - /** - * Creates a plain object from a ValidateSchemaKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateSchemaKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateSchemaKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateSchemaKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateSchemaKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateShardRequest. */ - interface IValidateShardRequest { - - /** ValidateShardRequest keyspace */ - keyspace?: (string|null); - - /** ValidateShardRequest shard */ - shard?: (string|null); - - /** ValidateShardRequest ping_tablets */ - ping_tablets?: (boolean|null); - } - - /** Represents a ValidateShardRequest. */ - class ValidateShardRequest implements IValidateShardRequest { - - /** - * Constructs a new ValidateShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateShardRequest); - - /** ValidateShardRequest keyspace. */ - public keyspace: string; - - /** ValidateShardRequest shard. */ - public shard: string; - - /** ValidateShardRequest ping_tablets. */ - public ping_tablets: boolean; - - /** - * Creates a new ValidateShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateShardRequest instance - */ - public static create(properties?: vtctldata.IValidateShardRequest): vtctldata.ValidateShardRequest; - - /** - * Encodes the specified ValidateShardRequest message. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. - * @param message ValidateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateShardRequest.verify|verify} messages. - * @param message ValidateShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardRequest; - - /** - * Decodes a ValidateShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardRequest; - - /** - * Verifies a ValidateShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardRequest; - - /** - * Creates a plain object from a ValidateShardRequest message. Also converts values to other types if specified. - * @param message ValidateShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateShardResponse. */ - interface IValidateShardResponse { - - /** ValidateShardResponse results */ - results?: (string[]|null); - } - - /** Represents a ValidateShardResponse. */ - class ValidateShardResponse implements IValidateShardResponse { - - /** - * Constructs a new ValidateShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateShardResponse); - - /** ValidateShardResponse results. */ - public results: string[]; - - /** - * Creates a new ValidateShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateShardResponse instance - */ - public static create(properties?: vtctldata.IValidateShardResponse): vtctldata.ValidateShardResponse; - - /** - * Encodes the specified ValidateShardResponse message. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. - * @param message ValidateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateShardResponse.verify|verify} messages. - * @param message ValidateShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateShardResponse; - - /** - * Decodes a ValidateShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateShardResponse; - - /** - * Verifies a ValidateShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateShardResponse; - - /** - * Creates a plain object from a ValidateShardResponse message. Also converts values to other types if specified. - * @param message ValidateShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionKeyspaceRequest. */ - interface IValidateVersionKeyspaceRequest { - - /** ValidateVersionKeyspaceRequest keyspace */ - keyspace?: (string|null); - } - - /** Represents a ValidateVersionKeyspaceRequest. */ - class ValidateVersionKeyspaceRequest implements IValidateVersionKeyspaceRequest { - - /** - * Constructs a new ValidateVersionKeyspaceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionKeyspaceRequest); - - /** ValidateVersionKeyspaceRequest keyspace. */ - public keyspace: string; - - /** - * Creates a new ValidateVersionKeyspaceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceRequest instance - */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceRequest): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Encodes the specified ValidateVersionKeyspaceRequest message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. - * @param message ValidateVersionKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionKeyspaceRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceRequest.verify|verify} messages. - * @param message ValidateVersionKeyspaceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Decodes a ValidateVersionKeyspaceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Verifies a ValidateVersionKeyspaceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionKeyspaceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionKeyspaceRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceRequest; - - /** - * Creates a plain object from a ValidateVersionKeyspaceRequest message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionKeyspaceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionKeyspaceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionKeyspaceResponse. */ - interface IValidateVersionKeyspaceResponse { - - /** ValidateVersionKeyspaceResponse results */ - results?: (string[]|null); - - /** ValidateVersionKeyspaceResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateVersionKeyspaceResponse. */ - class ValidateVersionKeyspaceResponse implements IValidateVersionKeyspaceResponse { - - /** - * Constructs a new ValidateVersionKeyspaceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionKeyspaceResponse); - - /** ValidateVersionKeyspaceResponse results. */ - public results: string[]; - - /** ValidateVersionKeyspaceResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateVersionKeyspaceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionKeyspaceResponse instance - */ - public static create(properties?: vtctldata.IValidateVersionKeyspaceResponse): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Encodes the specified ValidateVersionKeyspaceResponse message. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. - * @param message ValidateVersionKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionKeyspaceResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionKeyspaceResponse.verify|verify} messages. - * @param message ValidateVersionKeyspaceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionKeyspaceResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Decodes a ValidateVersionKeyspaceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionKeyspaceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Verifies a ValidateVersionKeyspaceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionKeyspaceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionKeyspaceResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionKeyspaceResponse; - - /** - * Creates a plain object from a ValidateVersionKeyspaceResponse message. Also converts values to other types if specified. - * @param message ValidateVersionKeyspaceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionKeyspaceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionKeyspaceResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionKeyspaceResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionShardRequest. */ - interface IValidateVersionShardRequest { - - /** ValidateVersionShardRequest keyspace */ - keyspace?: (string|null); - - /** ValidateVersionShardRequest shard */ - shard?: (string|null); - } - - /** Represents a ValidateVersionShardRequest. */ - class ValidateVersionShardRequest implements IValidateVersionShardRequest { - - /** - * Constructs a new ValidateVersionShardRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionShardRequest); - - /** ValidateVersionShardRequest keyspace. */ - public keyspace: string; - - /** ValidateVersionShardRequest shard. */ - public shard: string; - - /** - * Creates a new ValidateVersionShardRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionShardRequest instance - */ - public static create(properties?: vtctldata.IValidateVersionShardRequest): vtctldata.ValidateVersionShardRequest; - - /** - * Encodes the specified ValidateVersionShardRequest message. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. - * @param message ValidateVersionShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionShardRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardRequest.verify|verify} messages. - * @param message ValidateVersionShardRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionShardRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardRequest; - - /** - * Decodes a ValidateVersionShardRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardRequest; - - /** - * Verifies a ValidateVersionShardRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionShardRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionShardRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardRequest; - - /** - * Creates a plain object from a ValidateVersionShardRequest message. Also converts values to other types if specified. - * @param message ValidateVersionShardRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionShardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionShardRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionShardRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVersionShardResponse. */ - interface IValidateVersionShardResponse { - - /** ValidateVersionShardResponse results */ - results?: (string[]|null); - } - - /** Represents a ValidateVersionShardResponse. */ - class ValidateVersionShardResponse implements IValidateVersionShardResponse { - - /** - * Constructs a new ValidateVersionShardResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVersionShardResponse); - - /** ValidateVersionShardResponse results. */ - public results: string[]; - - /** - * Creates a new ValidateVersionShardResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVersionShardResponse instance - */ - public static create(properties?: vtctldata.IValidateVersionShardResponse): vtctldata.ValidateVersionShardResponse; - - /** - * Encodes the specified ValidateVersionShardResponse message. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. - * @param message ValidateVersionShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVersionShardResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVersionShardResponse.verify|verify} messages. - * @param message ValidateVersionShardResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVersionShardResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVersionShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVersionShardResponse; - - /** - * Decodes a ValidateVersionShardResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVersionShardResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVersionShardResponse; - - /** - * Verifies a ValidateVersionShardResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVersionShardResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVersionShardResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVersionShardResponse; - - /** - * Creates a plain object from a ValidateVersionShardResponse message. Also converts values to other types if specified. - * @param message ValidateVersionShardResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVersionShardResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVersionShardResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVersionShardResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVSchemaRequest. */ - interface IValidateVSchemaRequest { - - /** ValidateVSchemaRequest keyspace */ - keyspace?: (string|null); - - /** ValidateVSchemaRequest shards */ - shards?: (string[]|null); - - /** ValidateVSchemaRequest exclude_tables */ - exclude_tables?: (string[]|null); - - /** ValidateVSchemaRequest include_views */ - include_views?: (boolean|null); - } - - /** Represents a ValidateVSchemaRequest. */ - class ValidateVSchemaRequest implements IValidateVSchemaRequest { - - /** - * Constructs a new ValidateVSchemaRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVSchemaRequest); - - /** ValidateVSchemaRequest keyspace. */ - public keyspace: string; - - /** ValidateVSchemaRequest shards. */ - public shards: string[]; - - /** ValidateVSchemaRequest exclude_tables. */ - public exclude_tables: string[]; - - /** ValidateVSchemaRequest include_views. */ - public include_views: boolean; - - /** - * Creates a new ValidateVSchemaRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVSchemaRequest instance - */ - public static create(properties?: vtctldata.IValidateVSchemaRequest): vtctldata.ValidateVSchemaRequest; - - /** - * Encodes the specified ValidateVSchemaRequest message. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. - * @param message ValidateVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaRequest.verify|verify} messages. - * @param message ValidateVSchemaRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaRequest; - - /** - * Decodes a ValidateVSchemaRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaRequest; - - /** - * Verifies a ValidateVSchemaRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVSchemaRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVSchemaRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaRequest; - - /** - * Creates a plain object from a ValidateVSchemaRequest message. Also converts values to other types if specified. - * @param message ValidateVSchemaRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVSchemaRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVSchemaRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ValidateVSchemaResponse. */ - interface IValidateVSchemaResponse { - - /** ValidateVSchemaResponse results */ - results?: (string[]|null); - - /** ValidateVSchemaResponse results_by_shard */ - results_by_shard?: ({ [k: string]: vtctldata.IValidateShardResponse }|null); - } - - /** Represents a ValidateVSchemaResponse. */ - class ValidateVSchemaResponse implements IValidateVSchemaResponse { - - /** - * Constructs a new ValidateVSchemaResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IValidateVSchemaResponse); - - /** ValidateVSchemaResponse results. */ - public results: string[]; - - /** ValidateVSchemaResponse results_by_shard. */ - public results_by_shard: { [k: string]: vtctldata.IValidateShardResponse }; - - /** - * Creates a new ValidateVSchemaResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidateVSchemaResponse instance - */ - public static create(properties?: vtctldata.IValidateVSchemaResponse): vtctldata.ValidateVSchemaResponse; - - /** - * Encodes the specified ValidateVSchemaResponse message. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. - * @param message ValidateVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidateVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ValidateVSchemaResponse.verify|verify} messages. - * @param message ValidateVSchemaResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IValidateVSchemaResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidateVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.ValidateVSchemaResponse; - - /** - * Decodes a ValidateVSchemaResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidateVSchemaResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.ValidateVSchemaResponse; - - /** - * Verifies a ValidateVSchemaResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidateVSchemaResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidateVSchemaResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.ValidateVSchemaResponse; - - /** - * Creates a plain object from a ValidateVSchemaResponse message. Also converts values to other types if specified. - * @param message ValidateVSchemaResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.ValidateVSchemaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidateVSchemaResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidateVSchemaResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffCreateRequest. */ - interface IVDiffCreateRequest { - - /** VDiffCreateRequest workflow */ - workflow?: (string|null); - - /** VDiffCreateRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffCreateRequest uuid */ - uuid?: (string|null); - - /** VDiffCreateRequest source_cells */ - source_cells?: (string[]|null); - - /** VDiffCreateRequest target_cells */ - target_cells?: (string[]|null); - - /** VDiffCreateRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** VDiffCreateRequest tablet_selection_preference */ - tablet_selection_preference?: (tabletmanagerdata.TabletSelectionPreference|null); - - /** VDiffCreateRequest tables */ - tables?: (string[]|null); - - /** VDiffCreateRequest limit */ - limit?: (number|Long|null); - - /** VDiffCreateRequest filtered_replication_wait_time */ - filtered_replication_wait_time?: (vttime.IDuration|null); - - /** VDiffCreateRequest debug_query */ - debug_query?: (boolean|null); - - /** VDiffCreateRequest only_p_ks */ - only_p_ks?: (boolean|null); - - /** VDiffCreateRequest update_table_stats */ - update_table_stats?: (boolean|null); - - /** VDiffCreateRequest max_extra_rows_to_compare */ - max_extra_rows_to_compare?: (number|Long|null); - - /** VDiffCreateRequest wait */ - wait?: (boolean|null); - - /** VDiffCreateRequest wait_update_interval */ - wait_update_interval?: (vttime.IDuration|null); - - /** VDiffCreateRequest auto_retry */ - auto_retry?: (boolean|null); - - /** VDiffCreateRequest verbose */ - verbose?: (boolean|null); - - /** VDiffCreateRequest max_report_sample_rows */ - max_report_sample_rows?: (number|Long|null); - - /** VDiffCreateRequest max_diff_duration */ - max_diff_duration?: (vttime.IDuration|null); - - /** VDiffCreateRequest row_diff_column_truncate_at */ - row_diff_column_truncate_at?: (number|Long|null); - - /** VDiffCreateRequest auto_start */ - auto_start?: (boolean|null); - } - - /** Represents a VDiffCreateRequest. */ - class VDiffCreateRequest implements IVDiffCreateRequest { - - /** - * Constructs a new VDiffCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffCreateRequest); - - /** VDiffCreateRequest workflow. */ - public workflow: string; - - /** VDiffCreateRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffCreateRequest uuid. */ - public uuid: string; - - /** VDiffCreateRequest source_cells. */ - public source_cells: string[]; - - /** VDiffCreateRequest target_cells. */ - public target_cells: string[]; - - /** VDiffCreateRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** VDiffCreateRequest tablet_selection_preference. */ - public tablet_selection_preference: tabletmanagerdata.TabletSelectionPreference; - - /** VDiffCreateRequest tables. */ - public tables: string[]; - - /** VDiffCreateRequest limit. */ - public limit: (number|Long); - - /** VDiffCreateRequest filtered_replication_wait_time. */ - public filtered_replication_wait_time?: (vttime.IDuration|null); - - /** VDiffCreateRequest debug_query. */ - public debug_query: boolean; - - /** VDiffCreateRequest only_p_ks. */ - public only_p_ks: boolean; - - /** VDiffCreateRequest update_table_stats. */ - public update_table_stats: boolean; - - /** VDiffCreateRequest max_extra_rows_to_compare. */ - public max_extra_rows_to_compare: (number|Long); - - /** VDiffCreateRequest wait. */ - public wait: boolean; - - /** VDiffCreateRequest wait_update_interval. */ - public wait_update_interval?: (vttime.IDuration|null); - - /** VDiffCreateRequest auto_retry. */ - public auto_retry: boolean; - - /** VDiffCreateRequest verbose. */ - public verbose: boolean; - - /** VDiffCreateRequest max_report_sample_rows. */ - public max_report_sample_rows: (number|Long); - - /** VDiffCreateRequest max_diff_duration. */ - public max_diff_duration?: (vttime.IDuration|null); - - /** VDiffCreateRequest row_diff_column_truncate_at. */ - public row_diff_column_truncate_at: (number|Long); - - /** VDiffCreateRequest auto_start. */ - public auto_start?: (boolean|null); - - /** VDiffCreateRequest _auto_start. */ - public _auto_start?: "auto_start"; - - /** - * Creates a new VDiffCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffCreateRequest instance - */ - public static create(properties?: vtctldata.IVDiffCreateRequest): vtctldata.VDiffCreateRequest; - - /** - * Encodes the specified VDiffCreateRequest message. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. - * @param message VDiffCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffCreateRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateRequest.verify|verify} messages. - * @param message VDiffCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateRequest; - - /** - * Decodes a VDiffCreateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateRequest; - - /** - * Verifies a VDiffCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffCreateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffCreateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateRequest; - - /** - * Creates a plain object from a VDiffCreateRequest message. Also converts values to other types if specified. - * @param message VDiffCreateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffCreateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffCreateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffCreateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffCreateResponse. */ - interface IVDiffCreateResponse { - - /** VDiffCreateResponse UUID */ - UUID?: (string|null); - } - - /** Represents a VDiffCreateResponse. */ - class VDiffCreateResponse implements IVDiffCreateResponse { - - /** - * Constructs a new VDiffCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffCreateResponse); - - /** VDiffCreateResponse UUID. */ - public UUID: string; - - /** - * Creates a new VDiffCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffCreateResponse instance - */ - public static create(properties?: vtctldata.IVDiffCreateResponse): vtctldata.VDiffCreateResponse; - - /** - * Encodes the specified VDiffCreateResponse message. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. - * @param message VDiffCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffCreateResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffCreateResponse.verify|verify} messages. - * @param message VDiffCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffCreateResponse; - - /** - * Decodes a VDiffCreateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffCreateResponse; - - /** - * Verifies a VDiffCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffCreateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffCreateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffCreateResponse; - - /** - * Creates a plain object from a VDiffCreateResponse message. Also converts values to other types if specified. - * @param message VDiffCreateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffCreateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffCreateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffCreateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffDeleteRequest. */ - interface IVDiffDeleteRequest { - - /** VDiffDeleteRequest workflow */ - workflow?: (string|null); - - /** VDiffDeleteRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffDeleteRequest arg */ - arg?: (string|null); - } - - /** Represents a VDiffDeleteRequest. */ - class VDiffDeleteRequest implements IVDiffDeleteRequest { - - /** - * Constructs a new VDiffDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffDeleteRequest); - - /** VDiffDeleteRequest workflow. */ - public workflow: string; - - /** VDiffDeleteRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffDeleteRequest arg. */ - public arg: string; - - /** - * Creates a new VDiffDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffDeleteRequest instance - */ - public static create(properties?: vtctldata.IVDiffDeleteRequest): vtctldata.VDiffDeleteRequest; - - /** - * Encodes the specified VDiffDeleteRequest message. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. - * @param message VDiffDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteRequest.verify|verify} messages. - * @param message VDiffDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteRequest; - - /** - * Decodes a VDiffDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteRequest; - - /** - * Verifies a VDiffDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteRequest; - - /** - * Creates a plain object from a VDiffDeleteRequest message. Also converts values to other types if specified. - * @param message VDiffDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffDeleteResponse. */ - interface IVDiffDeleteResponse { - } - - /** Represents a VDiffDeleteResponse. */ - class VDiffDeleteResponse implements IVDiffDeleteResponse { - - /** - * Constructs a new VDiffDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffDeleteResponse); - - /** - * Creates a new VDiffDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffDeleteResponse instance - */ - public static create(properties?: vtctldata.IVDiffDeleteResponse): vtctldata.VDiffDeleteResponse; - - /** - * Encodes the specified VDiffDeleteResponse message. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. - * @param message VDiffDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffDeleteResponse.verify|verify} messages. - * @param message VDiffDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffDeleteResponse; - - /** - * Decodes a VDiffDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffDeleteResponse; - - /** - * Verifies a VDiffDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffDeleteResponse; - - /** - * Creates a plain object from a VDiffDeleteResponse message. Also converts values to other types if specified. - * @param message VDiffDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffResumeRequest. */ - interface IVDiffResumeRequest { - - /** VDiffResumeRequest workflow */ - workflow?: (string|null); - - /** VDiffResumeRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffResumeRequest uuid */ - uuid?: (string|null); - - /** VDiffResumeRequest target_shards */ - target_shards?: (string[]|null); - } - - /** Represents a VDiffResumeRequest. */ - class VDiffResumeRequest implements IVDiffResumeRequest { - - /** - * Constructs a new VDiffResumeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffResumeRequest); - - /** VDiffResumeRequest workflow. */ - public workflow: string; - - /** VDiffResumeRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffResumeRequest uuid. */ - public uuid: string; - - /** VDiffResumeRequest target_shards. */ - public target_shards: string[]; - - /** - * Creates a new VDiffResumeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffResumeRequest instance - */ - public static create(properties?: vtctldata.IVDiffResumeRequest): vtctldata.VDiffResumeRequest; - - /** - * Encodes the specified VDiffResumeRequest message. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. - * @param message VDiffResumeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffResumeRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeRequest.verify|verify} messages. - * @param message VDiffResumeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffResumeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffResumeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeRequest; - - /** - * Decodes a VDiffResumeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffResumeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeRequest; - - /** - * Verifies a VDiffResumeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffResumeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffResumeRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeRequest; - - /** - * Creates a plain object from a VDiffResumeRequest message. Also converts values to other types if specified. - * @param message VDiffResumeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffResumeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffResumeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffResumeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffResumeResponse. */ - interface IVDiffResumeResponse { - } - - /** Represents a VDiffResumeResponse. */ - class VDiffResumeResponse implements IVDiffResumeResponse { - - /** - * Constructs a new VDiffResumeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffResumeResponse); - - /** - * Creates a new VDiffResumeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffResumeResponse instance - */ - public static create(properties?: vtctldata.IVDiffResumeResponse): vtctldata.VDiffResumeResponse; - - /** - * Encodes the specified VDiffResumeResponse message. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. - * @param message VDiffResumeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffResumeResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffResumeResponse.verify|verify} messages. - * @param message VDiffResumeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffResumeResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffResumeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffResumeResponse; - - /** - * Decodes a VDiffResumeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffResumeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffResumeResponse; - - /** - * Verifies a VDiffResumeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffResumeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffResumeResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffResumeResponse; - - /** - * Creates a plain object from a VDiffResumeResponse message. Also converts values to other types if specified. - * @param message VDiffResumeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffResumeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffResumeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffResumeResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffShowRequest. */ - interface IVDiffShowRequest { - - /** VDiffShowRequest workflow */ - workflow?: (string|null); - - /** VDiffShowRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffShowRequest arg */ - arg?: (string|null); - } - - /** Represents a VDiffShowRequest. */ - class VDiffShowRequest implements IVDiffShowRequest { - - /** - * Constructs a new VDiffShowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffShowRequest); - - /** VDiffShowRequest workflow. */ - public workflow: string; - - /** VDiffShowRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffShowRequest arg. */ - public arg: string; - - /** - * Creates a new VDiffShowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffShowRequest instance - */ - public static create(properties?: vtctldata.IVDiffShowRequest): vtctldata.VDiffShowRequest; - - /** - * Encodes the specified VDiffShowRequest message. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. - * @param message VDiffShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffShowRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffShowRequest.verify|verify} messages. - * @param message VDiffShowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffShowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffShowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowRequest; - - /** - * Decodes a VDiffShowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffShowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowRequest; - - /** - * Verifies a VDiffShowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffShowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffShowRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowRequest; - - /** - * Creates a plain object from a VDiffShowRequest message. Also converts values to other types if specified. - * @param message VDiffShowRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffShowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffShowRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffShowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffShowResponse. */ - interface IVDiffShowResponse { - - /** VDiffShowResponse tablet_responses */ - tablet_responses?: ({ [k: string]: tabletmanagerdata.IVDiffResponse }|null); - } - - /** Represents a VDiffShowResponse. */ - class VDiffShowResponse implements IVDiffShowResponse { - - /** - * Constructs a new VDiffShowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffShowResponse); - - /** VDiffShowResponse tablet_responses. */ - public tablet_responses: { [k: string]: tabletmanagerdata.IVDiffResponse }; - - /** - * Creates a new VDiffShowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffShowResponse instance - */ - public static create(properties?: vtctldata.IVDiffShowResponse): vtctldata.VDiffShowResponse; - - /** - * Encodes the specified VDiffShowResponse message. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. - * @param message VDiffShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffShowResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffShowResponse.verify|verify} messages. - * @param message VDiffShowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffShowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffShowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffShowResponse; - - /** - * Decodes a VDiffShowResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffShowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffShowResponse; - - /** - * Verifies a VDiffShowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffShowResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffShowResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffShowResponse; - - /** - * Creates a plain object from a VDiffShowResponse message. Also converts values to other types if specified. - * @param message VDiffShowResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffShowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffShowResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffShowResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffStopRequest. */ - interface IVDiffStopRequest { - - /** VDiffStopRequest workflow */ - workflow?: (string|null); - - /** VDiffStopRequest target_keyspace */ - target_keyspace?: (string|null); - - /** VDiffStopRequest uuid */ - uuid?: (string|null); - - /** VDiffStopRequest target_shards */ - target_shards?: (string[]|null); - } - - /** Represents a VDiffStopRequest. */ - class VDiffStopRequest implements IVDiffStopRequest { - - /** - * Constructs a new VDiffStopRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffStopRequest); - - /** VDiffStopRequest workflow. */ - public workflow: string; - - /** VDiffStopRequest target_keyspace. */ - public target_keyspace: string; - - /** VDiffStopRequest uuid. */ - public uuid: string; - - /** VDiffStopRequest target_shards. */ - public target_shards: string[]; - - /** - * Creates a new VDiffStopRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffStopRequest instance - */ - public static create(properties?: vtctldata.IVDiffStopRequest): vtctldata.VDiffStopRequest; - - /** - * Encodes the specified VDiffStopRequest message. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. - * @param message VDiffStopRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffStopRequest message, length delimited. Does not implicitly {@link vtctldata.VDiffStopRequest.verify|verify} messages. - * @param message VDiffStopRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffStopRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffStopRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffStopRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopRequest; - - /** - * Decodes a VDiffStopRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffStopRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopRequest; - - /** - * Verifies a VDiffStopRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffStopRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffStopRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopRequest; - - /** - * Creates a plain object from a VDiffStopRequest message. Also converts values to other types if specified. - * @param message VDiffStopRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffStopRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffStopRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffStopRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VDiffStopResponse. */ - interface IVDiffStopResponse { - } - - /** Represents a VDiffStopResponse. */ - class VDiffStopResponse implements IVDiffStopResponse { - - /** - * Constructs a new VDiffStopResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IVDiffStopResponse); - - /** - * Creates a new VDiffStopResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns VDiffStopResponse instance - */ - public static create(properties?: vtctldata.IVDiffStopResponse): vtctldata.VDiffStopResponse; - - /** - * Encodes the specified VDiffStopResponse message. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. - * @param message VDiffStopResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VDiffStopResponse message, length delimited. Does not implicitly {@link vtctldata.VDiffStopResponse.verify|verify} messages. - * @param message VDiffStopResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IVDiffStopResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VDiffStopResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VDiffStopResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.VDiffStopResponse; - - /** - * Decodes a VDiffStopResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VDiffStopResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.VDiffStopResponse; - - /** - * Verifies a VDiffStopResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VDiffStopResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VDiffStopResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.VDiffStopResponse; - - /** - * Creates a plain object from a VDiffStopResponse message. Also converts values to other types if specified. - * @param message VDiffStopResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.VDiffStopResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VDiffStopResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VDiffStopResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowDeleteRequest. */ - interface IWorkflowDeleteRequest { - - /** WorkflowDeleteRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowDeleteRequest workflow */ - workflow?: (string|null); - - /** WorkflowDeleteRequest keep_data */ - keep_data?: (boolean|null); - - /** WorkflowDeleteRequest keep_routing_rules */ - keep_routing_rules?: (boolean|null); - - /** WorkflowDeleteRequest shards */ - shards?: (string[]|null); - } - - /** Represents a WorkflowDeleteRequest. */ - class WorkflowDeleteRequest implements IWorkflowDeleteRequest { - - /** - * Constructs a new WorkflowDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowDeleteRequest); - - /** WorkflowDeleteRequest keyspace. */ - public keyspace: string; - - /** WorkflowDeleteRequest workflow. */ - public workflow: string; - - /** WorkflowDeleteRequest keep_data. */ - public keep_data: boolean; - - /** WorkflowDeleteRequest keep_routing_rules. */ - public keep_routing_rules: boolean; - - /** WorkflowDeleteRequest shards. */ - public shards: string[]; - - /** - * Creates a new WorkflowDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowDeleteRequest instance - */ - public static create(properties?: vtctldata.IWorkflowDeleteRequest): vtctldata.WorkflowDeleteRequest; - - /** - * Encodes the specified WorkflowDeleteRequest message. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. - * @param message WorkflowDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowDeleteRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteRequest.verify|verify} messages. - * @param message WorkflowDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteRequest; - - /** - * Decodes a WorkflowDeleteRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteRequest; - - /** - * Verifies a WorkflowDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowDeleteRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowDeleteRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteRequest; - - /** - * Creates a plain object from a WorkflowDeleteRequest message. Also converts values to other types if specified. - * @param message WorkflowDeleteRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowDeleteRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowDeleteRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowDeleteResponse. */ - interface IWorkflowDeleteResponse { - - /** WorkflowDeleteResponse summary */ - summary?: (string|null); - - /** WorkflowDeleteResponse details */ - details?: (vtctldata.WorkflowDeleteResponse.ITabletInfo[]|null); - } - - /** Represents a WorkflowDeleteResponse. */ - class WorkflowDeleteResponse implements IWorkflowDeleteResponse { - - /** - * Constructs a new WorkflowDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowDeleteResponse); - - /** WorkflowDeleteResponse summary. */ - public summary: string; - - /** WorkflowDeleteResponse details. */ - public details: vtctldata.WorkflowDeleteResponse.ITabletInfo[]; - - /** - * Creates a new WorkflowDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowDeleteResponse instance - */ - public static create(properties?: vtctldata.IWorkflowDeleteResponse): vtctldata.WorkflowDeleteResponse; - - /** - * Encodes the specified WorkflowDeleteResponse message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. - * @param message WorkflowDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowDeleteResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.verify|verify} messages. - * @param message WorkflowDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse; - - /** - * Decodes a WorkflowDeleteResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse; - - /** - * Verifies a WorkflowDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowDeleteResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowDeleteResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse; - - /** - * Creates a plain object from a WorkflowDeleteResponse message. Also converts values to other types if specified. - * @param message WorkflowDeleteResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowDeleteResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowDeleteResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowDeleteResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo deleted */ - deleted?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo deleted. */ - public deleted: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.WorkflowDeleteResponse.ITabletInfo): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowDeleteResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowDeleteResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowDeleteResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowDeleteResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a WorkflowStatusRequest. */ - interface IWorkflowStatusRequest { - - /** WorkflowStatusRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowStatusRequest workflow */ - workflow?: (string|null); - - /** WorkflowStatusRequest shards */ - shards?: (string[]|null); - } - - /** Represents a WorkflowStatusRequest. */ - class WorkflowStatusRequest implements IWorkflowStatusRequest { - - /** - * Constructs a new WorkflowStatusRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowStatusRequest); - - /** WorkflowStatusRequest keyspace. */ - public keyspace: string; - - /** WorkflowStatusRequest workflow. */ - public workflow: string; - - /** WorkflowStatusRequest shards. */ - public shards: string[]; - - /** - * Creates a new WorkflowStatusRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowStatusRequest instance - */ - public static create(properties?: vtctldata.IWorkflowStatusRequest): vtctldata.WorkflowStatusRequest; - - /** - * Encodes the specified WorkflowStatusRequest message. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. - * @param message WorkflowStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowStatusRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusRequest.verify|verify} messages. - * @param message WorkflowStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusRequest; - - /** - * Decodes a WorkflowStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusRequest; - - /** - * Verifies a WorkflowStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowStatusRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusRequest; - - /** - * Creates a plain object from a WorkflowStatusRequest message. Also converts values to other types if specified. - * @param message WorkflowStatusRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowStatusRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowStatusRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowStatusResponse. */ - interface IWorkflowStatusResponse { - - /** WorkflowStatusResponse table_copy_state */ - table_copy_state?: ({ [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }|null); - - /** WorkflowStatusResponse shard_streams */ - shard_streams?: ({ [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }|null); - - /** WorkflowStatusResponse traffic_state */ - traffic_state?: (string|null); - } - - /** Represents a WorkflowStatusResponse. */ - class WorkflowStatusResponse implements IWorkflowStatusResponse { - - /** - * Constructs a new WorkflowStatusResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowStatusResponse); - - /** WorkflowStatusResponse table_copy_state. */ - public table_copy_state: { [k: string]: vtctldata.WorkflowStatusResponse.ITableCopyState }; - - /** WorkflowStatusResponse shard_streams. */ - public shard_streams: { [k: string]: vtctldata.WorkflowStatusResponse.IShardStreams }; - - /** WorkflowStatusResponse traffic_state. */ - public traffic_state: string; - - /** - * Creates a new WorkflowStatusResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowStatusResponse instance - */ - public static create(properties?: vtctldata.IWorkflowStatusResponse): vtctldata.WorkflowStatusResponse; - - /** - * Encodes the specified WorkflowStatusResponse message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. - * @param message WorkflowStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowStatusResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.verify|verify} messages. - * @param message WorkflowStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse; - - /** - * Decodes a WorkflowStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse; - - /** - * Verifies a WorkflowStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowStatusResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse; - - /** - * Creates a plain object from a WorkflowStatusResponse message. Also converts values to other types if specified. - * @param message WorkflowStatusResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowStatusResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowStatusResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowStatusResponse { - - /** Properties of a TableCopyState. */ - interface ITableCopyState { - - /** TableCopyState rows_copied */ - rows_copied?: (number|Long|null); - - /** TableCopyState rows_total */ - rows_total?: (number|Long|null); - - /** TableCopyState rows_percentage */ - rows_percentage?: (number|null); - - /** TableCopyState bytes_copied */ - bytes_copied?: (number|Long|null); - - /** TableCopyState bytes_total */ - bytes_total?: (number|Long|null); - - /** TableCopyState bytes_percentage */ - bytes_percentage?: (number|null); - } - - /** Represents a TableCopyState. */ - class TableCopyState implements ITableCopyState { - - /** - * Constructs a new TableCopyState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState); - - /** TableCopyState rows_copied. */ - public rows_copied: (number|Long); - - /** TableCopyState rows_total. */ - public rows_total: (number|Long); - - /** TableCopyState rows_percentage. */ - public rows_percentage: number; - - /** TableCopyState bytes_copied. */ - public bytes_copied: (number|Long); - - /** TableCopyState bytes_total. */ - public bytes_total: (number|Long); - - /** TableCopyState bytes_percentage. */ - public bytes_percentage: number; - - /** - * Creates a new TableCopyState instance using the specified properties. - * @param [properties] Properties to set - * @returns TableCopyState instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.ITableCopyState): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Encodes the specified TableCopyState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. - * @param message TableCopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TableCopyState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.TableCopyState.verify|verify} messages. - * @param message TableCopyState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.ITableCopyState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TableCopyState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TableCopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Decodes a TableCopyState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TableCopyState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Verifies a TableCopyState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TableCopyState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TableCopyState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.TableCopyState; - - /** - * Creates a plain object from a TableCopyState message. Also converts values to other types if specified. - * @param message TableCopyState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.TableCopyState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TableCopyState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TableCopyState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStreamState. */ - interface IShardStreamState { - - /** ShardStreamState id */ - id?: (number|null); - - /** ShardStreamState tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** ShardStreamState source_shard */ - source_shard?: (string|null); - - /** ShardStreamState position */ - position?: (string|null); - - /** ShardStreamState status */ - status?: (string|null); - - /** ShardStreamState info */ - info?: (string|null); - } - - /** Represents a ShardStreamState. */ - class ShardStreamState implements IShardStreamState { - - /** - * Constructs a new ShardStreamState. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState); - - /** ShardStreamState id. */ - public id: number; - - /** ShardStreamState tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** ShardStreamState source_shard. */ - public source_shard: string; - - /** ShardStreamState position. */ - public position: string; - - /** ShardStreamState status. */ - public status: string; - - /** ShardStreamState info. */ - public info: string; - - /** - * Creates a new ShardStreamState instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStreamState instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreamState): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Encodes the specified ShardStreamState message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. - * @param message ShardStreamState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStreamState message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreamState.verify|verify} messages. - * @param message ShardStreamState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreamState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStreamState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStreamState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Decodes a ShardStreamState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStreamState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Verifies a ShardStreamState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStreamState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStreamState - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreamState; - - /** - * Creates a plain object from a ShardStreamState message. Also converts values to other types if specified. - * @param message ShardStreamState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreamState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStreamState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStreamState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ShardStreams. */ - interface IShardStreams { - - /** ShardStreams streams */ - streams?: (vtctldata.WorkflowStatusResponse.IShardStreamState[]|null); - } - - /** Represents a ShardStreams. */ - class ShardStreams implements IShardStreams { - - /** - * Constructs a new ShardStreams. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowStatusResponse.IShardStreams); - - /** ShardStreams streams. */ - public streams: vtctldata.WorkflowStatusResponse.IShardStreamState[]; - - /** - * Creates a new ShardStreams instance using the specified properties. - * @param [properties] Properties to set - * @returns ShardStreams instance - */ - public static create(properties?: vtctldata.WorkflowStatusResponse.IShardStreams): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Encodes the specified ShardStreams message. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. - * @param message ShardStreams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ShardStreams message, length delimited. Does not implicitly {@link vtctldata.WorkflowStatusResponse.ShardStreams.verify|verify} messages. - * @param message ShardStreams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowStatusResponse.IShardStreams, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ShardStreams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ShardStreams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Decodes a ShardStreams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ShardStreams - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Verifies a ShardStreams message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ShardStreams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ShardStreams - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowStatusResponse.ShardStreams; - - /** - * Creates a plain object from a ShardStreams message. Also converts values to other types if specified. - * @param message ShardStreams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowStatusResponse.ShardStreams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ShardStreams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ShardStreams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a WorkflowSwitchTrafficRequest. */ - interface IWorkflowSwitchTrafficRequest { - - /** WorkflowSwitchTrafficRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowSwitchTrafficRequest workflow */ - workflow?: (string|null); - - /** WorkflowSwitchTrafficRequest cells */ - cells?: (string[]|null); - - /** WorkflowSwitchTrafficRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** WorkflowSwitchTrafficRequest max_replication_lag_allowed */ - max_replication_lag_allowed?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest enable_reverse_replication */ - enable_reverse_replication?: (boolean|null); - - /** WorkflowSwitchTrafficRequest direction */ - direction?: (number|null); - - /** WorkflowSwitchTrafficRequest timeout */ - timeout?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest dry_run */ - dry_run?: (boolean|null); - - /** WorkflowSwitchTrafficRequest initialize_target_sequences */ - initialize_target_sequences?: (boolean|null); - - /** WorkflowSwitchTrafficRequest shards */ - shards?: (string[]|null); - - /** WorkflowSwitchTrafficRequest force */ - force?: (boolean|null); - } - - /** Represents a WorkflowSwitchTrafficRequest. */ - class WorkflowSwitchTrafficRequest implements IWorkflowSwitchTrafficRequest { - - /** - * Constructs a new WorkflowSwitchTrafficRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowSwitchTrafficRequest); - - /** WorkflowSwitchTrafficRequest keyspace. */ - public keyspace: string; - - /** WorkflowSwitchTrafficRequest workflow. */ - public workflow: string; - - /** WorkflowSwitchTrafficRequest cells. */ - public cells: string[]; - - /** WorkflowSwitchTrafficRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** WorkflowSwitchTrafficRequest max_replication_lag_allowed. */ - public max_replication_lag_allowed?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest enable_reverse_replication. */ - public enable_reverse_replication: boolean; - - /** WorkflowSwitchTrafficRequest direction. */ - public direction: number; - - /** WorkflowSwitchTrafficRequest timeout. */ - public timeout?: (vttime.IDuration|null); - - /** WorkflowSwitchTrafficRequest dry_run. */ - public dry_run: boolean; - - /** WorkflowSwitchTrafficRequest initialize_target_sequences. */ - public initialize_target_sequences: boolean; - - /** WorkflowSwitchTrafficRequest shards. */ - public shards: string[]; - - /** WorkflowSwitchTrafficRequest force. */ - public force: boolean; - - /** - * Creates a new WorkflowSwitchTrafficRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSwitchTrafficRequest instance - */ - public static create(properties?: vtctldata.IWorkflowSwitchTrafficRequest): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Encodes the specified WorkflowSwitchTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. - * @param message WorkflowSwitchTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowSwitchTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficRequest.verify|verify} messages. - * @param message WorkflowSwitchTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSwitchTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Decodes a WorkflowSwitchTrafficRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowSwitchTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Verifies a WorkflowSwitchTrafficRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowSwitchTrafficRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowSwitchTrafficRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficRequest; - - /** - * Creates a plain object from a WorkflowSwitchTrafficRequest message. Also converts values to other types if specified. - * @param message WorkflowSwitchTrafficRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowSwitchTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowSwitchTrafficRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowSwitchTrafficRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowSwitchTrafficResponse. */ - interface IWorkflowSwitchTrafficResponse { - - /** WorkflowSwitchTrafficResponse summary */ - summary?: (string|null); - - /** WorkflowSwitchTrafficResponse start_state */ - start_state?: (string|null); - - /** WorkflowSwitchTrafficResponse current_state */ - current_state?: (string|null); - - /** WorkflowSwitchTrafficResponse dry_run_results */ - dry_run_results?: (string[]|null); - } - - /** Represents a WorkflowSwitchTrafficResponse. */ - class WorkflowSwitchTrafficResponse implements IWorkflowSwitchTrafficResponse { - - /** - * Constructs a new WorkflowSwitchTrafficResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowSwitchTrafficResponse); - - /** WorkflowSwitchTrafficResponse summary. */ - public summary: string; - - /** WorkflowSwitchTrafficResponse start_state. */ - public start_state: string; - - /** WorkflowSwitchTrafficResponse current_state. */ - public current_state: string; - - /** WorkflowSwitchTrafficResponse dry_run_results. */ - public dry_run_results: string[]; - - /** - * Creates a new WorkflowSwitchTrafficResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSwitchTrafficResponse instance - */ - public static create(properties?: vtctldata.IWorkflowSwitchTrafficResponse): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Encodes the specified WorkflowSwitchTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. - * @param message WorkflowSwitchTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowSwitchTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowSwitchTrafficResponse.verify|verify} messages. - * @param message WorkflowSwitchTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowSwitchTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSwitchTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Decodes a WorkflowSwitchTrafficResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowSwitchTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Verifies a WorkflowSwitchTrafficResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowSwitchTrafficResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowSwitchTrafficResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowSwitchTrafficResponse; - - /** - * Creates a plain object from a WorkflowSwitchTrafficResponse message. Also converts values to other types if specified. - * @param message WorkflowSwitchTrafficResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowSwitchTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowSwitchTrafficResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowSwitchTrafficResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowUpdateRequest. */ - interface IWorkflowUpdateRequest { - - /** WorkflowUpdateRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowUpdateRequest tablet_request */ - tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); - } - - /** Represents a WorkflowUpdateRequest. */ - class WorkflowUpdateRequest implements IWorkflowUpdateRequest { - - /** - * Constructs a new WorkflowUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowUpdateRequest); - - /** WorkflowUpdateRequest keyspace. */ - public keyspace: string; - - /** WorkflowUpdateRequest tablet_request. */ - public tablet_request?: (tabletmanagerdata.IUpdateVReplicationWorkflowRequest|null); - - /** - * Creates a new WorkflowUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowUpdateRequest instance - */ - public static create(properties?: vtctldata.IWorkflowUpdateRequest): vtctldata.WorkflowUpdateRequest; - - /** - * Encodes the specified WorkflowUpdateRequest message. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. - * @param message WorkflowUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowUpdateRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateRequest.verify|verify} messages. - * @param message WorkflowUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateRequest; - - /** - * Decodes a WorkflowUpdateRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateRequest; - - /** - * Verifies a WorkflowUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowUpdateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowUpdateRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateRequest; - - /** - * Creates a plain object from a WorkflowUpdateRequest message. Also converts values to other types if specified. - * @param message WorkflowUpdateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowUpdateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowUpdateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowUpdateResponse. */ - interface IWorkflowUpdateResponse { - - /** WorkflowUpdateResponse summary */ - summary?: (string|null); - - /** WorkflowUpdateResponse details */ - details?: (vtctldata.WorkflowUpdateResponse.ITabletInfo[]|null); - } - - /** Represents a WorkflowUpdateResponse. */ - class WorkflowUpdateResponse implements IWorkflowUpdateResponse { - - /** - * Constructs a new WorkflowUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowUpdateResponse); - - /** WorkflowUpdateResponse summary. */ - public summary: string; - - /** WorkflowUpdateResponse details. */ - public details: vtctldata.WorkflowUpdateResponse.ITabletInfo[]; - - /** - * Creates a new WorkflowUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowUpdateResponse instance - */ - public static create(properties?: vtctldata.IWorkflowUpdateResponse): vtctldata.WorkflowUpdateResponse; - - /** - * Encodes the specified WorkflowUpdateResponse message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. - * @param message WorkflowUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowUpdateResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.verify|verify} messages. - * @param message WorkflowUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse; - - /** - * Decodes a WorkflowUpdateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse; - - /** - * Verifies a WorkflowUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowUpdateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowUpdateResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse; - - /** - * Creates a plain object from a WorkflowUpdateResponse message. Also converts values to other types if specified. - * @param message WorkflowUpdateResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowUpdateResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowUpdateResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace WorkflowUpdateResponse { - - /** Properties of a TabletInfo. */ - interface ITabletInfo { - - /** TabletInfo tablet */ - tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo changed */ - changed?: (boolean|null); - } - - /** Represents a TabletInfo. */ - class TabletInfo implements ITabletInfo { - - /** - * Constructs a new TabletInfo. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo); - - /** TabletInfo tablet. */ - public tablet?: (topodata.ITabletAlias|null); - - /** TabletInfo changed. */ - public changed: boolean; - - /** - * Creates a new TabletInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns TabletInfo instance - */ - public static create(properties?: vtctldata.WorkflowUpdateResponse.ITabletInfo): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Encodes the specified TabletInfo message. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TabletInfo message, length delimited. Does not implicitly {@link vtctldata.WorkflowUpdateResponse.TabletInfo.verify|verify} messages. - * @param message TabletInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.WorkflowUpdateResponse.ITabletInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TabletInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Decodes a TabletInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabletInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Verifies a TabletInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TabletInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabletInfo - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowUpdateResponse.TabletInfo; - - /** - * Creates a plain object from a TabletInfo message. Also converts values to other types if specified. - * @param message TabletInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowUpdateResponse.TabletInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TabletInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TabletInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a GetMirrorRulesRequest. */ - interface IGetMirrorRulesRequest { - } - - /** Represents a GetMirrorRulesRequest. */ - class GetMirrorRulesRequest implements IGetMirrorRulesRequest { - - /** - * Constructs a new GetMirrorRulesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetMirrorRulesRequest); - - /** - * Creates a new GetMirrorRulesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMirrorRulesRequest instance - */ - public static create(properties?: vtctldata.IGetMirrorRulesRequest): vtctldata.GetMirrorRulesRequest; - - /** - * Encodes the specified GetMirrorRulesRequest message. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. - * @param message GetMirrorRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetMirrorRulesRequest message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesRequest.verify|verify} messages. - * @param message GetMirrorRulesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetMirrorRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetMirrorRulesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMirrorRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesRequest; - - /** - * Decodes a GetMirrorRulesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMirrorRulesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesRequest; - - /** - * Verifies a GetMirrorRulesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetMirrorRulesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMirrorRulesRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesRequest; - - /** - * Creates a plain object from a GetMirrorRulesRequest message. Also converts values to other types if specified. - * @param message GetMirrorRulesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetMirrorRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetMirrorRulesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetMirrorRulesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetMirrorRulesResponse. */ - interface IGetMirrorRulesResponse { - - /** GetMirrorRulesResponse mirror_rules */ - mirror_rules?: (vschema.IMirrorRules|null); - } - - /** Represents a GetMirrorRulesResponse. */ - class GetMirrorRulesResponse implements IGetMirrorRulesResponse { - - /** - * Constructs a new GetMirrorRulesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IGetMirrorRulesResponse); - - /** GetMirrorRulesResponse mirror_rules. */ - public mirror_rules?: (vschema.IMirrorRules|null); - - /** - * Creates a new GetMirrorRulesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetMirrorRulesResponse instance - */ - public static create(properties?: vtctldata.IGetMirrorRulesResponse): vtctldata.GetMirrorRulesResponse; - - /** - * Encodes the specified GetMirrorRulesResponse message. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. - * @param message GetMirrorRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetMirrorRulesResponse message, length delimited. Does not implicitly {@link vtctldata.GetMirrorRulesResponse.verify|verify} messages. - * @param message GetMirrorRulesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IGetMirrorRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetMirrorRulesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetMirrorRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.GetMirrorRulesResponse; - - /** - * Decodes a GetMirrorRulesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetMirrorRulesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.GetMirrorRulesResponse; - - /** - * Verifies a GetMirrorRulesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetMirrorRulesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetMirrorRulesResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.GetMirrorRulesResponse; - - /** - * Creates a plain object from a GetMirrorRulesResponse message. Also converts values to other types if specified. - * @param message GetMirrorRulesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.GetMirrorRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetMirrorRulesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetMirrorRulesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowMirrorTrafficRequest. */ - interface IWorkflowMirrorTrafficRequest { - - /** WorkflowMirrorTrafficRequest keyspace */ - keyspace?: (string|null); - - /** WorkflowMirrorTrafficRequest workflow */ - workflow?: (string|null); - - /** WorkflowMirrorTrafficRequest tablet_types */ - tablet_types?: (topodata.TabletType[]|null); - - /** WorkflowMirrorTrafficRequest percent */ - percent?: (number|null); - } - - /** Represents a WorkflowMirrorTrafficRequest. */ - class WorkflowMirrorTrafficRequest implements IWorkflowMirrorTrafficRequest { - - /** - * Constructs a new WorkflowMirrorTrafficRequest. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowMirrorTrafficRequest); - - /** WorkflowMirrorTrafficRequest keyspace. */ - public keyspace: string; - - /** WorkflowMirrorTrafficRequest workflow. */ - public workflow: string; - - /** WorkflowMirrorTrafficRequest tablet_types. */ - public tablet_types: topodata.TabletType[]; - - /** WorkflowMirrorTrafficRequest percent. */ - public percent: number; - - /** - * Creates a new WorkflowMirrorTrafficRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMirrorTrafficRequest instance - */ - public static create(properties?: vtctldata.IWorkflowMirrorTrafficRequest): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Encodes the specified WorkflowMirrorTrafficRequest message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. - * @param message WorkflowMirrorTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowMirrorTrafficRequest message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficRequest.verify|verify} messages. - * @param message WorkflowMirrorTrafficRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMirrorTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Decodes a WorkflowMirrorTrafficRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowMirrorTrafficRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Verifies a WorkflowMirrorTrafficRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowMirrorTrafficRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowMirrorTrafficRequest - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficRequest; - - /** - * Creates a plain object from a WorkflowMirrorTrafficRequest message. Also converts values to other types if specified. - * @param message WorkflowMirrorTrafficRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowMirrorTrafficRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowMirrorTrafficRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowMirrorTrafficRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WorkflowMirrorTrafficResponse. */ - interface IWorkflowMirrorTrafficResponse { - - /** WorkflowMirrorTrafficResponse summary */ - summary?: (string|null); - - /** WorkflowMirrorTrafficResponse start_state */ - start_state?: (string|null); - - /** WorkflowMirrorTrafficResponse current_state */ - current_state?: (string|null); - } - - /** Represents a WorkflowMirrorTrafficResponse. */ - class WorkflowMirrorTrafficResponse implements IWorkflowMirrorTrafficResponse { - - /** - * Constructs a new WorkflowMirrorTrafficResponse. - * @param [properties] Properties to set - */ - constructor(properties?: vtctldata.IWorkflowMirrorTrafficResponse); - - /** WorkflowMirrorTrafficResponse summary. */ - public summary: string; - - /** WorkflowMirrorTrafficResponse start_state. */ - public start_state: string; - - /** WorkflowMirrorTrafficResponse current_state. */ - public current_state: string; - - /** - * Creates a new WorkflowMirrorTrafficResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMirrorTrafficResponse instance - */ - public static create(properties?: vtctldata.IWorkflowMirrorTrafficResponse): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Encodes the specified WorkflowMirrorTrafficResponse message. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. - * @param message WorkflowMirrorTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified WorkflowMirrorTrafficResponse message, length delimited. Does not implicitly {@link vtctldata.WorkflowMirrorTrafficResponse.verify|verify} messages. - * @param message WorkflowMirrorTrafficResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: vtctldata.IWorkflowMirrorTrafficResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMirrorTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Decodes a WorkflowMirrorTrafficResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WorkflowMirrorTrafficResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Verifies a WorkflowMirrorTrafficResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a WorkflowMirrorTrafficResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WorkflowMirrorTrafficResponse - */ - public static fromObject(object: { [k: string]: any }): vtctldata.WorkflowMirrorTrafficResponse; - - /** - * Creates a plain object from a WorkflowMirrorTrafficResponse message. Also converts values to other types if specified. - * @param message WorkflowMirrorTrafficResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: vtctldata.WorkflowMirrorTrafficResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this WorkflowMirrorTrafficResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for WorkflowMirrorTrafficResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; ->>>>>>> c7b30bc5d2 (Add `ChangeTabletTags`/`ChangeTags` RPCs) } } diff --git a/web/vtadmin/src/proto/vtadmin.js b/web/vtadmin/src/proto/vtadmin.js index 8157cb90c11..0e5d1bf7de5 100644 --- a/web/vtadmin/src/proto/vtadmin.js +++ b/web/vtadmin/src/proto/vtadmin.js @@ -55766,138 +55766,155 @@ $root.tabletmanagerdata = (function() { return ChangeTagsResponse; })(); - tabletmanagerdata.ChangeTagsRequest = (function() { + return tabletmanagerdata; +})(); + +$root.query = (function() { + + /** + * Namespace query. + * @exports query + * @namespace + */ + var query = {}; + + query.Target = (function() { /** - * Properties of a ChangeTagsRequest. - * @memberof tabletmanagerdata - * @interface IChangeTagsRequest - * @property {Object.|null} [tags] ChangeTagsRequest tags - * @property {boolean|null} [replace] ChangeTagsRequest replace + * Properties of a Target. + * @memberof query + * @interface ITarget + * @property {string|null} [keyspace] Target keyspace + * @property {string|null} [shard] Target shard + * @property {topodata.TabletType|null} [tablet_type] Target tablet_type + * @property {string|null} [cell] Target cell */ /** - * Constructs a new ChangeTagsRequest. - * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTagsRequest. - * @implements IChangeTagsRequest + * Constructs a new Target. + * @memberof query + * @classdesc Represents a Target. + * @implements ITarget * @constructor - * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set + * @param {query.ITarget=} [properties] Properties to set */ - function ChangeTagsRequest(properties) { - this.tags = {}; + function Target(properties) { if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * ChangeTagsRequest tags. - * @member {Object.} tags - * @memberof tabletmanagerdata.ChangeTagsRequest + * Target keyspace. + * @member {string} keyspace + * @memberof query.Target * @instance */ - ChangeTagsRequest.prototype.tags = $util.emptyObject; + Target.prototype.keyspace = ""; /** - * ChangeTagsRequest replace. - * @member {boolean} replace - * @memberof tabletmanagerdata.ChangeTagsRequest + * Target shard. + * @member {string} shard + * @memberof query.Target * @instance */ - ChangeTagsRequest.prototype.replace = false; + Target.prototype.shard = ""; /** - * Creates a new ChangeTagsRequest instance using the specified properties. + * Target tablet_type. + * @member {topodata.TabletType} tablet_type + * @memberof query.Target + * @instance + */ + Target.prototype.tablet_type = 0; + + /** + * Target cell. + * @member {string} cell + * @memberof query.Target + * @instance + */ + Target.prototype.cell = ""; + + /** + * Creates a new Target instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static - * @param {tabletmanagerdata.IChangeTagsRequest=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest instance + * @param {query.ITarget=} [properties] Properties to set + * @returns {query.Target} Target instance */ - ChangeTagsRequest.create = function create(properties) { - return new ChangeTagsRequest(properties); + Target.create = function create(properties) { + return new Target(properties); }; /** - * Encodes the specified ChangeTagsRequest message. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static - * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsRequest.encode = function encode(message, writer) { + Target.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.replace); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); + if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); return writer; }; /** - * Encodes the specified ChangeTagsRequest message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsRequest.verify|verify} messages. + * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static - * @param {tabletmanagerdata.IChangeTagsRequest} message ChangeTagsRequest message or plain object to encode + * @param {query.ITarget} message Target message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Target.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer. + * Decodes a Target message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsRequest.decode = function decode(reader, length) { + Target.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tags[key] = value; - break; - } - case 2: { - message.replace = reader.bool(); - break; - } + case 1: + message.keyspace = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.tablet_type = reader.int32(); + break; + case 4: + message.cell = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -55907,244 +55924,285 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a ChangeTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a Target message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {query.Target} Target * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsRequest.decodeDelimited = function decodeDelimited(reader) { + Target.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTagsRequest message. + * Verifies a Target message. * @function verify - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTagsRequest.verify = function verify(message) { + Target.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - if (message.replace != null && message.hasOwnProperty("replace")) - if (typeof message.replace !== "boolean") - return "replace: boolean expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + switch (message.tablet_type) { + default: + return "tablet_type: enum value expected"; + case 0: + case 1: + case 1: + case 2: + case 3: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.cell != null && message.hasOwnProperty("cell")) + if (!$util.isString(message.cell)) + return "cell: string expected"; return null; }; /** - * Creates a ChangeTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Target message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTagsRequest + * @memberof query.Target * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTagsRequest} ChangeTagsRequest + * @returns {query.Target} Target */ - ChangeTagsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTagsRequest) + Target.fromObject = function fromObject(object) { + if (object instanceof $root.query.Target) return object; - let message = new $root.tabletmanagerdata.ChangeTagsRequest(); - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".tabletmanagerdata.ChangeTagsRequest.tags: object expected"); - message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); - } - if (object.replace != null) - message.replace = Boolean(object.replace); - return message; - }; - - /** - * Creates a plain object from a ChangeTagsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof tabletmanagerdata.ChangeTagsRequest - * @static - * @param {tabletmanagerdata.ChangeTagsRequest} message ChangeTagsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ChangeTagsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.objects || options.defaults) - object.tags = {}; - if (options.defaults) - object.replace = false; - let keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; - } - if (message.replace != null && message.hasOwnProperty("replace")) - object.replace = message.replace; - return object; - }; - - /** - * Converts this ChangeTagsRequest to JSON. - * @function toJSON - * @memberof tabletmanagerdata.ChangeTagsRequest - * @instance - * @returns {Object.} JSON object - */ - ChangeTagsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.query.Target(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + switch (object.tablet_type) { + case "UNKNOWN": + case 0: + message.tablet_type = 0; + break; + case "PRIMARY": + case 1: + message.tablet_type = 1; + break; + case "MASTER": + case 1: + message.tablet_type = 1; + break; + case "REPLICA": + case 2: + message.tablet_type = 2; + break; + case "RDONLY": + case 3: + message.tablet_type = 3; + break; + case "BATCH": + case 3: + message.tablet_type = 3; + break; + case "SPARE": + case 4: + message.tablet_type = 4; + break; + case "EXPERIMENTAL": + case 5: + message.tablet_type = 5; + break; + case "BACKUP": + case 6: + message.tablet_type = 6; + break; + case "RESTORE": + case 7: + message.tablet_type = 7; + break; + case "DRAINED": + case 8: + message.tablet_type = 8; + break; + } + if (object.cell != null) + message.cell = String(object.cell); + return message; + }; /** - * Gets the default type url for ChangeTagsRequest - * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsRequest + * Creates a plain object from a Target message. Also converts values to other types if specified. + * @function toObject + * @memberof query.Target * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {query.Target} message Target + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ChangeTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + Target.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.tablet_type = options.enums === String ? "UNKNOWN" : 0; + object.cell = ""; } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsRequest"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) + object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; + if (message.cell != null && message.hasOwnProperty("cell")) + object.cell = message.cell; + return object; }; - return ChangeTagsRequest; + /** + * Converts this Target to JSON. + * @function toJSON + * @memberof query.Target + * @instance + * @returns {Object.} JSON object + */ + Target.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Target; })(); - tabletmanagerdata.ChangeTagsResponse = (function() { + query.VTGateCallerID = (function() { /** - * Properties of a ChangeTagsResponse. - * @memberof tabletmanagerdata - * @interface IChangeTagsResponse - * @property {Object.|null} [tags] ChangeTagsResponse tags + * Properties of a VTGateCallerID. + * @memberof query + * @interface IVTGateCallerID + * @property {string|null} [username] VTGateCallerID username + * @property {Array.|null} [groups] VTGateCallerID groups */ /** - * Constructs a new ChangeTagsResponse. - * @memberof tabletmanagerdata - * @classdesc Represents a ChangeTagsResponse. - * @implements IChangeTagsResponse + * Constructs a new VTGateCallerID. + * @memberof query + * @classdesc Represents a VTGateCallerID. + * @implements IVTGateCallerID * @constructor - * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set + * @param {query.IVTGateCallerID=} [properties] Properties to set */ - function ChangeTagsResponse(properties) { - this.tags = {}; + function VTGateCallerID(properties) { + this.groups = []; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** - * ChangeTagsResponse tags. - * @member {Object.} tags - * @memberof tabletmanagerdata.ChangeTagsResponse + * VTGateCallerID username. + * @member {string} username + * @memberof query.VTGateCallerID * @instance */ - ChangeTagsResponse.prototype.tags = $util.emptyObject; + VTGateCallerID.prototype.username = ""; /** - * Creates a new ChangeTagsResponse instance using the specified properties. + * VTGateCallerID groups. + * @member {Array.} groups + * @memberof query.VTGateCallerID + * @instance + */ + VTGateCallerID.prototype.groups = $util.emptyArray; + + /** + * Creates a new VTGateCallerID instance using the specified properties. * @function create - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static - * @param {tabletmanagerdata.IChangeTagsResponse=} [properties] Properties to set - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse instance + * @param {query.IVTGateCallerID=} [properties] Properties to set + * @returns {query.VTGateCallerID} VTGateCallerID instance */ - ChangeTagsResponse.create = function create(properties) { - return new ChangeTagsResponse(properties); + VTGateCallerID.create = function create(properties) { + return new VTGateCallerID(properties); }; /** - * Encodes the specified ChangeTagsResponse message. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encode - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static - * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsResponse.encode = function encode(message, writer) { + VTGateCallerID.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.groups != null && message.groups.length) + for (var i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); return writer; }; /** - * Encodes the specified ChangeTagsResponse message, length delimited. Does not implicitly {@link tabletmanagerdata.ChangeTagsResponse.verify|verify} messages. + * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. * @function encodeDelimited - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static - * @param {tabletmanagerdata.IChangeTagsResponse} message ChangeTagsResponse message or plain object to encode + * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer. + * Decodes a VTGateCallerID message from the specified reader or buffer. * @function decode - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsResponse.decode = function decode(reader, length) { + VTGateCallerID.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tabletmanagerdata.ChangeTagsResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tags[key] = value; - break; - } + case 1: + message.username = reader.string(); + break; + case 2: + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -56154,151 +56212,130 @@ $root.tabletmanagerdata = (function() { }; /** - * Decodes a ChangeTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {query.VTGateCallerID} VTGateCallerID * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTagsResponse.decodeDelimited = function decodeDelimited(reader) { + VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTagsResponse message. + * Verifies a VTGateCallerID message. * @function verify - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTagsResponse.verify = function verify(message) { + VTGateCallerID.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (var i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; } return null; }; /** - * Creates a ChangeTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static * @param {Object.} object Plain object - * @returns {tabletmanagerdata.ChangeTagsResponse} ChangeTagsResponse + * @returns {query.VTGateCallerID} VTGateCallerID */ - ChangeTagsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.tabletmanagerdata.ChangeTagsResponse) + VTGateCallerID.fromObject = function fromObject(object) { + if (object instanceof $root.query.VTGateCallerID) return object; - let message = new $root.tabletmanagerdata.ChangeTagsResponse(); - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".tabletmanagerdata.ChangeTagsResponse.tags: object expected"); - message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); + var message = new $root.query.VTGateCallerID(); + if (object.username != null) + message.username = String(object.username); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".query.VTGateCallerID.groups: array expected"); + message.groups = []; + for (var i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); } return message; }; /** - * Creates a plain object from a ChangeTagsResponse message. Also converts values to other types if specified. + * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. * @function toObject - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @static - * @param {tabletmanagerdata.ChangeTagsResponse} message ChangeTagsResponse + * @param {query.VTGateCallerID} message VTGateCallerID * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTagsResponse.toObject = function toObject(message, options) { + VTGateCallerID.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; - if (options.objects || options.defaults) - object.tags = {}; - let keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (let j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; + var object = {}; + if (options.arrays || options.defaults) + object.groups = []; + if (options.defaults) + object.username = ""; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.groups && message.groups.length) { + object.groups = []; + for (var j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; } return object; }; /** - * Converts this ChangeTagsResponse to JSON. + * Converts this VTGateCallerID to JSON. * @function toJSON - * @memberof tabletmanagerdata.ChangeTagsResponse + * @memberof query.VTGateCallerID * @instance * @returns {Object.} JSON object */ - ChangeTagsResponse.prototype.toJSON = function toJSON() { + VTGateCallerID.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTagsResponse - * @function getTypeUrl - * @memberof tabletmanagerdata.ChangeTagsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/tabletmanagerdata.ChangeTagsResponse"; - }; - - return ChangeTagsResponse; + return VTGateCallerID; })(); - return tabletmanagerdata; -})(); - -$root.query = (function() { - - /** - * Namespace query. - * @exports query - * @namespace - */ - var query = {}; - - query.Target = (function() { + query.EventToken = (function() { /** - * Properties of a Target. + * Properties of an EventToken. * @memberof query - * @interface ITarget - * @property {string|null} [keyspace] Target keyspace - * @property {string|null} [shard] Target shard - * @property {topodata.TabletType|null} [tablet_type] Target tablet_type - * @property {string|null} [cell] Target cell + * @interface IEventToken + * @property {number|Long|null} [timestamp] EventToken timestamp + * @property {string|null} [shard] EventToken shard + * @property {string|null} [position] EventToken position */ /** - * Constructs a new Target. + * Constructs a new EventToken. * @memberof query - * @classdesc Represents a Target. - * @implements ITarget + * @classdesc Represents an EventToken. + * @implements IEventToken * @constructor - * @param {query.ITarget=} [properties] Properties to set + * @param {query.IEventToken=} [properties] Properties to set */ - function Target(properties) { + function EventToken(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56306,114 +56343,101 @@ $root.query = (function() { } /** - * Target keyspace. - * @member {string} keyspace - * @memberof query.Target + * EventToken timestamp. + * @member {number|Long} timestamp + * @memberof query.EventToken * @instance */ - Target.prototype.keyspace = ""; + EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Target shard. + * EventToken shard. * @member {string} shard - * @memberof query.Target - * @instance - */ - Target.prototype.shard = ""; - - /** - * Target tablet_type. - * @member {topodata.TabletType} tablet_type - * @memberof query.Target + * @memberof query.EventToken * @instance */ - Target.prototype.tablet_type = 0; + EventToken.prototype.shard = ""; /** - * Target cell. - * @member {string} cell - * @memberof query.Target + * EventToken position. + * @member {string} position + * @memberof query.EventToken * @instance */ - Target.prototype.cell = ""; + EventToken.prototype.position = ""; /** - * Creates a new Target instance using the specified properties. + * Creates a new EventToken instance using the specified properties. * @function create - * @memberof query.Target + * @memberof query.EventToken * @static - * @param {query.ITarget=} [properties] Properties to set - * @returns {query.Target} Target instance + * @param {query.IEventToken=} [properties] Properties to set + * @returns {query.EventToken} EventToken instance */ - Target.create = function create(properties) { - return new Target(properties); + EventToken.create = function create(properties) { + return new EventToken(properties); }; /** - * Encodes the specified Target message. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encode - * @memberof query.Target + * @memberof query.EventToken * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encode = function encode(message, writer) { + EventToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.tablet_type != null && Object.hasOwnProperty.call(message, "tablet_type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tablet_type); - if (message.cell != null && Object.hasOwnProperty.call(message, "cell")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cell); + if (message.position != null && Object.hasOwnProperty.call(message, "position")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); return writer; }; /** - * Encodes the specified Target message, length delimited. Does not implicitly {@link query.Target.verify|verify} messages. + * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. * @function encodeDelimited - * @memberof query.Target + * @memberof query.EventToken * @static - * @param {query.ITarget} message Target message or plain object to encode + * @param {query.IEventToken} message EventToken message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Target.encodeDelimited = function encodeDelimited(message, writer) { + EventToken.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Target message from the specified reader or buffer. + * Decodes an EventToken message from the specified reader or buffer. * @function decode - * @memberof query.Target + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.Target} Target + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decode = function decode(reader, length) { + EventToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Target(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.timestamp = reader.int64(); break; case 2: message.shard = reader.string(); break; case 3: - message.tablet_type = reader.int32(); - break; - case 4: - message.cell = reader.string(); + message.position = reader.string(); break; default: reader.skipType(tag & 7); @@ -56424,192 +56448,293 @@ $root.query = (function() { }; /** - * Decodes a Target message from the specified reader or buffer, length delimited. + * Decodes an EventToken message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.Target + * @memberof query.EventToken * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Target} Target + * @returns {query.EventToken} EventToken * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Target.decodeDelimited = function decodeDelimited(reader) { + EventToken.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Target message. + * Verifies an EventToken message. * @function verify - * @memberof query.Target + * @memberof query.EventToken * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Target.verify = function verify(message) { + EventToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; if (message.shard != null && message.hasOwnProperty("shard")) if (!$util.isString(message.shard)) return "shard: string expected"; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - switch (message.tablet_type) { - default: - return "tablet_type: enum value expected"; - case 0: - case 1: - case 1: - case 2: - case 3: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.cell != null && message.hasOwnProperty("cell")) - if (!$util.isString(message.cell)) - return "cell: string expected"; + if (message.position != null && message.hasOwnProperty("position")) + if (!$util.isString(message.position)) + return "position: string expected"; return null; }; /** - * Creates a Target message from a plain object. Also converts values to their respective internal types. + * Creates an EventToken message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Target + * @memberof query.EventToken * @static * @param {Object.} object Plain object - * @returns {query.Target} Target + * @returns {query.EventToken} EventToken */ - Target.fromObject = function fromObject(object) { - if (object instanceof $root.query.Target) + EventToken.fromObject = function fromObject(object) { + if (object instanceof $root.query.EventToken) return object; - var message = new $root.query.Target(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); + var message = new $root.query.EventToken(); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); if (object.shard != null) message.shard = String(object.shard); - switch (object.tablet_type) { - case "UNKNOWN": - case 0: - message.tablet_type = 0; - break; - case "PRIMARY": - case 1: - message.tablet_type = 1; - break; - case "MASTER": - case 1: - message.tablet_type = 1; - break; - case "REPLICA": - case 2: - message.tablet_type = 2; - break; - case "RDONLY": - case 3: - message.tablet_type = 3; - break; - case "BATCH": - case 3: - message.tablet_type = 3; - break; - case "SPARE": - case 4: - message.tablet_type = 4; - break; - case "EXPERIMENTAL": - case 5: - message.tablet_type = 5; - break; - case "BACKUP": - case 6: - message.tablet_type = 6; - break; - case "RESTORE": - case 7: - message.tablet_type = 7; - break; - case "DRAINED": - case 8: - message.tablet_type = 8; - break; - } - if (object.cell != null) - message.cell = String(object.cell); + if (object.position != null) + message.position = String(object.position); return message; }; /** - * Creates a plain object from a Target message. Also converts values to other types if specified. + * Creates a plain object from an EventToken message. Also converts values to other types if specified. * @function toObject - * @memberof query.Target + * @memberof query.EventToken * @static - * @param {query.Target} message Target + * @param {query.EventToken} message EventToken * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Target.toObject = function toObject(message, options) { + EventToken.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; object.shard = ""; - object.tablet_type = options.enums === String ? "UNKNOWN" : 0; - object.cell = ""; + object.position = ""; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; if (message.shard != null && message.hasOwnProperty("shard")) object.shard = message.shard; - if (message.tablet_type != null && message.hasOwnProperty("tablet_type")) - object.tablet_type = options.enums === String ? $root.topodata.TabletType[message.tablet_type] : message.tablet_type; - if (message.cell != null && message.hasOwnProperty("cell")) - object.cell = message.cell; + if (message.position != null && message.hasOwnProperty("position")) + object.position = message.position; return object; }; /** - * Converts this Target to JSON. + * Converts this EventToken to JSON. * @function toJSON - * @memberof query.Target + * @memberof query.EventToken * @instance * @returns {Object.} JSON object */ - Target.prototype.toJSON = function toJSON() { + EventToken.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Target; + return EventToken; })(); - query.VTGateCallerID = (function() { + /** + * MySqlFlag enum. + * @name query.MySqlFlag + * @enum {number} + * @property {number} EMPTY=0 EMPTY value + * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value + * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value + * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value + * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value + * @property {number} BLOB_FLAG=16 BLOB_FLAG value + * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value + * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value + * @property {number} BINARY_FLAG=128 BINARY_FLAG value + * @property {number} ENUM_FLAG=256 ENUM_FLAG value + * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value + * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value + * @property {number} SET_FLAG=2048 SET_FLAG value + * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value + * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value + * @property {number} NUM_FLAG=32768 NUM_FLAG value + * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value + * @property {number} GROUP_FLAG=32768 GROUP_FLAG value + * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value + * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value + */ + query.MySqlFlag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EMPTY"] = 0; + values[valuesById[1] = "NOT_NULL_FLAG"] = 1; + values[valuesById[2] = "PRI_KEY_FLAG"] = 2; + values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; + values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; + values[valuesById[16] = "BLOB_FLAG"] = 16; + values[valuesById[32] = "UNSIGNED_FLAG"] = 32; + values[valuesById[64] = "ZEROFILL_FLAG"] = 64; + values[valuesById[128] = "BINARY_FLAG"] = 128; + values[valuesById[256] = "ENUM_FLAG"] = 256; + values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; + values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; + values[valuesById[2048] = "SET_FLAG"] = 2048; + values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; + values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; + values[valuesById[32768] = "NUM_FLAG"] = 32768; + values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; + values["GROUP_FLAG"] = 32768; + values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; + values[valuesById[131072] = "BINCMP_FLAG"] = 131072; + return values; + })(); + + /** + * Flag enum. + * @name query.Flag + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} ISINTEGRAL=256 ISINTEGRAL value + * @property {number} ISUNSIGNED=512 ISUNSIGNED value + * @property {number} ISFLOAT=1024 ISFLOAT value + * @property {number} ISQUOTED=2048 ISQUOTED value + * @property {number} ISTEXT=4096 ISTEXT value + * @property {number} ISBINARY=8192 ISBINARY value + */ + query.Flag = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[256] = "ISINTEGRAL"] = 256; + values[valuesById[512] = "ISUNSIGNED"] = 512; + values[valuesById[1024] = "ISFLOAT"] = 1024; + values[valuesById[2048] = "ISQUOTED"] = 2048; + values[valuesById[4096] = "ISTEXT"] = 4096; + values[valuesById[8192] = "ISBINARY"] = 8192; + return values; + })(); + + /** + * Type enum. + * @name query.Type + * @enum {number} + * @property {number} NULL_TYPE=0 NULL_TYPE value + * @property {number} INT8=257 INT8 value + * @property {number} UINT8=770 UINT8 value + * @property {number} INT16=259 INT16 value + * @property {number} UINT16=772 UINT16 value + * @property {number} INT24=261 INT24 value + * @property {number} UINT24=774 UINT24 value + * @property {number} INT32=263 INT32 value + * @property {number} UINT32=776 UINT32 value + * @property {number} INT64=265 INT64 value + * @property {number} UINT64=778 UINT64 value + * @property {number} FLOAT32=1035 FLOAT32 value + * @property {number} FLOAT64=1036 FLOAT64 value + * @property {number} TIMESTAMP=2061 TIMESTAMP value + * @property {number} DATE=2062 DATE value + * @property {number} TIME=2063 TIME value + * @property {number} DATETIME=2064 DATETIME value + * @property {number} YEAR=785 YEAR value + * @property {number} DECIMAL=18 DECIMAL value + * @property {number} TEXT=6163 TEXT value + * @property {number} BLOB=10260 BLOB value + * @property {number} VARCHAR=6165 VARCHAR value + * @property {number} VARBINARY=10262 VARBINARY value + * @property {number} CHAR=6167 CHAR value + * @property {number} BINARY=10264 BINARY value + * @property {number} BIT=2073 BIT value + * @property {number} ENUM=2074 ENUM value + * @property {number} SET=2075 SET value + * @property {number} TUPLE=28 TUPLE value + * @property {number} GEOMETRY=2077 GEOMETRY value + * @property {number} JSON=2078 JSON value + * @property {number} EXPRESSION=31 EXPRESSION value + * @property {number} HEXNUM=4128 HEXNUM value + * @property {number} HEXVAL=4129 HEXVAL value + * @property {number} BITNUM=4130 BITNUM value + */ + query.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_TYPE"] = 0; + values[valuesById[257] = "INT8"] = 257; + values[valuesById[770] = "UINT8"] = 770; + values[valuesById[259] = "INT16"] = 259; + values[valuesById[772] = "UINT16"] = 772; + values[valuesById[261] = "INT24"] = 261; + values[valuesById[774] = "UINT24"] = 774; + values[valuesById[263] = "INT32"] = 263; + values[valuesById[776] = "UINT32"] = 776; + values[valuesById[265] = "INT64"] = 265; + values[valuesById[778] = "UINT64"] = 778; + values[valuesById[1035] = "FLOAT32"] = 1035; + values[valuesById[1036] = "FLOAT64"] = 1036; + values[valuesById[2061] = "TIMESTAMP"] = 2061; + values[valuesById[2062] = "DATE"] = 2062; + values[valuesById[2063] = "TIME"] = 2063; + values[valuesById[2064] = "DATETIME"] = 2064; + values[valuesById[785] = "YEAR"] = 785; + values[valuesById[18] = "DECIMAL"] = 18; + values[valuesById[6163] = "TEXT"] = 6163; + values[valuesById[10260] = "BLOB"] = 10260; + values[valuesById[6165] = "VARCHAR"] = 6165; + values[valuesById[10262] = "VARBINARY"] = 10262; + values[valuesById[6167] = "CHAR"] = 6167; + values[valuesById[10264] = "BINARY"] = 10264; + values[valuesById[2073] = "BIT"] = 2073; + values[valuesById[2074] = "ENUM"] = 2074; + values[valuesById[2075] = "SET"] = 2075; + values[valuesById[28] = "TUPLE"] = 28; + values[valuesById[2077] = "GEOMETRY"] = 2077; + values[valuesById[2078] = "JSON"] = 2078; + values[valuesById[31] = "EXPRESSION"] = 31; + values[valuesById[4128] = "HEXNUM"] = 4128; + values[valuesById[4129] = "HEXVAL"] = 4129; + values[valuesById[4130] = "BITNUM"] = 4130; + return values; + })(); + + query.Value = (function() { /** - * Properties of a VTGateCallerID. + * Properties of a Value. * @memberof query - * @interface IVTGateCallerID - * @property {string|null} [username] VTGateCallerID username - * @property {Array.|null} [groups] VTGateCallerID groups + * @interface IValue + * @property {query.Type|null} [type] Value type + * @property {Uint8Array|null} [value] Value value */ /** - * Constructs a new VTGateCallerID. + * Constructs a new Value. * @memberof query - * @classdesc Represents a VTGateCallerID. - * @implements IVTGateCallerID + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {query.IVTGateCallerID=} [properties] Properties to set + * @param {query.IValue=} [properties] Properties to set */ - function VTGateCallerID(properties) { - this.groups = []; + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56617,91 +56742,88 @@ $root.query = (function() { } /** - * VTGateCallerID username. - * @member {string} username - * @memberof query.VTGateCallerID + * Value type. + * @member {query.Type} type + * @memberof query.Value * @instance */ - VTGateCallerID.prototype.username = ""; + Value.prototype.type = 0; /** - * VTGateCallerID groups. - * @member {Array.} groups - * @memberof query.VTGateCallerID + * Value value. + * @member {Uint8Array} value + * @memberof query.Value * @instance */ - VTGateCallerID.prototype.groups = $util.emptyArray; + Value.prototype.value = $util.newBuffer([]); /** - * Creates a new VTGateCallerID instance using the specified properties. + * Creates a new Value instance using the specified properties. * @function create - * @memberof query.VTGateCallerID + * @memberof query.Value * @static - * @param {query.IVTGateCallerID=} [properties] Properties to set - * @returns {query.VTGateCallerID} VTGateCallerID instance + * @param {query.IValue=} [properties] Properties to set + * @returns {query.Value} Value instance */ - VTGateCallerID.create = function create(properties) { - return new VTGateCallerID(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified VTGateCallerID message. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. * @function encode - * @memberof query.VTGateCallerID + * @memberof query.Value * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encode = function encode(message, writer) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.groups != null && message.groups.length) - for (var i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified VTGateCallerID message, length delimited. Does not implicitly {@link query.VTGateCallerID.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. * @function encodeDelimited - * @memberof query.VTGateCallerID + * @memberof query.Value * @static - * @param {query.IVTGateCallerID} message VTGateCallerID message or plain object to encode + * @param {query.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VTGateCallerID.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof query.VTGateCallerID + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decode = function decode(reader, length) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.VTGateCallerID(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.username = reader.string(); + message.type = reader.int32(); break; case 2: - if (!(message.groups && message.groups.length)) - message.groups = []; - message.groups.push(reader.string()); + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -56712,652 +56834,445 @@ $root.query = (function() { }; /** - * Decodes a VTGateCallerID message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.VTGateCallerID + * @memberof query.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {query.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VTGateCallerID.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VTGateCallerID message. + * Verifies a Value message. * @function verify - * @memberof query.VTGateCallerID + * @memberof query.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VTGateCallerID.verify = function verify(message) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; - for (var i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; - } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 257: + case 770: + case 259: + case 772: + case 261: + case 774: + case 263: + case 776: + case 265: + case 778: + case 1035: + case 1036: + case 2061: + case 2062: + case 2063: + case 2064: + case 785: + case 18: + case 6163: + case 10260: + case 6165: + case 10262: + case 6167: + case 10264: + case 2073: + case 2074: + case 2075: + case 28: + case 2077: + case 2078: + case 31: + case 4128: + case 4129: + case 4130: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a VTGateCallerID message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.VTGateCallerID + * @memberof query.Value * @static * @param {Object.} object Plain object - * @returns {query.VTGateCallerID} VTGateCallerID + * @returns {query.Value} Value */ - VTGateCallerID.fromObject = function fromObject(object) { - if (object instanceof $root.query.VTGateCallerID) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.query.Value) return object; - var message = new $root.query.VTGateCallerID(); - if (object.username != null) - message.username = String(object.username); - if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".query.VTGateCallerID.groups: array expected"); - message.groups = []; - for (var i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); - } - return message; - }; - - /** - * Creates a plain object from a VTGateCallerID message. Also converts values to other types if specified. - * @function toObject - * @memberof query.VTGateCallerID - * @static - * @param {query.VTGateCallerID} message VTGateCallerID - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VTGateCallerID.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.groups = []; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.groups && message.groups.length) { - object.groups = []; - for (var j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; - } - return object; - }; - - /** - * Converts this VTGateCallerID to JSON. - * @function toJSON - * @memberof query.VTGateCallerID - * @instance - * @returns {Object.} JSON object - */ - VTGateCallerID.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VTGateCallerID; - })(); - - query.EventToken = (function() { - - /** - * Properties of an EventToken. - * @memberof query - * @interface IEventToken - * @property {number|Long|null} [timestamp] EventToken timestamp - * @property {string|null} [shard] EventToken shard - * @property {string|null} [position] EventToken position - */ - - /** - * Constructs a new EventToken. - * @memberof query - * @classdesc Represents an EventToken. - * @implements IEventToken - * @constructor - * @param {query.IEventToken=} [properties] Properties to set - */ - function EventToken(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventToken timestamp. - * @member {number|Long} timestamp - * @memberof query.EventToken - * @instance - */ - EventToken.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * EventToken shard. - * @member {string} shard - * @memberof query.EventToken - * @instance - */ - EventToken.prototype.shard = ""; - - /** - * EventToken position. - * @member {string} position - * @memberof query.EventToken - * @instance - */ - EventToken.prototype.position = ""; - - /** - * Creates a new EventToken instance using the specified properties. - * @function create - * @memberof query.EventToken - * @static - * @param {query.IEventToken=} [properties] Properties to set - * @returns {query.EventToken} EventToken instance - */ - EventToken.create = function create(properties) { - return new EventToken(properties); - }; - - /** - * Encodes the specified EventToken message. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @function encode - * @memberof query.EventToken - * @static - * @param {query.IEventToken} message EventToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timestamp); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.position); - return writer; - }; - - /** - * Encodes the specified EventToken message, length delimited. Does not implicitly {@link query.EventToken.verify|verify} messages. - * @function encodeDelimited - * @memberof query.EventToken - * @static - * @param {query.IEventToken} message EventToken message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventToken.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); + var message = new $root.query.Value(); + switch (object.type) { + case "NULL_TYPE": + case 0: + message.type = 0; + break; + case "INT8": + case 257: + message.type = 257; + break; + case "UINT8": + case 770: + message.type = 770; + break; + case "INT16": + case 259: + message.type = 259; + break; + case "UINT16": + case 772: + message.type = 772; + break; + case "INT24": + case 261: + message.type = 261; + break; + case "UINT24": + case 774: + message.type = 774; + break; + case "INT32": + case 263: + message.type = 263; + break; + case "UINT32": + case 776: + message.type = 776; + break; + case "INT64": + case 265: + message.type = 265; + break; + case "UINT64": + case 778: + message.type = 778; + break; + case "FLOAT32": + case 1035: + message.type = 1035; + break; + case "FLOAT64": + case 1036: + message.type = 1036; + break; + case "TIMESTAMP": + case 2061: + message.type = 2061; + break; + case "DATE": + case 2062: + message.type = 2062; + break; + case "TIME": + case 2063: + message.type = 2063; + break; + case "DATETIME": + case 2064: + message.type = 2064; + break; + case "YEAR": + case 785: + message.type = 785; + break; + case "DECIMAL": + case 18: + message.type = 18; + break; + case "TEXT": + case 6163: + message.type = 6163; + break; + case "BLOB": + case 10260: + message.type = 10260; + break; + case "VARCHAR": + case 6165: + message.type = 6165; + break; + case "VARBINARY": + case 10262: + message.type = 10262; + break; + case "CHAR": + case 6167: + message.type = 6167; + break; + case "BINARY": + case 10264: + message.type = 10264; + break; + case "BIT": + case 2073: + message.type = 2073; + break; + case "ENUM": + case 2074: + message.type = 2074; + break; + case "SET": + case 2075: + message.type = 2075; + break; + case "TUPLE": + case 28: + message.type = 28; + break; + case "GEOMETRY": + case 2077: + message.type = 2077; + break; + case "JSON": + case 2078: + message.type = 2078; + break; + case "EXPRESSION": + case 31: + message.type = 31; + break; + case "HEXNUM": + case 4128: + message.type = 4128; + break; + case "HEXVAL": + case 4129: + message.type = 4129; + break; + case "BITNUM": + case 4130: + message.type = 4130; + break; + } + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; }; /** - * Decodes an EventToken message from the specified reader or buffer. - * @function decode - * @memberof query.EventToken + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @function toObject + * @memberof query.Value * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.EventToken} EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * @param {query.Value} message Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - EventToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.EventToken(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.timestamp = reader.int64(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.position = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "NULL_TYPE" : 0; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); } } - return message; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.query.Type[message.type] : message.type; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; }; /** - * Decodes an EventToken message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.EventToken - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.EventToken} EventToken - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Converts this Value to JSON. + * @function toJSON + * @memberof query.Value + * @instance + * @returns {Object.} JSON object */ - EventToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); + Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return Value; + })(); + + query.BindVariable = (function() { + /** - * Verifies an EventToken message. - * @function verify - * @memberof query.EventToken - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Properties of a BindVariable. + * @memberof query + * @interface IBindVariable + * @property {query.Type|null} [type] BindVariable type + * @property {Uint8Array|null} [value] BindVariable value + * @property {Array.|null} [values] BindVariable values */ - EventToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.position != null && message.hasOwnProperty("position")) - if (!$util.isString(message.position)) - return "position: string expected"; - return null; - }; /** - * Creates an EventToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.EventToken + * Constructs a new BindVariable. + * @memberof query + * @classdesc Represents a BindVariable. + * @implements IBindVariable + * @constructor + * @param {query.IBindVariable=} [properties] Properties to set + */ + function BindVariable(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindVariable type. + * @member {query.Type} type + * @memberof query.BindVariable + * @instance + */ + BindVariable.prototype.type = 0; + + /** + * BindVariable value. + * @member {Uint8Array} value + * @memberof query.BindVariable + * @instance + */ + BindVariable.prototype.value = $util.newBuffer([]); + + /** + * BindVariable values. + * @member {Array.} values + * @memberof query.BindVariable + * @instance + */ + BindVariable.prototype.values = $util.emptyArray; + + /** + * Creates a new BindVariable instance using the specified properties. + * @function create + * @memberof query.BindVariable * @static - * @param {Object.} object Plain object - * @returns {query.EventToken} EventToken + * @param {query.IBindVariable=} [properties] Properties to set + * @returns {query.BindVariable} BindVariable instance */ - EventToken.fromObject = function fromObject(object) { - if (object instanceof $root.query.EventToken) - return object; - var message = new $root.query.EventToken(); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); - if (object.shard != null) - message.shard = String(object.shard); - if (object.position != null) - message.position = String(object.position); - return message; + BindVariable.create = function create(properties) { + return new BindVariable(properties); }; /** - * Creates a plain object from an EventToken message. Also converts values to other types if specified. - * @function toObject - * @memberof query.EventToken + * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @function encode + * @memberof query.BindVariable * @static - * @param {query.EventToken} message EventToken - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EventToken.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.shard = ""; - object.position = ""; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.position != null && message.hasOwnProperty("position")) - object.position = message.position; - return object; + BindVariable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; }; /** - * Converts this EventToken to JSON. - * @function toJSON - * @memberof query.EventToken - * @instance - * @returns {Object.} JSON object + * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * @function encodeDelimited + * @memberof query.BindVariable + * @static + * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EventToken.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + BindVariable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); }; - return EventToken; - })(); + /** + * Decodes a BindVariable message from the specified reader or buffer. + * @function decode + * @memberof query.BindVariable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {query.BindVariable} BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindVariable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.value = reader.bytes(); + break; + case 3: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.query.Value.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * MySqlFlag enum. - * @name query.MySqlFlag - * @enum {number} - * @property {number} EMPTY=0 EMPTY value - * @property {number} NOT_NULL_FLAG=1 NOT_NULL_FLAG value - * @property {number} PRI_KEY_FLAG=2 PRI_KEY_FLAG value - * @property {number} UNIQUE_KEY_FLAG=4 UNIQUE_KEY_FLAG value - * @property {number} MULTIPLE_KEY_FLAG=8 MULTIPLE_KEY_FLAG value - * @property {number} BLOB_FLAG=16 BLOB_FLAG value - * @property {number} UNSIGNED_FLAG=32 UNSIGNED_FLAG value - * @property {number} ZEROFILL_FLAG=64 ZEROFILL_FLAG value - * @property {number} BINARY_FLAG=128 BINARY_FLAG value - * @property {number} ENUM_FLAG=256 ENUM_FLAG value - * @property {number} AUTO_INCREMENT_FLAG=512 AUTO_INCREMENT_FLAG value - * @property {number} TIMESTAMP_FLAG=1024 TIMESTAMP_FLAG value - * @property {number} SET_FLAG=2048 SET_FLAG value - * @property {number} NO_DEFAULT_VALUE_FLAG=4096 NO_DEFAULT_VALUE_FLAG value - * @property {number} ON_UPDATE_NOW_FLAG=8192 ON_UPDATE_NOW_FLAG value - * @property {number} NUM_FLAG=32768 NUM_FLAG value - * @property {number} PART_KEY_FLAG=16384 PART_KEY_FLAG value - * @property {number} GROUP_FLAG=32768 GROUP_FLAG value - * @property {number} UNIQUE_FLAG=65536 UNIQUE_FLAG value - * @property {number} BINCMP_FLAG=131072 BINCMP_FLAG value - */ - query.MySqlFlag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EMPTY"] = 0; - values[valuesById[1] = "NOT_NULL_FLAG"] = 1; - values[valuesById[2] = "PRI_KEY_FLAG"] = 2; - values[valuesById[4] = "UNIQUE_KEY_FLAG"] = 4; - values[valuesById[8] = "MULTIPLE_KEY_FLAG"] = 8; - values[valuesById[16] = "BLOB_FLAG"] = 16; - values[valuesById[32] = "UNSIGNED_FLAG"] = 32; - values[valuesById[64] = "ZEROFILL_FLAG"] = 64; - values[valuesById[128] = "BINARY_FLAG"] = 128; - values[valuesById[256] = "ENUM_FLAG"] = 256; - values[valuesById[512] = "AUTO_INCREMENT_FLAG"] = 512; - values[valuesById[1024] = "TIMESTAMP_FLAG"] = 1024; - values[valuesById[2048] = "SET_FLAG"] = 2048; - values[valuesById[4096] = "NO_DEFAULT_VALUE_FLAG"] = 4096; - values[valuesById[8192] = "ON_UPDATE_NOW_FLAG"] = 8192; - values[valuesById[32768] = "NUM_FLAG"] = 32768; - values[valuesById[16384] = "PART_KEY_FLAG"] = 16384; - values["GROUP_FLAG"] = 32768; - values[valuesById[65536] = "UNIQUE_FLAG"] = 65536; - values[valuesById[131072] = "BINCMP_FLAG"] = 131072; - return values; - })(); - - /** - * Flag enum. - * @name query.Flag - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} ISINTEGRAL=256 ISINTEGRAL value - * @property {number} ISUNSIGNED=512 ISUNSIGNED value - * @property {number} ISFLOAT=1024 ISFLOAT value - * @property {number} ISQUOTED=2048 ISQUOTED value - * @property {number} ISTEXT=4096 ISTEXT value - * @property {number} ISBINARY=8192 ISBINARY value - */ - query.Flag = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[256] = "ISINTEGRAL"] = 256; - values[valuesById[512] = "ISUNSIGNED"] = 512; - values[valuesById[1024] = "ISFLOAT"] = 1024; - values[valuesById[2048] = "ISQUOTED"] = 2048; - values[valuesById[4096] = "ISTEXT"] = 4096; - values[valuesById[8192] = "ISBINARY"] = 8192; - return values; - })(); - - /** - * Type enum. - * @name query.Type - * @enum {number} - * @property {number} NULL_TYPE=0 NULL_TYPE value - * @property {number} INT8=257 INT8 value - * @property {number} UINT8=770 UINT8 value - * @property {number} INT16=259 INT16 value - * @property {number} UINT16=772 UINT16 value - * @property {number} INT24=261 INT24 value - * @property {number} UINT24=774 UINT24 value - * @property {number} INT32=263 INT32 value - * @property {number} UINT32=776 UINT32 value - * @property {number} INT64=265 INT64 value - * @property {number} UINT64=778 UINT64 value - * @property {number} FLOAT32=1035 FLOAT32 value - * @property {number} FLOAT64=1036 FLOAT64 value - * @property {number} TIMESTAMP=2061 TIMESTAMP value - * @property {number} DATE=2062 DATE value - * @property {number} TIME=2063 TIME value - * @property {number} DATETIME=2064 DATETIME value - * @property {number} YEAR=785 YEAR value - * @property {number} DECIMAL=18 DECIMAL value - * @property {number} TEXT=6163 TEXT value - * @property {number} BLOB=10260 BLOB value - * @property {number} VARCHAR=6165 VARCHAR value - * @property {number} VARBINARY=10262 VARBINARY value - * @property {number} CHAR=6167 CHAR value - * @property {number} BINARY=10264 BINARY value - * @property {number} BIT=2073 BIT value - * @property {number} ENUM=2074 ENUM value - * @property {number} SET=2075 SET value - * @property {number} TUPLE=28 TUPLE value - * @property {number} GEOMETRY=2077 GEOMETRY value - * @property {number} JSON=2078 JSON value - * @property {number} EXPRESSION=31 EXPRESSION value - * @property {number} HEXNUM=4128 HEXNUM value - * @property {number} HEXVAL=4129 HEXVAL value - * @property {number} BITNUM=4130 BITNUM value - */ - query.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_TYPE"] = 0; - values[valuesById[257] = "INT8"] = 257; - values[valuesById[770] = "UINT8"] = 770; - values[valuesById[259] = "INT16"] = 259; - values[valuesById[772] = "UINT16"] = 772; - values[valuesById[261] = "INT24"] = 261; - values[valuesById[774] = "UINT24"] = 774; - values[valuesById[263] = "INT32"] = 263; - values[valuesById[776] = "UINT32"] = 776; - values[valuesById[265] = "INT64"] = 265; - values[valuesById[778] = "UINT64"] = 778; - values[valuesById[1035] = "FLOAT32"] = 1035; - values[valuesById[1036] = "FLOAT64"] = 1036; - values[valuesById[2061] = "TIMESTAMP"] = 2061; - values[valuesById[2062] = "DATE"] = 2062; - values[valuesById[2063] = "TIME"] = 2063; - values[valuesById[2064] = "DATETIME"] = 2064; - values[valuesById[785] = "YEAR"] = 785; - values[valuesById[18] = "DECIMAL"] = 18; - values[valuesById[6163] = "TEXT"] = 6163; - values[valuesById[10260] = "BLOB"] = 10260; - values[valuesById[6165] = "VARCHAR"] = 6165; - values[valuesById[10262] = "VARBINARY"] = 10262; - values[valuesById[6167] = "CHAR"] = 6167; - values[valuesById[10264] = "BINARY"] = 10264; - values[valuesById[2073] = "BIT"] = 2073; - values[valuesById[2074] = "ENUM"] = 2074; - values[valuesById[2075] = "SET"] = 2075; - values[valuesById[28] = "TUPLE"] = 28; - values[valuesById[2077] = "GEOMETRY"] = 2077; - values[valuesById[2078] = "JSON"] = 2078; - values[valuesById[31] = "EXPRESSION"] = 31; - values[valuesById[4128] = "HEXNUM"] = 4128; - values[valuesById[4129] = "HEXVAL"] = 4129; - values[valuesById[4130] = "BITNUM"] = 4130; - return values; - })(); - - query.Value = (function() { - - /** - * Properties of a Value. - * @memberof query - * @interface IValue - * @property {query.Type|null} [type] Value type - * @property {Uint8Array|null} [value] Value value - */ - - /** - * Constructs a new Value. - * @memberof query - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {query.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value type. - * @member {query.Type} type - * @memberof query.Value - * @instance - */ - Value.prototype.type = 0; - - /** - * Value value. - * @member {Uint8Array} value - * @memberof query.Value - * @instance - */ - Value.prototype.value = $util.newBuffer([]); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof query.Value - * @static - * @param {query.IValue=} [properties] Properties to set - * @returns {query.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link query.Value.verify|verify} messages. - * @function encode - * @memberof query.Value - * @static - * @param {query.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - return writer; - }; - - /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link query.Value.verify|verify} messages. - * @function encodeDelimited - * @memberof query.Value - * @static - * @param {query.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof query.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Value message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof query.BindVariable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {query.BindVariable} BindVariable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindVariable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Verifies a Value message. + * Verifies a BindVariable message. * @function verify - * @memberof query.Value + * @memberof query.BindVariable * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message) { + BindVariable.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.type != null && message.hasOwnProperty("type")) @@ -57404,21 +57319,30 @@ $root.query = (function() { if (message.value != null && message.hasOwnProperty("value")) if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) return "value: buffer expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.query.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.Value + * @memberof query.BindVariable * @static * @param {Object.} object Plain object - * @returns {query.Value} Value + * @returns {query.BindVariable} BindVariable */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.query.Value) + BindVariable.fromObject = function fromObject(object) { + if (object instanceof $root.query.BindVariable) return object; - var message = new $root.query.Value(); + var message = new $root.query.BindVariable(); switch (object.type) { case "NULL_TYPE": case 0: @@ -57566,22 +57490,34 @@ $root.query = (function() { $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); else if (object.value.length) message.value = object.value; - return message; - }; - - /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @function toObject - * @memberof query.Value + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".query.BindVariable.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".query.BindVariable.values: object expected"); + message.values[i] = $root.query.Value.fromObject(object.values[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * @function toObject + * @memberof query.BindVariable * @static - * @param {query.Value} message Value + * @param {query.BindVariable} message BindVariable * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + BindVariable.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.values = []; if (options.defaults) { object.type = options.enums === String ? "NULL_TYPE" : 0; if (options.bytes === String) @@ -57596,44 +57532,48 @@ $root.query = (function() { object.type = options.enums === String ? $root.query.Type[message.type] : message.type; if (message.value != null && message.hasOwnProperty("value")) object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.query.Value.toObject(message.values[j], options); + } return object; }; /** - * Converts this Value to JSON. + * Converts this BindVariable to JSON. * @function toJSON - * @memberof query.Value + * @memberof query.BindVariable * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + BindVariable.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Value; + return BindVariable; })(); - query.BindVariable = (function() { + query.BoundQuery = (function() { /** - * Properties of a BindVariable. + * Properties of a BoundQuery. * @memberof query - * @interface IBindVariable - * @property {query.Type|null} [type] BindVariable type - * @property {Uint8Array|null} [value] BindVariable value - * @property {Array.|null} [values] BindVariable values + * @interface IBoundQuery + * @property {string|null} [sql] BoundQuery sql + * @property {Object.|null} [bind_variables] BoundQuery bind_variables */ /** - * Constructs a new BindVariable. + * Constructs a new BoundQuery. * @memberof query - * @classdesc Represents a BindVariable. - * @implements IBindVariable + * @classdesc Represents a BoundQuery. + * @implements IBoundQuery * @constructor - * @param {query.IBindVariable=} [properties] Properties to set + * @param {query.IBoundQuery=} [properties] Properties to set */ - function BindVariable(properties) { - this.values = []; + function BoundQuery(properties) { + this.bind_variables = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57641,104 +57581,110 @@ $root.query = (function() { } /** - * BindVariable type. - * @member {query.Type} type - * @memberof query.BindVariable - * @instance - */ - BindVariable.prototype.type = 0; - - /** - * BindVariable value. - * @member {Uint8Array} value - * @memberof query.BindVariable + * BoundQuery sql. + * @member {string} sql + * @memberof query.BoundQuery * @instance */ - BindVariable.prototype.value = $util.newBuffer([]); + BoundQuery.prototype.sql = ""; /** - * BindVariable values. - * @member {Array.} values - * @memberof query.BindVariable + * BoundQuery bind_variables. + * @member {Object.} bind_variables + * @memberof query.BoundQuery * @instance */ - BindVariable.prototype.values = $util.emptyArray; + BoundQuery.prototype.bind_variables = $util.emptyObject; /** - * Creates a new BindVariable instance using the specified properties. + * Creates a new BoundQuery instance using the specified properties. * @function create - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static - * @param {query.IBindVariable=} [properties] Properties to set - * @returns {query.BindVariable} BindVariable instance + * @param {query.IBoundQuery=} [properties] Properties to set + * @returns {query.BoundQuery} BoundQuery instance */ - BindVariable.create = function create(properties) { - return new BindVariable(properties); + BoundQuery.create = function create(properties) { + return new BoundQuery(properties); }; /** - * Encodes the specified BindVariable message. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encode - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encode = function encode(message, writer) { + BoundQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.query.Value.encode(message.values[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); + if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) + for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified BindVariable message, length delimited. Does not implicitly {@link query.BindVariable.verify|verify} messages. + * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. * @function encodeDelimited - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static - * @param {query.IBindVariable} message BindVariable message or plain object to encode + * @param {query.IBoundQuery} message BoundQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BindVariable.encodeDelimited = function encodeDelimited(message, writer) { + BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BindVariable message from the specified reader or buffer. + * Decodes a BoundQuery message from the specified reader or buffer. * @function decode - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {query.BindVariable} BindVariable + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decode = function decode(reader, length) { + BoundQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BindVariable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.sql = reader.string(); break; case 2: - message.value = reader.bytes(); - break; - case 3: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.query.Value.decode(reader, reader.uint32())); + if (message.bind_variables === $util.emptyObject) + message.bind_variables = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.query.BindVariable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.bind_variables[key] = value; break; default: reader.skipType(tag & 7); @@ -57749,331 +57695,144 @@ $root.query = (function() { }; /** - * Decodes a BindVariable message from the specified reader or buffer, length delimited. + * Decodes a BoundQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BindVariable} BindVariable + * @returns {query.BoundQuery} BoundQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BindVariable.decodeDelimited = function decodeDelimited(reader) { + BoundQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BindVariable message. + * Verifies a BoundQuery message. * @function verify - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BindVariable.verify = function verify(message) { + BoundQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 257: - case 770: - case 259: - case 772: - case 261: - case 774: - case 263: - case 776: - case 265: - case 778: - case 1035: - case 1036: - case 2061: - case 2062: - case 2063: - case 2064: - case 785: - case 18: - case 6163: - case 10260: - case 6165: - case 10262: - case 6167: - case 10264: - case 2073: - case 2074: - case 2075: - case 28: - case 2077: - case 2078: - case 31: - case 4128: - case 4129: - case 4130: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.query.Value.verify(message.values[i]); + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; + if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { + if (!$util.isObject(message.bind_variables)) + return "bind_variables: object expected"; + var key = Object.keys(message.bind_variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); if (error) - return "values." + error; + return "bind_variables." + error; } } return null; }; /** - * Creates a BindVariable message from a plain object. Also converts values to their respective internal types. + * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static * @param {Object.} object Plain object - * @returns {query.BindVariable} BindVariable + * @returns {query.BoundQuery} BoundQuery */ - BindVariable.fromObject = function fromObject(object) { - if (object instanceof $root.query.BindVariable) + BoundQuery.fromObject = function fromObject(object) { + if (object instanceof $root.query.BoundQuery) return object; - var message = new $root.query.BindVariable(); - switch (object.type) { - case "NULL_TYPE": - case 0: - message.type = 0; - break; - case "INT8": - case 257: - message.type = 257; - break; - case "UINT8": - case 770: - message.type = 770; - break; - case "INT16": - case 259: - message.type = 259; - break; - case "UINT16": - case 772: - message.type = 772; - break; - case "INT24": - case 261: - message.type = 261; - break; - case "UINT24": - case 774: - message.type = 774; - break; - case "INT32": - case 263: - message.type = 263; - break; - case "UINT32": - case 776: - message.type = 776; - break; - case "INT64": - case 265: - message.type = 265; - break; - case "UINT64": - case 778: - message.type = 778; - break; - case "FLOAT32": - case 1035: - message.type = 1035; - break; - case "FLOAT64": - case 1036: - message.type = 1036; - break; - case "TIMESTAMP": - case 2061: - message.type = 2061; - break; - case "DATE": - case 2062: - message.type = 2062; - break; - case "TIME": - case 2063: - message.type = 2063; - break; - case "DATETIME": - case 2064: - message.type = 2064; - break; - case "YEAR": - case 785: - message.type = 785; - break; - case "DECIMAL": - case 18: - message.type = 18; - break; - case "TEXT": - case 6163: - message.type = 6163; - break; - case "BLOB": - case 10260: - message.type = 10260; - break; - case "VARCHAR": - case 6165: - message.type = 6165; - break; - case "VARBINARY": - case 10262: - message.type = 10262; - break; - case "CHAR": - case 6167: - message.type = 6167; - break; - case "BINARY": - case 10264: - message.type = 10264; - break; - case "BIT": - case 2073: - message.type = 2073; - break; - case "ENUM": - case 2074: - message.type = 2074; - break; - case "SET": - case 2075: - message.type = 2075; - break; - case "TUPLE": - case 28: - message.type = 28; - break; - case "GEOMETRY": - case 2077: - message.type = 2077; - break; - case "JSON": - case 2078: - message.type = 2078; - break; - case "EXPRESSION": - case 31: - message.type = 31; - break; - case "HEXNUM": - case 4128: - message.type = 4128; - break; - case "HEXVAL": - case 4129: - message.type = 4129; - break; - case "BITNUM": - case 4130: - message.type = 4130; - break; - } - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".query.BindVariable.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".query.BindVariable.values: object expected"); - message.values[i] = $root.query.Value.fromObject(object.values[i]); + var message = new $root.query.BoundQuery(); + if (object.sql != null) + message.sql = String(object.sql); + if (object.bind_variables) { + if (typeof object.bind_variables !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables = {}; + for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { + if (typeof object.bind_variables[keys[i]] !== "object") + throw TypeError(".query.BoundQuery.bind_variables: object expected"); + message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); } } return message; }; /** - * Creates a plain object from a BindVariable message. Also converts values to other types if specified. + * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. * @function toObject - * @memberof query.BindVariable + * @memberof query.BoundQuery * @static - * @param {query.BindVariable} message BindVariable + * @param {query.BoundQuery} message BoundQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BindVariable.toObject = function toObject(message, options) { + BoundQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (options.defaults) { - object.type = options.enums === String ? "NULL_TYPE" : 0; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.query.Type[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.query.Value.toObject(message.values[j], options); + if (options.objects || options.defaults) + object.bind_variables = {}; + if (options.defaults) + object.sql = ""; + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; + var keys2; + if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { + object.bind_variables = {}; + for (var j = 0; j < keys2.length; ++j) + object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); } return object; }; /** - * Converts this BindVariable to JSON. + * Converts this BoundQuery to JSON. * @function toJSON - * @memberof query.BindVariable + * @memberof query.BoundQuery * @instance * @returns {Object.} JSON object */ - BindVariable.prototype.toJSON = function toJSON() { + BoundQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BindVariable; + return BoundQuery; })(); - query.BoundQuery = (function() { + query.ExecuteOptions = (function() { /** - * Properties of a BoundQuery. + * Properties of an ExecuteOptions. * @memberof query - * @interface IBoundQuery - * @property {string|null} [sql] BoundQuery sql - * @property {Object.|null} [bind_variables] BoundQuery bind_variables + * @interface IExecuteOptions + * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields + * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows + * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload + * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit + * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation + * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache + * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version + * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables + * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName + * @property {string|null} [priority] ExecuteOptions priority */ /** - * Constructs a new BoundQuery. + * Constructs a new ExecuteOptions. * @memberof query - * @classdesc Represents a BoundQuery. - * @implements IBoundQuery + * @classdesc Represents an ExecuteOptions. + * @implements IExecuteOptions * @constructor - * @param {query.IBoundQuery=} [properties] Properties to set + * @param {query.IExecuteOptions=} [properties] Properties to set */ - function BoundQuery(properties) { - this.bind_variables = {}; + function ExecuteOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58081,279 +57840,20 @@ $root.query = (function() { } /** - * BoundQuery sql. - * @member {string} sql - * @memberof query.BoundQuery + * ExecuteOptions included_fields. + * @member {query.ExecuteOptions.IncludedFields} included_fields + * @memberof query.ExecuteOptions * @instance */ - BoundQuery.prototype.sql = ""; + ExecuteOptions.prototype.included_fields = 0; /** - * BoundQuery bind_variables. - * @member {Object.} bind_variables - * @memberof query.BoundQuery + * ExecuteOptions client_found_rows. + * @member {boolean} client_found_rows + * @memberof query.ExecuteOptions * @instance */ - BoundQuery.prototype.bind_variables = $util.emptyObject; - - /** - * Creates a new BoundQuery instance using the specified properties. - * @function create - * @memberof query.BoundQuery - * @static - * @param {query.IBoundQuery=} [properties] Properties to set - * @returns {query.BoundQuery} BoundQuery instance - */ - BoundQuery.create = function create(properties) { - return new BoundQuery(properties); - }; - - /** - * Encodes the specified BoundQuery message. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @function encode - * @memberof query.BoundQuery - * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BoundQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sql); - if (message.bind_variables != null && Object.hasOwnProperty.call(message, "bind_variables")) - for (var keys = Object.keys(message.bind_variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.query.BindVariable.encode(message.bind_variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified BoundQuery message, length delimited. Does not implicitly {@link query.BoundQuery.verify|verify} messages. - * @function encodeDelimited - * @memberof query.BoundQuery - * @static - * @param {query.IBoundQuery} message BoundQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BoundQuery.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BoundQuery message from the specified reader or buffer. - * @function decode - * @memberof query.BoundQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {query.BoundQuery} BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BoundQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.query.BoundQuery(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sql = reader.string(); - break; - case 2: - if (message.bind_variables === $util.emptyObject) - message.bind_variables = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.query.BindVariable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.bind_variables[key] = value; - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BoundQuery message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof query.BoundQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {query.BoundQuery} BoundQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BoundQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BoundQuery message. - * @function verify - * @memberof query.BoundQuery - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BoundQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; - if (message.bind_variables != null && message.hasOwnProperty("bind_variables")) { - if (!$util.isObject(message.bind_variables)) - return "bind_variables: object expected"; - var key = Object.keys(message.bind_variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.query.BindVariable.verify(message.bind_variables[key[i]]); - if (error) - return "bind_variables." + error; - } - } - return null; - }; - - /** - * Creates a BoundQuery message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof query.BoundQuery - * @static - * @param {Object.} object Plain object - * @returns {query.BoundQuery} BoundQuery - */ - BoundQuery.fromObject = function fromObject(object) { - if (object instanceof $root.query.BoundQuery) - return object; - var message = new $root.query.BoundQuery(); - if (object.sql != null) - message.sql = String(object.sql); - if (object.bind_variables) { - if (typeof object.bind_variables !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables = {}; - for (var keys = Object.keys(object.bind_variables), i = 0; i < keys.length; ++i) { - if (typeof object.bind_variables[keys[i]] !== "object") - throw TypeError(".query.BoundQuery.bind_variables: object expected"); - message.bind_variables[keys[i]] = $root.query.BindVariable.fromObject(object.bind_variables[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a BoundQuery message. Also converts values to other types if specified. - * @function toObject - * @memberof query.BoundQuery - * @static - * @param {query.BoundQuery} message BoundQuery - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BoundQuery.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.bind_variables = {}; - if (options.defaults) - object.sql = ""; - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; - var keys2; - if (message.bind_variables && (keys2 = Object.keys(message.bind_variables)).length) { - object.bind_variables = {}; - for (var j = 0; j < keys2.length; ++j) - object.bind_variables[keys2[j]] = $root.query.BindVariable.toObject(message.bind_variables[keys2[j]], options); - } - return object; - }; - - /** - * Converts this BoundQuery to JSON. - * @function toJSON - * @memberof query.BoundQuery - * @instance - * @returns {Object.} JSON object - */ - BoundQuery.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BoundQuery; - })(); - - query.ExecuteOptions = (function() { - - /** - * Properties of an ExecuteOptions. - * @memberof query - * @interface IExecuteOptions - * @property {query.ExecuteOptions.IncludedFields|null} [included_fields] ExecuteOptions included_fields - * @property {boolean|null} [client_found_rows] ExecuteOptions client_found_rows - * @property {query.ExecuteOptions.Workload|null} [workload] ExecuteOptions workload - * @property {number|Long|null} [sql_select_limit] ExecuteOptions sql_select_limit - * @property {query.ExecuteOptions.TransactionIsolation|null} [transaction_isolation] ExecuteOptions transaction_isolation - * @property {boolean|null} [skip_query_plan_cache] ExecuteOptions skip_query_plan_cache - * @property {query.ExecuteOptions.PlannerVersion|null} [planner_version] ExecuteOptions planner_version - * @property {boolean|null} [has_created_temp_tables] ExecuteOptions has_created_temp_tables - * @property {string|null} [WorkloadName] ExecuteOptions WorkloadName - * @property {string|null} [priority] ExecuteOptions priority - */ - - /** - * Constructs a new ExecuteOptions. - * @memberof query - * @classdesc Represents an ExecuteOptions. - * @implements IExecuteOptions - * @constructor - * @param {query.IExecuteOptions=} [properties] Properties to set - */ - function ExecuteOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecuteOptions included_fields. - * @member {query.ExecuteOptions.IncludedFields} included_fields - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.included_fields = 0; - - /** - * ExecuteOptions client_found_rows. - * @member {boolean} client_found_rows - * @memberof query.ExecuteOptions - * @instance - */ - ExecuteOptions.prototype.client_found_rows = false; + ExecuteOptions.prototype.client_found_rows = false; /** * ExecuteOptions workload. @@ -83385,460 +82885,84 @@ $root.vtctldata = (function() { object.stream_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.stream_id = options.longs === String ? "0" : 0; - object.type = ""; - object.state = ""; - object.created_at = null; - object.updated_at = null; - object.message = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.count = options.longs === String ? "0" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") - object.id = options.longs === String ? String(message.id) : message.id; - else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.stream_id != null && message.hasOwnProperty("stream_id")) - if (typeof message.stream_id === "number") - object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; - else - object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; - if (message.created_at != null && message.hasOwnProperty("created_at")) - object.created_at = $root.vttime.Time.toObject(message.created_at, options); - if (message.updated_at != null && message.hasOwnProperty("updated_at")) - object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.count != null && message.hasOwnProperty("count")) - if (typeof message.count === "number") - object.count = options.longs === String ? String(message.count) : message.count; - else - object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; - return object; - }; - - /** - * Converts this Log to JSON. - * @function toJSON - * @memberof vtctldata.Workflow.Stream.Log - * @instance - * @returns {Object.} JSON object - */ - Log.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Log; - })(); - - return Stream; - })(); - - return Workflow; - })(); - - vtctldata.AddCellInfoRequest = (function() { - - /** - * Properties of an AddCellInfoRequest. - * @memberof vtctldata - * @interface IAddCellInfoRequest - * @property {string|null} [name] AddCellInfoRequest name - * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info - */ - - /** - * Constructs a new AddCellInfoRequest. - * @memberof vtctldata - * @classdesc Represents an AddCellInfoRequest. - * @implements IAddCellInfoRequest - * @constructor - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set - */ - function AddCellInfoRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AddCellInfoRequest name. - * @member {string} name - * @memberof vtctldata.AddCellInfoRequest - * @instance - */ - AddCellInfoRequest.prototype.name = ""; - - /** - * AddCellInfoRequest cell_info. - * @member {topodata.ICellInfo|null|undefined} cell_info - * @memberof vtctldata.AddCellInfoRequest - * @instance - */ - AddCellInfoRequest.prototype.cell_info = null; - - /** - * Creates a new AddCellInfoRequest instance using the specified properties. - * @function create - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance - */ - AddCellInfoRequest.create = function create(properties) { - return new AddCellInfoRequest(properties); - }; - - /** - * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @function encode - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddCellInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) - $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddCellInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddCellInfoRequest message. - * @function verify - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AddCellInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) { - var error = $root.topodata.CellInfo.verify(message.cell_info); - if (error) - return "cell_info." + error; - } - return null; - }; - - /** - * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest - */ - AddCellInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoRequest) - return object; - var message = new $root.vtctldata.AddCellInfoRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.cell_info != null) { - if (typeof object.cell_info !== "object") - throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); - message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); - } - return message; - }; - - /** - * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.AddCellInfoRequest - * @static - * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AddCellInfoRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.cell_info = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.cell_info != null && message.hasOwnProperty("cell_info")) - object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); - return object; - }; - - /** - * Converts this AddCellInfoRequest to JSON. - * @function toJSON - * @memberof vtctldata.AddCellInfoRequest - * @instance - * @returns {Object.} JSON object - */ - AddCellInfoRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AddCellInfoRequest; - })(); - - vtctldata.AddCellInfoResponse = (function() { - - /** - * Properties of an AddCellInfoResponse. - * @memberof vtctldata - * @interface IAddCellInfoResponse - */ - - /** - * Constructs a new AddCellInfoResponse. - * @memberof vtctldata - * @classdesc Represents an AddCellInfoResponse. - * @implements IAddCellInfoResponse - * @constructor - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set - */ - function AddCellInfoResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new AddCellInfoResponse instance using the specified properties. - * @function create - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance - */ - AddCellInfoResponse.create = function create(properties) { - return new AddCellInfoResponse(properties); - }; - - /** - * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @function encode - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddCellInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer. - * @function decode - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddCellInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AddCellInfoResponse message. - * @function verify - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AddCellInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + object.type = ""; + object.state = ""; + object.created_at = null; + object.updated_at = null; + object.message = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.count = options.longs === String ? "0" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + if (message.stream_id != null && message.hasOwnProperty("stream_id")) + if (typeof message.stream_id === "number") + object.stream_id = options.longs === String ? String(message.stream_id) : message.stream_id; + else + object.stream_id = options.longs === String ? $util.Long.prototype.toString.call(message.stream_id) : options.longs === Number ? new $util.LongBits(message.stream_id.low >>> 0, message.stream_id.high >>> 0).toNumber() : message.stream_id; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.state != null && message.hasOwnProperty("state")) + object.state = message.state; + if (message.created_at != null && message.hasOwnProperty("created_at")) + object.created_at = $root.vttime.Time.toObject(message.created_at, options); + if (message.updated_at != null && message.hasOwnProperty("updated_at")) + object.updated_at = $root.vttime.Time.toObject(message.updated_at, options); + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.count != null && message.hasOwnProperty("count")) + if (typeof message.count === "number") + object.count = options.longs === String ? String(message.count) : message.count; + else + object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count; + return object; + }; - /** - * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse - */ - AddCellInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellInfoResponse) - return object; - return new $root.vtctldata.AddCellInfoResponse(); - }; + /** + * Converts this Log to JSON. + * @function toJSON + * @memberof vtctldata.Workflow.Stream.Log + * @instance + * @returns {Object.} JSON object + */ + Log.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof vtctldata.AddCellInfoResponse - * @static - * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AddCellInfoResponse.toObject = function toObject() { - return {}; - }; + return Log; + })(); - /** - * Converts this AddCellInfoResponse to JSON. - * @function toJSON - * @memberof vtctldata.AddCellInfoResponse - * @instance - * @returns {Object.} JSON object - */ - AddCellInfoResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Stream; + })(); - return AddCellInfoResponse; + return Workflow; })(); - vtctldata.AddCellsAliasRequest = (function() { + vtctldata.AddCellInfoRequest = (function() { /** - * Properties of an AddCellsAliasRequest. + * Properties of an AddCellInfoRequest. * @memberof vtctldata - * @interface IAddCellsAliasRequest - * @property {string|null} [name] AddCellsAliasRequest name - * @property {Array.|null} [cells] AddCellsAliasRequest cells + * @interface IAddCellInfoRequest + * @property {string|null} [name] AddCellInfoRequest name + * @property {topodata.ICellInfo|null} [cell_info] AddCellInfoRequest cell_info */ /** - * Constructs a new AddCellsAliasRequest. + * Constructs a new AddCellInfoRequest. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasRequest. - * @implements IAddCellsAliasRequest + * @classdesc Represents an AddCellInfoRequest. + * @implements IAddCellInfoRequest * @constructor - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set */ - function AddCellsAliasRequest(properties) { - this.cells = []; + function AddCellInfoRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83846,81 +82970,80 @@ $root.vtctldata = (function() { } /** - * AddCellsAliasRequest name. + * AddCellInfoRequest name. * @member {string} name - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @instance */ - AddCellsAliasRequest.prototype.name = ""; + AddCellInfoRequest.prototype.name = ""; /** - * AddCellsAliasRequest cells. - * @member {Array.} cells - * @memberof vtctldata.AddCellsAliasRequest + * AddCellInfoRequest cell_info. + * @member {topodata.ICellInfo|null|undefined} cell_info + * @memberof vtctldata.AddCellInfoRequest * @instance */ - AddCellsAliasRequest.prototype.cells = $util.emptyArray; + AddCellInfoRequest.prototype.cell_info = null; /** - * Creates a new AddCellsAliasRequest instance using the specified properties. + * Creates a new AddCellInfoRequest instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static - * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance + * @param {vtctldata.IAddCellInfoRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest instance */ - AddCellsAliasRequest.create = function create(properties) { - return new AddCellsAliasRequest(properties); + AddCellInfoRequest.create = function create(properties) { + return new AddCellInfoRequest(properties); }; /** - * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified AddCellInfoRequest message. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encode = function encode(message, writer) { + AddCellInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); + if (message.cell_info != null && Object.hasOwnProperty.call(message, "cell_info")) + $root.topodata.CellInfo.encode(message.cell_info, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. + * Encodes the specified AddCellInfoRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static - * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode + * @param {vtctldata.IAddCellInfoRequest} message AddCellInfoRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddCellInfoRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer. + * Decodes an AddCellInfoRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decode = function decode(reader, length) { + AddCellInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83928,9 +83051,7 @@ $root.vtctldata = (function() { message.name = reader.string(); break; case 2: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.cell_info = $root.topodata.CellInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -83941,127 +83062,120 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. + * Decodes an AddCellInfoRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { + AddCellInfoRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasRequest message. + * Verifies an AddCellInfoRequest message. * @function verify - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasRequest.verify = function verify(message) { + AddCellInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.cell_info != null && message.hasOwnProperty("cell_info")) { + var error = $root.topodata.CellInfo.verify(message.cell_info); + if (error) + return "cell_info." + error; } return null; }; /** - * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddCellInfoRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + * @returns {vtctldata.AddCellInfoRequest} AddCellInfoRequest */ - AddCellsAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasRequest) + AddCellInfoRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoRequest) return object; - var message = new $root.vtctldata.AddCellsAliasRequest(); + var message = new $root.vtctldata.AddCellInfoRequest(); if (object.name != null) message.name = String(object.name); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + if (object.cell_info != null) { + if (typeof object.cell_info !== "object") + throw TypeError(".vtctldata.AddCellInfoRequest.cell_info: object expected"); + message.cell_info = $root.topodata.CellInfo.fromObject(object.cell_info); } return message; }; /** - * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddCellInfoRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @static - * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest + * @param {vtctldata.AddCellInfoRequest} message AddCellInfoRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasRequest.toObject = function toObject(message, options) { + AddCellInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.cell_info = null; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; - } + if (message.cell_info != null && message.hasOwnProperty("cell_info")) + object.cell_info = $root.topodata.CellInfo.toObject(message.cell_info, options); return object; }; /** - * Converts this AddCellsAliasRequest to JSON. + * Converts this AddCellInfoRequest to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasRequest + * @memberof vtctldata.AddCellInfoRequest * @instance * @returns {Object.} JSON object */ - AddCellsAliasRequest.prototype.toJSON = function toJSON() { + AddCellInfoRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasRequest; + return AddCellInfoRequest; })(); - vtctldata.AddCellsAliasResponse = (function() { + vtctldata.AddCellInfoResponse = (function() { /** - * Properties of an AddCellsAliasResponse. + * Properties of an AddCellInfoResponse. * @memberof vtctldata - * @interface IAddCellsAliasResponse + * @interface IAddCellInfoResponse */ /** - * Constructs a new AddCellsAliasResponse. + * Constructs a new AddCellInfoResponse. * @memberof vtctldata - * @classdesc Represents an AddCellsAliasResponse. - * @implements IAddCellsAliasResponse + * @classdesc Represents an AddCellInfoResponse. + * @implements IAddCellInfoResponse * @constructor - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set */ - function AddCellsAliasResponse(properties) { + function AddCellInfoResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84069,60 +83183,60 @@ $root.vtctldata = (function() { } /** - * Creates a new AddCellsAliasResponse instance using the specified properties. + * Creates a new AddCellInfoResponse instance using the specified properties. * @function create - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static - * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance + * @param {vtctldata.IAddCellInfoResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse instance */ - AddCellsAliasResponse.create = function create(properties) { - return new AddCellsAliasResponse(properties); + AddCellInfoResponse.create = function create(properties) { + return new AddCellInfoResponse(properties); }; /** - * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified AddCellInfoResponse message. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encode = function encode(message, writer) { + AddCellInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. + * Encodes the specified AddCellInfoResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellInfoResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static - * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode + * @param {vtctldata.IAddCellInfoResponse} message AddCellInfoResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddCellInfoResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer. + * Decodes an AddCellInfoResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decode = function decode(reader, length) { + AddCellInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellInfoResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84135,97 +83249,96 @@ $root.vtctldata = (function() { }; /** - * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. + * Decodes an AddCellInfoResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { + AddCellInfoResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddCellsAliasResponse message. + * Verifies an AddCellInfoResponse message. * @function verify - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddCellsAliasResponse.verify = function verify(message) { + AddCellInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddCellInfoResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse + * @returns {vtctldata.AddCellInfoResponse} AddCellInfoResponse */ - AddCellsAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.AddCellsAliasResponse) + AddCellInfoResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellInfoResponse) return object; - return new $root.vtctldata.AddCellsAliasResponse(); + return new $root.vtctldata.AddCellInfoResponse(); }; /** - * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddCellInfoResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @static - * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse + * @param {vtctldata.AddCellInfoResponse} message AddCellInfoResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddCellsAliasResponse.toObject = function toObject() { + AddCellInfoResponse.toObject = function toObject() { return {}; }; /** - * Converts this AddCellsAliasResponse to JSON. + * Converts this AddCellInfoResponse to JSON. * @function toJSON - * @memberof vtctldata.AddCellsAliasResponse + * @memberof vtctldata.AddCellInfoResponse * @instance * @returns {Object.} JSON object */ - AddCellsAliasResponse.prototype.toJSON = function toJSON() { + AddCellInfoResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddCellsAliasResponse; + return AddCellInfoResponse; })(); - vtctldata.ApplyRoutingRulesRequest = (function() { + vtctldata.AddCellsAliasRequest = (function() { /** - * Properties of an ApplyRoutingRulesRequest. + * Properties of an AddCellsAliasRequest. * @memberof vtctldata - * @interface IApplyRoutingRulesRequest - * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules - * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells + * @interface IAddCellsAliasRequest + * @property {string|null} [name] AddCellsAliasRequest name + * @property {Array.|null} [cells] AddCellsAliasRequest cells */ /** - * Constructs a new ApplyRoutingRulesRequest. + * Constructs a new AddCellsAliasRequest. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesRequest. - * @implements IApplyRoutingRulesRequest + * @classdesc Represents an AddCellsAliasRequest. + * @implements IAddCellsAliasRequest * @constructor - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set */ - function ApplyRoutingRulesRequest(properties) { - this.rebuild_cells = []; + function AddCellsAliasRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84233,104 +83346,91 @@ $root.vtctldata = (function() { } /** - * ApplyRoutingRulesRequest routing_rules. - * @member {vschema.IRoutingRules|null|undefined} routing_rules - * @memberof vtctldata.ApplyRoutingRulesRequest - * @instance - */ - ApplyRoutingRulesRequest.prototype.routing_rules = null; - - /** - * ApplyRoutingRulesRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyRoutingRulesRequest + * AddCellsAliasRequest name. + * @member {string} name + * @memberof vtctldata.AddCellsAliasRequest * @instance */ - ApplyRoutingRulesRequest.prototype.skip_rebuild = false; + AddCellsAliasRequest.prototype.name = ""; /** - * ApplyRoutingRulesRequest rebuild_cells. - * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyRoutingRulesRequest + * AddCellsAliasRequest cells. + * @member {Array.} cells + * @memberof vtctldata.AddCellsAliasRequest * @instance */ - ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + AddCellsAliasRequest.prototype.cells = $util.emptyArray; /** - * Creates a new ApplyRoutingRulesRequest instance using the specified properties. + * Creates a new AddCellsAliasRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance + * @param {vtctldata.IAddCellsAliasRequest=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest instance */ - ApplyRoutingRulesRequest.create = function create(properties) { - return new ApplyRoutingRulesRequest(properties); + AddCellsAliasRequest.create = function create(properties) { + return new AddCellsAliasRequest(properties); }; /** - * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified AddCellsAliasRequest message. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encode = function encode(message, writer) { + AddCellsAliasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) - $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.rebuild_cells != null && message.rebuild_cells.length) - for (var i = 0; i < message.rebuild_cells.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cells[i]); return writer; }; /** - * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. + * Encodes the specified AddCellsAliasRequest message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IAddCellsAliasRequest} message AddCellsAliasRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddCellsAliasRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. + * Decodes an AddCellsAliasRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decode = function decode(reader, length) { + AddCellsAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.skip_rebuild = reader.bool(); - break; - case 3: - if (!(message.rebuild_cells && message.rebuild_cells.length)) - message.rebuild_cells = []; - message.rebuild_cells.push(reader.string()); + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -84341,141 +83441,127 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an AddCellsAliasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + AddCellsAliasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesRequest message. + * Verifies an AddCellsAliasRequest message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesRequest.verify = function verify(message) { + AddCellsAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { - var error = $root.vschema.RoutingRules.verify(message.routing_rules); - if (error) - return "routing_rules." + error; - } - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { - if (!Array.isArray(message.rebuild_cells)) - return "rebuild_cells: array expected"; - for (var i = 0; i < message.rebuild_cells.length; ++i) - if (!$util.isString(message.rebuild_cells[i])) - return "rebuild_cells: string[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; } return null; }; /** - * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesRequest - * @static - * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest - */ - ApplyRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) - return object; - var message = new $root.vtctldata.ApplyRoutingRulesRequest(); - if (object.routing_rules != null) { - if (typeof object.routing_rules !== "object") - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); - message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); - } - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.rebuild_cells) { - if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); - message.rebuild_cells = []; - for (var i = 0; i < object.rebuild_cells.length; ++i) - message.rebuild_cells[i] = String(object.rebuild_cells[i]); + * Creates an AddCellsAliasRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof vtctldata.AddCellsAliasRequest + * @static + * @param {Object.} object Plain object + * @returns {vtctldata.AddCellsAliasRequest} AddCellsAliasRequest + */ + AddCellsAliasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasRequest) + return object; + var message = new $root.vtctldata.AddCellsAliasRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.AddCellsAliasRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } return message; }; /** - * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddCellsAliasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @static - * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest + * @param {vtctldata.AddCellsAliasRequest} message AddCellsAliasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesRequest.toObject = function toObject(message, options) { + AddCellsAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.rebuild_cells = []; - if (options.defaults) { - object.routing_rules = null; - object.skip_rebuild = false; - } - if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) - object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.rebuild_cells && message.rebuild_cells.length) { - object.rebuild_cells = []; - for (var j = 0; j < message.rebuild_cells.length; ++j) - object.rebuild_cells[j] = message.rebuild_cells[j]; + object.cells = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; } return object; }; /** - * Converts this ApplyRoutingRulesRequest to JSON. + * Converts this AddCellsAliasRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesRequest + * @memberof vtctldata.AddCellsAliasRequest * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { + AddCellsAliasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesRequest; + return AddCellsAliasRequest; })(); - vtctldata.ApplyRoutingRulesResponse = (function() { + vtctldata.AddCellsAliasResponse = (function() { /** - * Properties of an ApplyRoutingRulesResponse. + * Properties of an AddCellsAliasResponse. * @memberof vtctldata - * @interface IApplyRoutingRulesResponse + * @interface IAddCellsAliasResponse */ /** - * Constructs a new ApplyRoutingRulesResponse. + * Constructs a new AddCellsAliasResponse. * @memberof vtctldata - * @classdesc Represents an ApplyRoutingRulesResponse. - * @implements IApplyRoutingRulesResponse + * @classdesc Represents an AddCellsAliasResponse. + * @implements IAddCellsAliasResponse * @constructor - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set */ - function ApplyRoutingRulesResponse(properties) { + function AddCellsAliasResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84483,60 +83569,60 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyRoutingRulesResponse instance using the specified properties. + * Creates a new AddCellsAliasResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance + * @param {vtctldata.IAddCellsAliasResponse=} [properties] Properties to set + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse instance */ - ApplyRoutingRulesResponse.create = function create(properties) { - return new ApplyRoutingRulesResponse(properties); + AddCellsAliasResponse.create = function create(properties) { + return new AddCellsAliasResponse(properties); }; /** - * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified AddCellsAliasResponse message. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encode = function encode(message, writer) { + AddCellsAliasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. + * Encodes the specified AddCellsAliasResponse message, length delimited. Does not implicitly {@link vtctldata.AddCellsAliasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IAddCellsAliasResponse} message AddCellsAliasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddCellsAliasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. + * Decodes an AddCellsAliasResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decode = function decode(reader, length) { + AddCellsAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.AddCellsAliasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84549,96 +83635,96 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an AddCellsAliasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + AddCellsAliasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyRoutingRulesResponse message. + * Verifies an AddCellsAliasResponse message. * @function verify - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyRoutingRulesResponse.verify = function verify(message) { + AddCellsAliasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddCellsAliasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse + * @returns {vtctldata.AddCellsAliasResponse} AddCellsAliasResponse */ - ApplyRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) + AddCellsAliasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.AddCellsAliasResponse) return object; - return new $root.vtctldata.ApplyRoutingRulesResponse(); + return new $root.vtctldata.AddCellsAliasResponse(); }; /** - * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddCellsAliasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @static - * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse + * @param {vtctldata.AddCellsAliasResponse} message AddCellsAliasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyRoutingRulesResponse.toObject = function toObject() { + AddCellsAliasResponse.toObject = function toObject() { return {}; }; /** - * Converts this ApplyRoutingRulesResponse to JSON. + * Converts this AddCellsAliasResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyRoutingRulesResponse + * @memberof vtctldata.AddCellsAliasResponse * @instance * @returns {Object.} JSON object */ - ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { + AddCellsAliasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyRoutingRulesResponse; + return AddCellsAliasResponse; })(); - vtctldata.ApplyShardRoutingRulesRequest = (function() { + vtctldata.ApplyRoutingRulesRequest = (function() { /** - * Properties of an ApplyShardRoutingRulesRequest. + * Properties of an ApplyRoutingRulesRequest. * @memberof vtctldata - * @interface IApplyShardRoutingRulesRequest - * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules - * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild - * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells + * @interface IApplyRoutingRulesRequest + * @property {vschema.IRoutingRules|null} [routing_rules] ApplyRoutingRulesRequest routing_rules + * @property {boolean|null} [skip_rebuild] ApplyRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyRoutingRulesRequest rebuild_cells */ /** - * Constructs a new ApplyShardRoutingRulesRequest. + * Constructs a new ApplyRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesRequest. - * @implements IApplyShardRoutingRulesRequest + * @classdesc Represents an ApplyRoutingRulesRequest. + * @implements IApplyRoutingRulesRequest * @constructor - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set */ - function ApplyShardRoutingRulesRequest(properties) { + function ApplyRoutingRulesRequest(properties) { this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -84647,55 +83733,55 @@ $root.vtctldata = (function() { } /** - * ApplyShardRoutingRulesRequest shard_routing_rules. - * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * ApplyRoutingRulesRequest routing_rules. + * @member {vschema.IRoutingRules|null|undefined} routing_rules + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; + ApplyRoutingRulesRequest.prototype.routing_rules = null; /** - * ApplyShardRoutingRulesRequest skip_rebuild. + * ApplyRoutingRulesRequest skip_rebuild. * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; + ApplyRoutingRulesRequest.prototype.skip_rebuild = false; /** - * ApplyShardRoutingRulesRequest rebuild_cells. + * ApplyRoutingRulesRequest rebuild_cells. * @member {Array.} rebuild_cells - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance */ - ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; + ApplyRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; /** - * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. + * Creates a new ApplyRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance + * @param {vtctldata.IApplyRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest instance */ - ApplyShardRoutingRulesRequest.create = function create(properties) { - return new ApplyShardRoutingRulesRequest(properties); + ApplyRoutingRulesRequest.create = function create(properties) { + return new ApplyRoutingRulesRequest(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { + ApplyRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) - $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.routing_rules != null && Object.hasOwnProperty.call(message, "routing_rules")) + $root.vschema.RoutingRules.encode(message.routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); if (message.rebuild_cells != null && message.rebuild_cells.length) @@ -84705,38 +83791,38 @@ $root.vtctldata = (function() { }; /** - * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesRequest} message ApplyRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { + ApplyRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); + message.routing_rules = $root.vschema.RoutingRules.decode(reader, reader.uint32()); break; case 2: message.skip_rebuild = reader.bool(); @@ -84755,36 +83841,36 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesRequest message. + * Verifies an ApplyRoutingRulesRequest message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesRequest.verify = function verify(message) { + ApplyRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { - var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) { + var error = $root.vschema.RoutingRules.verify(message.routing_rules); if (error) - return "shard_routing_rules." + error; + return "routing_rules." + error; } if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) if (typeof message.skip_rebuild !== "boolean") @@ -84800,27 +83886,27 @@ $root.vtctldata = (function() { }; /** - * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest + * @returns {vtctldata.ApplyRoutingRulesRequest} ApplyRoutingRulesRequest */ - ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) + ApplyRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesRequest) return object; - var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); - if (object.shard_routing_rules != null) { - if (typeof object.shard_routing_rules !== "object") - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); - message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); + var message = new $root.vtctldata.ApplyRoutingRulesRequest(); + if (object.routing_rules != null) { + if (typeof object.routing_rules !== "object") + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.routing_rules: object expected"); + message.routing_rules = $root.vschema.RoutingRules.fromObject(object.routing_rules); } if (object.skip_rebuild != null) message.skip_rebuild = Boolean(object.skip_rebuild); if (object.rebuild_cells) { if (!Array.isArray(object.rebuild_cells)) - throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); + throw TypeError(".vtctldata.ApplyRoutingRulesRequest.rebuild_cells: array expected"); message.rebuild_cells = []; for (var i = 0; i < object.rebuild_cells.length; ++i) message.rebuild_cells[i] = String(object.rebuild_cells[i]); @@ -84829,26 +83915,26 @@ $root.vtctldata = (function() { }; /** - * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @static - * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest + * @param {vtctldata.ApplyRoutingRulesRequest} message ApplyRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { + ApplyRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.rebuild_cells = []; if (options.defaults) { - object.shard_routing_rules = null; + object.routing_rules = null; object.skip_rebuild = false; } - if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) - object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.routing_rules != null && message.hasOwnProperty("routing_rules")) + object.routing_rules = $root.vschema.RoutingRules.toObject(message.routing_rules, options); if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) object.skip_rebuild = message.skip_rebuild; if (message.rebuild_cells && message.rebuild_cells.length) { @@ -84860,36 +83946,36 @@ $root.vtctldata = (function() { }; /** - * Converts this ApplyShardRoutingRulesRequest to JSON. + * Converts this ApplyRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesRequest + * @memberof vtctldata.ApplyRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { + ApplyRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyShardRoutingRulesRequest; + return ApplyRoutingRulesRequest; })(); - vtctldata.ApplyShardRoutingRulesResponse = (function() { + vtctldata.ApplyRoutingRulesResponse = (function() { /** - * Properties of an ApplyShardRoutingRulesResponse. + * Properties of an ApplyRoutingRulesResponse. * @memberof vtctldata - * @interface IApplyShardRoutingRulesResponse + * @interface IApplyRoutingRulesResponse */ /** - * Constructs a new ApplyShardRoutingRulesResponse. + * Constructs a new ApplyRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an ApplyShardRoutingRulesResponse. - * @implements IApplyShardRoutingRulesResponse + * @classdesc Represents an ApplyRoutingRulesResponse. + * @implements IApplyRoutingRulesResponse * @constructor - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set */ - function ApplyShardRoutingRulesResponse(properties) { + function ApplyRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84897,60 +83983,60 @@ $root.vtctldata = (function() { } /** - * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. + * Creates a new ApplyRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance + * @param {vtctldata.IApplyRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse instance */ - ApplyShardRoutingRulesResponse.create = function create(properties) { - return new ApplyShardRoutingRulesResponse(properties); + ApplyRoutingRulesResponse.create = function create(properties) { + return new ApplyRoutingRulesResponse(properties); }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { + ApplyRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. + * Encodes the specified ApplyRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode + * @param {vtctldata.IApplyRoutingRulesResponse} message ApplyRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { + ApplyRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84963,104 +84049,97 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyShardRoutingRulesResponse message. + * Verifies an ApplyRoutingRulesResponse message. * @function verify - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyShardRoutingRulesResponse.verify = function verify(message) { + ApplyRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse + * @returns {vtctldata.ApplyRoutingRulesResponse} ApplyRoutingRulesResponse */ - ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) + ApplyRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyRoutingRulesResponse) return object; - return new $root.vtctldata.ApplyShardRoutingRulesResponse(); + return new $root.vtctldata.ApplyRoutingRulesResponse(); }; /** - * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @static - * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse + * @param {vtctldata.ApplyRoutingRulesResponse} message ApplyRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyShardRoutingRulesResponse.toObject = function toObject() { + ApplyRoutingRulesResponse.toObject = function toObject() { return {}; }; /** - * Converts this ApplyShardRoutingRulesResponse to JSON. + * Converts this ApplyRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyShardRoutingRulesResponse + * @memberof vtctldata.ApplyRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { + ApplyRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyShardRoutingRulesResponse; + return ApplyRoutingRulesResponse; })(); - vtctldata.ApplySchemaRequest = (function() { + vtctldata.ApplyShardRoutingRulesRequest = (function() { /** - * Properties of an ApplySchemaRequest. + * Properties of an ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @interface IApplySchemaRequest - * @property {string|null} [keyspace] ApplySchemaRequest keyspace - * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability - * @property {Array.|null} [sql] ApplySchemaRequest sql - * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy - * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list - * @property {string|null} [migration_context] ApplySchemaRequest migration_context - * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout - * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight - * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id + * @interface IApplyShardRoutingRulesRequest + * @property {vschema.IShardRoutingRules|null} [shard_routing_rules] ApplyShardRoutingRulesRequest shard_routing_rules + * @property {boolean|null} [skip_rebuild] ApplyShardRoutingRulesRequest skip_rebuild + * @property {Array.|null} [rebuild_cells] ApplyShardRoutingRulesRequest rebuild_cells */ /** - * Constructs a new ApplySchemaRequest. + * Constructs a new ApplyShardRoutingRulesRequest. * @memberof vtctldata - * @classdesc Represents an ApplySchemaRequest. - * @implements IApplySchemaRequest + * @classdesc Represents an ApplyShardRoutingRulesRequest. + * @implements IApplyShardRoutingRulesRequest * @constructor - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set */ - function ApplySchemaRequest(properties) { - this.sql = []; - this.uuid_list = []; + function ApplyShardRoutingRulesRequest(properties) { + this.rebuild_cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85068,185 +84147,104 @@ $root.vtctldata = (function() { } /** - * ApplySchemaRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.keyspace = ""; - - /** - * ApplySchemaRequest allow_long_unavailability. - * @member {boolean} allow_long_unavailability - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.allow_long_unavailability = false; - - /** - * ApplySchemaRequest sql. - * @member {Array.} sql - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.sql = $util.emptyArray; - - /** - * ApplySchemaRequest ddl_strategy. - * @member {string} ddl_strategy - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.ddl_strategy = ""; - - /** - * ApplySchemaRequest uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; - - /** - * ApplySchemaRequest migration_context. - * @member {string} migration_context - * @memberof vtctldata.ApplySchemaRequest - * @instance - */ - ApplySchemaRequest.prototype.migration_context = ""; - - /** - * ApplySchemaRequest wait_replicas_timeout. - * @member {vttime.IDuration|null|undefined} wait_replicas_timeout - * @memberof vtctldata.ApplySchemaRequest + * ApplyShardRoutingRulesRequest shard_routing_rules. + * @member {vschema.IShardRoutingRules|null|undefined} shard_routing_rules + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplySchemaRequest.prototype.wait_replicas_timeout = null; + ApplyShardRoutingRulesRequest.prototype.shard_routing_rules = null; /** - * ApplySchemaRequest skip_preflight. - * @member {boolean} skip_preflight - * @memberof vtctldata.ApplySchemaRequest + * ApplyShardRoutingRulesRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplySchemaRequest.prototype.skip_preflight = false; + ApplyShardRoutingRulesRequest.prototype.skip_rebuild = false; /** - * ApplySchemaRequest caller_id. - * @member {vtrpc.ICallerID|null|undefined} caller_id - * @memberof vtctldata.ApplySchemaRequest + * ApplyShardRoutingRulesRequest rebuild_cells. + * @member {Array.} rebuild_cells + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance */ - ApplySchemaRequest.prototype.caller_id = null; + ApplyShardRoutingRulesRequest.prototype.rebuild_cells = $util.emptyArray; /** - * Creates a new ApplySchemaRequest instance using the specified properties. + * Creates a new ApplyShardRoutingRulesRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance - */ - ApplySchemaRequest.create = function create(properties) { - return new ApplySchemaRequest(properties); + * @param {vtctldata.IApplyShardRoutingRulesRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest instance + */ + ApplyShardRoutingRulesRequest.create = function create(properties) { + return new ApplyShardRoutingRulesRequest(properties); }; /** - * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encode = function encode(message, writer) { + ApplyShardRoutingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); - if (message.sql != null && message.sql.length) - for (var i = 0; i < message.sql.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); - if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); - if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); - if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) - $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); - if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) - $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.shard_routing_rules != null && Object.hasOwnProperty.call(message, "shard_routing_rules")) + $root.vschema.ShardRoutingRules.encode(message.shard_routing_rules, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.rebuild_cells != null && message.rebuild_cells.length) + for (var i = 0; i < message.rebuild_cells.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.rebuild_cells[i]); return writer; }; /** - * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaRequest.decode = function decode(reader, length) { + ApplyShardRoutingRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.decode(reader, reader.uint32()); break; case 2: - message.allow_long_unavailability = reader.bool(); + message.skip_rebuild = reader.bool(); break; case 3: - if (!(message.sql && message.sql.length)) - message.sql = []; - message.sql.push(reader.string()); - break; - case 4: - message.ddl_strategy = reader.string(); - break; - case 5: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); - break; - case 6: - message.migration_context = reader.string(); - break; - case 7: - message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); - break; - case 8: - message.skip_preflight = reader.bool(); - break; - case 9: - message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); + if (!(message.rebuild_cells && message.rebuild_cells.length)) + message.rebuild_cells = []; + message.rebuild_cells.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -85257,209 +84255,141 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaRequest message. + * Verifies an ApplyShardRoutingRulesRequest message. * @function verify - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplySchemaRequest.verify = function verify(message) { + ApplyShardRoutingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - if (typeof message.allow_long_unavailability !== "boolean") - return "allow_long_unavailability: boolean expected"; - if (message.sql != null && message.hasOwnProperty("sql")) { - if (!Array.isArray(message.sql)) - return "sql: array expected"; - for (var i = 0; i < message.sql.length; ++i) - if (!$util.isString(message.sql[i])) - return "sql: string[] expected"; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - if (!$util.isString(message.ddl_strategy)) - return "ddl_strategy: string expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; - } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - if (!$util.isString(message.migration_context)) - return "migration_context: string expected"; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { - var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) { + var error = $root.vschema.ShardRoutingRules.verify(message.shard_routing_rules); if (error) - return "wait_replicas_timeout." + error; + return "shard_routing_rules." + error; } - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - if (typeof message.skip_preflight !== "boolean") - return "skip_preflight: boolean expected"; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) { - var error = $root.vtrpc.CallerID.verify(message.caller_id); - if (error) - return "caller_id." + error; + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.rebuild_cells != null && message.hasOwnProperty("rebuild_cells")) { + if (!Array.isArray(message.rebuild_cells)) + return "rebuild_cells: array expected"; + for (var i = 0; i < message.rebuild_cells.length; ++i) + if (!$util.isString(message.rebuild_cells[i])) + return "rebuild_cells: string[] expected"; } return null; }; /** - * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest + * @returns {vtctldata.ApplyShardRoutingRulesRequest} ApplyShardRoutingRulesRequest */ - ApplySchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaRequest) + ApplyShardRoutingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesRequest) return object; - var message = new $root.vtctldata.ApplySchemaRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.allow_long_unavailability != null) - message.allow_long_unavailability = Boolean(object.allow_long_unavailability); - if (object.sql) { - if (!Array.isArray(object.sql)) - throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); - message.sql = []; - for (var i = 0; i < object.sql.length; ++i) - message.sql[i] = String(object.sql[i]); - } - if (object.ddl_strategy != null) - message.ddl_strategy = String(object.ddl_strategy); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); - } - if (object.migration_context != null) - message.migration_context = String(object.migration_context); - if (object.wait_replicas_timeout != null) { - if (typeof object.wait_replicas_timeout !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); - message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + var message = new $root.vtctldata.ApplyShardRoutingRulesRequest(); + if (object.shard_routing_rules != null) { + if (typeof object.shard_routing_rules !== "object") + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.shard_routing_rules: object expected"); + message.shard_routing_rules = $root.vschema.ShardRoutingRules.fromObject(object.shard_routing_rules); } - if (object.skip_preflight != null) - message.skip_preflight = Boolean(object.skip_preflight); - if (object.caller_id != null) { - if (typeof object.caller_id !== "object") - throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); - message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.rebuild_cells) { + if (!Array.isArray(object.rebuild_cells)) + throw TypeError(".vtctldata.ApplyShardRoutingRulesRequest.rebuild_cells: array expected"); + message.rebuild_cells = []; + for (var i = 0; i < object.rebuild_cells.length; ++i) + message.rebuild_cells[i] = String(object.rebuild_cells[i]); } return message; }; /** - * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @static - * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest + * @param {vtctldata.ApplyShardRoutingRulesRequest} message ApplyShardRoutingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaRequest.toObject = function toObject(message, options) { + ApplyShardRoutingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sql = []; - object.uuid_list = []; - } + if (options.arrays || options.defaults) + object.rebuild_cells = []; if (options.defaults) { - object.keyspace = ""; - object.allow_long_unavailability = false; - object.ddl_strategy = ""; - object.migration_context = ""; - object.wait_replicas_timeout = null; - object.skip_preflight = false; - object.caller_id = null; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) - object.allow_long_unavailability = message.allow_long_unavailability; - if (message.sql && message.sql.length) { - object.sql = []; - for (var j = 0; j < message.sql.length; ++j) - object.sql[j] = message.sql[j]; - } - if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) - object.ddl_strategy = message.ddl_strategy; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; + object.shard_routing_rules = null; + object.skip_rebuild = false; + } + if (message.shard_routing_rules != null && message.hasOwnProperty("shard_routing_rules")) + object.shard_routing_rules = $root.vschema.ShardRoutingRules.toObject(message.shard_routing_rules, options); + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.rebuild_cells && message.rebuild_cells.length) { + object.rebuild_cells = []; + for (var j = 0; j < message.rebuild_cells.length; ++j) + object.rebuild_cells[j] = message.rebuild_cells[j]; } - if (message.migration_context != null && message.hasOwnProperty("migration_context")) - object.migration_context = message.migration_context; - if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) - object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); - if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) - object.skip_preflight = message.skip_preflight; - if (message.caller_id != null && message.hasOwnProperty("caller_id")) - object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ApplySchemaRequest to JSON. + * Converts this ApplyShardRoutingRulesRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaRequest + * @memberof vtctldata.ApplyShardRoutingRulesRequest * @instance * @returns {Object.} JSON object */ - ApplySchemaRequest.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaRequest; + return ApplyShardRoutingRulesRequest; })(); - vtctldata.ApplySchemaResponse = (function() { + vtctldata.ApplyShardRoutingRulesResponse = (function() { /** - * Properties of an ApplySchemaResponse. + * Properties of an ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @interface IApplySchemaResponse - * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list + * @interface IApplyShardRoutingRulesResponse */ /** - * Constructs a new ApplySchemaResponse. + * Constructs a new ApplyShardRoutingRulesResponse. * @memberof vtctldata - * @classdesc Represents an ApplySchemaResponse. - * @implements IApplySchemaResponse + * @classdesc Represents an ApplyShardRoutingRulesResponse. + * @implements IApplyShardRoutingRulesResponse * @constructor - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set */ - function ApplySchemaResponse(properties) { - this.uuid_list = []; + function ApplyShardRoutingRulesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85467,79 +84397,63 @@ $root.vtctldata = (function() { } /** - * ApplySchemaResponse uuid_list. - * @member {Array.} uuid_list - * @memberof vtctldata.ApplySchemaResponse - * @instance - */ - ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; - - /** - * Creates a new ApplySchemaResponse instance using the specified properties. + * Creates a new ApplyShardRoutingRulesResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance + * @param {vtctldata.IApplyShardRoutingRulesResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse instance */ - ApplySchemaResponse.create = function create(properties) { - return new ApplySchemaResponse(properties); + ApplyShardRoutingRulesResponse.create = function create(properties) { + return new ApplyShardRoutingRulesResponse(properties); }; /** - * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encode = function encode(message, writer) { + ApplyShardRoutingRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uuid_list != null && message.uuid_list.length) - for (var i = 0; i < message.uuid_list.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); return writer; }; /** - * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. + * Encodes the specified ApplyShardRoutingRulesResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyShardRoutingRulesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode + * @param {vtctldata.IApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyShardRoutingRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decode = function decode(reader, length) { + ApplyShardRoutingRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyShardRoutingRulesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.uuid_list && message.uuid_list.length)) - message.uuid_list = []; - message.uuid_list.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -85549,125 +84463,104 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyShardRoutingRulesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyShardRoutingRulesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplySchemaResponse message. + * Verifies an ApplyShardRoutingRulesResponse message. * @function verify - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplySchemaResponse.verify = function verify(message) { + ApplyShardRoutingRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { - if (!Array.isArray(message.uuid_list)) - return "uuid_list: array expected"; - for (var i = 0; i < message.uuid_list.length; ++i) - if (!$util.isString(message.uuid_list[i])) - return "uuid_list: string[] expected"; - } return null; }; /** - * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyShardRoutingRulesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse + * @returns {vtctldata.ApplyShardRoutingRulesResponse} ApplyShardRoutingRulesResponse */ - ApplySchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplySchemaResponse) + ApplyShardRoutingRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyShardRoutingRulesResponse) return object; - var message = new $root.vtctldata.ApplySchemaResponse(); - if (object.uuid_list) { - if (!Array.isArray(object.uuid_list)) - throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); - message.uuid_list = []; - for (var i = 0; i < object.uuid_list.length; ++i) - message.uuid_list[i] = String(object.uuid_list[i]); - } - return message; + return new $root.vtctldata.ApplyShardRoutingRulesResponse(); }; /** - * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyShardRoutingRulesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @static - * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse + * @param {vtctldata.ApplyShardRoutingRulesResponse} message ApplyShardRoutingRulesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplySchemaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uuid_list = []; - if (message.uuid_list && message.uuid_list.length) { - object.uuid_list = []; - for (var j = 0; j < message.uuid_list.length; ++j) - object.uuid_list[j] = message.uuid_list[j]; - } - return object; + ApplyShardRoutingRulesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ApplySchemaResponse to JSON. + * Converts this ApplyShardRoutingRulesResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplySchemaResponse + * @memberof vtctldata.ApplyShardRoutingRulesResponse * @instance * @returns {Object.} JSON object */ - ApplySchemaResponse.prototype.toJSON = function toJSON() { + ApplyShardRoutingRulesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplySchemaResponse; + return ApplyShardRoutingRulesResponse; })(); - vtctldata.ApplyVSchemaRequest = (function() { + vtctldata.ApplySchemaRequest = (function() { /** - * Properties of an ApplyVSchemaRequest. + * Properties of an ApplySchemaRequest. * @memberof vtctldata - * @interface IApplyVSchemaRequest - * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace - * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild - * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run - * @property {Array.|null} [cells] ApplyVSchemaRequest cells - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema - * @property {string|null} [sql] ApplyVSchemaRequest sql + * @interface IApplySchemaRequest + * @property {string|null} [keyspace] ApplySchemaRequest keyspace + * @property {boolean|null} [allow_long_unavailability] ApplySchemaRequest allow_long_unavailability + * @property {Array.|null} [sql] ApplySchemaRequest sql + * @property {string|null} [ddl_strategy] ApplySchemaRequest ddl_strategy + * @property {Array.|null} [uuid_list] ApplySchemaRequest uuid_list + * @property {string|null} [migration_context] ApplySchemaRequest migration_context + * @property {vttime.IDuration|null} [wait_replicas_timeout] ApplySchemaRequest wait_replicas_timeout + * @property {boolean|null} [skip_preflight] ApplySchemaRequest skip_preflight + * @property {vtrpc.ICallerID|null} [caller_id] ApplySchemaRequest caller_id */ /** - * Constructs a new ApplyVSchemaRequest. + * Constructs a new ApplySchemaRequest. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaRequest. - * @implements IApplyVSchemaRequest + * @classdesc Represents an ApplySchemaRequest. + * @implements IApplySchemaRequest * @constructor - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set */ - function ApplyVSchemaRequest(properties) { - this.cells = []; + function ApplySchemaRequest(properties) { + this.sql = []; + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85675,121 +84568,152 @@ $root.vtctldata = (function() { } /** - * ApplyVSchemaRequest keyspace. + * ApplySchemaRequest keyspace. * @member {string} keyspace - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.keyspace = ""; + ApplySchemaRequest.prototype.keyspace = ""; /** - * ApplyVSchemaRequest skip_rebuild. - * @member {boolean} skip_rebuild - * @memberof vtctldata.ApplyVSchemaRequest + * ApplySchemaRequest allow_long_unavailability. + * @member {boolean} allow_long_unavailability + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.skip_rebuild = false; + ApplySchemaRequest.prototype.allow_long_unavailability = false; /** - * ApplyVSchemaRequest dry_run. - * @member {boolean} dry_run - * @memberof vtctldata.ApplyVSchemaRequest + * ApplySchemaRequest sql. + * @member {Array.} sql + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.dry_run = false; + ApplySchemaRequest.prototype.sql = $util.emptyArray; /** - * ApplyVSchemaRequest cells. - * @member {Array.} cells - * @memberof vtctldata.ApplyVSchemaRequest + * ApplySchemaRequest ddl_strategy. + * @member {string} ddl_strategy + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + ApplySchemaRequest.prototype.ddl_strategy = ""; /** - * ApplyVSchemaRequest v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaRequest + * ApplySchemaRequest uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.v_schema = null; + ApplySchemaRequest.prototype.uuid_list = $util.emptyArray; /** - * ApplyVSchemaRequest sql. - * @member {string} sql - * @memberof vtctldata.ApplyVSchemaRequest + * ApplySchemaRequest migration_context. + * @member {string} migration_context + * @memberof vtctldata.ApplySchemaRequest * @instance */ - ApplyVSchemaRequest.prototype.sql = ""; + ApplySchemaRequest.prototype.migration_context = ""; + + /** + * ApplySchemaRequest wait_replicas_timeout. + * @member {vttime.IDuration|null|undefined} wait_replicas_timeout + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.wait_replicas_timeout = null; + + /** + * ApplySchemaRequest skip_preflight. + * @member {boolean} skip_preflight + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.skip_preflight = false; + + /** + * ApplySchemaRequest caller_id. + * @member {vtrpc.ICallerID|null|undefined} caller_id + * @memberof vtctldata.ApplySchemaRequest + * @instance + */ + ApplySchemaRequest.prototype.caller_id = null; /** - * Creates a new ApplyVSchemaRequest instance using the specified properties. + * Creates a new ApplySchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance + * @param {vtctldata.IApplySchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest instance */ - ApplyVSchemaRequest.create = function create(properties) { - return new ApplyVSchemaRequest(properties); + ApplySchemaRequest.create = function create(properties) { + return new ApplySchemaRequest(properties); }; /** - * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encode = function encode(message, writer) { + ApplySchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); - if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); - if (message.cells != null && message.cells.length) - for (var i = 0; i < message.cells.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); + if (message.allow_long_unavailability != null && Object.hasOwnProperty.call(message, "allow_long_unavailability")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_long_unavailability); + if (message.sql != null && message.sql.length) + for (var i = 0; i < message.sql.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sql[i]); + if (message.ddl_strategy != null && Object.hasOwnProperty.call(message, "ddl_strategy")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ddl_strategy); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.uuid_list[i]); + if (message.migration_context != null && Object.hasOwnProperty.call(message, "migration_context")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.migration_context); + if (message.wait_replicas_timeout != null && Object.hasOwnProperty.call(message, "wait_replicas_timeout")) + $root.vttime.Duration.encode(message.wait_replicas_timeout, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.skip_preflight != null && Object.hasOwnProperty.call(message, "skip_preflight")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.skip_preflight); + if (message.caller_id != null && Object.hasOwnProperty.call(message, "caller_id")) + $root.vtrpc.CallerID.encode(message.caller_id, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. + * Encodes the specified ApplySchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode + * @param {vtctldata.IApplySchemaRequest} message ApplySchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. + * Decodes an ApplySchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decode = function decode(reader, length) { + ApplySchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -85797,21 +84721,32 @@ $root.vtctldata = (function() { message.keyspace = reader.string(); break; case 2: - message.skip_rebuild = reader.bool(); + message.allow_long_unavailability = reader.bool(); break; case 3: - message.dry_run = reader.bool(); + if (!(message.sql && message.sql.length)) + message.sql = []; + message.sql.push(reader.string()); break; case 4: - if (!(message.cells && message.cells.length)) - message.cells = []; - message.cells.push(reader.string()); + message.ddl_strategy = reader.string(); break; case 5: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); break; case 6: - message.sql = reader.string(); + message.migration_context = reader.string(); + break; + case 7: + message.wait_replicas_timeout = $root.vttime.Duration.decode(reader, reader.uint32()); + break; + case 8: + message.skip_preflight = reader.bool(); + break; + case 9: + message.caller_id = $root.vtrpc.CallerID.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85822,166 +84757,209 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaRequest message. + * Verifies an ApplySchemaRequest message. * @function verify - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaRequest.verify = function verify(message) { + ApplySchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.keyspace != null && message.hasOwnProperty("keyspace")) if (!$util.isString(message.keyspace)) return "keyspace: string expected"; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - if (typeof message.skip_rebuild !== "boolean") - return "skip_rebuild: boolean expected"; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - if (typeof message.dry_run !== "boolean") - return "dry_run: boolean expected"; - if (message.cells != null && message.hasOwnProperty("cells")) { - if (!Array.isArray(message.cells)) - return "cells: array expected"; - for (var i = 0; i < message.cells.length; ++i) - if (!$util.isString(message.cells[i])) - return "cells: string[] expected"; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + if (typeof message.allow_long_unavailability !== "boolean") + return "allow_long_unavailability: boolean expected"; + if (message.sql != null && message.hasOwnProperty("sql")) { + if (!Array.isArray(message.sql)) + return "sql: array expected"; + for (var i = 0; i < message.sql.length; ++i) + if (!$util.isString(message.sql[i])) + return "sql: string[] expected"; } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + if (!$util.isString(message.ddl_strategy)) + return "ddl_strategy: string expected"; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; + } + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + if (!$util.isString(message.migration_context)) + return "migration_context: string expected"; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) { + var error = $root.vttime.Duration.verify(message.wait_replicas_timeout); if (error) - return "v_schema." + error; + return "wait_replicas_timeout." + error; + } + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + if (typeof message.skip_preflight !== "boolean") + return "skip_preflight: boolean expected"; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) { + var error = $root.vtrpc.CallerID.verify(message.caller_id); + if (error) + return "caller_id." + error; } - if (message.sql != null && message.hasOwnProperty("sql")) - if (!$util.isString(message.sql)) - return "sql: string expected"; return null; }; /** - * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest + * @returns {vtctldata.ApplySchemaRequest} ApplySchemaRequest */ - ApplyVSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaRequest) + ApplySchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaRequest) return object; - var message = new $root.vtctldata.ApplyVSchemaRequest(); + var message = new $root.vtctldata.ApplySchemaRequest(); if (object.keyspace != null) message.keyspace = String(object.keyspace); - if (object.skip_rebuild != null) - message.skip_rebuild = Boolean(object.skip_rebuild); - if (object.dry_run != null) - message.dry_run = Boolean(object.dry_run); - if (object.cells) { - if (!Array.isArray(object.cells)) - throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); - message.cells = []; - for (var i = 0; i < object.cells.length; ++i) - message.cells[i] = String(object.cells[i]); + if (object.allow_long_unavailability != null) + message.allow_long_unavailability = Boolean(object.allow_long_unavailability); + if (object.sql) { + if (!Array.isArray(object.sql)) + throw TypeError(".vtctldata.ApplySchemaRequest.sql: array expected"); + message.sql = []; + for (var i = 0; i < object.sql.length; ++i) + message.sql[i] = String(object.sql[i]); } - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + if (object.ddl_strategy != null) + message.ddl_strategy = String(object.ddl_strategy); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaRequest.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); + } + if (object.migration_context != null) + message.migration_context = String(object.migration_context); + if (object.wait_replicas_timeout != null) { + if (typeof object.wait_replicas_timeout !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.wait_replicas_timeout: object expected"); + message.wait_replicas_timeout = $root.vttime.Duration.fromObject(object.wait_replicas_timeout); + } + if (object.skip_preflight != null) + message.skip_preflight = Boolean(object.skip_preflight); + if (object.caller_id != null) { + if (typeof object.caller_id !== "object") + throw TypeError(".vtctldata.ApplySchemaRequest.caller_id: object expected"); + message.caller_id = $root.vtrpc.CallerID.fromObject(object.caller_id); } - if (object.sql != null) - message.sql = String(object.sql); return message; }; /** - * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @static - * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest + * @param {vtctldata.ApplySchemaRequest} message ApplySchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaRequest.toObject = function toObject(message, options) { + ApplySchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cells = []; + if (options.arrays || options.defaults) { + object.sql = []; + object.uuid_list = []; + } if (options.defaults) { object.keyspace = ""; - object.skip_rebuild = false; - object.dry_run = false; - object.v_schema = null; - object.sql = ""; + object.allow_long_unavailability = false; + object.ddl_strategy = ""; + object.migration_context = ""; + object.wait_replicas_timeout = null; + object.skip_preflight = false; + object.caller_id = null; } if (message.keyspace != null && message.hasOwnProperty("keyspace")) object.keyspace = message.keyspace; - if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) - object.skip_rebuild = message.skip_rebuild; - if (message.dry_run != null && message.hasOwnProperty("dry_run")) - object.dry_run = message.dry_run; - if (message.cells && message.cells.length) { - object.cells = []; - for (var j = 0; j < message.cells.length; ++j) - object.cells[j] = message.cells[j]; + if (message.allow_long_unavailability != null && message.hasOwnProperty("allow_long_unavailability")) + object.allow_long_unavailability = message.allow_long_unavailability; + if (message.sql && message.sql.length) { + object.sql = []; + for (var j = 0; j < message.sql.length; ++j) + object.sql[j] = message.sql[j]; + } + if (message.ddl_strategy != null && message.hasOwnProperty("ddl_strategy")) + object.ddl_strategy = message.ddl_strategy; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; } - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); - if (message.sql != null && message.hasOwnProperty("sql")) - object.sql = message.sql; + if (message.migration_context != null && message.hasOwnProperty("migration_context")) + object.migration_context = message.migration_context; + if (message.wait_replicas_timeout != null && message.hasOwnProperty("wait_replicas_timeout")) + object.wait_replicas_timeout = $root.vttime.Duration.toObject(message.wait_replicas_timeout, options); + if (message.skip_preflight != null && message.hasOwnProperty("skip_preflight")) + object.skip_preflight = message.skip_preflight; + if (message.caller_id != null && message.hasOwnProperty("caller_id")) + object.caller_id = $root.vtrpc.CallerID.toObject(message.caller_id, options); return object; }; /** - * Converts this ApplyVSchemaRequest to JSON. + * Converts this ApplySchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaRequest + * @memberof vtctldata.ApplySchemaRequest * @instance * @returns {Object.} JSON object */ - ApplyVSchemaRequest.prototype.toJSON = function toJSON() { + ApplySchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaRequest; + return ApplySchemaRequest; })(); - vtctldata.ApplyVSchemaResponse = (function() { + vtctldata.ApplySchemaResponse = (function() { /** - * Properties of an ApplyVSchemaResponse. + * Properties of an ApplySchemaResponse. * @memberof vtctldata - * @interface IApplyVSchemaResponse - * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema + * @interface IApplySchemaResponse + * @property {Array.|null} [uuid_list] ApplySchemaResponse uuid_list */ /** - * Constructs a new ApplyVSchemaResponse. + * Constructs a new ApplySchemaResponse. * @memberof vtctldata - * @classdesc Represents an ApplyVSchemaResponse. - * @implements IApplyVSchemaResponse + * @classdesc Represents an ApplySchemaResponse. + * @implements IApplySchemaResponse * @constructor - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set */ - function ApplyVSchemaResponse(properties) { + function ApplySchemaResponse(properties) { + this.uuid_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85989,75 +84967,78 @@ $root.vtctldata = (function() { } /** - * ApplyVSchemaResponse v_schema. - * @member {vschema.IKeyspace|null|undefined} v_schema - * @memberof vtctldata.ApplyVSchemaResponse + * ApplySchemaResponse uuid_list. + * @member {Array.} uuid_list + * @memberof vtctldata.ApplySchemaResponse * @instance */ - ApplyVSchemaResponse.prototype.v_schema = null; + ApplySchemaResponse.prototype.uuid_list = $util.emptyArray; /** - * Creates a new ApplyVSchemaResponse instance using the specified properties. + * Creates a new ApplySchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance + * @param {vtctldata.IApplySchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse instance */ - ApplyVSchemaResponse.create = function create(properties) { - return new ApplyVSchemaResponse(properties); + ApplySchemaResponse.create = function create(properties) { + return new ApplySchemaResponse(properties); }; /** - * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encode = function encode(message, writer) { + ApplySchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) - $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uuid_list != null && message.uuid_list.length) + for (var i = 0; i < message.uuid_list.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid_list[i]); return writer; }; /** - * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. + * Encodes the specified ApplySchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplySchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode + * @param {vtctldata.IApplySchemaResponse} message ApplySchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplySchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. + * Decodes an ApplySchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decode = function decode(reader, length) { + ApplySchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplySchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + if (!(message.uuid_list && message.uuid_list.length)) + message.uuid_list = []; + message.uuid_list.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -86068,114 +85049,125 @@ $root.vtctldata = (function() { }; /** - * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplySchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { + ApplySchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ApplyVSchemaResponse message. + * Verifies an ApplySchemaResponse message. * @function verify - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplyVSchemaResponse.verify = function verify(message) { + ApplySchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) { - var error = $root.vschema.Keyspace.verify(message.v_schema); - if (error) - return "v_schema." + error; + if (message.uuid_list != null && message.hasOwnProperty("uuid_list")) { + if (!Array.isArray(message.uuid_list)) + return "uuid_list: array expected"; + for (var i = 0; i < message.uuid_list.length; ++i) + if (!$util.isString(message.uuid_list[i])) + return "uuid_list: string[] expected"; } return null; }; /** - * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplySchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse + * @returns {vtctldata.ApplySchemaResponse} ApplySchemaResponse */ - ApplyVSchemaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ApplyVSchemaResponse) + ApplySchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplySchemaResponse) return object; - var message = new $root.vtctldata.ApplyVSchemaResponse(); - if (object.v_schema != null) { - if (typeof object.v_schema !== "object") - throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); - message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + var message = new $root.vtctldata.ApplySchemaResponse(); + if (object.uuid_list) { + if (!Array.isArray(object.uuid_list)) + throw TypeError(".vtctldata.ApplySchemaResponse.uuid_list: array expected"); + message.uuid_list = []; + for (var i = 0; i < object.uuid_list.length; ++i) + message.uuid_list[i] = String(object.uuid_list[i]); } return message; }; /** - * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplySchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @static - * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse + * @param {vtctldata.ApplySchemaResponse} message ApplySchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplyVSchemaResponse.toObject = function toObject(message, options) { + ApplySchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.v_schema = null; - if (message.v_schema != null && message.hasOwnProperty("v_schema")) - object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (options.arrays || options.defaults) + object.uuid_list = []; + if (message.uuid_list && message.uuid_list.length) { + object.uuid_list = []; + for (var j = 0; j < message.uuid_list.length; ++j) + object.uuid_list[j] = message.uuid_list[j]; + } return object; }; /** - * Converts this ApplyVSchemaResponse to JSON. + * Converts this ApplySchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.ApplyVSchemaResponse + * @memberof vtctldata.ApplySchemaResponse * @instance * @returns {Object.} JSON object */ - ApplyVSchemaResponse.prototype.toJSON = function toJSON() { + ApplySchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ApplyVSchemaResponse; + return ApplySchemaResponse; })(); - vtctldata.BackupRequest = (function() { + vtctldata.ApplyVSchemaRequest = (function() { /** - * Properties of a BackupRequest. + * Properties of an ApplyVSchemaRequest. * @memberof vtctldata - * @interface IBackupRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias - * @property {boolean|null} [allow_primary] BackupRequest allow_primary - * @property {number|Long|null} [concurrency] BackupRequest concurrency + * @interface IApplyVSchemaRequest + * @property {string|null} [keyspace] ApplyVSchemaRequest keyspace + * @property {boolean|null} [skip_rebuild] ApplyVSchemaRequest skip_rebuild + * @property {boolean|null} [dry_run] ApplyVSchemaRequest dry_run + * @property {Array.|null} [cells] ApplyVSchemaRequest cells + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaRequest v_schema + * @property {string|null} [sql] ApplyVSchemaRequest sql */ /** - * Constructs a new BackupRequest. + * Constructs a new ApplyVSchemaRequest. * @memberof vtctldata - * @classdesc Represents a BackupRequest. - * @implements IBackupRequest + * @classdesc Represents an ApplyVSchemaRequest. + * @implements IApplyVSchemaRequest * @constructor - * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set */ - function BackupRequest(properties) { + function ApplyVSchemaRequest(properties) { + this.cells = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86183,101 +85175,143 @@ $root.vtctldata = (function() { } /** - * BackupRequest tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupRequest + * ApplyVSchemaRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - BackupRequest.prototype.tablet_alias = null; + ApplyVSchemaRequest.prototype.keyspace = ""; /** - * BackupRequest allow_primary. - * @member {boolean} allow_primary - * @memberof vtctldata.BackupRequest + * ApplyVSchemaRequest skip_rebuild. + * @member {boolean} skip_rebuild + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - BackupRequest.prototype.allow_primary = false; + ApplyVSchemaRequest.prototype.skip_rebuild = false; /** - * BackupRequest concurrency. - * @member {number|Long} concurrency - * @memberof vtctldata.BackupRequest + * ApplyVSchemaRequest dry_run. + * @member {boolean} dry_run + * @memberof vtctldata.ApplyVSchemaRequest * @instance */ - BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ApplyVSchemaRequest.prototype.dry_run = false; /** - * Creates a new BackupRequest instance using the specified properties. + * ApplyVSchemaRequest cells. + * @member {Array.} cells + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.cells = $util.emptyArray; + + /** + * ApplyVSchemaRequest v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.v_schema = null; + + /** + * ApplyVSchemaRequest sql. + * @member {string} sql + * @memberof vtctldata.ApplyVSchemaRequest + * @instance + */ + ApplyVSchemaRequest.prototype.sql = ""; + + /** + * Creates a new ApplyVSchemaRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IBackupRequest=} [properties] Properties to set - * @returns {vtctldata.BackupRequest} BackupRequest instance + * @param {vtctldata.IApplyVSchemaRequest=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest instance */ - BackupRequest.create = function create(properties) { - return new BackupRequest(properties); + ApplyVSchemaRequest.create = function create(properties) { + return new ApplyVSchemaRequest(properties); }; /** - * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer) { + ApplyVSchemaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); - if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.skip_rebuild != null && Object.hasOwnProperty.call(message, "skip_rebuild")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.skip_rebuild); + if (message.dry_run != null && Object.hasOwnProperty.call(message, "dry_run")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dry_run); + if (message.cells != null && message.cells.length) + for (var i = 0; i < message.cells.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.cells[i]); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sql != null && Object.hasOwnProperty.call(message, "sql")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sql); return writer; }; /** - * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. + * Encodes the specified ApplyVSchemaRequest message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode + * @param {vtctldata.IApplyVSchemaRequest} message ApplyVSchemaRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupRequest message from the specified reader or buffer. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decode = function decode(reader, length) { + ApplyVSchemaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + message.keyspace = reader.string(); break; case 2: - message.allow_primary = reader.bool(); + message.skip_rebuild = reader.bool(); break; case 3: - message.concurrency = reader.uint64(); + message.dry_run = reader.bool(); + break; + case 4: + if (!(message.cells && message.cells.length)) + message.cells = []; + message.cells.push(reader.string()); + break; + case 5: + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); + break; + case 6: + message.sql = reader.string(); break; default: reader.skipType(tag & 7); @@ -86288,261 +85322,242 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupRequest message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupRequest message. + * Verifies an ApplyVSchemaRequest message. * @function verify - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupRequest.verify = function verify(message) { + ApplyVSchemaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + if (typeof message.skip_rebuild !== "boolean") + return "skip_rebuild: boolean expected"; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + if (typeof message.dry_run !== "boolean") + return "dry_run: boolean expected"; + if (message.cells != null && message.hasOwnProperty("cells")) { + if (!Array.isArray(message.cells)) + return "cells: array expected"; + for (var i = 0; i < message.cells.length; ++i) + if (!$util.isString(message.cells[i])) + return "cells: string[] expected"; + } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); if (error) - return "tablet_alias." + error; + return "v_schema." + error; } - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - if (typeof message.allow_primary !== "boolean") - return "allow_primary: boolean expected"; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) - return "concurrency: integer|Long expected"; + if (message.sql != null && message.hasOwnProperty("sql")) + if (!$util.isString(message.sql)) + return "sql: string expected"; return null; }; /** - * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupRequest} BackupRequest + * @returns {vtctldata.ApplyVSchemaRequest} ApplyVSchemaRequest */ - BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupRequest) + ApplyVSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaRequest) return object; - var message = new $root.vtctldata.BackupRequest(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + var message = new $root.vtctldata.ApplyVSchemaRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.skip_rebuild != null) + message.skip_rebuild = Boolean(object.skip_rebuild); + if (object.dry_run != null) + message.dry_run = Boolean(object.dry_run); + if (object.cells) { + if (!Array.isArray(object.cells)) + throw TypeError(".vtctldata.ApplyVSchemaRequest.cells: array expected"); + message.cells = []; + for (var i = 0; i < object.cells.length; ++i) + message.cells[i] = String(object.cells[i]); } - if (object.allow_primary != null) - message.allow_primary = Boolean(object.allow_primary); - if (object.concurrency != null) - if ($util.Long) - (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; - else if (typeof object.concurrency === "string") - message.concurrency = parseInt(object.concurrency, 10); - else if (typeof object.concurrency === "number") - message.concurrency = object.concurrency; - else if (typeof object.concurrency === "object") - message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaRequest.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); + } + if (object.sql != null) + message.sql = String(object.sql); return message; }; /** - * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. + * Creates a plain object from an ApplyVSchemaRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @static - * @param {vtctldata.BackupRequest} message BackupRequest + * @param {vtctldata.ApplyVSchemaRequest} message ApplyVSchemaRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options) { + ApplyVSchemaRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.cells = []; if (options.defaults) { - object.tablet_alias = null; - object.allow_primary = false; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.concurrency = options.longs === String ? "0" : 0; + object.keyspace = ""; + object.skip_rebuild = false; + object.dry_run = false; + object.v_schema = null; + object.sql = ""; } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) - object.allow_primary = message.allow_primary; - if (message.concurrency != null && message.hasOwnProperty("concurrency")) - if (typeof message.concurrency === "number") - object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; - else - object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.skip_rebuild != null && message.hasOwnProperty("skip_rebuild")) + object.skip_rebuild = message.skip_rebuild; + if (message.dry_run != null && message.hasOwnProperty("dry_run")) + object.dry_run = message.dry_run; + if (message.cells && message.cells.length) { + object.cells = []; + for (var j = 0; j < message.cells.length; ++j) + object.cells[j] = message.cells[j]; + } + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); + if (message.sql != null && message.hasOwnProperty("sql")) + object.sql = message.sql; return object; }; /** - * Converts this BackupRequest to JSON. + * Converts this ApplyVSchemaRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupRequest + * @memberof vtctldata.ApplyVSchemaRequest * @instance * @returns {Object.} JSON object */ - BackupRequest.prototype.toJSON = function toJSON() { + ApplyVSchemaRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupRequest; + return ApplyVSchemaRequest; })(); - vtctldata.BackupResponse = (function() { - - /** - * Properties of a BackupResponse. - * @memberof vtctldata - * @interface IBackupResponse - * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias - * @property {string|null} [keyspace] BackupResponse keyspace - * @property {string|null} [shard] BackupResponse shard - * @property {logutil.IEvent|null} [event] BackupResponse event - */ + vtctldata.ApplyVSchemaResponse = (function() { /** - * Constructs a new BackupResponse. + * Properties of an ApplyVSchemaResponse. * @memberof vtctldata - * @classdesc Represents a BackupResponse. - * @implements IBackupResponse - * @constructor - * @param {vtctldata.IBackupResponse=} [properties] Properties to set - */ - function BackupResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BackupResponse tablet_alias. - * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.BackupResponse - * @instance - */ - BackupResponse.prototype.tablet_alias = null; - - /** - * BackupResponse keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupResponse - * @instance + * @interface IApplyVSchemaResponse + * @property {vschema.IKeyspace|null} [v_schema] ApplyVSchemaResponse v_schema */ - BackupResponse.prototype.keyspace = ""; - /** - * BackupResponse shard. - * @member {string} shard - * @memberof vtctldata.BackupResponse - * @instance + /** + * Constructs a new ApplyVSchemaResponse. + * @memberof vtctldata + * @classdesc Represents an ApplyVSchemaResponse. + * @implements IApplyVSchemaResponse + * @constructor + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set */ - BackupResponse.prototype.shard = ""; + function ApplyVSchemaResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * BackupResponse event. - * @member {logutil.IEvent|null|undefined} event - * @memberof vtctldata.BackupResponse + * ApplyVSchemaResponse v_schema. + * @member {vschema.IKeyspace|null|undefined} v_schema + * @memberof vtctldata.ApplyVSchemaResponse * @instance */ - BackupResponse.prototype.event = null; + ApplyVSchemaResponse.prototype.v_schema = null; /** - * Creates a new BackupResponse instance using the specified properties. + * Creates a new ApplyVSchemaResponse instance using the specified properties. * @function create - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IBackupResponse=} [properties] Properties to set - * @returns {vtctldata.BackupResponse} BackupResponse instance + * @param {vtctldata.IApplyVSchemaResponse=} [properties] Properties to set + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse instance */ - BackupResponse.create = function create(properties) { - return new BackupResponse(properties); + ApplyVSchemaResponse.create = function create(properties) { + return new ApplyVSchemaResponse(properties); }; /** - * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer) { + ApplyVSchemaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) - $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.v_schema != null && Object.hasOwnProperty.call(message, "v_schema")) + $root.vschema.Keyspace.encode(message.v_schema, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. + * Encodes the specified ApplyVSchemaResponse message, length delimited. Does not implicitly {@link vtctldata.ApplyVSchemaResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode + * @param {vtctldata.IApplyVSchemaResponse} message ApplyVSchemaResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { + ApplyVSchemaResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupResponse message from the specified reader or buffer. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decode = function decode(reader, length) { + ApplyVSchemaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ApplyVSchemaResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - case 2: - message.keyspace = reader.string(); - break; - case 3: - message.shard = reader.string(); - break; - case 4: - message.event = $root.logutil.Event.decode(reader, reader.uint32()); + message.v_schema = $root.vschema.Keyspace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -86553,145 +85568,114 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupResponse message from the specified reader or buffer, length delimited. + * Decodes an ApplyVSchemaResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decodeDelimited = function decodeDelimited(reader) { + ApplyVSchemaResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupResponse message. + * Verifies an ApplyVSchemaResponse message. * @function verify - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupResponse.verify = function verify(message) { + ApplyVSchemaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - var error = $root.topodata.TabletAlias.verify(message.tablet_alias); - if (error) - return "tablet_alias." + error; - } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.logutil.Event.verify(message.event); + if (message.v_schema != null && message.hasOwnProperty("v_schema")) { + var error = $root.vschema.Keyspace.verify(message.v_schema); if (error) - return "event." + error; + return "v_schema." + error; } return null; }; /** - * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ApplyVSchemaResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupResponse} BackupResponse + * @returns {vtctldata.ApplyVSchemaResponse} ApplyVSchemaResponse */ - BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupResponse) + ApplyVSchemaResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.ApplyVSchemaResponse) return object; - var message = new $root.vtctldata.BackupResponse(); - if (object.tablet_alias != null) { - if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); - message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); - } - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".vtctldata.BackupResponse.event: object expected"); - message.event = $root.logutil.Event.fromObject(object.event); + var message = new $root.vtctldata.ApplyVSchemaResponse(); + if (object.v_schema != null) { + if (typeof object.v_schema !== "object") + throw TypeError(".vtctldata.ApplyVSchemaResponse.v_schema: object expected"); + message.v_schema = $root.vschema.Keyspace.fromObject(object.v_schema); } return message; }; /** - * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. + * Creates a plain object from an ApplyVSchemaResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @static - * @param {vtctldata.BackupResponse} message BackupResponse + * @param {vtctldata.ApplyVSchemaResponse} message ApplyVSchemaResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options) { + ApplyVSchemaResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.tablet_alias = null; - object.keyspace = ""; - object.shard = ""; - object.event = null; - } - if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) - object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.event != null && message.hasOwnProperty("event")) - object.event = $root.logutil.Event.toObject(message.event, options); + if (options.defaults) + object.v_schema = null; + if (message.v_schema != null && message.hasOwnProperty("v_schema")) + object.v_schema = $root.vschema.Keyspace.toObject(message.v_schema, options); return object; }; /** - * Converts this BackupResponse to JSON. + * Converts this ApplyVSchemaResponse to JSON. * @function toJSON - * @memberof vtctldata.BackupResponse + * @memberof vtctldata.ApplyVSchemaResponse * @instance * @returns {Object.} JSON object */ - BackupResponse.prototype.toJSON = function toJSON() { + ApplyVSchemaResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupResponse; + return ApplyVSchemaResponse; })(); - vtctldata.BackupShardRequest = (function() { + vtctldata.BackupRequest = (function() { /** - * Properties of a BackupShardRequest. + * Properties of a BackupRequest. * @memberof vtctldata - * @interface IBackupShardRequest - * @property {string|null} [keyspace] BackupShardRequest keyspace - * @property {string|null} [shard] BackupShardRequest shard - * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary - * @property {number|Long|null} [concurrency] BackupShardRequest concurrency + * @interface IBackupRequest + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupRequest tablet_alias + * @property {boolean|null} [allow_primary] BackupRequest allow_primary + * @property {number|Long|null} [concurrency] BackupRequest concurrency */ /** - * Constructs a new BackupShardRequest. + * Constructs a new BackupRequest. * @memberof vtctldata - * @classdesc Represents a BackupShardRequest. - * @implements IBackupShardRequest + * @classdesc Represents a BackupRequest. + * @implements IBackupRequest * @constructor - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @param {vtctldata.IBackupRequest=} [properties] Properties to set */ - function BackupShardRequest(properties) { + function BackupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86699,113 +85683,100 @@ $root.vtctldata = (function() { } /** - * BackupShardRequest keyspace. - * @member {string} keyspace - * @memberof vtctldata.BackupShardRequest - * @instance - */ - BackupShardRequest.prototype.keyspace = ""; - - /** - * BackupShardRequest shard. - * @member {string} shard - * @memberof vtctldata.BackupShardRequest + * BackupRequest tablet_alias. + * @member {topodata.ITabletAlias|null|undefined} tablet_alias + * @memberof vtctldata.BackupRequest * @instance */ - BackupShardRequest.prototype.shard = ""; + BackupRequest.prototype.tablet_alias = null; /** - * BackupShardRequest allow_primary. + * BackupRequest allow_primary. * @member {boolean} allow_primary - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @instance */ - BackupShardRequest.prototype.allow_primary = false; + BackupRequest.prototype.allow_primary = false; /** - * BackupShardRequest concurrency. + * BackupRequest concurrency. * @member {number|Long} concurrency - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @instance */ - BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + BackupRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new BackupShardRequest instance using the specified properties. + * Creates a new BackupRequest instance using the specified properties. * @function create - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set - * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance + * @param {vtctldata.IBackupRequest=} [properties] Properties to set + * @returns {vtctldata.BackupRequest} BackupRequest instance */ - BackupShardRequest.create = function create(properties) { - return new BackupShardRequest(properties); + BackupRequest.create = function create(properties) { + return new BackupRequest(properties); }; /** - * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified BackupRequest message. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encode = function encode(message, writer) { + BackupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) + $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_primary); if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.concurrency); return writer; }; /** - * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. + * Encodes the specified BackupRequest message, length delimited. Does not implicitly {@link vtctldata.BackupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode + * @param {vtctldata.IBackupRequest} message BackupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer. + * Decodes a BackupRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decode = function decode(reader, length) { + BackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.keyspace = reader.string(); + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - message.shard = reader.string(); - break; - case 3: message.allow_primary = reader.bool(); break; - case 4: + case 3: message.concurrency = reader.uint64(); break; default: @@ -86817,38 +85788,37 @@ $root.vtctldata = (function() { }; /** - * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.BackupRequest} BackupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { + BackupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BackupShardRequest message. + * Verifies a BackupRequest message. * @function verify - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupShardRequest.verify = function verify(message) { + BackupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - if (!$util.isString(message.keyspace)) - return "keyspace: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); + if (error) + return "tablet_alias." + error; + } if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) if (typeof message.allow_primary !== "boolean") return "allow_primary: boolean expected"; @@ -86859,21 +85829,22 @@ $root.vtctldata = (function() { }; /** - * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.BackupShardRequest} BackupShardRequest + * @returns {vtctldata.BackupRequest} BackupRequest */ - BackupShardRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.BackupShardRequest) + BackupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupRequest) return object; - var message = new $root.vtctldata.BackupShardRequest(); - if (object.keyspace != null) - message.keyspace = String(object.keyspace); - if (object.shard != null) - message.shard = String(object.shard); + var message = new $root.vtctldata.BackupRequest(); + if (object.tablet_alias != null) { + if (typeof object.tablet_alias !== "object") + throw TypeError(".vtctldata.BackupRequest.tablet_alias: object expected"); + message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); + } if (object.allow_primary != null) message.allow_primary = Boolean(object.allow_primary); if (object.concurrency != null) @@ -86889,21 +85860,20 @@ $root.vtctldata = (function() { }; /** - * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @static - * @param {vtctldata.BackupShardRequest} message BackupShardRequest + * @param {vtctldata.BackupRequest} message BackupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupShardRequest.toObject = function toObject(message, options) { + BackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.keyspace = ""; - object.shard = ""; + object.tablet_alias = null; object.allow_primary = false; if ($util.Long) { var long = new $util.Long(0, 0, true); @@ -86911,10 +85881,8 @@ $root.vtctldata = (function() { } else object.concurrency = options.longs === String ? "0" : 0; } - if (message.keyspace != null && message.hasOwnProperty("keyspace")) - object.keyspace = message.keyspace; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; + if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) + object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) object.allow_primary = message.allow_primary; if (message.concurrency != null && message.hasOwnProperty("concurrency")) @@ -86926,40 +85894,40 @@ $root.vtctldata = (function() { }; /** - * Converts this BackupShardRequest to JSON. + * Converts this BackupRequest to JSON. * @function toJSON - * @memberof vtctldata.BackupShardRequest + * @memberof vtctldata.BackupRequest * @instance * @returns {Object.} JSON object */ - BackupShardRequest.prototype.toJSON = function toJSON() { + BackupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BackupShardRequest; + return BackupRequest; })(); - vtctldata.ChangeTabletTagsRequest = (function() { + vtctldata.BackupResponse = (function() { /** - * Properties of a ChangeTabletTagsRequest. + * Properties of a BackupResponse. * @memberof vtctldata - * @interface IChangeTabletTagsRequest - * @property {topodata.ITabletAlias|null} [tablet_alias] ChangeTabletTagsRequest tablet_alias - * @property {Object.|null} [tags] ChangeTabletTagsRequest tags - * @property {boolean|null} [replace] ChangeTabletTagsRequest replace + * @interface IBackupResponse + * @property {topodata.ITabletAlias|null} [tablet_alias] BackupResponse tablet_alias + * @property {string|null} [keyspace] BackupResponse keyspace + * @property {string|null} [shard] BackupResponse shard + * @property {logutil.IEvent|null} [event] BackupResponse event */ /** - * Constructs a new ChangeTabletTagsRequest. + * Constructs a new BackupResponse. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTagsRequest. - * @implements IChangeTabletTagsRequest + * @classdesc Represents a BackupResponse. + * @implements IBackupResponse * @constructor - * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set + * @param {vtctldata.IBackupResponse=} [properties] Properties to set */ - function ChangeTabletTagsRequest(properties) { - this.tags = {}; + function BackupResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86967,91 +85935,100 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTagsRequest tablet_alias. + * BackupResponse tablet_alias. * @member {topodata.ITabletAlias|null|undefined} tablet_alias - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @instance */ - ChangeTabletTagsRequest.prototype.tablet_alias = null; + BackupResponse.prototype.tablet_alias = null; /** - * ChangeTabletTagsRequest tags. - * @member {Object.} tags - * @memberof vtctldata.ChangeTabletTagsRequest + * BackupResponse keyspace. + * @member {string} keyspace + * @memberof vtctldata.BackupResponse * @instance */ - ChangeTabletTagsRequest.prototype.tags = $util.emptyObject; + BackupResponse.prototype.keyspace = ""; /** - * ChangeTabletTagsRequest replace. - * @member {boolean} replace - * @memberof vtctldata.ChangeTabletTagsRequest + * BackupResponse shard. + * @member {string} shard + * @memberof vtctldata.BackupResponse * @instance */ - ChangeTabletTagsRequest.prototype.replace = false; + BackupResponse.prototype.shard = ""; /** - * Creates a new ChangeTabletTagsRequest instance using the specified properties. + * BackupResponse event. + * @member {logutil.IEvent|null|undefined} event + * @memberof vtctldata.BackupResponse + * @instance + */ + BackupResponse.prototype.event = null; + + /** + * Creates a new BackupResponse instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IChangeTabletTagsRequest=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest instance + * @param {vtctldata.IBackupResponse=} [properties] Properties to set + * @returns {vtctldata.BackupResponse} BackupResponse instance */ - ChangeTabletTagsRequest.create = function create(properties) { - return new ChangeTabletTagsRequest(properties); + BackupResponse.create = function create(properties) { + return new BackupResponse(properties); }; /** - * Encodes the specified ChangeTabletTagsRequest message. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * Encodes the specified BackupResponse message. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsRequest.encode = function encode(message, writer) { + BackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shard); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.logutil.Event.encode(message.event, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChangeTabletTagsRequest message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsRequest.verify|verify} messages. + * Encodes the specified BackupResponse message, length delimited. Does not implicitly {@link vtctldata.BackupResponse.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.IChangeTabletTagsRequest} message ChangeTabletTagsRequest message or plain object to encode + * @param {vtctldata.IBackupResponse} message BackupResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsRequest.encodeDelimited = function encodeDelimited(message, writer) { + BackupResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer. + * Decodes a BackupResponse message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsRequest.decode = function decode(reader, length) { + BackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -87059,29 +86036,13 @@ $root.vtctldata = (function() { message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); break; case 2: - if (message.tags === $util.emptyObject) - message.tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.tags[key] = value; + message.keyspace = reader.string(); break; case 3: - message.replace = reader.bool(); + message.shard = reader.string(); + break; + case 4: + message.event = $root.logutil.Event.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -87092,30 +86053,30 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTagsRequest message from the specified reader or buffer, length delimited. + * Decodes a BackupResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.BackupResponse} BackupResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsRequest.decodeDelimited = function decodeDelimited(reader) { + BackupResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTagsRequest message. + * Verifies a BackupResponse message. * @function verify - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTagsRequest.verify = function verify(message) { + BackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { @@ -87123,116 +86084,114 @@ $root.vtctldata = (function() { if (error) return "tablet_alias." + error; } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.logutil.Event.verify(message.event); + if (error) + return "event." + error; } - if (message.replace != null && message.hasOwnProperty("replace")) - if (typeof message.replace !== "boolean") - return "replace: boolean expected"; return null; }; /** - * Creates a ChangeTabletTagsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTagsRequest} ChangeTabletTagsRequest + * @returns {vtctldata.BackupResponse} BackupResponse */ - ChangeTabletTagsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) + BackupResponse.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupResponse) return object; - var message = new $root.vtctldata.ChangeTabletTagsRequest(); + var message = new $root.vtctldata.BackupResponse(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); + throw TypeError(".vtctldata.BackupResponse.tablet_alias: object expected"); message.tablet_alias = $root.topodata.TabletAlias.fromObject(object.tablet_alias); } - if (object.tags) { - if (typeof object.tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); - message.tags = {}; - for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) - message.tags[keys[i]] = String(object.tags[keys[i]]); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".vtctldata.BackupResponse.event: object expected"); + message.event = $root.logutil.Event.fromObject(object.event); } - if (object.replace != null) - message.replace = Boolean(object.replace); return message; }; /** - * Creates a plain object from a ChangeTabletTagsRequest message. Also converts values to other types if specified. + * Creates a plain object from a BackupResponse message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @static - * @param {vtctldata.ChangeTabletTagsRequest} message ChangeTabletTagsRequest + * @param {vtctldata.BackupResponse} message BackupResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTagsRequest.toObject = function toObject(message, options) { + BackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.tags = {}; if (options.defaults) { object.tablet_alias = null; - object.replace = false; + object.keyspace = ""; + object.shard = ""; + object.event = null; } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - var keys2; - if (message.tags && (keys2 = Object.keys(message.tags)).length) { - object.tags = {}; - for (var j = 0; j < keys2.length; ++j) - object.tags[keys2[j]] = message.tags[keys2[j]]; - } - if (message.replace != null && message.hasOwnProperty("replace")) - object.replace = message.replace; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.event != null && message.hasOwnProperty("event")) + object.event = $root.logutil.Event.toObject(message.event, options); return object; }; /** - * Converts this ChangeTabletTagsRequest to JSON. + * Converts this BackupResponse to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTagsRequest + * @memberof vtctldata.BackupResponse * @instance * @returns {Object.} JSON object */ - ChangeTabletTagsRequest.prototype.toJSON = function toJSON() { + BackupResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTagsRequest; + return BackupResponse; })(); - vtctldata.ChangeTabletTagsResponse = (function() { + vtctldata.BackupShardRequest = (function() { /** - * Properties of a ChangeTabletTagsResponse. + * Properties of a BackupShardRequest. * @memberof vtctldata - * @interface IChangeTabletTagsResponse - * @property {Object.|null} [before_tags] ChangeTabletTagsResponse before_tags - * @property {Object.|null} [after_tags] ChangeTabletTagsResponse after_tags + * @interface IBackupShardRequest + * @property {string|null} [keyspace] BackupShardRequest keyspace + * @property {string|null} [shard] BackupShardRequest shard + * @property {boolean|null} [allow_primary] BackupShardRequest allow_primary + * @property {number|Long|null} [concurrency] BackupShardRequest concurrency */ /** - * Constructs a new ChangeTabletTagsResponse. + * Constructs a new BackupShardRequest. * @memberof vtctldata - * @classdesc Represents a ChangeTabletTagsResponse. - * @implements IChangeTabletTagsResponse + * @classdesc Represents a BackupShardRequest. + * @implements IBackupShardRequest * @constructor - * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set */ - function ChangeTabletTagsResponse(properties) { - this.before_tags = {}; - this.after_tags = {}; + function BackupShardRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87240,128 +86199,114 @@ $root.vtctldata = (function() { } /** - * ChangeTabletTagsResponse before_tags. - * @member {Object.} before_tags - * @memberof vtctldata.ChangeTabletTagsResponse + * BackupShardRequest keyspace. + * @member {string} keyspace + * @memberof vtctldata.BackupShardRequest * @instance */ - ChangeTabletTagsResponse.prototype.before_tags = $util.emptyObject; + BackupShardRequest.prototype.keyspace = ""; /** - * ChangeTabletTagsResponse after_tags. - * @member {Object.} after_tags - * @memberof vtctldata.ChangeTabletTagsResponse + * BackupShardRequest shard. + * @member {string} shard + * @memberof vtctldata.BackupShardRequest * @instance */ - ChangeTabletTagsResponse.prototype.after_tags = $util.emptyObject; + BackupShardRequest.prototype.shard = ""; /** - * Creates a new ChangeTabletTagsResponse instance using the specified properties. + * BackupShardRequest allow_primary. + * @member {boolean} allow_primary + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.allow_primary = false; + + /** + * BackupShardRequest concurrency. + * @member {number|Long} concurrency + * @memberof vtctldata.BackupShardRequest + * @instance + */ + BackupShardRequest.prototype.concurrency = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new BackupShardRequest instance using the specified properties. * @function create - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IChangeTabletTagsResponse=} [properties] Properties to set - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse instance + * @param {vtctldata.IBackupShardRequest=} [properties] Properties to set + * @returns {vtctldata.BackupShardRequest} BackupShardRequest instance */ - ChangeTabletTagsResponse.create = function create(properties) { - return new ChangeTabletTagsResponse(properties); + BackupShardRequest.create = function create(properties) { + return new BackupShardRequest(properties); }; /** - * Encodes the specified ChangeTabletTagsResponse message. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * Encodes the specified BackupShardRequest message. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encode - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsResponse.encode = function encode(message, writer) { + BackupShardRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) - for (var keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); - if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) - for (var keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); + if (message.keyspace != null && Object.hasOwnProperty.call(message, "keyspace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyspace); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.allow_primary != null && Object.hasOwnProperty.call(message, "allow_primary")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allow_primary); + if (message.concurrency != null && Object.hasOwnProperty.call(message, "concurrency")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.concurrency); return writer; }; /** - * Encodes the specified ChangeTabletTagsResponse message, length delimited. Does not implicitly {@link vtctldata.ChangeTabletTagsResponse.verify|verify} messages. + * Encodes the specified BackupShardRequest message, length delimited. Does not implicitly {@link vtctldata.BackupShardRequest.verify|verify} messages. * @function encodeDelimited - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.IChangeTabletTagsResponse} message ChangeTabletTagsResponse message or plain object to encode + * @param {vtctldata.IBackupShardRequest} message BackupShardRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeTabletTagsResponse.encodeDelimited = function encodeDelimited(message, writer) { + BackupShardRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer. + * Decodes a BackupShardRequest message from the specified reader or buffer. * @function decode - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsResponse.decode = function decode(reader, length) { + BackupShardRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.BackupShardRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (message.before_tags === $util.emptyObject) - message.before_tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.before_tags[key] = value; + message.keyspace = reader.string(); break; case 2: - if (message.after_tags === $util.emptyObject) - message.after_tags = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.after_tags[key] = value; + message.shard = reader.string(); + break; + case 3: + message.allow_primary = reader.bool(); + break; + case 4: + message.concurrency = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -87372,123 +86317,126 @@ $root.vtctldata = (function() { }; /** - * Decodes a ChangeTabletTagsResponse message from the specified reader or buffer, length delimited. + * Decodes a BackupShardRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.BackupShardRequest} BackupShardRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeTabletTagsResponse.decodeDelimited = function decodeDelimited(reader) { + BackupShardRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChangeTabletTagsResponse message. + * Verifies a BackupShardRequest message. * @function verify - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeTabletTagsResponse.verify = function verify(message) { + BackupShardRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) - return "object expected"; - if (message.before_tags != null && message.hasOwnProperty("before_tags")) { - if (!$util.isObject(message.before_tags)) - return "before_tags: object expected"; - var key = Object.keys(message.before_tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.before_tags[key[i]])) - return "before_tags: string{k:string} expected"; - } - if (message.after_tags != null && message.hasOwnProperty("after_tags")) { - if (!$util.isObject(message.after_tags)) - return "after_tags: object expected"; - var key = Object.keys(message.after_tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.after_tags[key[i]])) - return "after_tags: string{k:string} expected"; - } + return "object expected"; + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + if (!$util.isString(message.keyspace)) + return "keyspace: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + if (typeof message.allow_primary !== "boolean") + return "allow_primary: boolean expected"; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (!$util.isInteger(message.concurrency) && !(message.concurrency && $util.isInteger(message.concurrency.low) && $util.isInteger(message.concurrency.high))) + return "concurrency: integer|Long expected"; return null; }; /** - * Creates a ChangeTabletTagsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BackupShardRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static * @param {Object.} object Plain object - * @returns {vtctldata.ChangeTabletTagsResponse} ChangeTabletTagsResponse + * @returns {vtctldata.BackupShardRequest} BackupShardRequest */ - ChangeTabletTagsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) + BackupShardRequest.fromObject = function fromObject(object) { + if (object instanceof $root.vtctldata.BackupShardRequest) return object; - var message = new $root.vtctldata.ChangeTabletTagsResponse(); - if (object.before_tags) { - if (typeof object.before_tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); - message.before_tags = {}; - for (var keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) - message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); - } - if (object.after_tags) { - if (typeof object.after_tags !== "object") - throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); - message.after_tags = {}; - for (var keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) - message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); - } + var message = new $root.vtctldata.BackupShardRequest(); + if (object.keyspace != null) + message.keyspace = String(object.keyspace); + if (object.shard != null) + message.shard = String(object.shard); + if (object.allow_primary != null) + message.allow_primary = Boolean(object.allow_primary); + if (object.concurrency != null) + if ($util.Long) + (message.concurrency = $util.Long.fromValue(object.concurrency)).unsigned = true; + else if (typeof object.concurrency === "string") + message.concurrency = parseInt(object.concurrency, 10); + else if (typeof object.concurrency === "number") + message.concurrency = object.concurrency; + else if (typeof object.concurrency === "object") + message.concurrency = new $util.LongBits(object.concurrency.low >>> 0, object.concurrency.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ChangeTabletTagsResponse message. Also converts values to other types if specified. + * Creates a plain object from a BackupShardRequest message. Also converts values to other types if specified. * @function toObject - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @static - * @param {vtctldata.ChangeTabletTagsResponse} message ChangeTabletTagsResponse + * @param {vtctldata.BackupShardRequest} message BackupShardRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeTabletTagsResponse.toObject = function toObject(message, options) { + BackupShardRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.before_tags = {}; - object.after_tags = {}; - } - var keys2; - if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { - object.before_tags = {}; - for (var j = 0; j < keys2.length; ++j) - object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; - } - if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { - object.after_tags = {}; - for (var j = 0; j < keys2.length; ++j) - object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; + if (options.defaults) { + object.keyspace = ""; + object.shard = ""; + object.allow_primary = false; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.concurrency = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.concurrency = options.longs === String ? "0" : 0; } + if (message.keyspace != null && message.hasOwnProperty("keyspace")) + object.keyspace = message.keyspace; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.allow_primary != null && message.hasOwnProperty("allow_primary")) + object.allow_primary = message.allow_primary; + if (message.concurrency != null && message.hasOwnProperty("concurrency")) + if (typeof message.concurrency === "number") + object.concurrency = options.longs === String ? String(message.concurrency) : message.concurrency; + else + object.concurrency = options.longs === String ? $util.Long.prototype.toString.call(message.concurrency) : options.longs === Number ? new $util.LongBits(message.concurrency.low >>> 0, message.concurrency.high >>> 0).toNumber(true) : message.concurrency; return object; }; /** - * Converts this ChangeTabletTagsResponse to JSON. + * Converts this BackupShardRequest to JSON. * @function toJSON - * @memberof vtctldata.ChangeTabletTagsResponse + * @memberof vtctldata.BackupShardRequest * @instance * @returns {Object.} JSON object */ - ChangeTabletTagsResponse.prototype.toJSON = function toJSON() { + BackupShardRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChangeTabletTagsResponse; + return BackupShardRequest; })(); vtctldata.ChangeTabletTagsRequest = (function() { @@ -87513,7 +86461,7 @@ $root.vtctldata = (function() { function ChangeTabletTagsRequest(properties) { this.tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -87569,7 +86517,7 @@ $root.vtctldata = (function() { if (message.tablet_alias != null && Object.hasOwnProperty.call(message, "tablet_alias")) $root.topodata.TabletAlias.encode(message.tablet_alias, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) - for (let keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); if (message.replace != null && Object.hasOwnProperty.call(message, "replace")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.replace); @@ -87603,41 +86551,38 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsRequest(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); - break; - } - case 2: { - if (message.tags === $util.emptyObject) - message.tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + message.tablet_alias = $root.topodata.TabletAlias.decode(reader, reader.uint32()); + break; + case 2: + if (message.tags === $util.emptyObject) + message.tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.tags[key] = value; - break; - } - case 3: { - message.replace = reader.bool(); - break; } + message.tags[key] = value; + break; + case 3: + message.replace = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -87674,15 +86619,15 @@ $root.vtctldata = (function() { if (typeof message !== "object" || message === null) return "object expected"; if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) { - let error = $root.topodata.TabletAlias.verify(message.tablet_alias); + var error = $root.topodata.TabletAlias.verify(message.tablet_alias); if (error) return "tablet_alias." + error; } if (message.tags != null && message.hasOwnProperty("tags")) { if (!$util.isObject(message.tags)) return "tags: object expected"; - let key = Object.keys(message.tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.tags[key[i]])) return "tags: string{k:string} expected"; } @@ -87703,7 +86648,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsRequest) return object; - let message = new $root.vtctldata.ChangeTabletTagsRequest(); + var message = new $root.vtctldata.ChangeTabletTagsRequest(); if (object.tablet_alias != null) { if (typeof object.tablet_alias !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tablet_alias: object expected"); @@ -87713,7 +86658,7 @@ $root.vtctldata = (function() { if (typeof object.tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsRequest.tags: object expected"); message.tags = {}; - for (let keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) message.tags[keys[i]] = String(object.tags[keys[i]]); } if (object.replace != null) @@ -87733,7 +86678,7 @@ $root.vtctldata = (function() { ChangeTabletTagsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) object.tags = {}; if (options.defaults) { @@ -87742,10 +86687,10 @@ $root.vtctldata = (function() { } if (message.tablet_alias != null && message.hasOwnProperty("tablet_alias")) object.tablet_alias = $root.topodata.TabletAlias.toObject(message.tablet_alias, options); - let keys2; + var keys2; if (message.tags && (keys2 = Object.keys(message.tags)).length) { object.tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.tags[keys2[j]] = message.tags[keys2[j]]; } if (message.replace != null && message.hasOwnProperty("replace")) @@ -87764,21 +86709,6 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTabletTagsRequest - * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTabletTagsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsRequest"; - }; - return ChangeTabletTagsRequest; })(); @@ -87804,7 +86734,7 @@ $root.vtctldata = (function() { this.before_tags = {}; this.after_tags = {}; if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -87850,10 +86780,10 @@ $root.vtctldata = (function() { if (!writer) writer = $Writer.create(); if (message.before_tags != null && Object.hasOwnProperty.call(message, "before_tags")) - for (let keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.before_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.before_tags[keys[i]]).ldelim(); if (message.after_tags != null && Object.hasOwnProperty.call(message, "after_tags")) - for (let keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(message.after_tags), i = 0; i < keys.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.after_tags[keys[i]]).ldelim(); return writer; }; @@ -87885,56 +86815,54 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.vtctldata.ChangeTabletTagsResponse(), key, value; while (reader.pos < end) { - let tag = reader.uint32(); + var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.before_tags === $util.emptyObject) - message.before_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + case 1: + if (message.before_tags === $util.emptyObject) + message.before_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.before_tags[key] = value; - break; } - case 2: { - if (message.after_tags === $util.emptyObject) - message.after_tags = {}; - let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - let tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } + message.before_tags[key] = value; + break; + case 2: + if (message.after_tags === $util.emptyObject) + message.after_tags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.after_tags[key] = value; - break; } + message.after_tags[key] = value; + break; default: reader.skipType(tag & 7); break; @@ -87973,16 +86901,16 @@ $root.vtctldata = (function() { if (message.before_tags != null && message.hasOwnProperty("before_tags")) { if (!$util.isObject(message.before_tags)) return "before_tags: object expected"; - let key = Object.keys(message.before_tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.before_tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.before_tags[key[i]])) return "before_tags: string{k:string} expected"; } if (message.after_tags != null && message.hasOwnProperty("after_tags")) { if (!$util.isObject(message.after_tags)) return "after_tags: object expected"; - let key = Object.keys(message.after_tags); - for (let i = 0; i < key.length; ++i) + var key = Object.keys(message.after_tags); + for (var i = 0; i < key.length; ++i) if (!$util.isString(message.after_tags[key[i]])) return "after_tags: string{k:string} expected"; } @@ -88000,19 +86928,19 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.fromObject = function fromObject(object) { if (object instanceof $root.vtctldata.ChangeTabletTagsResponse) return object; - let message = new $root.vtctldata.ChangeTabletTagsResponse(); + var message = new $root.vtctldata.ChangeTabletTagsResponse(); if (object.before_tags) { if (typeof object.before_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.before_tags: object expected"); message.before_tags = {}; - for (let keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.before_tags), i = 0; i < keys.length; ++i) message.before_tags[keys[i]] = String(object.before_tags[keys[i]]); } if (object.after_tags) { if (typeof object.after_tags !== "object") throw TypeError(".vtctldata.ChangeTabletTagsResponse.after_tags: object expected"); message.after_tags = {}; - for (let keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) + for (var keys = Object.keys(object.after_tags), i = 0; i < keys.length; ++i) message.after_tags[keys[i]] = String(object.after_tags[keys[i]]); } return message; @@ -88030,20 +86958,20 @@ $root.vtctldata = (function() { ChangeTabletTagsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; + var object = {}; if (options.objects || options.defaults) { object.before_tags = {}; object.after_tags = {}; } - let keys2; + var keys2; if (message.before_tags && (keys2 = Object.keys(message.before_tags)).length) { object.before_tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.before_tags[keys2[j]] = message.before_tags[keys2[j]]; } if (message.after_tags && (keys2 = Object.keys(message.after_tags)).length) { object.after_tags = {}; - for (let j = 0; j < keys2.length; ++j) + for (var j = 0; j < keys2.length; ++j) object.after_tags[keys2[j]] = message.after_tags[keys2[j]]; } return object; @@ -88060,21 +86988,6 @@ $root.vtctldata = (function() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for ChangeTabletTagsResponse - * @function getTypeUrl - * @memberof vtctldata.ChangeTabletTagsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ChangeTabletTagsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/vtctldata.ChangeTabletTagsResponse"; - }; - return ChangeTabletTagsResponse; })(); From 1284377e9317fa5181208a86aae9b43ffc66a07b Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 20:58:51 +0200 Subject: [PATCH 9/9] go1.22 fix Signed-off-by: Tim Vaillancourt --- go/vt/vtctl/grpcvtctldserver/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 6f4d6f933a0..65de7cb9437 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -1146,6 +1146,8 @@ func TestChangeTabletTags(t *testing.T) { } for _, tt := range tests { + tt := tt + t.Run(tt.name, func(t *testing.T) { t.Parallel()